.banner-section {
    position: relative;
}

.banner-wrapper.style2 {
    position: relative;
    min-height: 560px;
    /* десктоп baseline */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.banner-wrapper .overlay-dark {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .35);
}

.banner-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.banner-content .title {
    font-weight: 800;
    font-size: 56px;
    line-height: 1.1;
    margin: 0 0 12px;
}

.banner-content .desc {
    font-size: 18px;
    line-height: 1.6;
    max-width: 640px;
    margin: 0;
}

.theme-btn.style6 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    font-weight: 700;
    text-decoration: none;
}

/* планшет */
@media (max-width: 991px) {
    .banner-wrapper.style2 {
        min-height: 460px;
    }

    .banner-content .title {
        font-size: 40px;
    }

    .banner-content .desc {
        font-size: 16px;
    }
}

/* iPhone SE ориентир */
@media (max-width: 667px) {
    .banner-wrapper.style2 {
        min-height: 380px;
    }

    .banner-content .title {
        font-size: 28px;
        line-height: 1.2;
    }

    .banner-content .desc {
        font-size: 15px;
        max-width: 90%;
    }

    /* скрываем лишние декоративные круги */
    .shape1_1,
    .shape1_2,
    .shape1_3 {
        display: none !important;
    }
}

/* Жёсткая фиксация лэйаута под наш уникальный класс */
.ss-banner2-slider {
    width: 100%;
    overflow: hidden;
}

.ss-banner2-slider .swiper-wrapper {
    display: flex !important;
    width: 100%;
}

.ss-banner2-slider .swiper-slide {
    flex-shrink: 0;
    width: 100% !important;
}

/* Fade: показывать только активный слайд нашего баннера */
.ss-banner2-slider .swiper-slide {
    opacity: 0;
    /* по умолчанию скрыт */
    transition: opacity .5s ease;
    pointer-events: none;
}

.ss-banner2-slider .swiper-slide.swiper-slide-active {
    opacity: 1;
    /* виден только активный */
    pointer-events: auto;
}

/* На всякий случай, если тема где-то ставит !important */
.ss-banner2-slider .swiper-slide.swiper-slide-duplicate.swiper-slide-active {
    opacity: 0 !important;
    /* не даём активироваться дубликату */
}

/* Показываем ТОЛЬКО активный слайд нашего баннера (fade) */
.ss-banner2-slider .swiper-wrapper>.swiper-slide:not(.swiper-slide-active) {
    opacity: 0 !important;
    pointer-events: none !important;
}

.ss-banner2-slider .swiper-wrapper>.swiper-slide.swiper-slide-active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* На всякий случай — если внезапно есть loop/клоны */
.ss-banner2-slider .swiper-slide-duplicate.swiper-slide-active {
    opacity: 0 !important;
}

/* === Hero banner: ровно на экран === */
.banner-section.fix {
    /* чтобы не было “лишней” высоты от внутренних отступов */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.banner-section.fix .slider-area,
.banner-section.fix .ss-banner2-slider,
.banner-section.fix .swiper-wrapper,
.banner-section.fix .swiper-slide,
.banner-section.fix .banner-wrapper.style2.bg-img {
    height: 100vh;
    min-height: 100vh;
}

/* Фон: красиво обрезаем под экран */
.banner-section.fix .banner-wrapper.style2.bg-img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Чтобы контент не “прилипал” к краям экрана */
.banner-section.fix .banner-container {
    height: 100%;
    display: flex;
    align-items: center;
}

/* На маленьких экранах делаем чуть меньше, чтобы не съедало всё */
@media (max-width: 991px) {

    .banner-section.fix .slider-area,
    .banner-section.fix .ss-banner2-slider,
    .banner-section.fix .swiper-wrapper,
    .banner-section.fix .swiper-slide,
    .banner-section.fix .banner-wrapper.style2.bg-img {
        height: 85vh;
        min-height: 85vh;
    }
}

/* === Hero title: адаптивный размер + контроль длинных строк === */
.banner-wrapper.style2 .section-title .title {
    /* было слишком огромно — делаем плавно от мобилки до десктопа */
    font-size: clamp(34px, 5vw, 84px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 18px;

    /* чтобы длинные слова не ломали верстку */
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Описание тоже чуть компактнее */
.banner-wrapper.style2 .section-title p,
.banner-wrapper.style2 .section-title .text {
    font-size: clamp(14px, 1.25vw, 18px);
    line-height: 1.5;
}

/* На очень узких экранах ещё чуть уменьшаем */
@media (max-width: 420px) {
    .banner-wrapper.style2 .section-title .title {
        font-size: 30px;
        line-height: 1.08;
    }
}