
/* Основной контейнер */
.hero-slider {
    width: 100%;
    height: 555px;
    position: relative;
    overflow: visible !important; /* Важно для выходящих элементов */
}

.hero-slider .swiper-slide {
    display: flex;
    align-items: center;
    position: relative;
    overflow: visible;
}

/* Сетка для контента */
.slide-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    position: relative;
}

/* Текстовый блок */
.slide-text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 20px;
    z-index: 2;
}

.slide-subtitle {
    font-size: 40px;
    color: #fdb819;
    margin: 0 0 15px 0;
    font-weight: 400;
}

.slide-title {
    font-size: 46px;
    font-weight: 800;
    color: #191919;
    margin: 0 0 25px 0;
    line-height: 1.1;
    text-transform: uppercase;
}

.slide-description {
    font-size: 16px;
    color: #666;
    margin: 0 0 35px 0;
    line-height: 1.6;
    max-width: 450px;
}

.slide-button {
    display: inline-block;
    padding: 18px 45px;
    background: #fdb819;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
    position: relative !important;
    z-index: 100 !important;
    pointer-events: auto !important;
    transform: none !important;  
}

.slide-button:hover {
    background: #e5a500;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(253, 184, 25, 0.3);
}



/* Блок с изображением со смещением */
.slide-image-wrapper {
    position: relative;
    display: flex;
    align-items: right;
    justify-content: center;
    padding: 10px;
}

.slide-image {
    max-width: 100%;
    height: auto;
    /* Смещение изображения влево и вверх */
    transform: translate(-50px, -30px);
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
    transition: transform 0.6s ease;
}

/* Эффект при наведении на слайд */
.swiper-slide:hover .slide-image {
    transform: translate(-70px, -40px) scale(1.05);
}

/* Анимация элементов */
.animate-element {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.swiper-slide-active .animate-element {
    opacity: 1;
    transform: translateY(0);
}

.swiper-slide-active .slide-subtitle {
    transition-delay: 0.2s;
}

.swiper-slide-active .slide-title {
    transition-delay: 0.4s;
}

.swiper-slide-active .slide-description {
    transition-delay: 0.6s;
}

.swiper-slide-active .slide-button {
    transition-delay: 0.8s;
}

.swiper-slide-active .slide-image-wrapper {
    transition-delay: 0.5s;
}

/* Кнопки навигации снаружи */
.hero-slider .swiper-button-next {
    right: -30px !important;
}

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

.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    width: 60px;
    height: 60px;
    background: #fff;
    border: 2px solid #fdb819; /* Добавляем золотую обводку */
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease; /* Плавность анимации */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider .swiper-button-next:after,
.hero-slider .swiper-button-prev:after {
    color: #fdb819; /* Цвет стрелки */
    font-size: 24px;
    font-weight: bold;
    transition: color 0.3s ease;
}

/* Эффект при наведении */
.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover {
    background: #fdb819; /* Золотой фон при наведении */
    border-color: #fdb819;
}

.hero-slider .swiper-button-next:hover:after,
.hero-slider .swiper-button-prev:hover:after {
    color: #fff; /* Белая стрелка при наведении */
}

/* Пагинация */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(253, 184, 25, 0.5);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #fdb819;
    width: 35px;
    border-radius: 6px;
}

/* --- Слайд 3: Фоновое изображение --- */
.slide-promo-dark {
    position: relative;
    overflow: hidden;
    background: #fdfcfc; /* Фолбэк если изображение не загрузится */
}

.slide-promo-dark .slide-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 1;
}

/* Отключаем лишние слои */
.slide-promo-dark::before {
    display: none !important;
}

/* Шторка — изначально полностью скрыта (0% высоты) */
.slide-promo-dark .slide-overlay-content {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 0% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 3 !important;
    pointer-events: none !important;
    
    /* Анимация подъёма */
    transition: height 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    overflow: hidden !important;
}

/* Когда слайд активен — шторка поднимается до 70% */
.swiper-slide-active.slide-promo-dark .slide-overlay-content {
    height: 70% !important;
    max-height: 500px !important;
    transition-delay: 0.5s !important;  /* Задержка перед подъёмом */
}

/* Текст внутри шторки */
.slide-promo-dark .slide-text-wrap {
    position: relative !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    text-align: center !important;
    pointer-events: auto !important;
    
    /* Изначально текст скрыт */
    opacity: 0 !important;
    transform: translateY(30px) scale(0.95) !important;
    transition: all 0.8s ease !important;
    transition-delay: 1s !important;
}

