:root {
    --bg: #050608;
    --text: #f4f5f7;
    --text-muted: #9aa0ab;
    --line: rgba(255, 255, 255, 0.18);
    --condensed: "Saira Condensed", "Arial Narrow", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Слайдовый сайт — нативный скроллбар прячем, навигация точками справа */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

/* On touch devices there is no JS paging — let native snap handle it */
@media (pointer: coarse) {
    html {
        scroll-snap-type: y mandatory;
    }

    .slide {
        scroll-snap-align: start;
    }
}

body {
    font-family: "Inter", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

/* Starfield */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,0.7), transparent 50%),
        radial-gradient(1px 1px at 68% 12%, rgba(255,255,255,0.5), transparent 50%),
        radial-gradient(1.5px 1.5px at 42% 64%, rgba(255,255,255,0.6), transparent 50%),
        radial-gradient(1px 1px at 86% 48%, rgba(255,255,255,0.4), transparent 50%),
        radial-gradient(1px 1px at 28% 86%, rgba(255,255,255,0.5), transparent 50%),
        radial-gradient(1.5px 1.5px at 78% 78%, rgba(255,255,255,0.35), transparent 50%);
    background-size: 640px 640px, 480px 480px, 720px 720px, 560px 560px, 800px 800px, 520px 520px;
}

/* Плёночное зерно поверх всего — дизерит тёмные градиенты, убирает полосы */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 160px 160px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 64px;
    background: linear-gradient(180deg, rgba(5, 6, 8, 0.85), transparent);
}

.wordmark {
    display: inline-flex;
    align-items: center;
    font-family: var(--condensed);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.45em;
    color: var(--text);
    text-decoration: none;
}

/* Мини-эквалайзер у вордмарка — музыка играет */
.eq {
    display: inline-flex;
    align-items: flex-end;
    gap: 2.5px;
    height: 15px;
    margin-right: 12px;
}

.eq i {
    width: 3px;
    border-radius: 1.5px;
    background: #5b8cff;
    transform-origin: bottom;
    animation: eqb 1.1s ease-in-out infinite;
}

.eq i:nth-child(1) { height: 60%; animation-delay: 0s; }
.eq i:nth-child(2) { height: 100%; animation-delay: 0.15s; }
.eq i:nth-child(3) { height: 45%; animation-delay: 0.3s; }
.eq i:nth-child(4) { height: 80%; animation-delay: 0.45s; }

@keyframes eqb {
    0%, 100% { transform: scaleY(0.45); }
    50% { transform: scaleY(1); }
}

header nav {
    display: flex;
    gap: 28px;
}

header nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    white-space: nowrap;
    opacity: 0.85;
    transition: opacity 0.2s;
}

/* Средние ширины: меню ужимается, чтобы не обрезаться краем */
@media (max-width: 1360px) {
    header {
        padding: 24px 36px;
    }

    header nav {
        gap: 18px;
    }

    header nav a {
        font-size: 0.66rem;
        letter-spacing: 0.09em;
    }
}

/* Узкие окна: меню прячем, вместо него — бургер справа сверху */
@media (max-width: 1060px) {
    header nav {
        display: none;
    }
}

header nav a:hover {
    opacity: 1;
}

