* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    background-image: url(../assets/images/page-bckg.webp);
    display: block;
    width: 100%;
    height: auto;
}

.menu-content {
    padding-top: 212px;
    padding-bottom: 193px;
}

@media screen and (max-width: 767px) {
    .menu-content {
        
        padding-top: 108px;
        padding-bottom: 59px;
    }

    .menu-items {
        margin-top: 42.5px;
    }
    
}

.wrapper {
    max-width: 1323px;
    width: 67%;
    margin: 0 auto;
    color: aliceblue;
    

}

@media screen and (min-width: 767px) and (max-width: 1223px) {
    .wrapper {
        width: 85%;
    }
    
}

@media screen and (max-width: 767px) {
    .wrapper {
        width: 90%;
        

    }

    .menu-items {
        margin-top: 42.5px;
    }
    
}

.nav-menu {

}

.nav-menu__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.nav-menu__list li {
    border: 2px solid #ffffff;
    border-radius: 10px;
    padding: 10px 32px;
    font-family: var(--pts);
    font-size: 20px;
    font-weight: 700;
    line-height: 100%;
}

.nav-menu__list li:hover {
    cursor: pointer;
}

.menu-items.hidden {
    display: none;
    opacity: 0;
}
    
.menu-items.active {
    display: flex;
    opacity: 1;
}


header {
    z-index: 1000;
}

main {
    position: relative;
    z-index: 1;
}



.wrapper {
    position: relative;
    min-height: 60vh;
}
    
.menu-items {
    position: relative !important; /* Убираем absolute */
    opacity: 1;
    transform: translateX(0);
    transition: all 0.6s ease;
}

/* Анимация для кнопок */
.menu-button {
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 20px;
    text-decoration: none;
    color: inherit;
    
}

.menu-button.active {
    color: #000000;
    background-color: #ffffff;
    font-weight: bold;
}

.menu-button:hover {

}

.menu-button.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #929292;
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

.menu-button::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.menu-button:hover::after {
    transform: scaleX(1);
}

/* Анимации для переключения */
    .menu-items.slide-out-left {
        transform: translateX(-100%);
        opacity: 0;
    }
    
    .menu-items.slide-out-right {
        transform: translateX(100%);
        opacity: 0;
    }
    
    .menu-items.slide-in-left {
        transform: translateX(-100%);
        opacity: 0;
    }
    
    .menu-items.slide-in-right {
        transform: translateX(100%);
        opacity: 0;
    }



.menu-items {
    margin-top: 102px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4.8%;
    margin: 102px auto auto auto;
    
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                opacity 0.4s ease-in-out;
    /*position: absolute;*/
    width: 100%;
    left: 0;
}

@media screen and (max-width: 767px) {
    .menu-items {
        margin-top: 42.5px;
    }
    
}

/*.menu-items__item {
    max-width: 590px;
    width: 45%;
    max-height: 674px;
    flex: 1 1 390px;
    margin-bottom: 65px;
}

.product__card {
    position: relative;
}

.item__pict {
    max-width: 100%;
    max-height: 463px;
    overflow: hidden;
}

.item__pict img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.item-desc {
    padding: 27px 17px;
    font-family: var(--pts);
    font-weight: 700;
    line-height: 120%;
    height: 207px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item-desc__up {
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 0 7px;
}

.item-desc__up p:nth-child(1) {
    color: #000000;
    font-size: 22px;
    text-align: start;
}

.item-desc__up p:nth-child(2) {
    color: #000000;
    font-size: 28px;
}

@media (max-width: 767px) {
    .item-desc__up p:nth-child(1) {
        font-size: 18px;
    }

    .item-desc__up p:nth-child(2) {
        font-size: 20px;
    }

}

@media (max-width: 350px) {
    .item-desc__up p:nth-child(1) {
        font-size: 14px;
    }

    .item-desc__up p:nth-child(2) {
        font-size: 15px;
    }

}

.item-desc__btn {
    font-size: 27.7px;
    width: 100%;
    height: 80px;
    background-color: var(--button);
    border: 1px solid var(--button);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.45s ease;
    cursor: pointer;
}

.item-desc__btn:hover {
    --button: #FF7737;
}

.item-modal {
    background-color: aliceblue;
    width: 100%;
    min-height: 400px;
    display: block;
    position: absolute;
}

.item-modal__contant h4 {
    font-family: var(--pts);
    font-size: 26px;
    font-weight: 700;
    line-height: 110%;
    color: #000000;
}

.modal_txt-kk {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 125%;
    color: #868686;
}

.item-modal__contant h3 {
    font-family: var(--pts);
    font-size: 28px;
    font-weight: 700;
    line-height: 100%;
    color: #000000;
}


.item-modal__contant {

}

.modal_txt {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 125%;
    color: #000000;
}

.item-modal__btn {
    content: '';
    display: block;
    position: relative;
    width: 35px;
    height: 20px;
    top: 0;
    margin-left: auto;
    z-index: 5;
}

.item-modal__btn::before,
.item-modal__btn::after {
    content: '';
    width: 100%;
    height: 3px;
    left: 0;
    border-radius: 2px;
    background-color: #000000;
    position: absolute;
}

.item-modal__btn::before {
    transform: rotate(45deg);
}

.item-modal__btn::after {
    transform: rotate(-45deg);
}*/

