/* ── Hero variant B (эталон aurora-hero-interactive.html) ── */

/* Шапка variant B */
body.hero-v-b #site-header {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
}
body.hero-v-b #site-header .max-w-7xl {
    padding-top: 14px;
    padding-bottom: 24px;
}
body.hero-v-b #header-nav,
body.hero-v-b #header-auth,
body.hero-v-b #burger-btn { display: none !important; }

#site-header.hdr::after {
    content: "";
    position: absolute;
    top: 0;
    left: -5%;
    right: -5%;
    bottom: -36px;
    z-index: -1;
    background: transparent;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 1;
    transition: opacity 0.35s ease;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
    pointer-events: none;
}
/* scrolled state is no longer needed since it's always active like stitch */

/* Hero layout */
#hero-variant-b.hero-b {
    position: relative;
    padding: 140px 22px 0;
    text-align: center;
    overflow: visible;
}
#hero-variant-b .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 120%, #2a2466, #10103a 45%, #06081c 80%);
    -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent);
    mask-image: linear-gradient(to bottom, #000 82%, transparent);
}
#hero-variant-b #wave {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}
#hero-variant-b .dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(120% 95% at 50% 0%, #000 30%, transparent 72%);
    mask-image: radial-gradient(120% 95% at 50% 0%, #000 30%, transparent 72%);
    pointer-events: none;
}
#hero-variant-b .hero-in {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

#hero-variant-b h1.hero-b-h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(36px, 6vw, 70px);
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin: 0 0 20px;
    color: #eef1ff;
}
#hero-variant-b h1.hero-b-h1 .g {
    background: linear-gradient(120deg, #36c9e8, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
#hero-variant-b .lead {
    color: #9aa3c7;
    font-size: clamp(15px, 2.1vw, 18px);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.55;
}

/* Жидкое стекло — панель */
#hero-variant-b .panel {
    position: relative;
    text-align: left;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035));
    backdrop-filter: blur(22px) saturate(1.4);
    -webkit-backdrop-filter: blur(22px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 40px 100px rgba(8, 12, 50, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        inset 0 0 50px rgba(255, 255, 255, 0.03);
}
#hero-variant-b .panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 46%;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0.6;
}
#hero-variant-b .p-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}
#hero-variant-b .p-title {
    font-size: 20px;
    font-weight: 700;
    color: #eef1ff;
}
#hero-variant-b .p-title span {
    display: block;
    font-size: 13.5px;
    color: #9aa3c7;
    font-weight: 400;
    margin-top: 3px;
}
#hero-variant-b .tabs {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 13px;
    padding: 5px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
#hero-variant-b .tab {
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #9aa3c7;
    padding: 9px 16px;
    border-radius: 9px;
    cursor: pointer;
    border: 0;
    background: none;
    transition: 0.2s;
    white-space: nowrap;
}
#hero-variant-b .tab.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(54, 201, 232, 0.42), rgba(139, 92, 246, 0.52));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 14px rgba(74, 123, 255, 0.3);
}

#hero-variant-b .p-body {
    position: relative;
    padding: 24px 26px 26px;
}
#hero-variant-b .status {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}
#hero-variant-b .st-l {
    display: flex;
    align-items: center;
    gap: 18px;
}
#hero-variant-b .ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid rgba(139, 92, 246, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
#hero-variant-b .ring b {
    font-size: 20px;
    line-height: 1;
    color: #eef1ff;
}
#hero-variant-b .ring small {
    font-size: 9.5px;
    color: #9aa3c7;
    margin-top: 1px;
}
#hero-variant-b .st-txt b {
    font-size: 18px;
    color: #eef1ff;
}
#hero-variant-b .st-txt p {
    color: #9aa3c7;
    font-size: 14.5px;
    margin: 4px 0 0;
    max-width: 360px;
    line-height: 1.5;
}
#hero-variant-b .go-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
#hero-variant-b .go {
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    border: 0;
    cursor: pointer;
    padding: 15px 28px;
    border-radius: 14px;
    white-space: nowrap;
    background: linear-gradient(135deg, #36c9e8, #8b5cf6);
    box-shadow: 0 12px 28px rgba(74, 123, 255, 0.45);
    transition: transform 0.15s, background 0.25s;
}
#hero-variant-b .go:active { transform: scale(0.97); }
#hero-variant-b .go.stop {
    background: linear-gradient(135deg, #5b6488, #3a3f63);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
#hero-variant-b .go-note {
    font-size: 12.5px;
    color: #9aa3c7;
    margin: 9px 0 0;
    text-align: right;
    max-width: 240px;
    line-height: 1.4;
    min-height: 0;
}

#hero-variant-b .live-wrap {
    overflow: hidden;
    transition: height 0.42s cubic-bezier(0.2, 0.7, 0.2, 1);
    margin-top: 20px;
}
#hero-variant-b .pane { display: none; }
#hero-variant-b .pane.active { display: block; }
#hero-variant-b .hint {
    color: #9aa3c7;
    font-size: 14px;
    text-align: center;
    padding: 40px 10px;
}

