/* ============================================================
   HERO — секция во весь экран с видео-слайдами
   ============================================================ */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    background: var(--dark-bg);
}

/* ============================================================
   СЛАЙДЫ С ВИДЕО
   ============================================================ */

.hero__slides {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease, visibility 0s linear 1.2s;
}

.hero__slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 1.2s ease, visibility 0s linear 0s;
}

.hero__slide.is-active .hero__content {
    animation: heroTextIn .9s cubic-bezier(.22, .76, .25, 1) both;
    animation-delay: .25s;
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    pointer-events: none;
    transform: scale(1.03);
    transform-origin: center;
}

.hero__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg,
            rgba(5, 24, 48, .88) 0%,
            rgba(5, 28, 55, .55) 55%,
            rgba(2, 25, 49, .18) 82%),
        linear-gradient(0deg,
            rgba(4, 26, 49, .55) 0%,
            transparent 55%);
}

/* ============================================================
   КОНТЕНТ ВНУТРИ СЛАЙДА
   ============================================================ */

.hero__content {
    position: relative;
    z-index: 2;
    width: min(1320px, 100% - 48px);
    margin: 0;
    padding: 112px 90px 80px max(90px, 50vw - 740px);
}

.hero__title {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-size: clamp(40px, 4.55vw, 64px);
    line-height: 1.06;
    letter-spacing: -.03em;
    margin: 0 0 22px;
    max-width: 850px;
    color: #fff;
}

.hero__title em {
    color: var(--accent-on-dark);
    font-style: normal;
    font-weight: 400;
}

.hero__subtitle {
    color: #d4e3f0;
    max-width: 620px;
    font-size: var(--fs-body-lg);
    line-height: 1.7;
    margin: 0 0 34px;
}

/* ============================================================
   КНОПКИ
   ============================================================ */

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 55px;
}

.hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 56px;
    padding: 0 26px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: var(--fs-caption);
    font-weight: 800;
    transition: all .3s;
    white-space: nowrap;
}

.hero__btn span {
    font-size: 17px;
    transition: transform .25s;
}

.hero__btn:hover span {
    transform: translateX(5px);
}

.hero__btn--primary {
    background: var(--blue, var(--accent));
    color: #fff;
    box-shadow: 0 12px 30px var(--accent-glow);
}

.hero__btn--primary:hover {
    background: var(--blue-hover, var(--accent-hover));
    transform: translateY(-3px);
    box-shadow: 0 17px 40px var(--accent-glow);
}

.hero__btn--ghost {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .4);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.hero__btn--ghost:hover {
    background: #fff;
    color: var(--dark, var(--dark-bg));
}

/* ============================================================
   СТАТИСТИКА (анимированные цифры)
   ============================================================ */

.hero__stats {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
}

.hero__stat {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    width: 200px;
    padding: 0 32px;
    border-left: 1px solid rgba(255, 255, 255, .22);
    box-sizing: border-box;
}

.hero__stat:first-child {
    border-left: 0;
    padding-left: 0;
    width: 180px;
}

.hero__stat-num {
    display: inline-block;
    color: #f3c969;
    font-family: Georgia, "Times New Roman", serif;
    font-size: var(--fs-num);
    font-weight: 500;
    line-height: .95;
    letter-spacing: -.02em;
    text-shadow: 0 8px 28px rgba(243, 201, 105, .18);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.hero__stat-label {
    color: var(--text-on-dark-soft);
    text-transform: uppercase;
    letter-spacing: .075em;
    margin-top: 12px;
    font-size: var(--fs-small);
    line-height: 1.35;
}

/* ============================================================
   СТРЕЛКИ ПО БОКАМ
   ============================================================ */

.hero__arrows {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    pointer-events: none;
}

.hero__arrow {
    pointer-events: auto;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(7, 30, 56, .28);
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 50%;
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
    transition: all .3s;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.hero__arrow:hover {
    color: var(--blue, var(--accent));
    background: #fff;
    border-color: #fff;
    transform: scale(1.07);
}

/* ============================================================
   ИНДИКАТОРЫ 01 / 02 / 03
   ============================================================ */

.hero__nav {
    position: absolute;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 16px;
    padding: 4px 13px;
    background: rgba(4, 28, 53, .28);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
}

.hero__nav button {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 0;
    color: rgba(255, 255, 255, .55);
    font-size: var(--fs-nano);
    font-weight: 700;
    background: none;
    border: 0;
    cursor: pointer;
    transition: color .35s;
}

.hero__nav button i {
    display: block;
    width: 22px;
    height: 1px;
    background: rgba(255, 255, 255, .35);
    transition: all .35s;
}

.hero__nav button.is-active {
    color: #fff;
}

.hero__nav button.is-active i {
    width: 54px;
    background: var(--accent-on-dark);
}

/* ============================================================
   ПРОГРЕСС-БАР
   ============================================================ */

.hero__progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(255, 255, 255, .14);
    z-index: 3;
}

.hero__progress i {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-on-dark));
}

.hero__progress i.is-running {
    animation: heroTimer var(--slide-duration, 7s) linear forwards;
}

.hero__progress i.is-paused {
    animation-play-state: paused;
}

/* ============================================================
   АНИМАЦИИ
   ============================================================ */

@keyframes heroTextIn {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes heroTimer {
    from { width: 0; }
    to   { width: 100%; }
}

/* ============================================================
   АДАПТИВ
   ============================================================ */

@media (max-width: 1200px) {
    .hero__content {
        padding-left: 90px;
        padding-right: 90px;
    }
}

@media (max-width: 900px) {
    .hero__stats {
        margin-top: 42px;
    }

    .hero__stat {
        width: 170px;
        padding: 0 22px;
    }

    .hero__stat:first-child {
        width: 140px;
    }
}

@media (max-width: 760px) {
    .hero {
        min-height: 100vh;
        min-height: 100svh;
    }

    .hero__content {
        width: 100%;
        padding: 90px 18px 110px;
    }

    .hero__title {
        font-size: 40px;
        max-width: none;
    }

    .hero__actions {
        flex-direction: column;
        margin-bottom: 40px;
    }

    .hero__btn {
        width: 100%;
    }

    .hero__shade {
        background:
            linear-gradient(90deg,
                rgba(5, 24, 48, .92) 0%,
                rgba(5, 28, 55, .72) 70%,
                rgba(2, 25, 49, .42) 100%),
            linear-gradient(0deg,
                rgba(4, 26, 49, .72) 0%,
                transparent 60%);
    }

    .hero__stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px 12px;
    }

    .hero__stat {
        width: auto;
        padding: 0;
        border: 0;
    }

    .hero__stat:first-child {
        width: auto;
    }

    .hero__stat:nth-child(3) {
        display: none;
    }

    .hero__arrows {
        align-items: flex-end;
        padding: 0 18px 30px;
    }

    .hero__arrow {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .hero__nav {
        bottom: 30px;
    }

    .hero__nav button span {
        display: none;
    }

    .hero__nav button i {
        width: 10px;
        height: 2px;
    }

    .hero__nav button.is-active i {
        width: 30px;
    }
}

@media (max-width: 390px) {
    .hero__content {
        padding: 80px 14px 100px;
    }

    .hero__title {
        font-size: 34px;
    }
}

/* ============================================================
   УВАЖЕНИЕ К ПОЛЬЗОВАТЕЛЬСКИМ НАСТРОЙКАМ
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    .hero__slide,
    .hero__slide.is-active,
    .hero__slide.is-active .hero__content,
    .hero__video,
    .hero__progress i {
        animation: none !important;
        transition: none !important;
    }
}