/* =========================================================
   KARDIOSPEC — premium landing design system
   3 темы (Dark / Light / Sepia) · 4 языка (RU/EN/ZH/AR + RTL)
   ========================================================= */

/* ---------- Tokens · base ---------- */
:root {
  /* типографика */
  --font-display: "Cormorant Garamond", "PT Serif", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  /* спейсинг */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  /* радиусы */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-2xl: 32px;

  /* кривые */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* layout */
  --container: 1240px;
  --nav-h: 72px;
}

/* ---------- Темы ---------- */

/* Dark (default · клинический премиум) */
:root,
[data-theme="dark"] {
  --bg:           #0a0e1a;
  --bg-elev:      #111827;
  --bg-elev-2:    #1a2235;
  --bg-glass:     rgba(17, 24, 39, 0.72);
  --bg-overlay:   rgba(10, 14, 26, 0.92);

  --text:         #e6e9ef;
  --text-dim:     #9ca3af;
  --text-muted:   #6b7280;

  --border:       rgba(255, 255, 255, 0.08);
  --border-strong:rgba(255, 255, 255, 0.16);

  --accent:       #00d4ff;
  --accent-soft:  rgba(0, 212, 255, 0.12);
  --accent-h:     #4ae3ff;

  --signal-red:   #ff3b6b;
  --signal-amber: #ffc857;
  --signal-green: #2dd4a0;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.25);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.5);

  --logo-filter: none;
}

[data-theme="light"] {
  --bg:           #f7f8fb;
  --bg-elev:      #ffffff;
  --bg-elev-2:    #eef2f7;
  --bg-glass:     rgba(255, 255, 255, 0.82);
  --bg-overlay:   rgba(247, 248, 251, 0.94);

  --text:         #0f172a;
  --text-dim:     #475569;
  --text-muted:   #64748b;

  --border:       rgba(15, 23, 42, 0.08);
  --border-strong:rgba(15, 23, 42, 0.18);

  --accent:       #0070b8;
  --accent-soft:  rgba(0, 112, 184, 0.10);
  --accent-h:     #0086d9;

  --signal-red:   #d8265b;
  --signal-amber: #c47900;
  --signal-green: #058a5d;

  --shadow-sm: 0 1px 4px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.12);

  --logo-filter: invert(1);
}

[data-theme="sepia"] {
  --bg:           #f4ecd9;
  --bg-elev:      #fbf5e6;
  --bg-elev-2:    #ead9b8;
  --bg-glass:     rgba(251, 245, 230, 0.85);
  --bg-overlay:   rgba(244, 236, 217, 0.94);

  --text:         #3b2c1a;
  --text-dim:     #6b5638;
  --text-muted:   #8a7250;

  --border:       rgba(59, 44, 26, 0.12);
  --border-strong:rgba(59, 44, 26, 0.22);

  --accent:       #8b5a2b;
  --accent-soft:  rgba(139, 90, 43, 0.10);
  --accent-h:     #a36c34;

  --signal-red:   #a8324d;
  --signal-amber: #a86800;
  --signal-green: #2e6b3f;

  --shadow-sm: 0 1px 4px rgba(59, 44, 26, 0.08);
  --shadow-md: 0 8px 24px rgba(59, 44, 26, 0.12);
  --shadow-lg: 0 24px 64px rgba(59, 44, 26, 0.16);

  --logo-filter: sepia(0.3) saturate(1.2);
}