.menu-items__item {
    max-width: 590px;
    width: 45%;
    max-height: 674px;
    flex: 1 1 390px;
    margin-bottom: 65px;
    /*position: relative; /* Добавлено */
}

.product__card {
    position: relative;
}

.item__pict {
    max-width: 100%;
    max-height: 463px;
    overflow: hidden;
}

.item__pict img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.item-desc {
    padding: 27px 17px;
    font-family: var(--pts);
    font-weight: 700;
    line-height: 120%;
    height: 207px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item-desc__up {
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 0 7px;
}

.item-desc__up p:nth-child(1) {
    color: #000000;
    font-size: 22px;
    text-align: start;
}

.item-desc__up p:nth-child(2) {
    color: #000000;
    font-size: 28px;
}

.item-desc__btn {
    font-size: 27.7px;
    width: 100%;
    height: 80px;
    background-color: var(--button);
    border: 1px solid var(--button);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.45s ease;
    cursor: pointer;
    color: #000000; /* Добавлено */
}

.item-desc__btn:hover {
    background-color: #FF7737;
    border-color: #FF7737;
}

/* Стили для модального окна */
/* Стили для модального окна */
.item-modal {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    
    box-sizing: border-box;
    opacity: 0;
    transform: scale(0);
    transition: opacity 1s ease;
    max-width: 100%;
    left: 0;
    bottom: 0;
}

.item-modal.active {
    display: flex;
    justify-content: center;
    transform: scale(1);
    opacity: 1;
    z-index: 1000;
    transition: opacity 1s ease;
}

.item-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.item-modal__content {
    position: relative;
    background-color: #ffffff;
    border-radius: 10px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2;
    padding: 30px;
    box-sizing: border-box;
    
    /* Ширина как у карточки */
    width: 100%;
    max-width: 590px;
    /* min-width: 390px; */
}

.item-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 3;
}

.item-modal__close span {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.item-modal__close span::before,
.item-modal__close span::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #000000;
    border-radius: 2px;
}

.item-modal__close span::before {
    transform: rotate(45deg);
}

.item-modal__close span::after {
    transform: rotate(-45deg);
}

.item-modal__body {
    padding-top: 20px;
}

.item-modal__body h4 {
    font-family: var(--pts);
    font-size: 26px;
    font-weight: 700;
    line-height: 110%;
    color: #000000;
    margin-bottom: 10px;
}

.modal_txt-kk {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 125%;
    color: #868686;
    margin-bottom: 15px;
}

.item-modal__body h3 {
    font-family: var(--pts);
    font-size: 28px;
    font-weight: 700;
    line-height: 100%;
    color: #000000;
    margin-bottom: 20px;
}

.modal_txt {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 125%;
    color: #000000;
}

/* Адаптивность для модального окна */
@media (max-width: 1024px) {
    .item-modal__content {
       /*  width: 50%;
        min-width: 350px; */
    }
}