/* Текст появляется */
.swiper-slide-active.slide-promo-dark .slide-text-wrap {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

/* Заголовки */
.slide-promo-dark .slide-main-title {
    color: rgba(255, 255, 255, 0) !important;
    font-size: 2.1rem !important;
    line-height: 1.2 !important;
    margin: 0 0 15px 0 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    transform: scale(0.9) !important;
    transition: all 1s ease !important;
    transition-delay: 1.2s !important;
}

.slide-promo-dark .slide-main-title .gold-highlight {
    color: rgba(203, 176, 102, 0) !important;
    display: block !important;
    font-size: 3rem !important;
    margin-top: 10px !important;
    transition: all 1s ease !important;
    transition-delay: 1.4s !important;
}

.slide-promo-dark .slide-sub-title {
    color: rgba(224, 224, 224, 0) !important;
    font-size: 1.3rem !important;
    margin: 0 !important;
    transform: scale(0.95) !important;
    transition: all 1s ease !important;
    transition-delay: 1.6s !important;
}

/* Активные состояния текста */
.swiper-slide-active.slide-promo-dark .slide-main-title {
    color: #ffffff !important;
    transform: scale(1) !important;
}

.swiper-slide-active.slide-promo-dark .slide-main-title .gold-highlight {
    color: #fdb819 !important;
}

.swiper-slide-active.slide-promo-dark .slide-sub-title {
    color: #e0e0e0 !important;
    transform: scale(1) !important;
}
.slide-button {
    display: inline-block;
    padding: 10px 40px;
    background: #fdb819;
    color: #0d0d0d;
    text-decoration: none; 
    border: 1;
    border-color: #e5a500;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.slide-button:hover {
    background-color: #8a7745;
    color: #ffffff !important;
}

a.slide-button,
a.slide-button:visited,
a.slide-button:focus {
    text-decoration: none !important;
    color: #101010;
}
/* Адаптив для мобильных */
@media (max-width: 768px) {
    .swiper-slide-active.slide-promo-dark .slide-overlay-content {
        height: 55% !important;
        max-height: 400px !important;
    }
    
    .slide-promo-dark .slide-main-title {
        font-size: 1.5rem !important;
    }
    
    .slide-promo-dark .slide-main-title .gold-highlight {
        font-size: 2rem !important;
    }
}

/* Адаптивность */
@media (max-width: 1024px) {
    .slide-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .slide-text-content {
        text-align: center;
        padding: 30px 20px;
    }
    
    .slide-description {
        max-width: 100%;
        margin: 0 auto 30px auto;
    }
    
    .slide-button {
        margin: 0 auto;
    }
    
    .slide-image {
        transform: translate(0, 0);
        max-height: 300px;
    }
    
    .hero-slider {
        height: auto;
        min-height: 600px;
    }
    
    .hero-slider .swiper-button-next,
    .hero-slider .swiper-button-prev {
        display: none;
    }
}

@media (max-width: 768px) {
    .slide-title {
        font-size: 36px;
    }
    
    .slide-subtitle {
        font-size: 16px;
    }
    
    .hero-slider {
        height: auto;
        min-height: 500px;
    }
}
/* === ФИКСАЦИЯ ВЫСОТЫ ДЛЯ slide-promo-dark === */

/* Базовая высота для всех экранов */
.hero-slider .swiper-slide.slide-promo-dark {
    min-height: 555px !important;
    height: 555px !important;
}

/* На мобильных — тоже фиксированная высота */
@media (max-width: 768px) {
    .hero-slider .swiper-slide.slide-promo-dark {
        min-height: 500px !important;
        height: auto !important;
        padding: 40px 0 !important;
    }
    
    /* Шторка на мобильных */
    .swiper-slide-active.slide-promo-dark .slide-overlay-content {
        height: 70% !important;
        max-height: 350px !important;
    }
    
    /* Текст внутри шторки */
    .slide-promo-dark .slide-text-wrap {
        padding: 20px !important;
    }
    
    .slide-promo-dark .slide-main-title {
        font-size: 1.4rem !important;
        line-height: 1.2 !important;
    }
    
    .slide-promo-dark .slide-main-title .gold-highlight {
        font-size: 1.8rem !important;
    }
}

/* Очень маленькие экраны */
@media (max-width: 400px) {
    .hero-slider .swiper-slide.slide-promo-dark {
        min-height: 450px !important;
    }
}






/* ========== БАЗОВЫЕ СТИЛИ ДЛЯ СЛАЙДА GF-55 (Swiper-safe) ========== */

.swiper-slide.slide-gf55 {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

/* Фон слайда */
.slide-gf55 .slide-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.slide-gf55 .slide-layout {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    align-items: left;
    padding: 0 20px;
}

/* Текстовый блок */
.slide-gf55 .slide-text-content {
    max-width: calc(700px + 30px); /* Увеличивает ширину на 30px */
}
.slide-gf55.slide-promo-dark .slide-text-wrap {
    margin-top: 200px !important;    /* Сдвиг вниз */
    text-align: left !important;
    align-items: flex-start !important;
}


.slide-gf55 .slide-text-left {
    text-align: left !important;
}

/* Заголовки */
.slide-gf55 .slide-main-title {
    margin: 0 0 30px 0;
}

.slide-gf55 .metalloskatel-title {
    color: #FDB819;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 50px;
    line-height: 1.1; 
}

.slide-gf55 .gf55-title {
    color: #1a1a1a;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 62px;
    line-height: 1;
    display: block;
}

/* Подзаголовок */
.slide-gf55 .slide-subtitle {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.2;
    color: #333;
    margin: 0 0 30px 0;
    text-align: left;
}

.slide-gf55 .slide-subtitle strong {
    font-weight: 700;
    color: #1a1a1a;
}

/* Кнопка */
.slide-gf55 .slide-button {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.slide-gf55 .slide-button-yellow {
    background-color: #FDB819;
    color: #1a1a1a;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 24px;
    padding: 10px 50px;
    border-radius: 10px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(253, 184, 25, 0.3);
}

.slide-gf55 .slide-button-yellow:hover {
    background-color: #101010;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253, 184, 25, 0.4);
}

/* Анимация элементов */
.slide-gf55 .animate-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.slide-gf55 .animate-element.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Адаптивность */
@media (max-width: 992px) {
    .swiper-slide.slide-gf55 {
        height: auto;
        min-height: 500px;
    }
    
    .slide-gf55 .slide-layout {
        padding: 0px 0px;
    }
    
    .slide-gf55 .metalloskatel-title {
        font-size: 26px;
    }
    
    .slide-gf55 .gf55-title {
        font-size: 38px;
    }
    
    .slide-gf55 .slide-subtitle {
        font-size: 18px;
    }
    
    .slide-gf55 .slide-button-yellow {
        font-size: 20px;
        padding: 12px 30px;
    }
}