/* Privacy Policy Modal */
.privacy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    z-index: 1300;
    display: none;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
}

.privacy-modal.active {
    display: block;
    transform: translateY(0);
}

.privacy-modal-content {
    height: 100%;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 80px;
    box-sizing: border-box;
}

.privacy-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    font-family: 'Benzin-Regular', Arial, sans-serif;
    position: relative;
}

.privacy-title {
    font-size: 24px;
    text-align: center;
    margin: 0;
}

.privacy-modal .close-privacy {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    top: 4px;
}

.privacy-modal .close-privacy img {
    width: 24px;
    height: 24px;
}

/* About Us Modal */
.about-us-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    z-index: 1300;
    display: none;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
}

.about-us-modal.active {
    display: block;
    transform: translateY(0);
}

.about-us-modal-content {
    height: 100%;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 80px;
    box-sizing: border-box;
}

.about-us-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    font-family: 'Benzin-Regular', Arial, sans-serif;
    position: relative;
}

.about-us-title {
    font-size: 24px;
    text-align: center;
    margin: 0;
}

.about-us-modal .close-about-us {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    top: 4px;
}

.about-us-modal .close-about-us img {
    width: 24px;
    height: 24px;
}

/* Promotions Modal */
.promotions-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    z-index: 1300;
    display: none;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
}

.promotions-modal.active {
    display: block;
    transform: translateY(0);
}

.promotions-modal-content {
    height: 100%;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 80px;
    box-sizing: border-box;
}

.promotions-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    font-family: 'Benzin-Regular', Arial, sans-serif;
    position: relative;
}

.promotions-title {
    font-size: 24px;
    text-align: center;
    margin: 0;
}

.promotions-modal .close-promotions {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    top: 4px;
}

.promotions-modal .close-promotions img {
    width: 24px;
    height: 24px;
}

.promotions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
}

.promo-item {
    position: relative;
    cursor: pointer;
}

.promo-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.promo-info-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: #FFFFFF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 15;
}

.promo-info-icon img {
    width: 12px;
    height: 12px;
}

.privacy-content, .about-us-content {
    font-family: 'Benzin-Regular', Arial, sans-serif;
    font-size: 16px;
    color: #000000;
    line-height: 1.5;
}

.privacy-content h2 {
    font-size: 20px;
    margin: 20px 0 10px;
}

.privacy-content h3 {
    font-size: 18px;
    margin: 15px 0 10px;
}

.privacy-content p, .about-us-content p {
    margin: 10px 0;
}

/* About Us Modal */
.about-us-content a {
    color: #ed5c1e;
    text-decoration: none;
}

.about-us-content a:hover {
    text-decoration: underline;
}

.about-us-content .social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.about-us-content .social-links img {
    width: 32px;
    height: 32px;
}

.about-us-map {
    width: 100%;
    height: 300px;
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
}

/* Modal Overlay */
#privacyModalOverlay, #aboutUsModalOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1250;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#privacyModalOverlay.active, #aboutUsModalOverlay.active {
    display: block;
    opacity: 1;
}

/* Category List Styles */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    visibility: hidden; /* Скрываем полностью, чтобы не занимал место */
}

.category-list.open {
    max-height: 500px; /* Достаточно для отображения всех категорий */
    visibility: visible; /* Делаем видимым при открытии */
}

.category-list li {
    margin: 10px 0;
    padding-left: 34px; /* Отступ для выравнивания с пунктами меню */
}

.category-list a {
    text-decoration: none;
    color: #ccccccc4;
    font-size: 15px;
    font-family: 'Benzin-Regular', Arial, sans-serif;
    font-weight: normal;
    letter-spacing: 0.02em;
    line-height: 1.5;
    display: block;
    position: relative;
    left: 5px;
}

.category-list a:hover {
    color: #FFFFFF;
}
.category-list {
    margin-top: 0px !important;
    padding: 0px !important;
}

/* Mobile-specific adjustments */
@media (max-width: 767px) {
    .privacy-modal-content, .about-us-modal-content, .promotions-modal-content {
        padding: 10px;
        padding-bottom: 80px;
    }

    .privacy-title, .about-us-title {
        font-size: 20px;
    }

    .privacy-content, .about-us-content {
        font-size: 14px;
    }

    .privacy-content h2 {
        font-size: 18px;
    }

    .privacy-content h3 {
        font-size: 16px;
    }

    .about-us-map {
        height: 250px;
    }
}

/* Desktop-specific adjustments */
@media (min-width: 768px) {
    .privacy-modal.active, .about-us-modal.active, .promotions-modal.active {
        width: 600px;
        height: auto;
        max-height: 80vh;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(0,0,0,0.5);
        overflow-y: auto;
    }
    .privacy-modal-content, .about-us-modal-content, .promotions-modal-content {
        padding: 20px;
    }
}