/* Hero Slider Styles - Динамический слайдер с гайдами */
.has-hero {
    padding-top: 0;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 600px; /* Оптимальная высота для десктопов */
    overflow: hidden;
}


.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

/* Затемнение фона для лучшей читаемости */
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(102, 126, 234, 0.4) 100%
    );
    z-index: 1;
}

/* Контент слайда */
.slide-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

/* Текстовая часть */
.hero-text {
    flex: 1;
    color: white;
    max-width: 600px;
}

.hero-text > * {
    margin-left: 0;
    padding-left: 0;
}

.hero-title {
    font-size: 2.5rem; /* Уменьшили размер заголовка */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem; /* Уменьшили отступ */
    color: #FFFFFF !important; /* Белый цвет */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    text-align: left;
    animation: fadeInLeft 0.8s ease;
}

.hero-description {
    font-size: 1rem; /* Уменьшили размер описания */
    line-height: 1.5;
    margin-bottom: 1.5rem; /* Уменьшили отступ */
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInLeft 0.8s ease 0.2s;
    animation-fill-mode: both;
}

/* Цены */
.hero-price-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem; /* Уменьшили отступ */
    animation: fadeInLeft 0.8s ease 0.3s;
    animation-fill-mode: both;
}

.hero-price {
    font-size: 1.75rem; /* Уменьшили размер цены */
    font-weight: 700;
    color: white;
}

.hero-price-old {
    font-size: 1.25rem; /* Уменьшили размер старой цены */
    font-weight: 900 !important; /* Максимально жирный шрифт */
    color: #FF6B6B; /* Красный цвет для перечеркнутой цены */
    text-decoration: line-through;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    -webkit-text-stroke: 0.5px rgba(255, 107, 107, 0.5); /* Дополнительная обводка для толщины */
}

/* Бейдж для промо-гайда */
.hero-promo-badge {
    display: inline-block;
    background-color: #E53935; /* Красный фон */
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

/* Кнопка */
.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: #06B6D4;
    color: white;
    font-family: "SF Pro Display", sans-serif;
    font-weight: 600;
    font-size: 16px;
    border-radius: 28px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.3);
    animation: fadeInLeft 0.8s ease 0.4s;
    animation-fill-mode: both;
}

.btn-hero:hover {
    background: #0891B2;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(6, 182, 212, 0.4);
    color: white;
}

.btn-hero i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.btn-hero:hover i {
    transform: translateX(4px);
}

/* Форма поиска */
.hero-search {
    flex: 0 0 auto;
    width: 100%;
    max-width: 450px;
    animation: fadeInRight 0.8s ease 0.2s;
    animation-fill-mode: both;
}

.hero-search .search-form {
    background: white;
    border-radius: 60px;
    padding: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-search .input-wrap {
    position: relative;
}

.hero-search input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    background: #f9fafb;
    font-size: 15px;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
}

.hero-search input:focus {
    border-color: #667EEA;
    background: white;
}

.hero-search .input-wrap svg {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

.hero-search .btn-2 {
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hero-search .btn-2:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Навигация слайдера */
.hero-slider .swiper-pagination {
    bottom: 40px !important;
    z-index: 10;
}

.hero-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    margin: 0 6px !important;
    transition: all 0.3s ease;
}

.hero-slider .swiper-pagination-bullet-active {
    width: 40px;
    border-radius: 6px;
    background: white;
}

/* Стрелки навигации */
.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    color: white;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.hero-slider .swiper-button-next::after,
.hero-slider .swiper-button-prev::after {
    font-size: 20px;
}

.hero-slider .swiper-button-next {
    right: 30px;
}

.hero-slider .swiper-button-prev {
    left: 30px;
}

/* Анимации */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Адаптивность */
@media (max-width: 1200px) {
    .hero-slider {
        height: 550px; /* Немного меньше на средних экранах */
    }

    .hero-content-wrapper {
        gap: 40px;
    }

    .hero-search {
        max-width: 400px;
    }

    .hero-title {
        font-size: 2rem;
    }
}

@media (max-width: 991px) {
    .hero-slider {
        height: 500px; /* На планшетах */
    }

    .hero-content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-title {
        text-align: left; /* Заголовок всегда слева */
    }

    .hero-search {
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-price-wrapper {
        justify-content: center;
    }

    .btn-hero {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 65vh; /* Пропорциональная высота на мобильных */
        min-height: 450px;
    }

    .hero-title {
        font-size: 2rem;
        text-align: left; /* Заголовок всегда слева */
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-price {
        font-size: 1.5rem;
    }

    .hero-price-old {
        font-size: 1.25rem;
    }

    .hero-promo-badge {
        font-size: 1rem;
        padding: 8px 18px;
    }

    .btn-hero {
        padding: 14px 28px;
        font-size: 15px;
    }

    .hero-search .search-form {
        padding: 12px;
    }

    .hero-slider .swiper-button-next,
    .hero-slider .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .hero-slider .swiper-button-next::after,
    .hero-slider .swiper-button-prev::after {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .hero-slider {
        height: 55vh; /* Немного увеличили для маленьких экранов */
        min-height: 400px;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
        text-align: left; /* Заголовок всегда слева */
    }

    .hero-description {
        display: none; /* Скрываем описание на маленьких экранах */
    }

    .hero-search {
        max-width: 100%;
    }

    .hero-search input {
        font-size: 14px;
        padding: 12px 16px 12px 45px;
    }

    .hero-search .btn-2 {
        font-size: 14px;
        padding: 12px 24px;
    }

    .hero-slider .swiper-pagination {
        bottom: 20px !important;
    }

    .hero-slider .swiper-button-next,
    .hero-slider .swiper-button-prev {
        display: none; /* Скрываем стрелки на мобильных */
    }
}