#hero-variant-b .term {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 15px;
    padding: 18px 20px;
    font-family: ui-monospace, Menlo, monospace;
    font-size: 14px;
    line-height: 1.5;
    height: 248px;
    overflow-y: auto;
    color: #c8d0ea;
}
#hero-variant-b .term::-webkit-scrollbar { width: 8px; }
#hero-variant-b .term::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 8px;
}
#hero-variant-b .term .l {
    opacity: 0;
    transform: translateY(4px);
    animation: hero-b-rise 0.4s forwards;
    padding: 5px 0;
}
#hero-variant-b .term .hd { color: #7cc4ff; margin-bottom: 6px; }
#hero-variant-b .term .ok { color: #46e0a0; font-weight: 600; }
#hero-variant-b .term .sk { color: #f6b870; font-weight: 600; }
#hero-variant-b .term .rs {
    display: block;
    color: #717a9e;
    font-size: 12.5px;
    margin: 2px 0 0;
}
#hero-variant-b .term .fin {
    color: #9fd0ff;
    font-weight: 600;
    margin-top: 8px;
}
@keyframes hero-b-rise {
    to { opacity: 1; transform: none; }
}

#hero-variant-b .stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 14px;
}
#hero-variant-b .stat {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 14px 16px;
}
#hero-variant-b .stat .lb { font-size: 12px; color: #9aa3c7; }
#hero-variant-b .stat .nm {
    font-size: 24px;
    font-weight: 700;
    margin-top: 4px;
    color: #eef1ff;
}

#hero-variant-b .vac-list {
    height: 300px;
    overflow-y: auto;
    padding-right: 4px;
}
#hero-variant-b .vac-list::-webkit-scrollbar { width: 8px; }
#hero-variant-b .vac-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 8px;
}
#hero-variant-b .vac {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 17px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(8px);
    animation: hero-b-rise 0.45s forwards;
}
#hero-variant-b .vac .ico {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: rgba(139, 92, 246, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex: 0 0 auto;
}
#hero-variant-b .vac b { font-size: 15.5px; color: #eef1ff; }
#hero-variant-b .vac p { color: #9aa3c7; font-size: 13px; margin-top: 2px; }
#hero-variant-b .vac .resp {
    margin-left: auto;
    font-size: 12.5px;
    font-weight: 600;
    color: #46e0a0;
    background: rgba(70, 224, 160, 0.12);
    padding: 6px 12px;
    border-radius: 9px;
    white-space: nowrap;
}

#hero-variant-b .loader {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 15px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 14px;
}
#hero-variant-b .spin {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2.5px solid rgba(139, 92, 246, 0.3);
    border-top-color: #8b5cf6;
    animation: hero-b-spin 0.8s linear infinite;
    flex: 0 0 auto;
}
@keyframes hero-b-spin { to { transform: rotate(360deg); } }
#hero-variant-b .loader .lt { font-size: 14.5px; color: #cbd3f2; }
#hero-variant-b .letter {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 15px;
    padding: 20px 22px;
    font-size: 14.5px;
    line-height: 1.7;
    color: #dbe1f8;
    white-space: pre-wrap;
    opacity: 0;
    transform: translateY(10px);
    animation: hero-b-reveal 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
@keyframes hero-b-reveal {
    to { opacity: 1; transform: none; }
}

#hero-variant-b .demo-fineprint,
#hero-variant-b .hero-b-cta { display: none !important; }

/* Пустое пространство после панели перед появлением видео (сокращено) */
#hero-variant-b .hero-b-spacer {
    height: clamp(60px, 14vh, 160px);
    pointer-events: none;
}

/* Обёртка резервирует финальную высоту видео (70% ширины, 16:10) */
#hero-variant-b .hero-b-video-wrap {
    position: relative;
    width: min(70vw, 960px);
    margin: 0 auto clamp(80px, 12vh, 180px);
    aspect-ratio: 16 / 10;
}

