* {
    padding: 0;
    margin: 0;
    font-family: 'Roboto Condensed', sans-serif;
}

body, html {
    overflow-x: hidden;
    background-image: url('../img/bd.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

nav {
    margin: 0 auto;
    max-width: 1100px;
    width: 100%
}
.navbar{
    display: none;
}
#checkbox-menu,
.toggle {
    display: none;
}

.menu {
    padding: 0;
    margin: 0;
    height: 50px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    list-style-type: none;
}

.menu li a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    align-self: center;
    font-size: 20px;
    padding: 10px 15px;
    transition: background-color .2s linear;
}


.menu li a:hover {
    color: #888484;
    border-radius: 3px;
}

.menu li a.logo {
    font-size: 18px;
    margin-right: 240px;
    font-weight: bold;
}

.logo_img img {
    margin-left: 100px;

}

.menu li a.contacts {
    margin-right: 100px;
}



.wrapper {
    margin: auto;
    max-width: 1100px;
    width: 100%;
}

.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: auto;
}

.mySlides {
    display: none;

}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.active, .dot:hover {
    background-color: #717171;
}

.fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.5s;
    animation-name: fade;
    animation-duration: 1.5s;
}

@-webkit-keyframes fade {
    from {
        opacity: .4;
    }
    to {
        opacity: 1;
    }
}

@keyframes fade {
    from {
        opacity: .4;
    }
    to {
        opacity: 1;
    }
}

.intro .intro-text {
    color: white;
    position: absolute;
    font-size: 60px;
    left: 360px;
    top: 280px;
}

.intro {
    margin-bottom: 20px;
}

.stats {
    display: flex;
    margin-top: 130px;
}

.stats-line {
    display: flex;
}

.stats-text {
    padding: 40px;
}

.stats-text h2 {
    font-size: 40px;
    margin-bottom: 70px;
}

.stats-text p {
    margin-top: 50px;
    font-size: 18px;
    line-height: 27px;
}

.square {
    width: 200px;
    height: 200px;
    margin: 30px;
    display: flex;
    background: #e4eaec;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.stats-square {
    font-size: 40px;
    color: black;
    margin-bottom: 15px;
}

.square-text {
    font-size: 15px;
    font-weight: bold;
}

.apartments {
    padding: 60px 0;
}

.apart h2 {
    margin-bottom: 85px;
    font-size: 40px;
}

.filterDiv {
    overflow: hidden;
    max-width: 348px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);

}

.show {
    display: block;
}

.und {
    display: none;
    margin-top: 20px;
}

.card-container {
    padding: 25px;
}

.card-info {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;

}

.card-info .money {
    font-size: 18px;
}

#filter {
    border: 1px solid #000;
    margin-bottom: 20px;
    border-radius: 45px;
}

.check {
    margin-top: 10px;
}

.btn {
    text-decoration: none;
    width: 160px;
    height: 60px;
    border-radius: 45px;
    margin: 20px 20px;
    font-size: 11px;
    color: #000000;
    background: white;
    box-shadow: 0 8px 15px rgba(0, 0, 0, .1);
    transition: .3s;
}

.btn:hover {
    background: #000000;
    box-shadow: 0 15px 20px rgba(233, 235, 234, 0.4);
    color: white;
    transform: translateY(-7px);
}

.filterDiv:hover {
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.filterDiv img {
    width: 348px;
    height: 300px;
    border-bottom: 1px solid #000;
}

#cards {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 0;
    grid-row-gap: 30px;
    text-align: center;
}

.input1 {
    text-align: center;
    border-radius: 5px;
    padding: 1px 5px;
    width: 30px;
    margin-bottom: 10px;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
}

.quantity-arrow-minus,
.quantity-arrow-plus {
    cursor: pointer;
    padding: 1px 5px;
    box-sizing: border-box;
    border-radius: 4px;
    outline: none;
    border: none;
}

.apart input[type=text] {
    margin-top: 50px;
    width: 300px;
    height: 70px;
    border: none;
    background-image: url(../img/search.png);
    background-repeat: no-repeat;
    background-position: 27px;
    outline: none;
    padding-left: 62px;
    font-size: 15px;
    color: #919eb1;
}

#cart_content {
    position: fixed;
    top: 100px;
    left: 400px;
}

#close {
    display: none;
    position: fixed;
    top: 67px;
    left: 93%;
    height: 35px;
    width: 20px;
    text-align: center;
}


.add_tovar{
    height: 30px;
    padding: 5px;
    border-radius: 10px;
    background: #fff;
}
.add_tovar:hover {
    background-color: grey;
}



.wrapper h2 {
    font-size: 40px;
}

.steps-container {
    display: grid;
    margin-top: 20px;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 0;
    grid-row-gap: 30px;
    text-align: center;
    justify-content: space-between;
}

