/* ============================================================
   Коллективный Разум — SPA в стиле NeuroForge
   7 страниц, у каждой свой hero и фоновое видео
   ============================================================ */

:root {
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --text: #020617;
    --text-2: #1e293b;
    --text-muted: #475569;
    --text-soft: #64748b;
    --text-faint: #94a3b8;

    --brand: #2563eb;
    --brand-hover: #1d4ed8;
    --brand-light: #60a5fa;
    --brand-soft: #eff6ff;
    --brand-faded: #dbeafe;

    --border: #e2e8f0;
    --border-soft: #f1f5f9;

    --r-sm: 8px;
    --r: 12px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-weight: 400;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
    letter-spacing: -0.011em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; background: none; border: none; padding: 0; color: inherit; }

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}
@media (min-width: 1024px) { .container { padding: 0 32px; } }

/* ============================================================
   ШАПКА — sticky, белая, с подсветкой активного пункта
   ============================================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.header__inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}
@media (min-width: 1024px) { .header__inner { padding: 0 32px; } }

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    height: 44px;
}
.logo__img {
    height: 44px;
    width: auto;
    display: block;
    object-fit: contain;
    /* картинка содержит и иконку, и текст — не растягиваем */
}

.nav {
    display: none;
    align-items: center;
    gap: 32px;
}
@media (min-width: 768px) { .nav { display: flex; } }
.nav__btn {
    position: relative;
    padding: 4px 0;
    font-size: 14px;
    color: var(--text-2);
    transition: color 0.18s;
}
.nav__btn:hover { color: var(--brand); }
.nav__btn.active { color: var(--brand); font-weight: 500; }
.nav__btn.active::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 100%; height: 2px;
    background: var(--brand);
    border-radius: 2px;
    transform-origin: left center;
    animation: nav-pill .28s ease-out both;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.header__login {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.15s;
}
.header__login:hover { color: var(--brand); }
.header__cta {
    border-radius: 12px;
    background: var(--brand);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 4px 12px -2px rgba(37,99,235,0.4);
    transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
}
.header__cta:hover {
    background: var(--brand-hover);
    box-shadow: 0 6px 16px -2px rgba(37,99,235,0.5);
    transform: translateY(-1px);
}

.burger {
    display: flex;
    width: 36px; height: 36px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    border: 1px solid var(--border);
    border-radius: 10px;
}
.burger span { width: 14px; height: 1.5px; background: var(--text); border-radius: 2px; }
@media (min-width: 768px) { .burger { display: none; } }

/* Мобильное меню */
body.menu-open { overflow: hidden; }
/* Поднимаем шапку (вместе с меню внутри неё) НАД затемнением,
   иначе меню оказывается заперто в stacking-контексте шапки и тоже мутнеет */
body.menu-open .header { z-index: 200; }
/* Затемнение фона — клик закрывает меню (обработчик в script.js) */
body.menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.35);
    backdrop-filter: blur(2px);
    z-index: 150;
    animation: fade-in .2s ease both;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
body.menu-open .nav {
    display: flex;
    position: fixed;
    top: 72px; left: 16px; right: 16px;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    padding: 18px;
    gap: 4px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: 0 20px 60px -10px rgba(0,0,0,0.15);
    z-index: 200;
}
body.menu-open .nav__btn { padding: 12px 16px; text-align: left; }
body.menu-open .nav__btn.active::after { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background: #fff;
    animation: hero-reveal .78s cubic-bezier(.22,1,.36,1) both;
}

.hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #fff;
}
.hero__bg video {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
}
.hero__bg video::-webkit-media-controls,
.hero__bg video::-webkit-media-controls-enclosure,
.hero__bg video::-webkit-media-controls-panel,
.hero__bg video::-webkit-media-controls-overlay-play-button,
.hero__bg video::-internal-media-controls-overflow-button { display: none !important; -webkit-appearance: none !important; }
.hero:has(.hero__bg video) .scene { display: none; }

/* Базовая «сцена» под видео */
.scene {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.scene__drift {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(37,99,235,0.20), transparent 28%),
        radial-gradient(circle at 78% 22%, rgba(96,165,250,0.15), transparent 30%),
        linear-gradient(120deg, #ffffff, #f6f8fb 55%, #ffffff);
    animation: drift 12s ease-in-out infinite;
}
.scene__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(15,23,42,0.04) 1px, transparent 1px),
        linear-gradient(rgba(15,23,42,0.04) 1px, transparent 1px);
    background-size: 54px 54px;
    opacity: 0.7;
}