/* Видео в потоке: вырастает снизу по мере скролла, затем скроллится как обычный блок */
#hero-variant-b .hero-b-scroll-video {
    --hbv-scale: 0.42;
    --hbv-ty: 60px;
    --hbv-opacity: 0;
    --hbv-play-opacity: 0;
    position: absolute;
    inset: 0;
    border-radius: 26px;
    cursor: pointer;
    overflow: hidden;
    background: #000;
    padding: 1.5px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background-image:
        linear-gradient(#000, #000),
        linear-gradient(135deg, rgba(54, 201, 232, 0.65), rgba(139, 92, 246, 0.65) 55%, rgba(54, 201, 232, 0.35));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow:
        0 30px 80px rgba(74, 123, 255, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transform: translateY(var(--hbv-ty)) scale(var(--hbv-scale));
    transform-origin: center bottom;
    opacity: var(--hbv-opacity);
    will-change: transform, opacity;
    transition: box-shadow 0.3s ease;
}
#hero-variant-b .hero-b-scroll-video:hover {
    box-shadow:
        0 36px 100px rgba(74, 123, 255, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

#hero-variant-b .hero-b-preview-vid {
    position: absolute;
    top: 50%;
    right: 0;
    width: 55%;
    height: 110%;
    transform: translateY(-50%) scale(1.1);
    object-fit: cover;
    object-position: center center;
    z-index: 0;
    pointer-events: none;
}
#hero-variant-b .hero-b-scroll-video::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 14, 42, 0.7) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}
#hero-variant-b .hero-b-video-poster {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: #000;
    transition: opacity 0.6s ease;
}
#hero-variant-b .hero-b-scroll-video.is-playing:not(.is-ended) .hero-b-video-poster {
    opacity: 0;
}
#hero-variant-b .hero-b-scroll-video.is-ended .hero-b-preview-vid {
    opacity: 0;
    transition: opacity 0.6s ease;
}
#hero-variant-b .hero-b-poster-top {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 42px;
}
#hero-variant-b .hero-b-poster-top .hero-b-poster-lockup {
    transform: translateY(10%);
}
#hero-variant-b .hero-b-poster-bottom {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 42px;
}
#hero-variant-b .hero-b-poster-bottom .hero-b-poster-sub {
    transform: translateY(-10%);
}
#hero-variant-b .hero-b-poster-lockup {
    display: flex;
    align-items: center;
    gap: 14px;
}
#hero-variant-b .hero-b-poster-emblem {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    filter: drop-shadow(0 0 16px rgba(54, 201, 232, 0.6));
}
#hero-variant-b .hero-b-poster-word {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 36px;
    letter-spacing: 1px;
    color: #fff;
}
#hero-variant-b .hero-b-poster-sub {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    letter-spacing: 0.2px;
    margin: 0;
    text-align: center;
}
#hero-variant-b .hero-b-poster-sub--outro {
    display: none;
    max-width: min(280px, 72%);
    line-height: 1.45;
    font-size: 13px;
}
#hero-variant-b .hero-b-scroll-video.is-ended .hero-b-poster-sub--intro { display: none; }
#hero-variant-b .hero-b-scroll-video.is-ended .hero-b-poster-sub--outro { display: block; }

#hero-variant-b .hero-b-reel-pill {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 6px 11px;
    border-radius: 999px;
    z-index: 2;
}
#hero-variant-b .hero-b-reel-pill .lv {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #36e8a0;
    box-shadow: 0 0 8px #36e8a0;
}

/* Кнопка «Смотреть интро» — как Stitch Play intro */
#hero-variant-b .hero-b-play-intro {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(12, 14, 36, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #eef1ff;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    z-index: 3;
    opacity: var(--hbv-play-opacity);
    pointer-events: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
}
#hero-variant-b .hero-b-play-intro-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #36c9e8, #8b5cf6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

#hero-variant-b .hero-b-reel-cap {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 2;
}
#hero-variant-b .hero-b-reel-cap .t {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #eef1ff;
}
#hero-variant-b .hero-b-reel-cap .bar {
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
}
#hero-variant-b .hero-b-reel-cap .bar i {
    display: block;
    height: 100%;
    width: 22%;
    background: linear-gradient(90deg, #36c9e8, #8b5cf6);
}

@media (max-width: 680px) {
    #hero-variant-b .hero-b-video-wrap { width: 88vw; }
    #hero-variant-b .hero-b-spacer { height: clamp(80px, 18vh, 180px); }
    #hero-variant-b .hero-b-poster-emblem { width: 40px; height: 40px; }
    #hero-variant-b .hero-b-poster-word { font-size: 28px; }
    #hero-variant-b .hero-b-play-intro {
        font-size: 13px;
        padding: 12px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #hero-variant-b .hero-b-scroll-video {
        transform: none !important;
        opacity: 1 !important;
    }
    #hero-variant-b .hero-b-play-intro { opacity: 1 !important; }
}

/* VIDEO_HIDDEN: временный отступ между hero и stats; удалить при возврате видео-блока */
.hero-b-stats-gap-temp {
    height: clamp(100px, 16vh, 180px);
    pointer-events: none;
}
@media (max-width: 680px) {
    .hero-b-stats-gap-temp { height: clamp(72px, 12vh, 120px); }
}

@media (max-width: 680px) {
    #hero-variant-b .tabs { order: 3; width: 100%; }
    #hero-variant-b .tab { flex: 1; text-align: center; padding: 9px 8px; font-size: 12px; }
    #hero-variant-b .stat-row { grid-template-columns: 1fr; }
    #hero-variant-b .go-col { align-items: stretch; width: 100%; }
    #hero-variant-b .go { width: 100%; }
    #hero-variant-b .go-note { text-align: center; max-width: none; }
    #hero-variant-b.hero-b { padding: 100px 16px 0; }
}

@media (prefers-reduced-motion: reduce) {
    #hero-variant-b .live-wrap { transition: none; }
    #hero-variant-b .term .l,
    #hero-variant-b .vac,
    #hero-variant-b .letter { animation: none; opacity: 1; transform: none; }
    #hero-variant-b .spin { animation: none; }
}