.steps h2 {
    margin-top: 25px;
    font-size: 40px;
    margin-bottom: 35px;
}

.steps-text {
    margin-top: 20px;
    line-height: 27px;
    font-size: 20px;
}

.mbtext {
    margin-bottom: 70px;
    font-size: 20px
}

.stepblock {
    display: block;
    position: relative;
    width: 340px;
    height: 370px;
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.stepblock img {
    display: block;
    position: relative;
    width: 340px;
    height: 370px;
}

.block_text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 340px;
    height: 370px;
    display: block;
    opacity: 0;
    -webkit-transition: all 0.7s ease-in-out;
    -moz-transition: all 0.7s ease-in-out;
    -ms-transition: all 0.7s ease-in-out;
    -o-transition: all 0.7s ease-in-out;
    transition: all 0.7s ease-in-out;
    background-color: rgb(243, 243, 243);

}

.stepblock:hover .block_text {
    opacity: 1;
}

.stepblock:hover {
    background: black;

}

.stepblock h4 {
    font-size: 25px;
    text-align: center;
    margin-top: 150px;
}


.stepblock h4 .step-info {
    margin-left: 70px;
}

.stepblock .stepinfolast {
    display: inline-block;
    margin-left: 70px;
    margin-top: 20px;
    border-bottom: 3px solid #000;
}

.stepblock .stepinfolast:hover {
    border-bottom: 3px solid #fff;
}

.serv-container {
    display: flex;
    margin-top: 70px;
}

.services img {
    width: 100%;
    height: auto;
}

.serv-img-container {
    width: 58%;
}

.serv-text {
    width: 42%;
    margin-left: 3%;
}

.serv-text p {
    margin-bottom: 60px;
}

.services h2 {
    font-size: 40px;

}

.services p {
    font-size: 18px;
    line-height: 30px;
}

.services h4 {
    text-align: center;
    font-size: 25px;
    margin-bottom: 25px;
}



.socials p {
    text-transform: uppercase;
    font-size: 13px;
    color: #919eb1;
    margin-bottom: 10px;
    margin-right: 0;
    font-family: 'Roboto Condensed', sans-serif;
}

.fa {
    padding: 10px;
    font-size: 20px;
    width: 20px;
    text-align: center;
    text-decoration: none;
}

.fa:hover {
    opacity: 0.7;
}

.fa-google-plus {
    background: #ff0000;
    color: white;
}

.fa-telegram {
    background: #55ACEE;
    color: white;
}

.fa-vk {
    background: #3367d5;
    color: white;
}

.footer-block {
    display: flex;
    justify-content: space-between;
    width: 100%;
    background: #555b5c;
    color: white;
}

.footer-block h3 {
    font-size: 40px;
}

.footer-search input[type=text] {
    width: 442px;
    height: 50px;
    color: #919eb1;
    padding-left: 27px;
    background-image: url(../img/arrow.png);
    background-repeat: no-repeat;
    background-position: 94%;
}
.footer-contacts {
    display: flex;
    flex-direction: column;
}

.footer-contacts p {
    text-transform: uppercase;
    font-size: 13px;
    color: #919eb1;
    margin-bottom: 10px;
    margin-right: 0;
    font-family: 'Roboto Condensed', sans-serif;
}

.footer-contacts a {
    color: white;
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 12px;

}

.footer-logo {
    margin: 40px;
    height: 50px;
    width: 250px;
    display: flex;
    align-items: center;

}
.footer-logo h4{
    margin-left: 10px;
}

