html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*,
*::after,
*::before {
    box-sizing: inherit;
}

body {
    color: #403F3D;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 150%;
    word-wrap: break-word;
    background-color: #E1D4C9;
}

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

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ref-navigation {
    display: none;
}

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

header {
    background-color: #E1D4C9;
    margin-top: 20px;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    max-height: 60px;
}

.menu__list {
    display: flex;
    justify-content: flex-start;
    gap: 40px;
    padding-right: 10px;
}

.menu__list-item {
    font-weight: 600;
}

.menu__list-link {
    position: relative;
    text-decoration: none;
}

.menu__list-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #403F3D;
    transition: width 0.3s ease;
    transform-origin: bottom right;
}

.menu__list-link:hover::after {
    width: 100%;
    transform-origin: bottom left;
}

.burger__menu__list {
    display: none;
}
 
.menu-item {
    font-weight: 600;
    position: relative;
    padding-right: 25px;
}

.menu-item::after {
    content: '';
    position: absolute;
    background-image: url(../images/coffee-cup.svg);
    width: 20px;
    height: 20px;
    right: -5px;
}

.menu-item::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #403F3D;
    transition: width 0.3s ease;
}

.menu-item:hover::before {
    width: 100%;
}

.footer__inner {
    display: flex;
    align-items: center;
    gap: 100px;
    background-color: #665F55;
    border-radius: 40px;
    padding: 100px;
    margin-top: 100px;
    margin-bottom: 40px;
}

.offer {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 530px;
}

.footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer__title-contacts-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-left: 30px;
}

.footer__contacts-item {
    color: #E1D4C9;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.schedule {
    color: #E1D4C9;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.footer__contacts-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #E1D4C9;
    transition: width 0.3s ease;
}

.footer__contacts-item:hover::after {
    width: 65%;
}

.address {
    position: relative;
    padding-bottom: 3px;
}

.address::before {
    content: '';
    position: absolute;
    background-image: url(../images/pin-alt.svg);
    width: 20px;
    height: 20px;
    left: -28px;
}

.phone {
    position: relative;
    padding-bottom: 1px;
}

.phone::before {
    content: '';
    position: absolute;
    background-image: url(../images/phone.svg);
    width: 20px;
    height: 20px;
    left: -28px;
}

.schedule {
    position: relative;
    padding-bottom: 1px;
}

.schedule::before {
    content: '';
    position: absolute;
    background-image: url(../images/clock.svg);
    width: 20px;
    height: 20px;
    left: -28px;
}

.footer__social {
    display: flex;
    gap: 12px;
}

.footer__social-item {
    border: 1px #E1D4C9 solid;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer__social-img {
    width: 24px;
    height: 24px;
    object-fit: cover;
    vertical-align: middle;
}

.footer__title {
    font-size: 60px;
    font-weight: 600;
    color: #E1D4C9;
    font-size: 60px;
    line-height: 75px;
}

.footer__title-contacts {
    color: #E1D4C9;
    font-size: 24px;
    font-weight: 600;
    line-height: 30px;
}