/* ---------- Reset / база ---------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  font-feature-settings: "ss01", "cv11", "kern";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

[dir="rtl"] body { font-family: "Cairo", var(--font-sans); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { font-family: "Cairo", var(--font-display); }

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

section.section {
  padding: var(--sp-10) 0;
  position: relative;
}
section.section.compact { padding: var(--sp-9) 0; }

.section-head { margin-bottom: var(--sp-8); max-width: 880px; }
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
  font-weight: 500;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.015em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: var(--sp-4);
}
.section-title em { font-style: italic; color: var(--accent); }
.section-lead {
  font-size: 19px;
  color: var(--text-dim);
  max-width: 720px;
  line-height: 1.6;
}

/* ---------- NAV ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--bg-overlay);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: background 0.3s var(--ease);
}
.nav-inner {
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nav-brand .mark {
  width: 28px; height: 28px;
  color: var(--accent);
}
.nav-brand .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 99px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  margin-left: auto;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover { color: var(--text); border-color: var(--accent); }

.nav-tools {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 12px 22px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.005em;
  transition: all 0.25s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #001520;
  box-shadow: 0 6px 24px rgba(0,212,255,0.25);
}
.btn-primary:hover { background: var(--accent-h); transform: translateY(-1px); color: #001520; }
[data-theme="light"] .btn-primary { color: #ffffff; box-shadow: 0 6px 24px rgba(0,112,184,0.25); }
[data-theme="light"] .btn-primary:hover { color: #ffffff; }
[data-theme="sepia"] .btn-primary { color: #fdf6e3; box-shadow: 0 6px 24px rgba(139,90,43,0.25); }
[data-theme="sepia"] .btn-primary:hover { color: #fdf6e3; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-icon {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.btn-icon:hover { color: var(--accent); border-color: var(--accent); }
.btn-icon svg { width: 16px; height: 16px; }

/* dropdown (lang + theme) */
.menu {
  position: relative;
}
.menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.menu-trigger:hover { color: var(--accent); border-color: var(--accent); }
.menu-trigger svg { width: 12px; height: 12px; }
.menu-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  min-width: 160px;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.2s var(--ease);
  z-index: 200;
}
.menu.open .menu-list { opacity: 1; visibility: visible; transform: translateY(0); }
.menu-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--text);
  text-align: start;
}
.menu-list button:hover { background: var(--accent-soft); color: var(--accent); }
.menu-list button.active { color: var(--accent); }
.menu-list button.active::after { content: "✓"; margin-inline-start: auto; }
.menu-list button .code {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  background: var(--bg-elev-2);
  padding: 2px 7px;
  border-radius: 99px;
  margin-inline-start: 8px;
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  padding: calc(var(--nav-h) + var(--sp-10)) 0 var(--sp-10);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 80% 10%, var(--accent-soft) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 10% 90%, rgba(45,212,160,0.06) 0%, transparent 60%);
  z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 7px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: var(--sp-5);
}
.hero-tag .dot {
  width: 7px; height: 7px;
  background: var(--signal-green);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--signal-green);
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.25); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(44px, 6.5vw, 84px);
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin-bottom: var(--sp-5);
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-lead {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: var(--sp-7);
  max-width: 580px;
}
.hero-cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, var(--accent-soft) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  z-index: -1;
}
.ecg-wave {
  width: 100%;
  max-width: 520px;
  height: auto;
  filter: drop-shadow(0 0 24px rgba(0,212,255,0.35));
}
.ecg-wave path.trace {
  stroke: var(--accent);
  stroke-width: 2.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: trace-in 3.2s var(--ease-out) 0.4s forwards,
             trace-loop 6s linear 3.6s infinite;
}
@keyframes trace-in {
  to { stroke-dashoffset: 0; }
}
@keyframes trace-loop {
  0%   { filter: drop-shadow(0 0 8px rgba(0,212,255,0.4)); }
  50%  { filter: drop-shadow(0 0 24px rgba(0,212,255,0.7)); }
  100% { filter: drop-shadow(0 0 8px rgba(0,212,255,0.4)); }
}

.hero-stats {
  margin-top: var(--sp-9);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  border-top: 1px solid var(--border);
  padding-top: var(--sp-7);
}
.hero-stat .val {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.5vw, 44px);
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 4px;
}
.hero-stat .val em { color: var(--accent); font-style: normal; }
.hero-stat .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ---------- CARDS / GRIDS ---------- */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.card.accent { border-color: var(--accent-soft); }
.card.accent:hover { border-color: var(--accent); }

.card-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: var(--sp-4);
}
.card-icon svg { width: 22px; height: 22px; }

.card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: var(--sp-2);
}
.card h4 {
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}
.card p { color: var(--text-dim); font-size: 15px; line-height: 1.55; }

/* Stat card */
.stat-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: all 0.3s var(--ease);
}
.stat-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.stat-card .stat-val {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 48px;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}
.stat-card .stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}
.stat-card .stat-note { font-size: 14px; color: var(--text-dim); line-height: 1.5; }

.stat-card.red .stat-val { color: var(--signal-red); }
.stat-card.green .stat-val { color: var(--signal-green); }
.stat-card.amber .stat-val { color: var(--signal-amber); }

/* ---------- Feature list ---------- */
.feature-list { list-style: none; }
.feature-list li {
  padding: 14px 0 14px 30px;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  color: var(--text);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 22px;
  width: 14px; height: 2px;
  background: var(--accent);
  border-radius: 99px;
}
.feature-list li strong { color: var(--accent); font-weight: 600; }
[dir="rtl"] .feature-list li { padding: 14px 30px 14px 0; }

/* ---------- Flow diagram (dual-AI) ---------- */
.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--sp-5);
  margin: var(--sp-7) 0;
  align-items: stretch;
}
.flow-engine {
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
  background: var(--bg-elev);
  text-align: center;
}
.flow-engine.engine-a { border-color: var(--signal-green); }
.flow-engine.engine-b { border-color: var(--signal-red); }
.flow-engine .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-2);
}
.flow-engine .name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--sp-2);
}
.flow-engine .desc { font-size: 14px; color: var(--text-dim); }
.flow-mid {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}
.flow-mid .consensus {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  line-height: 1.1;
  position: relative;
}
.flow-mid .consensus::before,
.flow-mid .consensus::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.flow-mid .consensus::before { left: -28px; }
.flow-mid .consensus::after { right: -28px; }

