/* css/hero_swiper.css */

/* Сброс отступов */
html, body {
    margin: 0;
    padding: 0;
}

/* Контейнер слайдера */
.hero-swiper {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Каждый слайд */
.swiper-slide {
    position: relative;
    width: 100%;
    height: auto; /* авто, JS задаёт единую высоту по наименьшей картинке */
}

/* Контент слайда */
.hero-slide-content {
    position: relative;
    width: 100%;
    height: auto; /* авто, JS задаёт единую высоту */
}

/* Изображения слайдов */
.hero-slide-content img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Промо-бокс */
.promo-box {
    position: absolute;
    padding: 20px 30px;
    background: rgba(26, 60, 94, 0.8);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background 0.3s ease;
    text-align: center;
}
.promo-box p {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.promo-button {
    background: linear-gradient(45deg, #f25c05, #ff8c33);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(242, 92, 5, 0.4), 0 0 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1.5;
    min-height: 40px;
    font-size: 1rem;
    margin-top: 10px;
}
.promo-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(242, 92, 5, 0.6), 0 0 5px rgba(0, 0, 0, 0.2);
    background: linear-gradient(45deg, #d94a00, #ff8c33);
    animation: pulse 0.5s infinite;
}
.promo-box:hover {
    transform: scale(1.02);
}

/* Навигационные стрелки */
.hero-next,
.hero-prev {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    z-index: 100;
    cursor: pointer;
    background: linear-gradient(45deg, #f25c05, #ff8c33);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(242, 92, 5, 0.4), 0 0 5px rgba(0, 0, 0, 0.1);
}
.hero-next::before,
.hero-prev::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-right: 3px solid #fff;
    border-top: 3px solid #fff;
}
.hero-next::before { transform: rotate(45deg); }
.hero-prev::before { transform: rotate(-135deg); }
.hero-next { right: 20px; }
.hero-prev { left: 20px; }
.hero-next:hover,
.hero-prev:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(242, 92, 5, 0.6), 0 0 5px rgba(0, 0, 0, 0.2);
    background: linear-gradient(45deg, #d94a00, #ff8c33);
    animation: pulse 0.5s infinite;
}

/* Пагинация */
.hero-swiper .swiper-pagination.hero-pagination {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    text-align: center;
    z-index: 100;
    display: block;
    pointer-events: auto;
}
.hero-swiper .swiper-pagination.hero-pagination .swiper-pagination-bullet {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 6px;
    background: #fff;
    opacity: 0.5;
    border-radius: 50%;
    transition: all 0.3s ease;
}
.hero-swiper .swiper-pagination.hero-pagination .swiper-pagination-bullet-active {
    width: 16px;
    height: 16px;
    background: linear-gradient(45deg, #f25c05, #ff8c33);
    opacity: 1;
}

/* Фолбэк */ 
.hero-swiper .swiper-pagination.hero-pagination {
    bottom: 20px !important;
}

/* Анимация пульсации */
@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(242, 92, 5, 0.4), 0 0 5px rgba(0, 0, 0, 0.1); }
    50%      { box-shadow: 0 6px 20px rgba(242, 92, 5, 0.6), 0 0 5px rgba(0, 0, 0, 0.2); }
}

/* Адаптивные стили для мобильных устройств */
@media screen and (max-width: 768px) {
    /* Убираем фикс высоты */
    .hero-swiper {
        height: auto !important;
    }
    .swiper-slide,
    .hero-slide-content {
        height: auto !important;
    }
    /* Показываем полную картинку */
    .hero-slide-content img {
        object-fit: contain;
    }
    /* Промо-бокс адаптив */
    .promo-box {
        padding: 15px 20px;
    }
    .promo-box p {
        font-size: 1rem;
    }
    .promo-button {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-height: 36px;
    }
    /* Стрелки адаптив */
    .hero-next,
    .hero-prev {
        width: 30px;
        height: 30px;
        margin-top: -15px;
    }
    .hero-next::before,
    .hero-prev::before {
        width: 10px;
        height: 10px;
        border-right: 2px solid #fff;
        border-top: 2px solid #fff;
    }
    /* Пагинация адаптив */
    .hero-swiper .swiper-pagination.hero-pagination .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }
    .hero-swiper .swiper-pagination.hero-pagination .swiper-pagination-bullet-active {
        width: 14px;
        height: 14px;
    }
}