/* Бургер-кнопка — только на узких экранах, где меню спрятано */
.menu-btn {
    display: none;
    position: relative;
    z-index: 50;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-btn span {
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Показываем бургер там же, где прячется обычное меню
   (правило должно идти ПОСЛЕ базового display:none) */
@media (max-width: 1060px) {
    .menu-btn {
        display: flex;
    }
}

/* Полноэкранное мобильное меню */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 6, 8, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.mobile-menu a {
    font-family: var(--condensed);
    font-size: 2.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text);
    text-decoration: none;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu.open a { opacity: 1; transform: none; }
.mobile-menu.open a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.12s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.19s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.26s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.33s; }

/* Dot navigation */
.dots {
    position: fixed;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dots a {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: transparent;
    transition: background 0.3s, transform 0.3s;
}

.dots a.active {
    background: var(--text);
    transform: scale(1.3);
}

/* Slides */
.slide {
    position: relative;
    height: 100svh;
    display: flex;
    align-items: flex-end;
    padding: 0 8vw 14vh;
    overflow: hidden;
}

/* Per-slide glow */
.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.slide:nth-of-type(2)::before { background: radial-gradient(65% 85% at 70% 35%, rgba(125, 122, 255, 0.15), transparent 70%); }
.slide:nth-of-type(3)::before { background: radial-gradient(65% 85% at 68% 30%, rgba(45, 195, 210, 0.13), transparent 70%); }
.slide:nth-of-type(4)::before { background: radial-gradient(65% 85% at 72% 32%, rgba(255, 168, 76, 0.12), transparent 70%); }
.slide:nth-of-type(5)::before { background: radial-gradient(70% 90% at 50% 40%, rgba(91, 140, 255, 0.18), transparent 70%); }

.slide-content {
    position: relative;
    z-index: 1;
    max-width: min(620px, 48vw);
    opacity: 0;
    transform: translateY(44px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.slide.visible .slide-content {
    opacity: 1;
    transform: none;
}

/* Giant background number on category slides */
.bg-num {
    position: absolute;
    right: 4vw;
    bottom: 4vh;
    z-index: 0;
    font-family: var(--condensed);
    font-weight: 700;
    font-size: 44vh;
    line-height: 1;
    color: rgba(255, 255, 255, 0.04);
    user-select: none;
    pointer-events: none;
}

.overline {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.dot-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5b8cff;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.75); }
}

h1, h2 {
    font-family: var(--condensed);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 0.95;
    font-size: clamp(3.2rem, 8.5vw, 6.8rem);
    margin-bottom: 22px;
    background: linear-gradient(180deg, #ffffff, #aab4c8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 480px;
}

.ghost-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 13px 30px;
    border: 1px solid var(--line);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text);
}

/* ---------- Right-side visuals ---------- */

.slide-visual {
    position: absolute;
    right: 7vw;
    top: 50%;
    z-index: 1;
    width: min(430px, 32vw);
    opacity: 0;
    transform: translateY(-50%) translateX(48px);
    transition: opacity 1s ease 0.25s, transform 1s ease 0.25s;
}

.slide.visible .slide-visual {
    opacity: 1;
    transform: translateY(-50%);
}

.vfloat {
    animation: floaty 7s ease-in-out infinite;
}

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Shared window panel (terminal / browser) */
.panel {
    background: rgba(10, 14, 22, 0.82);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
}

.panel-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-bar .d {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.d.r { background: #ff5f57; }
.d.y { background: #febc2e; }
.d.g { background: #28c840; }

/* Terminal */
.terminal {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.84rem;
}

.term-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 20px 22px;
    min-height: 170px;
}

.t-line {
    color: #c6cee0;
    opacity: 0;
    transform: translateY(5px);
}

.t-line .prompt { color: #5b8cff; }
.t-line.ok { color: #37d67a; }

.visible .t-line { animation: rise 0.45s ease forwards; }
.visible .l1 { animation-delay: 0.5s; }
.visible .l2 { animation-delay: 1.1s; }
.visible .l3 { animation-delay: 1.7s; }
.visible .l4 { animation-delay: 2.2s; }
.visible .l5 { animation-delay: 2.8s; }

@keyframes rise {
    to { opacity: 1; transform: none; }
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    vertical-align: -2px;
    background: #c6cee0;
    animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Browser mock */
.b-url {
    margin-left: 10px;
    padding: 4px 14px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.b-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sk {
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.14) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 2.4s linear infinite;
}

.sk-nav { height: 18px; width: 55%; }
.sk-hero { height: 86px; }
.sk-row { display: flex; gap: 12px; }
.sk-card { height: 58px; flex: 1; animation-delay: 0.5s; }

@keyframes shimmer {
    to { background-position: -200% 0; }
}

/* Bar chart */
.chart {
    display: flex;
    align-items: flex-end;
    gap: 13px;
    height: 250px;
    padding: 26px 24px 22px;
}

.chart i {
    flex: 1;
    border-radius: 7px 7px 2px 2px;
    background: linear-gradient(180deg, #4ecadb, rgba(78, 202, 219, 0.12));
    transform-origin: bottom;
    animation: breathe 3.6s ease-in-out infinite;
}

.chart i:nth-child(1) { height: 34%; animation-delay: 0s; }
.chart i:nth-child(2) { height: 56%; animation-delay: 0.3s; }
.chart i:nth-child(3) { height: 44%; animation-delay: 0.6s; }
.chart i:nth-child(4) { height: 72%; animation-delay: 0.9s; }
.chart i:nth-child(5) { height: 58%; animation-delay: 1.2s; }
.chart i:nth-child(6) { height: 88%; animation-delay: 1.5s; }
.chart i:nth-child(7) { height: 50%; animation-delay: 1.8s; }

@keyframes breathe {
    0%, 100% { transform: scaleY(0.82); }
    50% { transform: scaleY(1.06); }
}

/* Neural net */
.net {
    width: 100%;
    height: auto;
    overflow: visible;
}

.net .link {
    stroke: rgba(150, 170, 255, 0.28);
    stroke-width: 1;
    stroke-dasharray: 3 7;
    animation: flow 2.8s linear infinite;
}

@keyframes flow {
    to { stroke-dashoffset: -40; }
}

.net .node {
    fill: #0b1322;
    stroke: #7d9cff;
    stroke-width: 1.5;
    animation: nodepulse 2.6s ease-in-out infinite;
}

/* Частицы-сигналы, бегущие между нейронами */
.net .particle {
    fill: #b9ccff;
    opacity: 0.9;
    filter: drop-shadow(0 0 4px rgba(125, 156, 255, 0.9));
}

@keyframes nodepulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Chat */
.chat {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.msg {
    max-width: 78%;
    padding: 12px 17px;
    border-radius: 17px;
    font-size: 0.92rem;
    opacity: 0;
    transform: translateY(8px);
}

.msg.left {
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    background: rgba(255, 255, 255, 0.09);
}

.msg.right {
    align-self: flex-end;
    border-bottom-right-radius: 5px;
    background: rgba(91, 140, 255, 0.3);
}

.visible .msg { animation: rise 0.5s ease forwards; }
.visible .m1 { animation-delay: 0.5s; }
.visible .m2 { animation-delay: 1.3s; }
.visible .m3 { animation-delay: 2.1s; }

.msg.typing {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 15px 17px;
}

.msg.typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: bounce 1.2s ease-in-out infinite;
}

.msg.typing span:nth-child(2) { animation-delay: 0.18s; }
.msg.typing span:nth-child(3) { animation-delay: 0.36s; }

@keyframes bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

/* ---------- Hero — centered, with a planet horizon below ---------- */

.hero {
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 0;
}

.hero .slide-content {
    max-width: 920px;
    transform: translateY(-4vh);
}

.hero.visible .slide-content {
    transform: translateY(-4vh);
}

.hero .overline {
    justify-content: center;
}

.hero h1 {
    font-size: clamp(3.6rem, 10vw, 8.5rem);
}

.hero .desc {
    margin: 0 auto;
    max-width: 520px;
}

.planet {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(15vh - 220vmax);
    width: 220vmax;
    height: 220vmax;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 0%,
        #101829 0%, #0c1220 18%, #090d18 34%, #070a12 48%, var(--bg) 68%);
    box-shadow: 0 -1px 3px rgba(150, 182, 255, 0.28);
    pointer-events: none;
}

/* Атмосфера — один радиальный градиент по кривизне планеты.
   Колокол яркости: медленный подъём изнутри (дымка над лимбом),
   пик чуть выше кромки, eased-затухание наружу. Ни дуг, ни колец. */
.planet::after {
    content: "";
    position: absolute;
    inset: -8vmax;
    border-radius: 50%;
    background: radial-gradient(closest-side,
        rgba(91, 140, 255, 0) 0%,
        rgba(91, 140, 255, 0) 86%,
        rgba(91, 140, 255, 0.012) 88%,
        rgba(91, 140, 255, 0.035) 89.8%,
        rgba(91, 140, 255, 0.08) 91.3%,
        rgba(91, 140, 255, 0.16) 92.4%,
        rgba(91, 140, 255, 0.27) 93.0%,
        rgba(91, 140, 255, 0.32) 93.4%,
        rgba(91, 140, 255, 0.24) 94.2%,
        rgba(91, 140, 255, 0.165) 95.2%,
        rgba(91, 140, 255, 0.105) 96.2%,
        rgba(91, 140, 255, 0.06) 97.3%,
        rgba(91, 140, 255, 0.03) 98.3%,
        rgba(91, 140, 255, 0.012) 99.2%,
        rgba(91, 140, 255, 0) 100%);
    pointer-events: none;
}

/* Парящий ноутбук программиста */
.hero-laptop {
    position: absolute;
    left: 13vw;
    bottom: 22vh;
    z-index: 1;
    width: min(170px, 13vw);
    opacity: 0;
    transition: opacity 1.2s ease 1.8s;
    pointer-events: none;
}

.hero.visible .hero-laptop {
    opacity: 0.95;
}

.hero-laptop svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 16px rgba(91, 140, 255, 0.3));
    animation: lapfloat 8s ease-in-out infinite;
}

@keyframes lapfloat {
    0%, 100% { transform: translateY(0) rotate(2deg); }
    50% { transform: translateY(-14px) rotate(-2deg); }
}

.lp-screen {
    fill: #0b1322;
    stroke: #9db8ff;
    stroke-width: 2.5;
}

.lp-base {
    fill: #0e1a30;
    stroke: #7d9cff;
    stroke-width: 2;
}

.cl {
    stroke-width: 4;
    stroke-linecap: round;
    animation: codepulse 2.8s ease-in-out infinite;
}

.c1 { stroke: #5b8cff; }
.c2 { stroke: #37d67a; animation-delay: 0.4s; }
.c3 { stroke: #c6cee0; animation-delay: 0.8s; }
.c4 { stroke: #5b8cff; animation-delay: 1.2s; }

@keyframes codepulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.95; }
}

.lp-cursor {
    fill: #c6cee0;
    animation: blink 1.1s steps(1) infinite;
}

/* Hero rocket */
.hero-rocket {
    position: absolute;
    right: 13vw;
    bottom: 17vh;
    z-index: 1;
    width: min(170px, 13vw);
    opacity: 0;
    transform: translateY(40vh);
    pointer-events: none;
}

.hero.visible .hero-rocket {
    animation: liftoff 2.8s cubic-bezier(0.2, 0.7, 0.3, 1) 0.4s forwards;
}

@keyframes liftoff {
    0% { opacity: 0; transform: translateY(40vh); }
    25% { opacity: 1; }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-rocket svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(91, 140, 255, 0.35));
}

.hero-rocket .r-bob {
    animation: floaty 6s ease-in-out 3.4s infinite;
}

.r-flame {
    transform-box: fill-box;
    transform-origin: 50% 0%;
    animation: flick 0.16s ease-in-out infinite alternate;
}

@keyframes flick {
    from { transform: scaleY(0.82) scaleX(0.94); }
    to { transform: scaleY(1.12) scaleX(1.04); }
}

/* Вариант «летит»: наклон, усиленное пламя, проносящиеся звёзды */
.streaks {
    display: none;
}

.hero.fly .streaks {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero.fly .streaks i {
    position: absolute;
    top: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, rgba(160, 190, 255, 0.45), transparent);
    animation: streak linear infinite;
}

.hero.fly .streaks i:nth-child(1) { left: 62%; height: 110px; animation-duration: 1.7s; }
.hero.fly .streaks i:nth-child(2) { left: 74%; height: 140px; animation-duration: 1.3s; animation-delay: 0.5s; }
.hero.fly .streaks i:nth-child(3) { left: 85%; height: 90px; animation-duration: 2.1s; animation-delay: 0.9s; opacity: 0.7; }
.hero.fly .streaks i:nth-child(4) { left: 40%; height: 70px; animation-duration: 2.6s; animation-delay: 0.3s; opacity: 0.5; }
.hero.fly .streaks i:nth-child(5) { left: 22%; height: 60px; animation-duration: 3s; animation-delay: 1.2s; opacity: 0.4; }

@keyframes streak {
    0% { transform: translateY(-20vh) rotate(14deg); opacity: 0; }
    12% { opacity: 1; }
    85% { opacity: 0.9; }
    100% { transform: translateY(115vh) rotate(14deg); opacity: 0; }
}

.hero.fly .hero-rocket svg {
    transform: rotate(14deg);
}

.hero.fly .r-bob {
    animation-duration: 4s;
}

.hero.fly .r-flame {
    animation: flickfly 0.14s ease-in-out infinite alternate;
}

@keyframes flickfly {
    from { transform: scaleY(1.05) scaleX(0.96); }
    to { transform: scaleY(1.45) scaleX(1.05); }
}

/* Спутник слева на герое */
.hero-sat {
    position: absolute;
    left: 11vw;
    top: 23vh;
    z-index: 1;
    width: min(110px, 9vw);
    opacity: 0;
    transition: opacity 1.2s ease 1.4s;
    pointer-events: none;
}

.hero.visible .hero-sat {
    opacity: 0.9;
}

.hero-sat svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 12px rgba(91, 140, 255, 0.3));
    animation: satdrift 9s ease-in-out infinite alternate;
}

@keyframes satdrift {
    from { transform: translateY(0) rotate(-5deg); }
    to { transform: translateY(16px) rotate(5deg); }
}

/* Радиоволны от антенны спутника — вещаем с орбиты */
.hero-sat .sigwave {
    fill: none;
    stroke: #7d9cff;
    stroke-width: 1.5;
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    animation: sig 3s ease-out infinite;
}

.hero-sat .s2 { animation-delay: 1s; }
.hero-sat .s3 { animation-delay: 2s; }

@keyframes sig {
    0% { opacity: 0.75; transform: scale(0.4); }
    70%, 100% { opacity: 0; transform: scale(2.6); }
}

/* Hero scroll hint */
.scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 36px;
    z-index: 1;
    transform: translateX(-50%);
    color: var(--text-muted);
    animation: bob 2.2s ease-in-out infinite;
}

@keyframes bob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(9px); }
}

/* Орбиты на финальном слайде */
.orbits {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px dashed rgba(150, 170, 255, 0.14);
    border-radius: 50%;
    animation: spin linear infinite;
}

.orbit i {
    position: absolute;
    top: -4.5px;
    left: 50%;
    margin-left: -4.5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #7d9cff;
    box-shadow: 0 0 14px rgba(125, 156, 255, 0.9);
}

.o1 {
    width: min(400px, 60vw);
    height: min(400px, 60vw);
    animation-duration: 22s;
}

.o2 {
    width: min(620px, 86vw);
    height: min(620px, 86vw);
    animation-duration: 38s;
    animation-direction: reverse;
}

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Finale slide — centered */
.finale {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.finale .slide-content {
    max-width: none;
}

.finale .overline {
    justify-content: center;
}

.finale .desc {
    margin: 0 auto;
}

@media (max-width: 960px) {
    /* Визуал переезжает в пустую верхнюю половину слайда,
       текст остаётся внизу */
    .slide-visual {
        right: auto;
        left: 50%;
        top: 12vh;
        width: min(270px, 70vw);
        transform: translateX(-50%) translateY(28px);
    }

    .slide.visible .slide-visual {
        transform: translateX(-50%) translateY(0);
    }

    .slide-content {
        max-width: 720px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 20px 24px;
    }

    header nav {
        display: none;
    }

    .dots {
        right: 14px;
    }

    .slide {
        padding: 0 24px 12vh;
    }

    .bg-num {
        font-size: 30vh;
        right: 2vw;
        opacity: 0.7;
    }

    .hero-rocket {
        right: 8vw;
        bottom: 13vh;
        width: 84px;
    }

    /* Спутник и ноутбук остаются и на телефоне — меньше и по углам,
       чтобы не сталкивались с заголовком */
    .hero-sat {
        left: 5vw;
        top: 13vh;
        width: 62px;
    }

    .hero-laptop {
        left: 5vw;
        bottom: 9vh;
        width: 92px;
    }
}