.top__content {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    /*background-image: url(../images/53de184b52e70f8c6142237a41f29303.jpg);*/
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    border-radius: 40px;
    padding: 100px;
    margin-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.top__content-item {
    max-width: 530px;
}

.top__content-video {
    z-index: -1;
    left: 0;
    top: 0;
    position: absolute;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.top__title {
    color: #E1D4C9;
    font-size: 72px;
    font-weight: 600;
    line-height: 75.60px;
    padding-bottom: 40px;
}

.top__text {
    color: #E1D4C9;
    line-height: 24px;
    padding-bottom: 40px;
}

.important__title {
    color: #B0907A;
    font-style: italic;
    line-height: 75px;
}

.important__title-small {
    color: #B0907A;
    font-style: italic;
    line-height: 75px;
}


.top__button {
    max-width: 200px;
    background: #E1D4C9;
    padding: 20px 78px;
    border-radius: 100px;
}

.menu-button-image {
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none;
}

.menu-button-item:hover {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.menu-button-item:hover .menu-button-image {
    opacity: 1;
    display: inline-block;
}

.menu-button-item {
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.favorite__title {
    color: #403F3D;
    font-size: 60px;
    font-weight: 600;
    line-height: 75.00px;
    padding-bottom: 40px;
    text-align: center;
}

.favorite__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.favorite__slider {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    column-gap: 40px;
}

.slider__wrapper{
    display: flex;
    width: 480px;
    overflow: hidden;
}

.slider {
    display: flex;
    gap: 100px;
    transition: all 0.3s;
}

.slider-two {
    transform: translateX(-580px);
}

.slider-three {
    transform: translateX(-1160px);
}

.slider-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 480px;
    gap: 20px;
}

.slider-card-item {
    display: flex;
    flex-direction: column;
    max-width: 480px;
    align-items: center;
    gap: 16px;
}

.slider-image {
    display: block;
    max-width: 480px;
    max-height: 480px;
    width: 100%;
}

.favorite__content {
    padding-bottom: 100px;
}

.favorite__slider-title {
    color: #403F3D;
    font-size: 24px;
    font-weight: 600;
    line-height: 30px;
}

.favorite__slider-description {
    color: #403F3D;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-align: center;
    white-space: wrap;
}

.favorite__slider-price {
    color: #403F3D;
    font-size: 24px;
    font-weight: 600;
    line-height: 30px;
}

.favorite__slider-left-arrow {
    border: 1px #665F55 solid;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite__slider-right-arrow {
    border: 1px #665F55 solid;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite__slider-arrow-img {
    width: 24px;
    height: 24px;
    object-fit: cover;
}

.favorite__slider-controls {
    padding-top: 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.favorite__slider-controls-item {
    width: 40px;
    height: 4px;
    border-radius: 100px;
    background: #C1B6AD;
    position: relative;
}

.favorite__slider-controls-item-inactive::before {
    content: '';
    background: #665F55;
    width: 0%;
    height: 4px;
    border-radius: 100px;
    position: absolute;
    transition: width 0s linear;
}

.favorite__slider-controls-item-active::before {
    width: 100%;
    transition: width 5s linear;
}

.description__title {
    color: #403F3D;
    font-size: 60px;
    font-weight: 600;
    line-height: 75.00px;
    padding-bottom: 40px;
}

.gallery__title {
    display: none;
}

.gallery__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(7, 1fr);
    gap: 40px;
    grid-auto-flow: dense;
    height: 1060px;
    margin-bottom: 100px;
}

.gallery__list-item>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}


.gallery__list-item:nth-child(1) {
    grid-row: span 4;
    grid-column: span 1;
}

.gallery__list-item:nth-child(2) {

    grid-row: span 3;
    grid-column: span 1;
}

.gallery__list-item:nth-child(3) {

    grid-row: span 4;
    grid-column: span 1;
}

.gallery__list-item:nth-child(4) {
    grid-row: span 3;
    grid-column: span 1;
}

.apps__description {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 100px;
}

.apps__description-item {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 40px;
}

.apps__description-title {
    color: #403F3D;
    font-size: 60px;
    font-weight: 600;
    line-height: 75.00px;
}

.apps__description-buttons {
    display: flex;
    gap: 20px;
}


.apps__description-buttons-item {
    display: flex;
    padding: 12px 20px;
    gap: 8px;
    border: 1px #403F3D solid;
    border-radius: 100px;
    width: 200px;
    height: 64px;
}

.apps__description-buttons-item-text {
    font-size: 10px;
    line-height: 14px;
}

.apps__description-buttons-item-text-items {
    display: flex;
    flex-direction: column;
}

.apps__description-buttons-item-text-name {
    font-size: 16px;
    line-height: 24px;
}

.apps__description-item-img {
    display: block;
    max-width: 630px;
    max-height: 630px;
}

.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 50px;
    border: 1px #665F55 solid;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.hamburger__line {
    width: 16px;
    height: 2px;
    background-color: #403F3D;
    border-radius: 5px;
    transition: transform 0.5s ease; 
}

.burger__menu__list {
    display: none;
}


@media(max-width: 1200px) {
    .apps__description {
        flex-direction: column;
    }
}

@media(max-width:900px) {
    .footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .apps__description-item-img {
        width: 100%;
    }

    .top__content {
        padding: 100px 60px;
    }

    .footer__inner {
        padding: 100px 60px;
    }

    .menu-button-item {
        display: flex;
        justify-content: center;
        gap: 8px;
    }

    .menu-button-image {
        opacity: 1;
        display: inline-block;
    }

    .gallery__list {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(8, 1fr);
        height: 1220px;
    }

    .gallery__list-item:nth-child(1) {
        grid-row: span 4;
        grid-column: span 1;
    }

    .gallery__list-item:nth-child(2) {
        display: none;
    }

    .gallery__list-item:nth-child(3) {

        grid-row: span 4;
        grid-column: span 1;
    }

    .gallery__list-item:nth-child(4) {
        display: none;
    }

    .footer__inner {
        padding: 103px 60px;
    }
}

@media(max-width:768px) {
    .menu__list,
    .menu-item {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .burger__menu__list {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: fixed;
        height: 100vh;
        width: 100vw;
        top: 80px;
        padding-top: 60px;
        background-color: #E1D4C9;
        transition: all .5s ease;
        z-index: 1;
        gap: 60px;
        right: -1000px;
    }

    .burger__menu__list.menu_open {
        right: 0;
    }

    .burger__menu__list-item {
        font-size: 32px;
        font-style: normal;
        font-weight: 600;
        line-height: 125%;
        color: #403F3D;
    }

    .burger__menu-item-image {
        width: 40px;
        height: 40px;
        position: relative;
        left: 5px;
        top: 5px;
    }

    .hamburger__line-one-active {
      transform: rotate(45deg);
      
    }
    .hamburger__line-two-active {
        transform: rotate(-45deg);
        
      }
    .hamburger_open{
        gap: 0px;
        padding: 20px;
    }
}

@media(max-width:750px) {
    .favorite__slider-item-arrow {
        display: none;
    }

    .top__content {
        padding: 60px 16px;
    }

    .footer__inner {
        padding: 60px 16px;
    }
}

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

    .top__title {
        font-size: 42px;
        font-weight: 600;
        line-height: 48.30px;
    }

    .top__text {
        font-size: 16px;
        font-weight: 400;
        line-height: 24px;
    }

    .top__content-item {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .top__title,
    .top__text {
        padding-bottom: 0px;
    }

    .important__title {
        font-size: 42px;
        font-weight: 600;
        line-height: 48.30px;
    }

    .favorite__title {
        font-size: 32px;
        font-weight: 600;
        line-height: 40px;
    }

    .important__title-small {

        font-size: 32px;
        font-weight: 600;
        line-height: 40px;
    }

    .description__title {
        font-size: 32px;
        font-weight: 600;
        line-height: 40px;
    }

    .apps__description {
        gap: 40px;
    }

    .footer__inner {
        gap: 40px;
    }

    .apps__description-title {
        font-size: 32px;
        font-weight: 600;
        line-height: 40px;
    }

    .apps__description-buttons {
        flex-direction: column;
    }

    .footer__title {

        font-size: 32px;
        font-weight: 600;
        line-height: 40px;
    }
}