.verdicts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin-top: var(--sp-6); }
.verdict {
  padding: var(--sp-5);
  border-radius: var(--r-md);
  background: var(--bg-elev);
  border: 1px solid var(--border);
}
.verdict-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.verdict-badge.consensus { background: rgba(45,212,160,0.12); color: var(--signal-green); border: 1px solid var(--signal-green); }
.verdict-badge.caution   { background: rgba(255,200,87,0.12); color: var(--signal-amber); border: 1px solid var(--signal-amber); }
.verdict-badge.alert     { background: rgba(255,59,107,0.12); color: var(--signal-red); border: 1px solid var(--signal-red); }
.verdict h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--sp-2);
}
.verdict p { color: var(--text-dim); font-size: 14px; line-height: 1.5; }

/* ---------- Evidence row ---------- */
.evidence-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-7);
  padding: var(--sp-6);
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.evidence-row .ev .val {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 44px;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.evidence-row .ev .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-md); }
table.metric {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-elev);
}
table.metric th, table.metric td {
  padding: 14px 18px;
  text-align: start;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}
table.metric tr:last-child td { border-bottom: 0; }
table.metric th {
  background: var(--bg-elev-2);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
table.metric td.good { color: var(--signal-green); font-weight: 600; }
table.metric td.warn { color: var(--signal-red); font-weight: 600; }
table.metric td.partial { color: var(--signal-amber); font-weight: 600; }
table.metric .self { background: var(--accent-soft); font-weight: 600; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.tier {
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  transition: all 0.3s var(--ease);
}
.tier:hover { transform: translateY(-2px); border-color: var(--accent); }
.tier.featured { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--bg-elev) 60%); }
.tier .name {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}
.tier .price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 42px;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}
.tier .price .unit { font-size: 14px; color: var(--text-dim); font-family: var(--font-sans); }
.tier .vol { font-size: 14px; color: var(--text-dim); margin-top: var(--sp-2); }

/* ---------- Roadmap ---------- */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.road-year {
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg-elev);
}
.road-year .year {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}
.road-year h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: var(--sp-4);
}

/* ---------- Ask ---------- */
.ask-block {
  background: linear-gradient(135deg, var(--accent-soft), transparent 80%);
  border: 1px solid var(--accent);
  border-radius: var(--r-2xl);
  padding: var(--sp-8);
  text-align: center;
}
.ask-block .amount {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(56px, 9vw, 112px);
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
}
.ask-block .label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: var(--sp-3);
}
.ask-block .detail { font-size: 16px; color: var(--text-dim); margin-top: var(--sp-4); }

.use-of-funds {
  margin-top: var(--sp-7);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}
.uof {
  padding: var(--sp-5);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  border-top: 3px solid var(--accent);
}
.uof .pct {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 36px;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.uof .lbl { font-size: 13px; color: var(--text-dim); margin-top: var(--sp-2); line-height: 1.4; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--sp-7); align-items: start; }
.contact-list { display: grid; gap: var(--sp-4); }
.contact-item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all 0.25s var(--ease);
}
.contact-item:hover { border-color: var(--accent); color: var(--accent); }
.contact-item .ic {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--r-sm);
  flex-shrink: 0;
}
.contact-item .ic svg { width: 20px; height: 20px; }
.contact-item .meta .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 3px;
}
.contact-item .meta .val { font-size: 16px; font-weight: 500; color: var(--text); }

.contact-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
}
.contact-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  margin-bottom: var(--sp-3);
}
.contact-card .role {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-4);
}
.contact-card p { color: var(--text-dim); font-size: 15px; line-height: 1.6; margin-bottom: var(--sp-4); }

/* ---------- Footer ---------- */
.foot {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  padding: var(--sp-8) 0 var(--sp-6);
  font-size: 14px;
  color: var(--text-dim);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-7);
}
.foot h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: var(--sp-3);
}
.foot ul { list-style: none; }
.foot ul li { margin-bottom: var(--sp-2); }
.foot a:hover { color: var(--accent); }
.foot-disc {
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}
.foot-disc strong { color: var(--text-dim); }

/* ---------- Sticky 152-ФЗ bar ---------- */
.legal-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 10px var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  font-size: 12px;
  color: var(--text-dim);
  z-index: 90;
  transform: translateY(0);
  transition: transform 0.3s var(--ease);
}
.legal-bar.hidden { transform: translateY(110%); }
.legal-bar .txt { flex: 1; line-height: 1.5; }
.legal-bar .btn-sm { font-size: 12px; padding: 6px 12px; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .hero-visual { max-width: 480px; margin-inline: auto; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .pricing { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .roadmap, .verdicts, .evidence-row, .use-of-funds, .grid-3, .contact-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow-mid .consensus::before, .flow-mid .consensus::after { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section.section { padding: var(--sp-8) 0; }
  .hero-stats, .grid-4, .pricing, .grid-2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-inner { gap: var(--sp-2); padding: 0 var(--sp-3); }
  .nav-brand .tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
