/* ============================================================
   AEGIS IMMORTALIS — сайт компании
   Корпоратив: монохром платина на графит-нави (Palantir-inspired)
   Знак: щит-эгида с монограммой AI (Aegis Immortalis)
   ClinCore  → бирюза  · Quantfall → золото→маджента

   Типографика (Apple-style, единая система):
   Sans  — Inter (SF Pro-класс, кириллица), веса 400/500/600 (+700 только wordmark)
   Mono  — JetBrains Mono, технические элементы (чипы, теги, формулы)
   Шкала — 11 caps-label · 12 mono-note · 13 tertiary · 14 secondary · 16 body
           заголовки clamp-ами, tracking: caps 0.14em, display −0.025…−0.03em
   ============================================================ */

:root {
  --bg:            #0A0C12;
  --bg-1:          #0D1019;
  --bg-2:          #11151F;
  --surface:       #151925;
  --surface-2:     #1C2130;

  --border:        #1E2434;
  --border-strong: #30384C;

  --text:          #EEF1F6;
  --text-2:        #98A2B6;
  --text-3:        #5F6980;

  /* корпоративный акцент — платина */
  --p1:            #EEF1F6;
  --p2:            #A9B4CB;
  --p-glow:        rgba(170, 190, 230, 0.08);
  --on-accent:     #0A0C12;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, 'Cascadia Mono', monospace;

  /* типографическая шкала */
  --fs-caption: 11px;    /* uppercase-ярлыки, eyebrow, бейджи */
  --fs-mono:    12px;    /* mono-примечания, legal */
  --fs-ter:     13px;    /* третичный текст */
  --fs-sec:     14px;    /* вторичный текст, навигация, кнопки */
  --fs-body:    16px;    /* базовый текст */
  --track-caps:  0.14em;
  --track-tight: -0.025em;

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 68px);
  --nav-h: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-clincore  { --p1: #4FC2BF; --p2: #2B7A78; --p-glow: rgba(79, 194, 191, 0.16); --on-accent: #041413; }
.theme-quantfall { --p1: #E89A46; --p2: #E0459A; --p-glow: rgba(224, 110, 120, 0.15); --on-accent: #170a0e; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  font-family: var(--font-sans); background: var(--bg); color: var(--text);
  line-height: 1.6; font-size: var(--fs-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--p1); color: var(--on-accent); }

/* ---------- Backdrops ---------- */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 62px 62px; opacity: 0.4;
  mask-image: radial-gradient(ellipse 92% 62% at 50% 0%, #000 22%, transparent 78%);
}
.ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(58% 55% at 50% 14%, var(--amb, transparent), transparent 72%);
  transition: background 1.2s ease;
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: 1; }
section { position: relative; }
section[id] { scroll-margin-top: 84px; }

/* ---------- Типографика: базовые роли ---------- */
.eyebrow {
  font-size: var(--fs-caption); font-weight: 600; letter-spacing: var(--track-caps);
  text-transform: uppercase; color: var(--p1); display: inline-flex; align-items: center; gap: 10px; opacity: .95;
}
h1, h2, h3 { font-weight: 600; line-height: 1.12; letter-spacing: var(--track-tight); }
.h-section { font-size: clamp(20px, 2.3vw, 27px); margin: 14px 0 16px; text-wrap: balance; }
.lead { color: var(--text-2); font-size: clamp(15px, 1.5vw, 17px); max-width: 64ch; line-height: 1.62; text-wrap: pretty; }

/* ---------- Chapter transition ---------- */
.chapter { position: relative; }
.chapter-seam {
  position: absolute; top: 0; left: 0; right: 0; height: 1px; z-index: 2;
  background: linear-gradient(90deg, transparent, var(--border-strong) 30%, var(--p1) 50%, var(--border-strong) 70%, transparent);
  transform: scaleX(0); transform-origin: center; opacity: .0;
  transition: transform 1.1s var(--ease), opacity .8s ease;
}
.chapter.seam-in .chapter-seam { transform: scaleX(1); opacity: .7; }