.footer-links {
    margin-top: 30px;
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.footer-link {
    display: flex;
    flex-direction: column;
}

.footer-link p {
    text-transform: uppercase;
    font-size: 13px;
    color: #919eb1;
    margin-bottom: 10px;
}

.footer-link a {
    color: white;
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 12px;

}

.footer-link a:hover {
    opacity: 0.4;
}



.modal__backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    z-index: -1;
    pointer-events: none;
    transition: opacity0 .2s ease-in;
    text-align: center;
  }

  .modal__content {
    position: relative;
    width: 800px;
    margin: 100px;
    transition: opacity 0.3s ease-in;
    display: inline-flex;
    flex-direction: column;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    box-shadow: 0 0 7px 0 rgba(0, 0, 0, 0.3);
  }
  .modal__content img{
      width: 400px;
      height: 400px;
  }
  .modal__show .modal__backdrop,
    .modal__show .modal__content {
      opacity: 1;
      z-index: 1050;
      pointer-events: auto;
      overflow-y: auto;
    }

    .modal__header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px;
      border-bottom: 1px solid #eceeef;
    }

    .modal__title {
      margin-top: 0;
      margin-bottom: 0;
      line-height: 1.5;
      font-size: 18px;
      font-weight: 500;
    }

    .modal__btn-close {
      float: right;
      font-family: sans-serif;
      font-size: 24px;
      font-weight: 700;
      line-height: 1;
      color: #000;
      text-shadow: 0 1px 0 #fff;
      opacity: 0.5;
      text-decoration: none;
    }

    .modal__btn-close:focus,
    .modal__btn-close:hover {
      color: #000;
      text-decoration: none;
      cursor: pointer;
      opacity: 0.75;
    }

    .modal__body {
      position: relative;
      display: flex;
      padding: 10px;
      overflow: auto;
    }

    .modal__footer {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      padding: 10px;
      border-top: 1px solid #e9ecef;
      border-bottom-right-radius: 0.3rem;
      border-bottom-left-radius: 0.3rem;
    }


    .btn__delete {
      color: #fff;
      background-color: #dc3545;
      border-color: #dc3545;
    }

    .btn__cancel {
      color: #212529;
      background-color: #f8f9fa;
      border-color: #f8f9fa;
      margin-left: 10px;
    }

    .btn__delete:hover {
      color: #fff;
      background-color: #c82333;
      border-color: #bd2130;
    }

    .btn__cancel:hover {
      color: #212529;
      background-color: #e2e6ea;
      border-color: #dae0e5;
    }


@media  (max-width: 768px) {
    body{
        background: #fff;
     }
     main{
         margin-left: 20px;
     }
     .slideshow-container{
         display: none;
     }
    .toggle {
        clear: both;
        display: block;
        text-align: center;
        font-size: 18px;
        line-height: 40px;
        width: 100%;
        color: white;
        background: black;
        transition: all 0.1s linear;
    }

    .toggle:hover {
        background: black;
    }

    #checkbox-menu:checked + label .touch li {
        opacity: 1;
        visibility: visible;
        transition: all 0.7s linear;
    }

    #checkbox-menu:checked + label .touch {
        height: 350px;
    }

    .menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        height: 0;
        transition: height .3s linear;
    }

    .menu li {
        display: flex;
        align-self: center;
        width: 95%;
        opacity: 0;
        visibility: hidden;
    }

    .menu li a {
        width: 95%;
        text-align: center;
        align-self: center;
        align-content: center;
    }

    .menu li a.logo {
        font-size: 31px;
        margin-right: 0;

    }


    .logo_img img {
        margin: 0 70px 0 70px;
    }

   .menu li a.contacts{
       margin-right: 0;
   }
   
    .block_text {
        height: 200px;
        width: 200px;
    }
   
    .stats {
        margin-top: 0;
        flex-direction: column;
    }

    .stats-text {
        padding: 10px;
    }

    .stats-text h2 {
        font-size: 30px;
        margin-bottom: 10px;
    }

    .stats-text p {
        margin-top: 5px;
        font-size: 13px;
        line-height: 18px;
    }

    .square {
        height: 140px;
    }

    .cards {
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(6, 1fr);
        grid-row-gap: 10px;
        justify-items: center;
    }


    .steps-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .stepblock img {
        height: 200px;
        width: 200px;
    }
    .stepblock{
        height: 200px;
        width: 200px;
    }
    .stepblock h4{
        font-size: 18px;
        margin-top: 80px;
    }
    .steps-text, .steps h2 {
        margin-bottom: 15px;

    }
    .filterDiv{
        height: 470px;
        width: 240px;
    }
    .filterDiv img{
        height: 270px;
        width: 240px;
    }

    .serv-container {
        margin-top: 20px;

    }
    .services h4{
        margin-bottom: 10px;
    }
    .dilevery_serv{
        margin-top: -30px;
    }
    .footer-block {
        flex-direction: column;
    }

    .footer-logo h3 {
        font-size: 25px;
        text-align: center;
    }

    .footer-search input {
        width: 80%;
        height: 50px;
        margin-top: 15px;
    }

    .footer-search {
        display: flex;
        justify-content: center;
    }

    .footer-links {
        flex-wrap: wrap;
        padding-right: 5%;
    }
}
@media  (max-width: 320px){
    .wrapper h2{
        text-align: center;
    }
    .wrapper p{
        text-align: center;
    }
    .steps-container{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .apart h2{
        font-size: 20px;
    }
    #cards{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .square span{
        font-size: 14px;
        text-align: center;
        font-weight: normal;
    }
    .services{
        display: none;
    }
}
@media  (max-width: 375px){
    .wrapper h2{
        text-align: center;
    }
    .wrapper p{
        text-align: center;
    }
    .steps-container{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .apart h2{
        font-size: 20px;
    }
    #cards{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .square span{
        font-size: 14px;
        text-align: center;
        font-weight: normal;
    }
    .services{
        display: none;
    }
}

