/* Стили для карусели акций */
.promotions-container {
    max-width: 1160px;
    margin: 8px auto 20px;
    margin-bottom: 5px;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    background: white;
    overflow-x: hidden; /* Скрываем горизонтальный скролл */
    border-radius: 40px;
}

.promotions-gallery {
    position: relative;
    width: 100%;
    max-width: 100%; /* Ограничиваем ширину контейнера */
    height: 250px;
    overflow-x: hidden; /* Скрываем горизонтальный контент */
}

@media (max-width: 767px) {
    .promotions-container {
        margin: 0px auto 5px;
        padding: 0 6px;
        overflow-x: hidden; /* Убедимся, что скролл скрыт */
    }

    .promotions-gallery {
        height: 180px;
        overflow-x: hidden; /* Убедимся, что скролл скрыт */
    }
}

@media (max-width: 480px) {
    .promotions-gallery {
        height: 170px;
        overflow-x: hidden; /* Убедимся, что скролл скрыт */
    }
}

.promo-images {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease-in-out;
    will-change: transform;
    gap: 10px;
    width: max-content; /* Позволяет карусели быть шире, но не вызывать скролл */
}

@media (max-width: 767px) {
    .promo-images {
        gap: 4px;
    }
}

.promo-image {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 20px;
    background: #FFFFFF;
}

@media (min-width: 768px) {
    .promo-image {
        flex: 0 0 375px;
        width: 375px;
        border-radius: 40px;
    }
}

@media (max-width: 767px) {
    .promo-image {
        flex: 0 0 269px;
        width: 269px;
        border-radius: 40px;
    }
}

@media (max-width: 480px) {
    .promo-image {
        flex: 0 0 254px;
        width: 254px;
        border-radius: 40px;
    }
}

.promo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20px;
}

@media (max-width: 480px) {
    .promo-image img {
        border-radius: 12px;
    }
}

.promo-info-icon {
    position: absolute;
    top: 10px;
    right: 20px;
    width: 27px;
    height: 27px;
    background: #FFFFFF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 15;
}

.promo-info-icon img {
    width: 16px;
    height: 16px;
    border-radius: 0;
}

@media (min-width: 768px) {
    .promo-info-icon {
        top: 10px;
        right: 25px;
    }
}

@media (max-width: 767px) {
    .promo-info-icon {
        width: 20px;
        height: 20px;
    }

    .promo-info-icon img {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .promo-info-icon {
        width: 18px;
        height: 18px;
    }

    .promo-info-icon img {
        width: 10px;
        height: 10px;
    }
}

.promotions-gallery .promo-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    color: #ed5c1e;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.promotions-gallery .promo-nav-button:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.promotions-gallery .promo-nav-button.prev-button {
    left: 10px;
}

.promotions-gallery .promo-nav-button.next-button {
    right: 10px;
}

@media (max-width: 767px) {
    .promotions-gallery .promo-nav-button {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .promotions-gallery .promo-nav-button.prev-button {
        left: 5px;
    }

    .promotions-gallery .promo-nav-button.next-button {
        right: 5px;
    }
    .promotions-container{
        border-radius: 0px;
    }
}

@media (max-width: 480px) {
    .promotions-gallery .promo-nav-button {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

.promo-error {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ed5c1e;
    font-family: 'Benzin-Regular', Arial, sans-serif;
}

.retry-button {
    margin-top: 15px;
    padding: 8px 16px;
    background: #ed5c1e;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Benzin-Bold', Arial, sans-serif;
    transition: background 0.3s;
}

.retry-button:hover {
    background: #2A355A;
}

/* Стили для модального окна акций */
.promo-action-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.promo-action-modal-overlay.active {
    display: block;
    opacity: 1;
}

.promo-action-modal {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 100%;
    background: #FFFFFF;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1500;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
}

.promo-action-modal.active {
    display: block;
    transform: translateY(0);
}

.promo-action-arrow-placeholder {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: #FFFFFF;
    border-radius: 50%;
    color: #ed5c1e;
    font-size: 24px;
    font-weight: bold;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    z-index: 1300;
    display: none;
}

.promo-action-modal.active .promo-action-arrow-placeholder {
    display: block;
}

.promo-action-arrow-placeholder::after {
    content: '﹀';
}

.promo-action-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    width: 100%;
}

.promo-action-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin-bottom: 15px;
    object-fit: cover;
}

.promo-action-conditions {
    font-family: 'Benzin-Regular', Arial, sans-serif;
    font-size: 14px;
    color: #ed5c1e;
    text-align: center;
    max-width: 90%;
    margin-bottom: 15px;
}

.promo-action-hide-button {
    width: 100%;
    max-width: 90%;
    padding: 12px;
    background: #ed5c1e;
    color: #FFFFFF;
    border: none;
    border-radius: 20px;
    font-family: 'Benzin-Bold', Arial, sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.promo-action-hide-button:hover {
    background: #2A355A;
}

@media (min-width: 768px) {
    .promo-action-modal {
        bottom: auto;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 600px;
        max-width: 90%;
        max-height: 90%;
        background: #FFFFFF;
        border-radius: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
        opacity: 0;
        transition: opacity 0.3s ease-out, transform 0.3s ease-out;
        overflow-y: auto;
    }

    .promo-action-modal.active {
        display: flex;
        opacity: 1;
        transform: translate(-50%, -50%);
    }

    .promo-action-content {
        flex-direction: column;
        align-items: center;
        padding: 0;
        width: 100%;
    }

    .promo-action-image {
        width: 100%;
        max-width: 100%;
        max-height: 400px;
        border-radius: 20px 20px 0 0;
        margin-bottom: 0;
        object-fit: cover;
    }

    .promo-action-conditions {
        font-size: 16px;
        color: #ed5c1e;
        text-align: center;
        padding: 20px;
        max-width: 100%;
    }

    .promo-action-close {
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 20px;
        color: #ed5c1e;
        background: #FFFFFF;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        line-height: 30px;
        text-align: center;
        cursor: pointer;
        font-weight: bold;
        z-index: 1300;
    }

    .promo-action-arrow-placeholder,
    .promo-action-hide-button {
        display: none;
    }
}

@media (max-width: 480px) {
    .promo-action-conditions {
        font-size: 13px;
    }

    .promo-action-image {
        border-radius: 12px;
    }

    .promo-action-hide-button {
        border-radius: 18px;
    }
}