/* ============================================================ NAV */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); display: flex; align-items: center; z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 12, 18, 0.7);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand .mk { width: 34px; height: auto; color: var(--text); flex: none; }
.brand b { font-weight: 700; letter-spacing: 0.15em; font-size: 13px; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: var(--fs-sec); color: var(--text-2); position: relative; transition: color .25s; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0; background: var(--text); transition: width .3s var(--ease); }
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 14px; }

.lang { display: inline-flex; font-family: var(--font-mono); font-size: var(--fs-mono); border: 1px solid var(--border-strong); border-radius: 999px; overflow: hidden; }
.lang button { padding: 6px 11px; color: var(--text-3); letter-spacing: 0.06em; transition: all .2s; }
.lang button.active { background: var(--text); color: var(--bg); }

.btn {
  display: inline-flex; align-items: center; gap: 9px; font-size: var(--fs-sec); font-weight: 600;
  padding: 10px 19px; border-radius: 8px; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .3s, background .25s, border-color .25s, color .25s;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(230,238,255,0.14); }
.btn-ghost { border: 1px solid var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--p1); color: var(--p1); }

.burger { display: none; width: 24px; height: 16px; position: relative; }
.burger span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--text); transition: .3s var(--ease); }
.burger span:nth-child(1){ top: 0 } .burger span:nth-child(2){ top: 7px } .burger span:nth-child(3){ top: 14px }
body.menu-open .burger span:nth-child(1){ top: 7px; transform: rotate(45deg) }
body.menu-open .burger span:nth-child(2){ opacity: 0 }
body.menu-open .burger span:nth-child(3){ top: 7px; transform: rotate(-45deg) }

/* ============================================================ HERO */
.hero { min-height: 100svh; display: flex; align-items: center; padding-top: var(--nav-h); position: relative; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(52% 48% at 72% 32%, var(--p-glow), transparent 70%), linear-gradient(180deg, transparent 52%, var(--bg) 97%);
}
.hero .wrap { z-index: 2; }
.hero-inner { max-width: 920px; }
.hero-status {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-caption); font-weight: 500; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--text-2);
  border: 1px solid var(--border); border-radius: 999px; padding: 7px 15px; margin-bottom: 28px;
  background: rgba(21,25,37,0.55);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #5FD08A; animation: pulse 2.4s infinite; }
