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%;
}

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

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

.menu-item-underline::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #403F3D;
}

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

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

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

.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 {
    margin-left: 40px;
    margin-right: 40px;
}

.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;
}

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

.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;
}

.top__button {
    max-width: 200px;
}

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

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

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

.favorite__content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.favorite__slider {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

.slider {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 1152px;
}

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

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

.slider-image {
    width: 480px;
    height: 480px;
}

.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;
}

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

.favorite__slider-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;
    gap: 12px;
}

.favorite__slider-controls-item-active {
    width: 40px;
    height: 4px;
    background: #665F55;
    border-radius: 100px;
}


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

.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;
}



.main-offer__title {
    color: #403F3D;
    font-size: 60px;
    font-weight: 600;
    line-height: 75px;
    text-align: center;
    max-width: 800px;
}

.main-offer__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.main-offer__content-item {
    display: flex;
    gap: 16px;
}

.main-offer__content-item-tab-active {
    display: flex;
    padding: 8px 16px 8px 8px;
    gap: 8px;
    border: 1px #403F3D solid;
    background-color: #403F3D;
    border-radius: 100px;
    align-items: center;
    justify-content: center;
}

.main-offer__content-item-tab {
    display: flex;
    padding: 8px 16px 8px 8px;
    gap: 8px;
    border: 1px #C1B6AD solid;
    border-radius: 100px;
    align-items: center;
    justify-content: center;
}

.main-offer__content-item-tab-image-active {
    display: flex;
    align-items: center;
    padding: 3px 7px;
    background-color: #E1D4C9;
    border-radius: 50%;
    width: 30px;
    height: 30px;
}

.main-offer__content-item-tab-image {
    display: flex;
    align-items: center;
    padding: 3px 7px;
    background-color: #C1B6AD;
    border-radius: 50%;
    width: 30px;
    height: 30px;
}

.main-offer__content-item-text {
    color: #403F3D;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.main-offer__content-item-text-active {
    color: #E1D4C9;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.category__content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.category__content-item {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    width: 310px;
    height: 506px;
    border: 1px solid #C1B6AD;
    border-radius: 40px;
}

.category__content-item-image {
    width: 100%;
    max-height: 310px;
    object-fit: contain;
    border-radius: 40px
}

.category__content-item-text {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 2;

}

.category__content-item-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 30px;
}


.category__content-item-description {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    word-wrap: break-word
}

.category__content-item-price {
    font-size: 24px;
    font-weight: 600;
    line-height: 30px;
}

.category__contents {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.refresh-button {
    display: none;
    border: 1px #403F3D solid;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    align-items: center;
    justify-content: center;
}

.refresh-button-image {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.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;
}

@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;
    }

    .category__content.show-all>div {
        display: flex;
    }

    .category__content-hide>div:nth-child(n+5) {
        display: none;
    }

    .refresh-button {
        display: flex;
    }
}

.popup {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    top: 0;
    left: 0;
    padding: 30px;
    display: none;
}

.popup__content {
    display: flex;
    justify-content: center;
    padding: 16px;
    flex-direction: row;
    column-gap: 20px;
    max-width: 800px;
    margin: 140px auto;
    background-color: #e1d4c9;
    border-radius: 40px;
}

.popup__description {
    display: flex;
    flex-direction: column;
    flex: 1;
    row-gap: 20px;
}

.popup__image {
    max-height: 320px;
    object-fit: contain;
    border-radius: 40px;
    transition: all 0.3s;
}

.popup__title {
    font-size: 24px;
    font-weight: 600;
    line-height: 30px;
    word-wrap: break-word
}

.popup__total {
    display: flex;
    justify-content: space-between;
    font-size: 24px;
    font-weight: 600;
    line-height: 30px;
    word-wrap: break-word;
}

.popup__cost-info {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.popup__cost-info-text {
    font-size: 10px;
    font-weight: 600;
    line-height: 14px;
    word-wrap: break-word
}
  
.popup__close {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px #403F3D solid;
    border-radius: 100px;
    max-width: 438px;
    height: 44px;
    color: #403F3D;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.popup__sizes{
    display: flex;
    gap: 8px;
}

.popup__size{
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px #403F3D solid;
    border-radius: 100px;
    width: 116px;
    height: 46px;
    color: #403F3D;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.popup__additives{
    display: flex;
    gap: 8px;
}

.popup__additive{
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px #403F3D solid;
    border-radius: 100px;
    width: 116px;
    height: 46px;
    color: #403F3D;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

@media(max-width:768px) {

    .menu__list,
    .menu-item {
        display: none;
    }

    .menu-item-underline {
        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 {
        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 {

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

    .description__title {
        font-size: 32px;
        font-weight: 600;
        line-height: 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;
    }

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

    .footer__inner {
        gap: 40px;
    }

    .main-offer__content-item {
        gap: 8px;
    }
}