/* ═══════════════════════════════════════════════════════════
   ПЕРВЫЙ ЭКРАН: КОНТЕЙНЕР, СЛАЙДЫ И ПЕРЕКЛЮЧЕНИЕ
   ═══════════════════════════════════════════════════════════ */

.hero-slider {position:relative;width:100%;overflow:hidden;}
.hero-slider__viewport {position:relative;width:100%;overflow:hidden;touch-action: pan-y;user-select: none;-webkit-user-select: none;}
.hero-slider__track {display:grid;width:100%;}
.hero-slide {
    grid-area: 1 / 1;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-width: 100%;
    min-height: 100dvh;
    box-sizing: border-box;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: scale(1.012);

    transition:
        opacity 0.42s ease,
        transform 0.55s cubic-bezier(.22, 1, .36, 1),
        visibility 0s linear 0.42s;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero-slide.is-active {
    z-index: 2;

    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: scale(1);

    transition:
        opacity 0.42s ease,
        transform 0.55s cubic-bezier(.22, 1, .36, 1),
        visibility 0s;
}


/* ═══ Слайдер: анимация содержимого ═══ */
/* =========================
   CONTENT ANIMATION
========================= */

.hero-slide .f {
    opacity: 0;
    transform: translateY(16px);

    transition:
        opacity 0.48s ease,
        transform 0.58s cubic-bezier(.22, 1, .36, 1);
}

.hero-slide.is-active .f {
    opacity: 1;
    transform: translateY(0);
}

.hero-slide.is-active .f:nth-child(1) {
    transition-delay: 0.05s;
}

.hero-slide.is-active .f:nth-child(2) {
    transition-delay: 0.11s;
}

.hero-slide.is-active .f:nth-child(3) {
    transition-delay: 0.17s;
}

.hero-slide.is-active .f:nth-child(4) {
    transition-delay: 0.23s;
}


/* ═══ Слайдер: анимированный градиент фона ═══ */
/* =========================
   COMPLEX ANIMATED GRADIENT
========================= */

.hero-slide--gradient {
    background:
        radial-gradient(
            circle at 16% 20%,
            rgba(30, 190, 62, 0.46) 0%,
            rgba(30, 190, 62, 0.14) 28%,
            rgba(30, 190, 62, 0) 48%
        ),
        radial-gradient(
            circle at 84% 26%,
            rgba(73, 61, 214, 0.36) 0%,
            rgba(73, 61, 214, 0.11) 30%,
            rgba(73, 61, 214, 0) 52%
        ),
        radial-gradient(
            circle at 64% 86%,
            rgba(180, 20, 32, 0.36) 0%,
            rgba(180, 20, 32, 0.12) 32%,
            rgba(180, 20, 32, 0) 54%
        ),
        radial-gradient(
            circle at 42% 55%,
            rgba(0, 108, 76, 0.18) 0%,
            rgba(0, 108, 76, 0) 48%
        ),
        linear-gradient(
            135deg,
            #020403 0%,
            #07120c 28%,
            #10111a 58%,
            #130608 100%
        );

    background-size:
        135% 135%,
        140% 140%,
        135% 135%,
        130% 130%,
        100% 100%;

    animation:
        heroGradientMove 14s ease-in-out infinite alternate;
}

@keyframes heroGradientMove {
    from {
        background-position:
            0% 0%,
            100% 0%,
            50% 100%,
            45% 50%,
            0% 0%;
    }

    to {
        background-position:
            12% 10%,
            86% 16%,
            42% 88%,
            58% 42%,
            100% 100%;
    }
}


/* ═══ Слайдер: видео на фоне ═══ */
/* =========================
   VIDEO BACKGROUND
========================= */

.hero-slide--video {
    position: relative;
    overflow: hidden;
    background: #000;
}

.hero-slide__video {
    position: absolute;
    inset: 0;
    z-index: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    pointer-events: none;
}

.hero-slide__video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.74) 0%,
            rgba(0, 0, 0, 0.34) 52%,
            rgba(0, 0, 0, 0.14) 100%
        );

    pointer-events: none;
}

