* {
    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 {
    position: fixed;
    background: rgb(255, 255, 255);
    width: 100%;
}

#checkbox-menu,
.toggle {
    display: none;
}

.menu2{
    display: none;
    position: absolute;
    width: 100%;
    height: auto;
    max-width: 0;
}
.menu2 ul {
    display: flex;
    flex-direction: column;
    width: 200px;
    height: auto;
    padding: 0;
    list-style: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.menu2 ul li {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
}

.menu2 ul li a {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    box-sizing: border-box;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: bold;
    color: #000000;
    line-height: 1.2em;
    padding: 10px 15px;
    background: #ffffff;
    text-decoration: none;
    
}


.menu2 ul li a:hover {
    color: #888484;
    cursor: pointer;
    background: #fff;
}

.menu2 ul li ul {
    position: absolute;
    top: 0;
    left: 100%;
    display: none;
    width: auto;
}

.menu2 ul li:hover ul {
    display: block;
}

.menu2 ul li ul li a {
    white-space: nowrap;
    text-transform: none;
    padding: 5px 20px;
}

.menu2 ul li ul li a:hover {
    color: #888484;
}
.menu {
    padding: 0;
    margin: 0;
    height: 50px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    list-style-type: none;
    max-width: 1100px;
    margin: auto;
    top: 0; left: 0; right: 0;
}

.menu li a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    align-self: center;
    font-size: 20px;
    transition: background-color .2s linear;
}

.menu li a:hover {
    color: #888484;
    border-radius: 3px;
   
}



.menu li a.logo {
    font-size: 18px;
    margin-right: 20px;
    font-weight: bold;
}

.apartments{
    margin: 60px 0;
}
.basket_btn {
    margin-left: 20px;
    width: 24px;
    height: 24px;
}

.basket_btn img:hover {
    cursor: pointer;
}

.back_to_top {
    position: fixed;
    bottom: 80px;
    right: 40px;
    z-index: 9999;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    background: #f5f5f5;
    color: #000000;
    cursor: pointer;
    border-radius: 2px;
    display: none;
}

.back_to_top:hover {
    background: #e9ebec;
}

.back_to_top-show {
    display: block;
}

.wrapper {
    margin: auto;
    max-width: 1100px;
    width: 100%;
}


.filterDiv {
    overflow: hidden;
    max-width: 300px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    display: none;
}

.show {
    display: block;
}

.menu1 {
    display: none;
    position: absolute;
    width: 100%;
    height: auto;
    max-width: 0;
    left: 830px;
}
.products:hover .menu1{
    display: block;
}
.menu1 ul {
    display: flex;
    flex-direction: column;
    width: 200px;
    height: auto;
    padding: 0;
    list-style: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.menu1 ul li {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    
}

.menu1 ul li a {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    box-sizing: border-box;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: bold;
    color: #000000;
    line-height: 1.2em;
    padding: 10px 15px;
    background: #ffffff;
    text-decoration: none;
    
}


.menu1 ul li a:hover {
    color: #888484;
    cursor: pointer;
    background: #fff;
}

.menu1 ul li ul {
    position: absolute;
    top: 0;
    left: 100%;
    display: none;
    width: auto;
}

.menu1 ul li:hover ul {
    display: block;
}

.menu1 ul li ul li a {
    white-space: nowrap;
    text-transform: none;
    padding: 5px 20px;
}

.menu1 ul li ul li a:hover {
    color: #888484;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

nav ul:after {
    content: "";
    display: table;
    clear: both;
}

nav a {
    text-decoration: none;
    display: block;
    transition: .3s linear;
}


.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;
    border-radius: 10px;
}

.check {
    margin-top: 10px;
}

.btn {
    padding: 5px;
}

.btn:hover {
    background: #000000;
    box-shadow: 0 15px 20px rgba(233, 235, 234, 0.4);
    color: white;
    transition: .5s;
}

.filterDiv:hover {
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.filterDiv img {
    width: 300px;
    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;
}

.menu input[type=text] {

    width: 200px;
    height: 40px;
    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: absolute;
    top: 100px;
    left: 80%;
}

#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;
}

.all {
    width: 250px;
    height: 70px;
    border: none;
    border-radius: 4px;
    margin-left: 0;
    margin-top: 52px;
    cursor: pointer;
}

.all:hover {
    background-color: #000;
    color: #f6f5f4;
}


.wrapper h2 {
    font-size: 40px;
}

.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;
}


.contacts {
    width: 98%;
    text-align: center;
}

footer {
    background: #555b5c;
    color: white;

}

.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) {
    nav{
        position: relative;
    }
    .menu1{
        display: none;
    }
    body{
       background: #fff;
    }
    main{
        margin-left: 20px;
    }
    .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;

    }

    .menu li a.contacts {
        margin-right: 0;
    }
    .menu2{
        display: block;
        position: relative;
        margin-left: -18px;
    }
    .menu2 ul{
        flex-direction: row;
    }
    .menu2 ul li a{
        font-size: 10.5px;
    }
    .menu2 ul li a{
        height: 50px;
    }
    .menu2 ul li ul{
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 10;
        -webkit-transition: 0.5s ease-in-out;
        -moz-transition: 0.5s ease-in-out;
        -o-transition: 0.5s ease-in-out;
        transition: 0.5s ease-in-out;
    }
    .btn{
        text-align: center;
    }
    .menu2 ul li ul li a{
        white-space: normal;
    }
    .apartments{
        margin: 10px 0;
    }
    .logo_img img {
        margin: 0 70px 0 70px;
    }

    .basket_btn{
        margin-left: 0;
    }
    
    .filterDiv{
        height: 470px;
        width: 240px;
    }
    .filterDiv img{
        height: 270px;
        width: 240px;
    }

    .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) {
    #checkbox-menu:checked + label .touch{
        height: 400px;
    }
    #cards {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .apartments{
        padding: 0;
        margin: 20px;
    }
    .menu2 {
        margin-left: 30px;
        width: 280px;
        align-items: center;
    }
    .menu2 ul{
        flex-direction: column;
    }
    .menu2 ul li ul{
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 10;
        -webkit-transition: 0.5s ease-in-out;
        -moz-transition: 0.5s ease-in-out;
        -o-transition: 0.5s ease-in-out;
        transition: 0.5s ease-in-out;
    }
    .menu2 ul li a:hover {
        background: #fff;
        color: #555b5c;
        cursor: pointer;
    }
}
@media  (max-width: 375px) {
    #checkbox-menu:checked + label .touch{
        height: 400px;
    }
    #cards {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .apartments{
        padding: 0;
        margin: 20px;
    }
    .menu2 {
        margin-left: 50px;
        width: 280px;
        align-items: center;
    }
    .menu2 ul{
        flex-direction: column;
    }
    .menu2 ul li ul{
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 10;
        -webkit-transition: 0.5s ease-in-out;
        -moz-transition: 0.5s ease-in-out;
        -o-transition: 0.5s ease-in-out;
        transition: 0.5s ease-in-out;
    }
    .menu2 ul li a:hover, .menu2 ul li:hover a {
        background: #fff;
        color: #555b5c;
        cursor: pointer;
    }
}