@keyframes pulse { 0%{ box-shadow: 0 0 0 0 rgba(95,208,138,.5)} 70%{ box-shadow: 0 0 0 9px rgba(95,208,138,0)} 100%{ box-shadow:0 0 0 0 rgba(95,208,138,0)} }
.hero h1 { font-size: clamp(24px, 3.2vw, 38px); letter-spacing: -0.03em; line-height: 1.1; text-wrap: balance; }
.hero h1 .grad { background: linear-gradient(100deg, #fff, #94A0B6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin-top: 24px; font-size: clamp(15px, 1.7vw, 18px); }
.hero-cta { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

/* ============================================================ REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s } .reveal.d2 { transition-delay: .2s }
.reveal.d3 { transition-delay: .3s } .reveal.d4 { transition-delay: .42s }
.reveal-logo { opacity: 0; transform: translateY(18px) scale(.85); filter: blur(8px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s ease; }
.reveal-logo.in { opacity: 1; transform: none; filter: none; }

/* ============================================================ SECTION shell */
.block { padding: clamp(70px, 10vh, 128px) 0; }
.block-head { max-width: 800px; margin-bottom: 50px; }

/* Manifesto */
.manifesto .eyebrow { margin-bottom: 8px; }
.manifesto p { font-size: clamp(18px, 2vw, 23px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.5; max-width: 820px; color: var(--text); text-wrap: pretty; }
.manifesto p .mut { color: var(--text-3); }
.manifesto .lead { margin-top: 20px; line-height: 1.65; font-weight: 400; }

/* ---------- Company cards ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.card { background: var(--bg-1); padding: 30px 28px; position: relative; transition: background .35s var(--ease); min-height: 190px; }
.card:hover { background: var(--surface); }
.card .k { font-weight: 600; font-size: var(--fs-caption); color: var(--p1); letter-spacing: var(--track-caps); text-transform: uppercase; }
.card h3 { font-size: 17px; margin: 13px 0 9px; }
.card p { color: var(--text-2); font-size: var(--fs-sec); line-height: 1.58; }
.card::after { content: ''; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--p1); transition: width .4s var(--ease); }
.card:hover::after { width: 100%; }

/* ============================================================ PRODUCT */
.product { padding: clamp(20px,4vh,60px) 0 clamp(70px,10vh,120px); position: relative; overflow: hidden; }
.product::before { content: ''; position: absolute; z-index: 0; pointer-events: none; inset: 0; background: radial-gradient(46% 44% at 78% 10%, var(--p-glow), transparent 60%); }
.product .wrap { position: relative; z-index: 1; }
.product-cover { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 104px 0 56px; }
.product-logo-lg { width: clamp(84px, 9vw, 122px); height: auto; margin-bottom: 26px; border-radius: 24px; filter: drop-shadow(0 12px 44px var(--p-glow)); }
.product-name { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -0.03em; margin: 6px 0 15px; background: linear-gradient(100deg, #fff, var(--p1)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.product-tagline { max-width: 62ch; color: var(--text-2); font-size: clamp(15px, 1.7vw, 18px); line-height: 1.55; text-wrap: pretty; }
.product-meta-row { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 34px; }
.pm { display: flex; flex-direction: column; gap: 3px; }
.pm span { font-weight: 500; font-size: var(--fs-caption); color: var(--text-3); text-transform: uppercase; letter-spacing: var(--track-caps); }
.pm b { font-size: 15px; color: var(--text); font-weight: 600; }
.product-rule { font-size: clamp(16px, 1.9vw, 20px); font-weight: 500; letter-spacing: -0.02em; max-width: 64ch; margin: 8px 0 46px; padding-left: 20px; border-left: 2px solid var(--p1); color: var(--text); }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(38px, 5vw, 78px); align-items: start; }
.feat-list li { display: flex; gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--border); }
.feat-list li:last-child { border-bottom: none; }
.feat-list .n { font-family: var(--font-mono); color: var(--p1); font-size: var(--fs-mono); padding-top: 3px; min-width: 28px; }
.feat-list h4 { font-size: 16px; margin-bottom: 5px; font-weight: 600; }
.feat-list p { color: var(--text-2); font-size: var(--fs-sec); }

/* architecture */
.arch, .mosca { border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(180deg, var(--bg-1), var(--bg)); padding: 26px; }
.arch-head { margin-bottom: 16px; }
.chip { display: inline-block; font-family: var(--font-mono); font-size: var(--fs-caption); letter-spacing: 0.08em; text-transform: uppercase; color: var(--p1); border: 1px solid var(--p1); border-radius: 999px; padding: 4px 11px; opacity: .9; }
.node { display: flex; align-items: center; gap: 14px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); margin: 9px 0; }
.node b { font-weight: 600; color: var(--text); font-size: var(--fs-sec); }
.node small { color: var(--text-3); display: block; font-size: var(--fs-mono); }
.node .tag { margin-left: auto; font-family: var(--font-mono); font-size: 11px; padding: 3px 8px; border-radius: 5px; letter-spacing: 0.06em; border: 1px solid var(--p1); color: var(--p1); }
.node .tag.alt { border-color: #E0A64F; color: #E0A64F; }
.arch .link { text-align: center; color: var(--p1); opacity: .5; font-size: 14px; padding: 2px 0; }
.arch-note { color: var(--text-3); font-size: var(--fs-mono); margin-top: 15px; line-height: 1.55; }

/* ---------- Mosca chart ---------- */
.mosca-desc { color: var(--text-2); font-size: var(--fs-sec); margin-bottom: 16px; }
.formula { font-family: var(--font-mono); font-size: var(--fs-ter); color: var(--text-2); text-align: center; padding: 12px; border: 1px dashed var(--border-strong); border-radius: 10px; margin-bottom: 26px; line-height: 1.5; }
.formula b { color: var(--p1); }
.chart { display: grid; grid-template-columns: 150px 1fr; gap: 0 18px; }
.labels { display: grid; grid-template-rows: repeat(4, 26px); gap: 14px; align-items: center; }
.labels .lbl { font-size: var(--fs-ter); color: var(--text-2); }
.plot { position: relative; display: grid; grid-template-rows: repeat(4, 26px); gap: 14px; }
.track { height: 26px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.fill { height: 100%; width: 0; border-radius: 5px; background: linear-gradient(90deg, #3A4150, #5A6478); transition: width 1.3s var(--ease); }
.fill.risk { background: linear-gradient(90deg, var(--p2), var(--p1)); }
.qday { position: absolute; top: -12px; bottom: -12px; left: 62%; width: 2px; background: #E0459A; z-index: 3; }
.qday span { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 11px; color: #E0459A; white-space: nowrap; }
.chart-axis { display: flex; justify-content: space-between; margin-left: 168px; margin-top: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); letter-spacing: 0.06em; }
.mosca-note { color: var(--text-3); font-size: var(--fs-mono); margin-top: 18px; }

/* bins */
.bins-head { font-size: 20px; margin-top: 60px; margin-bottom: 0; }
.bins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-top: 22px; }
.bin { background: var(--bg-1); padding: 26px 24px; }
.bin h4 { font-size: 16px; margin: 0 0 8px; font-weight: 600; }
.bin p { color: var(--text-2); font-size: var(--fs-sec); }

/* ---------- Security ---------- */
.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sec-item { border: 1px solid var(--border); border-radius: 12px; padding: 22px; background: var(--bg-1); }
.sec-item .badge { font-weight: 600; font-size: var(--fs-caption); color: var(--p1); border: 1px solid var(--border-strong); border-radius: 6px; padding: 3px 9px; display: inline-block; margin-bottom: 13px; letter-spacing: var(--track-caps); text-transform: uppercase; }
.sec-item h4 { font-size: 15px; margin-bottom: 6px; font-weight: 600; }
.sec-item p { color: var(--text-2); font-size: var(--fs-sec); }
.law-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 32px; }
.law-title { color: var(--text-3); font-size: var(--fs-ter); }
.law { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--text-2); border: 1px solid var(--border); border-radius: 999px; padding: 7px 15px; }
.law b { color: var(--p1); }

/* ---------- Vision ---------- */
.growth { margin: 14px 0 8px; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(180deg, var(--bg-1), var(--bg)); padding: 18px 20px; overflow: hidden; }
#growth-svg { width: 100%; height: clamp(170px, 26vw, 300px); display: block; }
.gdot { opacity: 0; transition: opacity .5s ease; }
.gdot.on { opacity: 1; }
.gdot circle { fill: #fff; filter: drop-shadow(0 0 6px rgba(255,255,255,.6)); }
.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 22px; }
.phase { border-top: 2px solid var(--border); padding-top: 15px; }
.phase:nth-child(1){ border-top-color: #4FC2BF } .phase:nth-child(2){ border-top-color: #8FB2C9 }
.phase:nth-child(3){ border-top-color: #C77FB0 } .phase:nth-child(4){ border-top-color: #E0459A }
.phase .pk { font-weight: 600; font-size: var(--fs-caption); color: var(--text-3); letter-spacing: var(--track-caps); text-transform: uppercase; }
.phase h4 { font-size: 16px; margin: 6px 0 8px; font-weight: 600; }
.phase p { font-size: var(--fs-sec); color: var(--text-2); }
.future { margin-top: 44px; }
.future-lead { font-size: clamp(16px, 1.9vw, 22px); font-weight: 600; letter-spacing: -0.02em; color: var(--text); max-width: 46ch; margin: 0 auto 28px; text-align: center; line-height: 1.38; text-wrap: balance; }
.future-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.fut { border: 1px solid var(--border); border-radius: 14px; padding: 30px 28px; background: linear-gradient(180deg, var(--bg-1), var(--bg)); position: relative; overflow: hidden; }
.fut::before { content: ''; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--p1), transparent); opacity: .75; }
.fut-k { font-weight: 600; font-size: var(--fs-caption); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--p1); }
.fut h4 { font-size: 19px; font-weight: 600; margin: 11px 0 10px; letter-spacing: -0.01em; }
.fut p { font-size: var(--fs-sec); color: var(--text-2); line-height: 1.62; }
.invest { margin-top: 46px; }
.invest-head { font-size: 20px; margin-bottom: 18px; }
.invest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.inv { border: 1px solid var(--border); border-radius: 12px; padding: 24px; background: var(--bg-1); }
.inv h4 { font-size: 16px; margin-bottom: 8px; font-weight: 600; }
.inv p { font-size: var(--fs-sec); color: var(--text-2); }

/* ---------- CTA / form ---------- */
.cta { border: 1px solid var(--border); border-radius: 20px; padding: clamp(36px, 5vw, 64px); background: radial-gradient(80% 120% at 100% 0%, var(--p-glow), transparent 60%), var(--bg-1); text-align: center; }
.cta-h { font-size: clamp(20px, 2.4vw, 27px); margin-top: 15px; text-wrap: balance; }
.cta p { color: var(--text-2); max-width: 56ch; margin: 16px auto 0; }
.contact-form { max-width: 520px; margin: 30px auto 0; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.contact-form input, .contact-form textarea { width: 100%; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 9px; padding: 13px 15px; color: var(--text); font-family: inherit; font-size: 15px; transition: border-color .2s; resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-3); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--p1); }
.honey { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.contact-form button { margin-top: 4px; justify-content: center; }
.form-note { font-size: var(--fs-mono); color: var(--text-3); text-align: center; margin-top: 2px; }
.cta-or { margin-top: 22px; font-size: var(--fs-sec); color: var(--text-2); line-height: 1.9; }
.cta-or a { color: var(--p1); font-weight: 600; white-space: nowrap; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 60px 0 36px; background: var(--bg-1); }
.footer-top { display: grid; grid-template-columns: 1.7fr .8fr .8fr 1fr; gap: 36px; }
.footer .brand { margin-bottom: 16px; }
.footer p.muted { color: var(--text-3); font-size: var(--fs-ter); max-width: 40ch; }
.footer h5 { font-weight: 600; font-size: var(--fs-caption); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--text-2); margin-bottom: 14px; }
.footer li { padding: 5px 0; }
.footer li a { color: var(--text-3); font-size: var(--fs-ter); }
.footer li a:hover { color: var(--text); }
.footer-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); font-size: var(--fs-mono); color: var(--text-3); }
.footer-legal b { color: var(--text-2); font-weight: 600; }
.footer-bottom { margin-top: 20px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--text-3); font-size: var(--fs-mono); }

