/**
 * Promo Slider Styles - Swiper.js Implementation
 * Секция "Промо-слайдер" с главным и навигационным слайдерами
 * BEM Methodology + Figma Design + Swiper.js
 */

/* Main Section */
.promo-slider {
    padding: 80px 0;
    background: var(--berloga-white);
    position: relative;
}

.promo-slider__container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
}

/* Header Section */
.promo-slider__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    position: relative;
}

.promo-slider__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* padding: 8px 16px; */
    /* background: var(--berloga-white); */
    /* border: 1px solid var(--berloga-magenta); */
    /* border-radius: 20px; */
    /* font-size: 14px; */
    /* font-weight: 600; */
    /* color: var(--berloga-magenta); */
}

.promo-slider__badge-icon {
    width: 23px;
    height: 21px;
    flex-shrink: 0;
}

.promo-slider__title {
    margin: 0;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--berloga-dark);
}

/* Main Slider Container */
.promo-slider__main-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main Slider - 70% width */
.promo-slider__main {
    width: 70%;
    max-width: 924px; /* 70% от 1320px */
    position: relative;
}

.promo-slider__slide {
    width: 100%;
    aspect-ratio: 1.875; /* 1800/960 = 1.875 */
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0px 5px 30px 0px rgba(19, 19, 19, 0.07);
}

.promo-slider__link {
    display: block;
    width: 100%;
    height: 100%;
}

.promo-slider__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.promo-slider__link:hover .promo-slider__image {
    transform: scale(1.05);
}

/* Navigation Buttons - 50px diameter, positioned outside slider */
.promo-slider__nav--prev,
.promo-slider__nav--next {
    width: 50px !important;
    height: 50px !important;
    margin-top: 0 !important;
    background: var(--berloga-blue) !important;
    border-radius: 50% !important;
    color: var(--berloga-white) !important;
    transition: all 0.3s ease !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
}

.promo-slider__nav--prev {
    left: 5% !important; 
}

.promo-slider__nav--next {
    right: 5% !important; 
}

.promo-slider__nav--prev:hover,
.promo-slider__nav--next:hover {
    background: var(--berloga-magenta) !important;
    transform: translateY(-50%) scale(1.1) !important;
}

.promo-slider__nav--prev::after,
.promo-slider__nav--next::after {
    font-size: 18px !important;
    font-weight: bold !important;
}

/* Navigation Slider (Thumbnails) - same width as main */
.promo-slider__nav {
    width: 70%;
    max-width: 924px;
    margin-top: 20px;
}

.promo-slider__thumb {
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1.875; /* Сохраняем пропорции */
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.promo-slider__thumb:hover,
.promo-slider__thumb.swiper-slide-thumb-active {
    border-color: var(--berloga-magenta);
    /* transform: scale(1.05); */
}

.promo-slider__thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* CTA Button */
.promo-slider__cta {
    margin-top: 20px;
}

.promo-slider__button {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background: var(--berloga-magenta);
    color: var(--berloga-white);
    text-decoration: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--berloga-magenta);
}

.promo-slider__button:hover {
    background: var(--berloga-white);
    color: var(--berloga-magenta);
    transform: translateY(-2px);
    box-shadow: 0px 8px 25px 0px rgba(181, 8, 71, 0.3);
}

/* Empty State */
.promo-slider__empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--berloga-gray);
    font-size: 18px;
}

/* Responsive Design */

/* Tablet */
@media (max-width: 1200px) {
    .promo-slider__container {
        max-width: 1024px;
        gap: 50px;
    }
    
    .promo-slider__title {
        font-size: 40px;
    }
    

}

@media (max-width: 1024px) {
    .promo-slider {
        padding: 60px 0;
    }
    
    .promo-slider__container {
        max-width: 768px;
        gap: 40px;
    }
    
    .promo-slider__title {
        font-size: 36px;
    }
    
    /* Кнопки еще ближе */
    .promo-slider__nav--prev {
        left: -55px !important;
    }
    
    .promo-slider__nav--next {
        right: -55px !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .promo-slider {
        padding: 40px 0;
    }
    
    .promo-slider__container {
        padding: 0 16px;
        gap: 30px;
    }
    
    .promo-slider__title {
        font-size: 28px;
    }
    
    .promo-slider__badge {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    /* На мобильном убираем навигационные кнопки */
    .promo-slider__nav--prev,
    .promo-slider__nav--next {
        display: none !important;
    }
    
    /* Главный слайдер остается 70% */
    .promo-slider__main {
        width: 80%;
    }
    
    /* Навигационный слайдер тоже 70% */
    .promo-slider__nav {
        width: 80%;
    }
    
    .promo-slider__button {
        padding: 14px 28px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .promo-slider__title {
        font-size: 24px;
    }
    
    .promo-slider__badge {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .promo-slider__button {
        padding: 12px 24px;
        font-size: 13px;
    }
} 