html {
    box-sizing: border-box;
}

*,
*::after,
*::before {
    box-sizing: inherit;
}
.html,
body{
    height: 100%;
}

.wrapper{
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.main{
    flex-grow: 1;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    padding: 0;
    border: none;
    background-color: transparent;
}

ul{
    list-style: none;
}

/*.reviews_item.reviews_item_hide{
    display: none;
}*/

.title{
    text-align: center;
    margin-bottom: 60px;
    font-family: "Cormorant", serif;
    font-size: 40px;
    font-weight: 400;
}

.container{
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

body{
    color: #151618;
    font-family: "Open Sans", sans-serif;
    font-size: 20px;
    font-weight: 300;
    line-height: normal;
    position: relative;
    /*font-family: "Cormorant", serif;*/
}

.header-inner{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    min-width: 140px;
}

.logo{
    margin-bottom: 35px;
}

.menu_btn {
    display: none;
    width: 40px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.menu-close{
    display: none;
    position:absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(0,0,0,.5);
    z-index: 1;
    transition: background-color .3s ease;
}

.menu-close.menu-open{
    display: block;
}

.mobile_nav,
.menu_close{
    display: none;
}

.menu_btn span{
    background-color: #000;
    height: 2px;
    width: 100%;
}

.menu_list{
    display: flex;
    align-items: center;
    gap: 0 65px;
    font-weight: 400;
    font-size: 18px;
    margin-left: 85px;
    position: relative;
    z-index: 3;
}

.user-actions{
    display: flex;
    align-items: center;
    gap: 0 20px;
}

.user-actions-item-search{
    margin-left: 80px;
}

.top {
    background-image: url(../images/top-img.jpg);
    background-repeat: no-repeat;
    background-position: bottom left;
    background-size: cover;
} 

.top_inner {
    min-height: 500px;
    color: #fff;
    font-family: "Cormorant", serif;
    font-weight: 400;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.top_title{
    font-size: 60px;
    margin-bottom: 20px;
    max-width: 780px;
    line-height: 1;
    font-weight: 400;
}

.top_text {
    font-size: 24px;
    margin-bottom: 48px;
    max-width: 560px;
}

.blockqoute_text {
    text-align: center;
    font-family: "Cormorant", serif;
    font-size: 40px;
    font-style: italic;
    line-height: normal;
    max-width: 704px;
    margin: 150px auto;
}

.assortment{
    margin-bottom: 150px;
}

.assortment_list{
    text-align: center;
    display: flex;
    gap: 0 40px;
}

.assortment_img{
    max-width: 208px;
    max-height: 208px;
    width: 100%;
}

.assortment_name{
    padding-top: 10px;
    font-family: "Cormorant", serif;
    font-size: 24px;
    font-weight: 400;
}

.reviews {
    background-color: #f7f2ea;
    padding-bottom: 60px;
}

.reviews_list{
    display: flex;
    gap: 0 26px;
}

.reviews_item{
    flex-basis: 280px;
}

.reviews_text{
    font-size: 16px;
    font-style: italic;
    margin-bottom: 10px;
}

.reviews_name{
    font-weight: 600;
}

.main_blog{
    padding: 150px 0;
}

.main_blog_list{
    display: flex;
    flex-wrap: wrap;
    gap: 40px 58px;
}

.main_blog_item{
    flex-basis: 542px;
    display: flex;
    gap: 0 20px;
}

.main_blog_item_content{
    display: flex;
    flex-direction: column;
}

.main_blog_item_title{
    font-family: 'Cormarant', serif;
    line-height: normal;
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 10px;
    min-height: 86px;
}

.main_blog_item_author{
    font-size: 13px;
}

.main_blog_item_link{
    margin-top: auto;
    font-size: 13px;
    position: relative;
}

.main_blog_item_link::after{
    content: '';
    background-image: url(../images/arrow.svg);
    position: absolute;
    width: 5px;
    height: 10px;
    margin-left: 8px;
    bottom: 3px;
}

.main_blog_link{
    padding: 12px 41px;
    display: flex;
    justify-content: center;
    margin: 72px auto 0;
    border: 1px solid #151618;
    width: 152px;
}

.mailing_list{
    padding: 100px 0;
    background-color: #f7f2ea;
    background-image: url(../images/mailing-bg.png);
    background-repeat: no-repeat;
    background-position: bottom right;
}

.mailing_list_title{
    text-align: left;
    margin-bottom: 50px;
}

.mailing_list_inner{
    display: flex;
    gap: 60px 40px;
}

.mailing_list_text{
    line-height: 1.5;
    flex-basis: 580px;
}

.mailing_list_form{
    display: flex;
    flex-wrap: wrap;
    flex-basis: 580px;
}

.mailing_list_email{
    border: none;
    border-bottom: 1px solid #888588;
    background-color: transparent;
    padding: 3px 15px;
    width: 438px; 
    margin-right: 25px;
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 300;
    line-height: 1.5;
    color: #151618;
}

.mailing_list_email::placeholder{
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 300;
    line-height: 1.5;
    color: #888588;
}

.mailing_list_btn{
    background-color: #fff;
    border: 1px solid #151618;
    padding: 12px 41px;
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
    font-weight: 300;
    cursor: pointer;
}

.chekbox_text{
    font-size: 13px;
    padding-left: 20px;
}

.mailing_list_label{
    margin-top: 16px;

}

.chekbox{
    position: absolute;
    width: 1px;
    height: 1px;
    clip: rect(0, 0, 0, 0);
    overflow: hidden;
    padding-left: 10px;
}

.chekbox_style{
    position: absolute;
    width: 10px;
    height: 10px;
    border: 1px solid #151618;
    margin-top: 5px;
}

.chekbox:checked + .chekbox_style::before{
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: #151618;
    top: 1px;
    left: 1px;
}

.prioritise{
    padding: 150px 0;
}

.prioritise_list{
    text-align: center;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px 49px;
}

.prioritise_title{
    font-size: 30px;
    margin-bottom: 10px;
    font-weight: 300;
}

.prioritise_text{
    margin-bottom: 30px;
    font-size: 20px;
    font-weight: 600;
}


.footer{
    padding: 180px 0 20px;
    background-color: #f7f2ea;
}

.footer_inner{
    margin-bottom: 100px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0 40px;
}

.footer_products_title,
.footer_company_title,
.footer_contacts_title{
    font-weight: 400;
    font-family: 'Cormarant', serif;
    font-size: 24px;
    margin-bottom: 50px;
}

.footer_products_item,
.footer_company_item{
    margin-bottom: 20px;
}

.footer_blockquote_text{
    margin-top: 80px;
    font-style: italic;
    margin-bottom: 20px;
}

.footer_blockquote_author{
    font-size: 12px;
    font-style: normal;
}

.footer_blockquote_author span{
    display: block;
}

.footer_contacts_text{
    font-size: 13px;
    margin-bottom: 20px;
}

.footer_nav {
    display: flex;
    flex-wrap: wrap;
}

.footer_nav_logo{
    margin-right: 40px;
}

.footer_nav_contacts{
    margin-top: 20px;
}

.footer_nav_phone,
.footer_nav_email{
    font-size: 13px;
    position: relative;
    padding-left: 32px;
    display: block;
    margin-bottom: 20px;
}

.footer_nav_phone::before,
.footer_nav_email::before{
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 16px;
    background-image: url(../images/mail.svg);
}

.footer_nav_phone::before{
    background-image: url(../images/phone.svg);
    width: 21px;
    height: 21px;
}

.footer_social{
    margin-top: 40px;
    margin-left: 97px;
}

.footer_social_list{
    display: flex;
    align-items: center;
    gap: 0 20px;
    height: 22px;
}

.footer_social_link{
    display: grid;
}

.footer_bottom{
    display: flex;
}

.footer_copy{
    margin-right: 192px;
    font-size: 16px;
}

.partners_logo{
    display: flex;
    align-items: center;
    gap: 0 20px;
}

.partners_logo_item img{
    display: grid;
}

@media (max-width: 1000px) {
    .user-actions-item-search{
        margin-left: 30px;
    }

    .menu{
        margin-right: auto;
    }

    .menu_list{
        margin-left: 60px;
    }
    .logo{
        margin-bottom: 0;
    }

    .header-inner{
        min-width: auto;
    }

    .blockqoute_text {
        margin-top: 120px;
        margin-bottom: 135px;
    }
    
    .assortment_list{
        gap: 0;
    }

    .assortment {
        margin-bottom: 120px;
    }

    .reviews_item:last-child{
        display: none;
    }

    .main_blog{
        padding: 120px 0;
    }

    .main_blog_item_img{
        max-width: 230px;
    }

    .main_blog_item{
        flex-basis: 460px;
    }

    .main_blog_list{
        gap: 67px 20px;
    }

    .main_blog_link{
        margin-top: 60px;
    }

    .mailing_list_inner{
        flex-wrap: wrap;
        justify-content: center;
    }

    .mailing_list {
        padding: 60px 0;
    }

    .mailing_list_title{
        text-align: center;
    }

    .mailing_list_text{
        text-align: center;
        flex-basis: 780px;
    }

    .prioritise{
        padding: 120px 0;
    }

    .prioritise_list{
        gap: 30px 210px;
    }

    .footer_blockquote{
        width: 270px;
    }

    .footer_blockquote_text{
        margin-top: 0;
    }

    .footer_inner{
        margin-bottom: 55px;
    }

    .foter_copy{
        margin-right: 85px;
    }

    .footer_nav_logo{
        margin-right: 35px;
    }

    .footer_contacts{
        width: 270px;
    }

}

@media (max-width: 860px) {
    .menu_list{
        transform: translateY(-100%);
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        width: 480px;
        margin: 0 auto;
        background-color: #fff;
        display: block;
        text-align: center;
        padding-top: 60px;
        transition: transform .6s ease;
    }

    .menu_list.menu_list_open{
        transform: translateY(0%);
    }

    .menu_close_btn{
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .menu-item{
        margin-bottom: 30px;
        font-size: 24px;
        font-family: "Cormorant", serif;
    }

    .mobile_menu{
        padding-top: 60px;
        margin: 60px 30px 60px;
        border-top: 2px solid #f7f2ea;
    }

    .mobile_menu_item{
        margin-bottom: 35px;
    }

    .mobile_actions{
        background-color: #f7f2ea;
        height: 60px;
        padding: 0 80px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .menu_btn{
        display: flex;
    }
    
    .mobile_nav,
    .menu_close{
        display: block;
    }

    .menu{
        order: -1;
        margin-right: 0;
    }

    .logo{
        margin-left: auto;
        margin-right: 154px;
    }


}

@media (max-width: 768px) {
    .header-inner{
        padding-left: 64px;
        padding-right: 64px;
    }
    
    .blockqoute_text{
        max-width: 640px;
    }

    .assortment_list{
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .reviews_item:last-child{
        display: block;
    }

    .reviews_list{
        flex-wrap: wrap;
        gap: 30px 76px;
    }

    .main_blog_item{
        flex-basis: 542px;
    }

    .main_blog_item_img{
        max-width: 270px;
    }

    .main_blog_list{
        gap: 30px 20px;
    }

    .main_blog_item:nth-child(even){
        margin-left: 98px;
    }

    .mailing_list_text{
        flex-basis: 640px;
    }

    .prioritise_list{
        gap: 30px 133px;
    }

    .footer_inner{
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: 1fr 1fr;
    }

    .footer_products,
    .footer_company{
        grid-row: span 3;
    }

    .footer_contacts{
        grid-column: 3/4;
        grid-row: 2/3;
    }

    .footer_copy{
        margin-right: 120px;
    }
}

@media (max-width: 680px) {
   .container{
        padding-left: 10px;
        padding-right: 10px;
    } 

   .header-inner{
        padding-left: 0;
        padding-right: 0;
    }

   .top_title{
        font-size: 40px;
        line-height: normal;
    }

   .blockqoute_text{
        font-size: 16px;
        max-width: 376px;
        margin-top: 60px;
        margin-bottom: 60px;
    }
    .main_blog_item:nth-child(even){
        margin-left: 0;
    }
   
}

@media (max-width: 480px) {
    .logo{
        margin-right: 80px;
    }
    .logo img{
        width: 40px;
    }
    .menu_list{
        width: 360px;
    }

    .assortment{
        margin-bottom: 60px;
    }

    .reviews_list{
        gap: 30px 20px;
    }

    .reviews{
        padding: 50px 0;
    }

    .reviews_item{
        flex-basis: 202px;
    }

    .main_blog{
        padding: 60px 0;
    }

    .main_blog_item_img{
        max-width: 230px;
    }

    .mailing_list{
        padding: 50px 0; 
    }

    .mailing_list_text{
        flex-basis: 100%;
        font-size: 13px;
    }

    .mailing_list_inner{
        gap: 30px 0;
    }

    .mailing_list_email{
        width: 324px;
        margin-right: 20px;
    }

    .mailing_list_btn{
        padding: 10px 39px;
    }

    .prioritise{
        padding: 60px 0;
    }

    .footer_inner{
        display: flex;
        flex-wrap: wrap;
    }

    .footer_blockquote{
        width: 100%;
    }

    .footer_blockquote_text{
        margin-bottom: 10px;
        margin-top: 50px;
    }

    .footer_contacts{
        margin-top: 50px;
        width: 100%;
    }

    .footer_contacts_title{
        margin-bottom: 20px;
        text-align: center;
    }

    .footer_contacts_text{
        text-align: center;
    }

    .footer_nav{
        flex-wrap: nowrap;
    }

    .footer_social{
        margin-left: 30px;
    }

    .footer_copy{
        margin-right: auto;
    }

    .footer_products{
        margin-right: auto;
        padding-right: 20px;
    }

    .footer_company{
        padding-right: 2opx;
        margin-right: 55px;
    }

    .footer_products_title,
    .footer_company_title{
        margin-bottom: 30px;
    }

    .footer{
        padding: 50px 0 10px;
    }
}

@media (max-width: 360px) {
    .title{
        margin-bottom: 30px;
        font-size: 24px;
    }

    .logo{
        margin-right: 50px;
    }

    .user-actions-item-search{
        margin-left: 0;
    }

    .header-inner{
        padding: 10px 0;
    }

    .top_title{
        font-size: 24px;
        margin-bottom: 10px;
    }

    .top_text{
        font-size: 13px;
        margin-bottom: 30px;
    }

    .top_inner{
        min-width: 367px;
    }

    .blockqoute_text{
        max-width: 340px;
        margin-top: 70px;
        margin-bottom: 80px;
    }

    .assortment{
        margin-bottom: 80px;
    }
    
    .assortment_img{
        max-width: 170px;
    }

    .reviews_item{
        flex-basis: 100%;
    }

    .reviews_item:last-child,
    .reviews_item:first-child{
        display: none;
    }

    .main_blog{
        padding: 50px 0;
    }

    .main_blog_item{
        display: block;
        max-width: 270px;
    }

    .main_blog_item_img{
        max-width: 100%;
    }

    .main_blog_item:nth-child(even){
        display: none;
    }

    .main_blog_list{
        justify-content: center;
    }

    .main_blog_item_title{
        min-height: auto;
    }

    .mailing_list_email{
        width: 205px;
    }

    .prioritise{
        padding: 50px 0;
    }

    .prioritise_title{
        font-size: 20px;
    }

    .prioritise_text{
        font-size: 10px;
        font-weight: 400;
    }

    .prioritise_list{
        gap: 40px 100px;
    }

    .footer_company{
        padding-right: 15px;
        margin-right: 0;
    }

    .footer_nav{
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer_products{
        padding-right: 10px;
    }

    .footer_social{
        margin-left: auto;
        margin-right: auto;
    } 
}