/* ---------- Progress ---------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: linear-gradient(90deg, #4FC2BF, #E0459A); z-index: 200; }

/* ---------- Mobile menu ---------- */
.mobile-menu { position: fixed; inset: var(--nav-h) 0 0 0; background: var(--bg); z-index: 90; display: none; flex-direction: column; padding: 28px var(--gutter); gap: 4px; }
.mobile-menu a { font-size: 20px; padding: 15px 0; border-bottom: 1px solid var(--border); color: var(--text); }
body.menu-open { overflow: hidden; }
body.menu-open .mobile-menu { display: flex; }

/* ---------- Preloader (расшифровка отпечатка) ---------- */
#preloader { position: fixed; inset: 0; z-index: 9999; background: var(--bg); display: flex; align-items: center; justify-content: center; transition: opacity .7s ease, visibility .7s; animation: plsafe .1s linear 8s forwards; }
@keyframes plsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
body.loaded #preloader { opacity: 0; visibility: hidden; pointer-events: none; }
.pl-inner { text-align: center; width: min(90%, 440px); }
.pl-emblem { width: 150px; height: auto; margin: 0 auto 22px; animation: plpulse 2.4s ease-in-out infinite; }
.pl-word, .pl-word-sub { opacity: 0; transition: opacity .45s ease; }
html.fonts-in .pl-word, html.fonts-in .pl-word-sub { opacity: 1; }
.pl-word { font-family: 'Montserrat', Inter, sans-serif; font-size: clamp(24px, 3.2vw, 34px); font-weight: 300; letter-spacing: 0.4em; margin: 0 0 5px 0.4em; white-space: nowrap; }
.pl-word span { position: relative; background: linear-gradient(90deg, #FFFFFF 10%, #D8DFEC 55%, #9AA6C2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pl-dot { position: absolute; left: 0.34em; bottom: 0.16em; width: 0.13em; height: 0.13em; border-radius: 50%; background: #7E86F0; box-shadow: 0 0 0.16em 0.03em rgba(126,150,240,0.8); }
.pl-word-sub { font-family: 'Montserrat', Inter, sans-serif; font-size: clamp(12px, 1.7vw, 15px); font-weight: 300; letter-spacing: 0.62em; margin: 0 0 26px 0.62em; white-space: nowrap; background: linear-gradient(90deg, #3E86F0, #9A4CE8); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes plpulse { 0%,100%{ opacity:.65 } 50%{ opacity:1 } }
.pl-fp { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.2em; color: #5FD0CD; margin-bottom: 15px; min-height: 18px; white-space: nowrap; overflow: hidden; }
.pl-label { font-family: var(--font-mono); font-size: var(--fs-caption); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); display: flex; align-items: center; justify-content: center; gap: 8px; }
.pl-caret { color: #5FD0CD; }
#preloader.done .pl-caret, #preloader.done .pl-fp { color: #5FD08A; }
.pl-bar { margin: 20px auto 0; width: 220px; max-width: 70%; height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.pl-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #4FC2BF, #E0459A); transition: width .25s linear; }

/* ---------- Void (пауза между разделами) ---------- */
.void { position: relative; height: clamp(84px, 14vh, 140px); }
.void-lg { height: clamp(120px, 22vh, 230px); }
.void span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 1px; height: 44px; background: linear-gradient(180deg, transparent, var(--border-strong), transparent); }
.void span::after { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); box-shadow: 0 0 12px rgba(150,170,220,.35); }

/* ---------- Form paused / consent ---------- */
.form-paused { max-width: 560px; margin: 26px auto 0; font-size: var(--fs-ter); line-height: 1.55; color: var(--text-2); background: rgba(224,166,79,0.06); border: 1px solid rgba(224,166,79,0.28); border-radius: 10px; padding: 14px 18px; text-align: left; }
.contact-form.is-disabled { opacity: .5; pointer-events: none; filter: grayscale(.15); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-mono); color: var(--text-3); line-height: 1.5; text-align: left; }
.consent input { margin-top: 3px; width: 15px; height: 15px; flex: none; accent-color: var(--p1); }
.consent a { color: var(--p1); }
.contact-form button[disabled] { cursor: not-allowed; }
.footer-bottom a { color: var(--text-3); }
.footer-bottom a:hover { color: var(--text); }

/* ============================================================ RESPONSIVE */
@media (max-width: 980px) {
  .grid-cards, .bins, .invest-grid, .phases { grid-template-columns: repeat(2, 1fr); }
  .sec-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .nav .btn { display: none; } /* CTA доступна из меню и секции контактов */
  .nav-right { gap: 12px; }
  .brand-tail { display: none; } /* на узких экранах — только AEGIS */
  .grid-cards, .bins, .sec-grid, .invest-grid, .phases, .future-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .chart { grid-template-columns: 104px 1fr; }
  .chart-axis { margin-left: 122px; }
  /* двухстрочные подписи классов данных */
  .labels, .plot { grid-template-rows: repeat(4, 38px); gap: 12px; }
  .track { height: 38px; }
  .labels .lbl { font-size: 12px; line-height: 1.25; }
}

[hidden] { display: none !important; }
.center { text-align: center; }