.hero-slide--video > *:not(.hero-slide__video):not(.hero-slide__video-overlay) {
    position: relative;
    z-index: 2;
}

.hero-slide--video a,
.hero-slide--video button {
    position: relative;
    z-index: 5;
    pointer-events: auto;
}


/* ═══ Слайдер: нижняя навигация — точки и стрелки ═══ */
/* =========================
   UNIFIED BOTTOM NAVIGATION
   ← dots →
========================= */

.hero-slider__arrow {
    position: absolute;
    top: auto;
    bottom: 20px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid #32a32a50;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: #32a32a;
    font: inherit;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.82;
    transform: none;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        color 0.25s ease,
        background-color 0.25s ease;
}
.hero-slider__arrow:hover {border: 1px solid #32a32a70;opacity: 1;color: #000;background: #32a32a;transform: scale(1.06);}
.hero-slider__arrow--prev {left: auto;right: 92px;}
.hero-slider__arrow--next {left: auto;right: 32px;}
.hero-slider__arrow svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;
stroke-linecap:round;stroke-linejoin:round;}
.hero-slider__dots {position:absolute;left:32px;bottom:28px;z-index:30;display:flex;align-items: center;justify-content: center;gap: 8px;transform:none;}
.hero-slider__dot {width: 18px;height: 4px;padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition:
        width 0.35s cubic-bezier(.22, 1, .36, 1),
        background-color 0.35s ease,
        opacity 0.35s ease;
}
.hero-slider__dot:hover {background: rgba(255, 255, 255, 0.56);}
.hero-slider__dot.is-active {width: 42px;background: #32a32a;}


/* ═══ Мобильная версия ═══ */
/* MOBILE */

@media (max-width: 430px) {
    .hero-slide {padding:100px 14px 126px;}
    .hero-slide__content, .hero-slide .hero__content, .hero-slide .hero__inner {transform: translateY(-46px);}
    .hero-slide .hero__text, .hero-slide .hero__subtitle,
    .hero-slide .hero__description {font-size: 19px;line-height: 1.28;margin-bottom: 22px;}
    .hero-slide .hero__actions, .hero-slide .hero__buttons,
    .hero-slide .buttons {grid-template-columns: 1fr;gap: 10px;margin-top:20px;}
    .hero-slide .hero__actions a, .hero-slide .hero__actions button, .hero-slide .hero__buttons a, .hero-slide .hero__buttons button,
    .hero-slide .buttons a, .hero-slide .buttons button {min-height:46px;}
    .hero-slider__dots {gap: 6px;}
    .hero-slider__dot {width: 16px;}
    .hero-slider__dot.is-active {width: 36px;}
}
@media (max-width: 370px) {
    .hero-slide {padding-left: 12px;padding-right: 12px;}
    .hero-slide .hero__text, .hero-slide .hero__subtitle, .hero-slide .hero__description {}
    .hero-slider__dot.is-active {width: 32px;}
}


/* ═══ Доступность: уменьшение анимации ═══ */
/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {

    .hero-slide,
    .hero-slide .f,
    .hero-slider__arrow,
    .hero-slider__dot,
    .hero-slide--gradient {
        animation: none;
        transition-duration: 0.01ms;
    }
}

/* ═══ Слайдер: расположение точек слева и стрелок справа на мобильных ═══ */
/* =========================================================
   MOBILE NAVIGATION FIX
   dots left, arrows grouped right
========================================================= */

@media (max-width: 768px) {
    .hero-slider__dots {right: auto;bottom: 30px;}
    .hero-slider__arrow {bottom: 16px;transform: none;}
    .hero-slider__arrow--prev {}
    .hero-slider__arrow--next {}
    .hero-slider__arrow:hover {transform: none;}
}

/* ═══ Слайдер: наведение только на устройствах с поддержкой курсора ═══ */
/* Hover only on devices that actually have hover */
@media (hover: hover) and (pointer: fine) {
    .hero-slider__arrow:hover {
        opacity: 1;
        color: #000;
        background: #32a32a;
        transform: scale(1.06);
    }
}

/* ═══ Слайдер: защита от залипания наведения на сенсорном экране ═══ */
/* Prevent sticky mobile hover */
@media (hover: none) {
    .hero-slider__arrow:hover,
    .hero-slider__arrow:active {
        color: #32a32a;
        background: rgba(0, 0, 0, 0.35);
        transform: none;
    }
}
@media (max-width: 768px) {
    .hero-slider, .hero-slider__viewport, .hero-slider__track {min-height: calc(100svh - 84px);}
    .hero-slide {min-height: calc(100svh - 84px);display: flex;align-items: flex-start;justify-content: flex-start;padding:108px 18px 132px;box-sizing: border-box;}
    .hero-slide__content,.hero-slide .hero__content,
    .hero-slide .hero__inner {position: relative;z-index: 3;width: 100%;max-width: 100%;margin: 0 auto;padding: 0;transform: translateY(-56px);box-sizing: border-box;}
    .hero-slide h1, .hero-slide .hero__title {width: min(100%, 720px);max-width: 100%;margin: 0 0 20px;padding: 0;text-align: left;text-wrap: balance;overflow-wrap: normal;word-break: normal;hyphens: none;}
    .hero-slide .hero__text,
    .hero-slide .hero__subtitle, .hero-sub,
    .hero-slide .hero__description {width:100%; max-width:none;margin: 0 0 10px;padding: 0;text-align: left;text-wrap: balance;box-sizing: border-box;align-self:flex-start;}
    .hero-slide .hero__actions,
    .hero-slide .hero__buttons, .hero-btns,
    .hero-slide .buttons {display:flex;flex-direction:column;align-items:flex-start;gap:10px;width:100%;max-width: 100%;margin:10px 0 0;justify-content:flex-start;padding: 0;box-sizing: border-box;}
    .hero-slide .hero__actions a, .hero-slide .hero__actions button, .hero-slide .hero__buttons a, .hero-slide .hero__buttons button,
    .hero-slide .buttons a, .hero-slide .buttons button, .hero-slide .hero-btns a:not(.db-editorial-cta),
    .hero-slide .hero-btns button {display: flex;align-items: center;justify-content: center;width:fit-content;min-width: 0;max-width:100%;padding: 12px 14px;line-height: 1.15;white-space: normal;text-align: center;box-sizing: border-box;}
    .hero-slide .f {transform: translateY(12px);}
    .hero-slide__video {object-position: 60% center;}
    .hero-slide__video-overlay {background:linear-gradient(180deg,rgba(0, 0, 0, 0.18) 0%,rgba(0, 0, 0, 0.34) 42%,rgba(0, 0, 0, 0.64) 100%);}
    .hero-slide--gradient {background-size:170% 170%,175% 175%,165% 165%,160% 160%,100% 100%;}
    .hero-slider__arrow{width: 44px;height: 44px;font-size: 19px;opacity: 0.9;top:auto;bottom:clamp(80px, 14dvh, 132px);left:auto;}
    .hero-slider__arrow--prev{left:auto;right:72px;}
    .hero-slider__arrow--next{left:auto; right:20px;}
    .hero-slider__dot {width:17px;height:4px;}
    .hero-slider__dot.is-active {width:38px;}
    .hero-slider__dots{left:20px;bottom:clamp(98px, 16dvh, 150px);transform:none;gap:7px;}
}
.hero-content{
    position: absolute;
    inset: 0;
    z-index: 2;
    box-sizing: border-box;
    width: 100%;
    height: 100;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0px 40px 0 6vw;
    margin:0;
}
.svg-rotator{
    position:absolute;
    inset: 0;
    z-index: 1;
}