/* Белый "вайп" слева → правое для эффекта появления */
.hero__wipe {
    position: absolute;
    inset: 0;
    z-index: 10;
    width: 50%;
    background: linear-gradient(to right, white, rgba(255,255,255,0.95), transparent);
    pointer-events: none;
    animation: wipe-in .72s cubic-bezier(.65,0,.35,1) both;
}

/* Подложка слева: слегка осветляет видео под текстом, но видео видно везде */
.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(to right,
            rgba(255,255,255,0.65) 0%,
            rgba(255,255,255,0.45) 30%,
            rgba(255,255,255,0.15) 55%,
            rgba(255,255,255,0) 80%);
}
.hero__overlay-bottom {
    position: absolute;
    inset: auto 0 0 0;
    height: 112px;
    z-index: 2;
    background: linear-gradient(to top, #fff, transparent);
}

.hero__inner {
    position: relative;
    z-index: 3;
    max-width: 1280px;
    margin: 0 auto;
    min-height: 680px;
    padding: 64px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (min-width: 1024px) { .hero__inner { padding: 64px 32px; } }

.hero__content {
    max-width: 640px;
    animation: text-rise .7s cubic-bezier(.22,1,.36,1) both;
    /* Лёгкая белая «аура» под текстом — читаемость на любом кадре видео */
    text-shadow: 0 1px 12px rgba(255,255,255,0.7), 0 1px 3px rgba(255,255,255,0.9);
}

.hero__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(6px);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--text-muted);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    margin-bottom: 24px;
}
.hero__chip .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--brand);
}

.hero__eyebrow {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--brand);
    margin-bottom: 16px;
}
.hero__title {
    font-size: 40px;
    line-height: 1.06;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text);
}
@media (min-width: 640px) { .hero__title { font-size: 60px; letter-spacing: -0.025em; } }
@media (min-width: 1024px) { .hero__title { font-size: 72px; } }

.hero__subtitle {
    margin-top: 24px;
    max-width: 560px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-muted);
}
@media (min-width: 640px) { .hero__subtitle { font-size: 18px; } }

.hero__actions {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    background: var(--brand);
    padding: 13px 26px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 4px 14px -2px rgba(37,99,235,0.4);
    transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
}
.btn-primary:hover {
    background: var(--brand-hover);
    box-shadow: 0 8px 20px -2px rgba(37,99,235,0.5);
    transform: translateY(-1px);
}
.btn-primary svg { width: 16px; height: 16px; }

/* ============================================================
   КАРТОЧКИ ПОД HERO
   ============================================================ */
.cards-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 20px;
    animation: text-rise .75s cubic-bezier(.22,1,.36,1) .08s both;
}
@media (min-width: 1024px) { .cards-section { padding: 48px 32px; } }

.cards {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.cards--4 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: var(--r-md);
    padding: 24px;
    box-shadow: 0 1px 3px rgba(15,23,42,0.04), 0 8px 24px -12px rgba(15,23,42,0.08);
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-faded);
    box-shadow: 0 12px 32px -8px rgba(37,99,235,0.18);
}
.card__meta {
    display: inline-block;
    margin-bottom: 20px;
    border-radius: 999px;
    background: var(--brand-soft);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--brand);
}
/* Метрики-достижения — зелёным, отделяем от категорий */
.card__meta--metric {
    background: #ecfdf5;
    color: #047857;
}
.card__title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
}
.card__text {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-muted);
}

/* ============================================================
   СЕКЦИЯ-ОПИСАНИЕ
   ============================================================ */
.info-section {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(248,250,252,0.7);
}
.info-section__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 20px;
    display: grid;
    gap: 32px;
}
@media (min-width: 1024px) {
    .info-section__inner { padding: 48px 32px; grid-template-columns: 0.8fr 1.2fr; }
}
.info-section__title-block .eyebrow {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--brand);
}
.info-section__title-block h2 {
    margin-top: 12px;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--text);
    line-height: 1.15;
}
.info-grid {
    display: grid;
    gap: 16px;
}
@media (min-width: 640px) { .info-grid { grid-template-columns: 1fr 1fr; } }
.info-card {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: var(--r-md);
    padding: 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.info-card__bar {
    width: 40px; height: 8px;
    border-radius: 999px;
    background: var(--brand);
    margin-bottom: 16px;
}
.info-card__title { font-weight: 600; color: var(--text); }
.info-card__text {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-muted);
}

/* ============================================================
   ФУТЕР (с реквизитами)
   ============================================================ */
.footer {
    border-top: 1px solid var(--border);
    background: #fff;
}
.footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 20px;
}
@media (min-width: 1024px) { .footer__inner { padding: 32px 32px; } }