@media (max-width: 767px) {
    .item-modal__content {
        
        padding: 20px;
    }
    
    .item-modal__body h4 {
        font-size: 22px;
    }
    
    .modal_txt-kk,
    .modal_txt {
        font-size: 16px;
    }
    
    .item-modal__body h3 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .item-modal__content {
        
        padding: 15px;
    }
    
    .item-modal__body h4 {
        font-size: 20px;
    }
    
    .modal_txt-kk,
    .modal_txt {
        font-size: 14px;
    }
    
    .item-modal__body h3 {
        font-size: 22px;
    }
    
    .item-modal__close {
        top: 10px;
        right: 10px;
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 350px) {
    .item-modal__content {
        
        padding: 10px;
    }
}

/* Адаптивность */
@media (max-width: 767px) {
    .item-desc__up p:nth-child(1) {
        font-size: 18px;
    }

    .item-desc__up p:nth-child(2) {
        font-size: 20px;
    }
    
    
    
    .item-modal__body h4 {
        font-size: 22px;
    }
    
    .modal_txt-kk,
    .modal_txt {
        font-size: 16px;
    }
    
    .item-modal__body h3 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .item-modal__content {
        /* max-width: 95%; */
        padding: 15px;
    }
    
    .item-modal__body h4 {
        font-size: 20px;
    }
    
    .modal_txt-kk,
    .modal_txt {
        font-size: 14px;
    }
    
    .item-modal__body h3 {
        font-size: 22px;
    }
    
    .item-modal__close {
        top: 10px;
        right: 10px;
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 350px) {
    .item-desc__up p:nth-child(1) {
        font-size: 14px;
    }

    .item-desc__up p:nth-child(2) {
        font-size: 15px;
    }
}

/* ДЛЯ ВСЕХ РАЗРЕШЕНИЙ - одинаковое поведение z-index */
@media (max-width: 964px) {
    .menu-items {
        z-index: 1; /* ОСТАВЛЯЕМ НИЗКИМ */
    }
    
    .menu-items__item {
        z-index: 2; /* ОСТАВЛЯЕМ СРЕДНИМ */
    }
    
    .item-modal {
        z-index: 1000; /* ОСТАВЛЯЕМ ОЧЕНЬ ВЫСОКИМ */
    }
}







@media (max-width: 767px) {
    .item-desc__btn {
        font-size: 19px;
        height: 59px;
    }
}

.menu-order {
    display: flex;
    position: fixed;
    align-self: flex-start;
    right: 0;
    top: 185px;
    z-index: 500;
    max-width: 299px;
    max-height: 93px;
    background-color: #E76020;
    font-family: var(--pts);
    font-size: 24px;
    font-weight: 700;
    line-height: 100%;
    color: #ffffff;
    padding: 15px 4.58% 15px 1.71%;
    flex: 0 1 auto;
    margin-left: 87%;
    transition: 0.35s ease;
    cursor: pointer;
}

.menu-order:hover {
    background-color: #EB7F4C;  
}

@media (max-width: 1223px) {
    .menu-order {
        width: 86px;
        height: 86px;
        border-radius: 50%;
        font-size: 16px;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 5px;
        animation: pop-up;
        animation-duration: 3.5s;
        animation-timing-function: ease-in-out;
        animation-iteration-count: infinite;
    }


}

@keyframes pop-up {
    0% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.87;
    }

    100% {
        opacity: 0.2;
    }
}


.menu-order a {
    
}



/*-------FOOTER -----*/

@media screen and (max-width: 723px) {
    .foot-wrapper {
        justify-content: center;
    }

    .foot-right {
        text-align: center;
    }

    .foot-icon {
        justify-content: center;
    }
}

@media screen and (min-width: 723px) {
    .foot-right {
        margin-left: auto;
    }

    .foot-icon {
        justify-content: flex-end;
    }
}

footer {
    width: 100%;
    /*height: 175px;*/
    background-color: #121212;
    
}

.foot-wrapper {
    max-width: 74%;
    margin: 0 auto;
    padding-top: 50px;
    padding-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.foot-left {
    font-family: var(--bn);
    font-size: 26px;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: 6%;
    color: var(--txt-white);
}

.foot-right {
    font-family: var(--pts);
    font-size: 26px;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: 0%;
    color: var(--txt-white);
    
    background-color: #121212;
}

.foot-icon {
    display: flex;
    
    align-items: center;
    gap: 20px;
    margin-top: 15px;
}