.footer__top {
    display: flex;
    flex-direction: column;
    gap: 24px;
    font-size: 14px;
    color: var(--text-muted);
}
@media (min-width: 768px) {
    .footer__top { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer__brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text);
}
.footer__brand-img {
    height: 42px;
    width: auto;
    display: block;
    object-fit: contain;
}
.footer__brand-text { line-height: 1.2; }
.footer__brand-meta { font-size: 12px; color: var(--text-soft); }
.footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
}
.footer__nav button {
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.15s;
}
.footer__nav button:hover { color: var(--brand); }

.footer__social { display: flex; gap: 10px; }
.footer__social a {
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border);
    color: var(--text-soft);
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.footer__social a:hover { color: var(--brand); border-color: var(--brand-faded); background: var(--brand-soft); }
.footer__social svg { width: 18px; height: 18px; }

.footer__requisites {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--border-soft);
}
.footer__requisites h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}
.req-grid {
    display: grid;
    gap: 14px 32px;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) { .req-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .req-grid { grid-template-columns: 1fr 1fr 1fr; } }
.req-grid > div { display: flex; flex-direction: column; gap: 2px; }
.req-grid span { color: var(--text-soft); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; }
.req-grid b { color: var(--text); font-weight: 500; font-size: 13px; }

.footer__copy {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-soft);
    font-size: 12px;
    color: var(--text-soft);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
}

/* ============================================================
   КОНТЕЙНЕР SPA — анимация смены страницы
   ============================================================ */
.page-enter {
    animation: page-enter .58s cubic-bezier(.22,1,.36,1) both;
}

/* ============================================================
   СЦЕНЫ — фон под каждое видео (CSS-анимация заглушка)
   ============================================================ */

/* === home: волна + орбиты === */
.scene-home .wave {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    height: 384px;
    width: 76%;
    border-radius: 100%;
    background: repeating-linear-gradient(90deg, rgba(37,99,235,.20) 0 2px, transparent 2px 18px);
    opacity: 0.75;
    filter: blur(1px);
    -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 72%);
    mask-image: radial-gradient(ellipse at center, black, transparent 72%);
    animation: wave 5.5s ease-in-out infinite;
}
.scene-home .orbit-1 {
    position: absolute;
    left: 14%; top: 24%;
    width: 176px; height: 176px;
    border-radius: 50%;
    border: 1px solid rgba(96,165,250,0.25);
    animation: orbit 18s linear infinite;
    transform-origin: center;
}
.scene-home .orbit-2 {
    position: absolute;
    right: 14%; bottom: 18%;
    width: 256px; height: 256px;
    border-radius: 50%;
    border: 1px solid rgba(96,165,250,0.25);
    animation: orbit 22s linear infinite reverse;
    transform-origin: center;
}

/* === services: плавающие карточки технологий === */
.scene-services .grid-icons {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.scene-services .grid-icons__inner {
    display: grid;
    width: 72%;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media (min-width: 768px) {
    .scene-services .grid-icons__inner { grid-template-columns: repeat(4, 1fr); }
}
.scene-services .icon-card {
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.76);
    backdrop-filter: blur(6px);
    border-radius: var(--r-lg);
    padding: 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    animation: card-float 4.2s ease-in-out infinite;
}
.scene-services .icon-card .bar {
    margin-bottom: 20px;
    width: 48px; height: 8px;
    border-radius: 999px;
    background: var(--brand-faded);
}
.scene-services .icon-card .label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-2);
}

/* === solutions: рой точек-нод === */
.scene-solutions .node {
    position: absolute;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(37,99,235,0.5);
    box-shadow: 0 0 16px rgba(37,99,235,0.45);
    animation: node ease-in-out infinite;
}
.scene-solutions .scan-1 {
    position: absolute;
    left: 15%; top: 38%;
    width: 70%; height: 1px;
    background: rgba(96,165,250,0.3);
    transform: rotate(6deg);
    animation: scan-x 4s ease-in-out infinite;
}
.scene-solutions .scan-2 {
    position: absolute;
    left: 16%; bottom: 34%;
    width: 68%; height: 1px;
    background: rgba(96,165,250,0.3);
    transform: rotate(-8deg);
    animation: scan-x 4s ease-in-out infinite;
}

/* === cases: 3 «фотокарточки» проектов === */
.scene-cases .cases-row {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}
.scene-cases .case-card {
    width: 220px; height: 288px;
    overflow: hidden;
    border-radius: 32px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.82);
    padding: 20px;
    box-shadow: 0 20px 70px rgba(15,23,42,0.08);
    backdrop-filter: blur(6px);
    animation: case-anim 4.8s ease-in-out infinite;
}
.scene-cases .case-card .pic {
    height: 112px;
    border-radius: 16px;
    background: linear-gradient(to bottom right, var(--brand-faded), #fff);
}
.scene-cases .case-card .line { margin-top: 20px; height: 12px; width: 96px; border-radius: 999px; background: var(--border); }
.scene-cases .case-card .line + .line { margin-top: 12px; height: 8px; width: 100%; }
.scene-cases .case-card .line + .line + .line { margin-top: 8px; height: 8px; width: 66%; }

/* === tech: сетка инструментов 5×2 + сканер === */
.scene-tech .tech-grid {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 74%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (min-width: 768px) {
    .scene-tech .tech-grid { grid-template-columns: repeat(5, 1fr); }
}
.scene-tech .tech-cell {
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.78);
    backdrop-filter: blur(6px);
    padding: 20px 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    animation: card-float 4.2s ease-in-out infinite;
}
.scene-tech .scan-line {
    position: absolute;
    left: 0; right: 0;
    top: 50%;
    height: 1px;
    background: rgba(96,165,250,0.4);
    animation: scan-x 4s ease-in-out infinite;
}

/* === studio: концентрические орбиты с центром === */
.scene-studio .ring-1 {
    position: absolute;
    left: 50%; top: 50%;
    width: 420px; height: 420px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(96,165,250,0.4);
    animation: orbit 18s linear infinite;
    transform-origin: center;
}
.scene-studio .ring-2 {
    position: absolute;
    left: 50%; top: 50%;
    width: 280px; height: 280px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(96,165,250,0.4);
    animation: orbit 22s linear infinite reverse;
    transform-origin: center;
}
.scene-studio .core {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 96px; height: 96px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    box-shadow: 0 24px 70px rgba(37,99,235,0.25);
    animation: pulse-soft 4.5s ease-in-out infinite;
}
.scene-studio .core svg { width: 36px; height: 36px; }

/* === blog: 4 карточки документов === */
.scene-blog .docs-row {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.scene-blog .doc {
    width: 176px; height: 256px;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.78);
    backdrop-filter: blur(6px);
    padding: 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    animation: document-anim 4.8s ease-in-out infinite;
}
.scene-blog .doc .tag { width: 80px; height: 12px; border-radius: 999px; background: var(--brand-soft); margin-bottom: 20px; }
.scene-blog .doc .ln { height: 8px; border-radius: 999px; background: var(--border); }
.scene-blog .doc .ln + .ln { margin-top: 12px; }
.scene-blog .doc .ln-2 { width: 66%; }
.scene-blog .doc .pic { margin-top: 24px; height: 64px; border-radius: 16px; background: var(--brand-soft); }

/* ============================================================
   КЛЮЧЕВЫЕ КАДРЫ
   ============================================================ */
@keyframes drift {
    0%, 100% { transform: scale(1.03) translate3d(0,0,0); }
    50% { transform: scale(1.08) translate3d(-1.5%, 1%, 0); }
}
@keyframes wave {
    0%, 100% { transform: translate(-50%, -50%) scaleX(1) rotate(0deg); opacity: 0.65; }
    50% { transform: translate(-50%, -52%) scaleX(1.08) rotate(2deg); opacity: 0.9; }
}
@keyframes orbit {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes pulse-soft {
    0%, 100% { opacity: 0.85; transform: translate(-50%, -50%) scale(0.95); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}
@keyframes node {
    0%, 100% { transform: translate3d(0,0,0) scale(1); opacity: 0.42; }
    50% { transform: translate3d(18px, -22px, 0) scale(1.25); opacity: 0.9; }
}
@keyframes scan-x {
    0% { transform: translateX(-35%); opacity: 0; }
    15%, 85% { opacity: 1; }
    100% { transform: translateX(35%); opacity: 0; }
}
@keyframes card-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
@keyframes case-anim {
    0%, 100% { transform: translateY(10px); }
    50% { transform: translateY(-18px); }
}
@keyframes document-anim {
    0%, 100% { transform: translateY(8px); }
    50% { transform: translateY(-16px); }
}
@keyframes progress {
    0% { width: 8%; }
    100% { width: 78%; }
}
@keyframes page-enter {
    0% { opacity: 0; transform: translateY(18px); filter: blur(10px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes hero-reveal {
    0% { opacity: 0; transform: scale(1.025); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes text-rise {
    0% { opacity: 0; transform: translateY(28px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes nav-pill {
    0% { transform: scaleX(0); opacity: 0; }
    100% { transform: scaleX(1); opacity: 1; }
}
@keyframes wipe-in {
    0% { transform: translateX(-110%); opacity: 0.9; }
    100% { transform: translateX(110%); opacity: 0; }
}

/* Учитываем prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}
