/* ============================================================================
   cPlatform — инвест-презентация. Дизайн-система (dark, премиальная).
   Один акцент (codei red) + палитра роста для диаграмм. Fluid-типографика,
   бенто-сетки, сдержанная анимация. Контраст ≥4.5:1, focus-состояния,
   тач-цели ≥44px, prefers-reduced-motion.
   ========================================================================== */

:root {
  /* фон / поверхности */
  --bg: #0a0b0f;
  --bg-soft: #0e1016;
  --surface: #14161d;
  --surface-2: #1b1e28;
  --surface-3: #232633;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* текст */
  --text: #f4f5f8;
  --text-muted: #a6adbb;
  --text-dim: #8a92a3;   /* поднят до ≥4.5:1 (WCAG AA) для мелких подписей */

  /* акценты */
  --accent: #ef4b34;      /* codei red */
  --accent-deep: #d83a2e;
  --accent-soft: rgba(239, 75, 52, 0.14);
  --growth: #34d399;      /* рост / положительное */
  --blue: #60a5fa;
  --amber: #f5b942;
  --violet: #a78bfa;

  /* статусы */
  --st-idea: #6f7788;
  --st-mvp: #f5b942;
  --st-live: #34d399;
  --st-scaling: #60a5fa;
  --st-paused: #6f7788;

  /* геометрия */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --maxw: 1180px;
  --gap: clamp(1rem, 2.5vw, 2rem);

  --shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 30px 80px -24px rgba(0, 0, 0, 0.75);

  --font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; } /* якоря не прячутся под sticky-шапку */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* фоновое свечение */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60vw 50vh at 78% -8%, rgba(239, 75, 52, 0.16), transparent 60%),
    radial-gradient(50vw 40vh at 8% 4%, rgba(96, 165, 250, 0.10), transparent 55%);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { line-height: 1.12; margin: 0; letter-spacing: -0.02em; font-weight: 700; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── контейнер / секции ─────────────────────────────────────────────────── */
.wrap { width: min(var(--maxw), 100% - 2.4rem); margin-inline: auto; }

.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  max-width: 20ch;
}
.section-lead {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  max-width: 62ch;
  margin-top: 1rem;
}

/* ── header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 11, 15, 0.72);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.05rem; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.04em;
  line-height: 1; box-shadow: 0 6px 18px -6px var(--accent-deep);
}
.nav { display: flex; align-items: center; gap: 0.4rem; }
.nav a {
  color: var(--text-muted);
  padding: 0.55rem 0.8rem;
  border-radius: var(--r-sm);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.18s, background 0.18s;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }

/* мобильное меню (без JS, на <details>) */
.nav-mobile { display: none; position: relative; }
.nav-mobile > summary {
  list-style: none; cursor: pointer; width: 40px; height: 40px; border-radius: var(--r-sm);
  display: grid; place-items: center; border: 1px solid var(--border-strong); background: var(--surface-2);
}
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-mobile .burger, .nav-mobile .burger::before, .nav-mobile .burger::after {
  width: 18px; height: 2px; background: var(--text); border-radius: 2px;
}
.nav-mobile .burger { position: relative; }
.nav-mobile .burger::before, .nav-mobile .burger::after { content: ""; position: absolute; left: 0; }
.nav-mobile .burger::before { top: -6px; }
.nav-mobile .burger::after { top: 6px; }
.nav-mobile__sheet {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 190px; z-index: 60;
  display: grid; gap: 0.2rem; padding: 0.5rem;
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--r); box-shadow: var(--shadow-lg);
}
.nav-mobile__sheet a { padding: 0.65rem 0.7rem; border-radius: var(--r-sm); color: var(--text-muted); font-size: 0.95rem; }
.nav-mobile__sheet a:hover { background: var(--surface-3); color: var(--text); }

@media (max-width: 820px) {
  .nav--links { display: none; }
  .nav-mobile { display: block; }
}

.lang {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  overflow: hidden;
}
.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 40px;
  transition: color 0.18s, background 0.18s;
}
.lang button[aria-current="true"] { background: var(--accent); color: #fff; }
.lang button:hover:not([aria-current="true"]) { color: var(--text); }

/* ── кнопки ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  min-height: 46px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, border-color 0.18s;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow: 0 12px 30px -10px var(--accent-deep);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px var(--accent-deep); }
.btn--ghost { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--surface-3); }
@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
}

/* ── hero ───────────────────────────────────────────────────────────────── */
.hero { padding: clamp(3.5rem, 9vw, 7.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.82rem; color: var(--text-muted); font-weight: 500;
  background: var(--surface);
}
.hero__eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--growth); box-shadow: 0 0 0 4px rgba(52,211,153,0.18); }
.hero h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  margin: 1.4rem 0 0;
  max-width: 16ch;
  letter-spacing: -0.03em;
}
.hero h1 .accent { color: transparent; background: linear-gradient(120deg, var(--accent), var(--amber)); -webkit-background-clip: text; background-clip: text; }
.hero__lead { font-size: clamp(1.05rem, 1.7vw, 1.32rem); color: var(--text-muted); max-width: 56ch; margin: 1.5rem 0 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.hero__stat { background: var(--surface); padding: 1.5rem 1.4rem; }
.hero__stat .num { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.hero__stat .num.grow { color: var(--growth); }
.hero__stat .num__u { font-size: 0.46em; font-weight: 600; color: var(--text-muted); margin-left: 0.18em; letter-spacing: 0; font-variant-numeric: normal; white-space: nowrap; }
.hero__stat .lbl { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.35rem; }
/* маркер «прогноз» на проекционных плитках — чтобы инвестор не читал прогноз как факт */
.hero__stat-tag {
  display: inline-block; vertical-align: 1px;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--growth); background: rgba(52, 211, 153, 0.12);
  border-radius: 999px; padding: 0.05rem 0.45rem; margin-left: 0.15rem; white-space: nowrap;
}

/* ── карточная сетка ────────────────────────────────────────────────────── */
.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.card--hover:hover { border-color: var(--border-strong); transform: translateY(-4px); background: var(--surface-2); }
@media (prefers-reduced-motion: reduce) { .card--hover:hover { transform: none; } }

.card__icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 1.1rem;
  background: var(--accent-soft); color: var(--accent);
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.22rem; margin-bottom: 0.6rem; }
.card p { color: var(--text-muted); margin: 0; font-size: 0.98rem; }

.stat-big { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-big.grow { color: var(--growth); }
.stat-big.accent { color: var(--accent); }

/* ── схема холдинга ─────────────────────────────────────────────────────── */
.holding {
  display: grid;
  gap: 1.2rem;
}
.holding__row { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.entity {
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  position: relative;
}
.entity__badge { font-family: var(--mono); font-size: 0.78rem; color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase; }
.entity h3 { font-size: 1.5rem; margin: 0.4rem 0 0.5rem; }
.entity__role { color: var(--text-muted); font-size: 0.98rem; }
.entity__fns { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; gap: 0.5rem; }
.entity__fns li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; color: var(--text-muted); }
.entity__fns li::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; margin-top: 0.5rem; border-radius: 50%; background: var(--accent); }

.holding__flow {
  text-align: center; color: var(--text-dim);
  font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
  position: relative;
}
.holding__flow span { background: var(--bg); padding: 0 1rem; position: relative; z-index: 1; }
.holding__flow::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--border); }

.holding__projects {
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  background: var(--surface);
  text-align: center;
}
.holding__projects .chips { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 1rem; }

/* головные компании: art-sys (ЧТО, красный) vs codei (КАК, синий) */
.entity__head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.entity--art-sys { background: linear-gradient(180deg, rgba(239, 75, 52, 0.09), var(--surface)); }
.entity--codei { background: linear-gradient(180deg, rgba(96, 165, 250, 0.09), var(--surface)); }
.entity__badge--codei { color: var(--blue); }
.entity__wh {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--border-strong); border-radius: 999px; padding: 0.15rem 0.6rem;
}
.entity__wh--codei { color: var(--blue); }

/* вертикальный «конвейер» холдинг → платформа → проекты */
.holding__pipe { width: 2px; height: 26px; margin: 0 auto; background: linear-gradient(var(--border-strong), var(--border)); }
.holding__platform {
  text-align: center; display: grid; gap: 0.3rem; justify-items: center;
  border: 1px solid var(--border-strong); border-radius: var(--r-lg);
  padding: 1.2rem 1.5rem; background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.holding__platform-badge { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.holding__platform strong { font-size: 1.15rem; }
.holding__platform-sub { color: var(--text-muted); font-size: 0.88rem; font-family: var(--mono); }

.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.75rem; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 0.82rem; color: var(--text-muted);
}

/* ── движок работает (полоса фактов) ────────────────────────────────────── */
.engine-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  margin-top: 2.2rem;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.engine-stat { background: var(--surface); padding: 1.6rem 1.5rem; }
.engine-stat__num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; color: var(--growth); font-variant-numeric: tabular-nums; line-height: 1; }
.engine-stat__lbl { color: var(--text-muted); font-size: 0.92rem; margin-top: 0.6rem; }

/* ── диверсификация ─────────────────────────────────────────────────────── */
.sector { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.5rem; background: var(--surface); }
.sector__head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.sector__dot { width: 12px; height: 12px; border-radius: 4px; flex: 0 0 auto; }
.sector__head h3 { font-size: 1.15rem; }
.sector__count { margin-left: auto; font-family: var(--mono); font-size: 0.85rem; color: var(--text-dim); }
.sector__desc { color: var(--text-muted); font-size: 0.92rem; margin: 0 0 1rem; }
.sector__projects { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.sector__projects a { font-size: 0.85rem; }

/* ── KPI / диаграммы ────────────────────────────────────────────────────── */
.charts { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.chart-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.4rem 1.5rem 1.2rem; }
.chart-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.4rem; }
.chart-card__title { font-size: 1.05rem; font-weight: 650; }
.chart-card__unit { font-size: 0.8rem; color: var(--text-dim); font-family: var(--mono); }
.chart-card__last { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.5rem; margin-bottom: 0.6rem; }
/* значение не рвём (иначе «€/год» ломается после «/» — UAX#14 SY); при нехватке
   места на новую строку уходит горизонт-тег, а не середина числа */
.chart-card__last .v { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart-card__last .delta { font-size: 0.85rem; font-weight: 700; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.chart-card__last .delta--up { color: var(--growth); }
.chart-card__last .delta--down { color: var(--accent); }
.chart-card__last .horizon-tag { margin-left: auto; font-size: 0.8rem; color: var(--text-dim); font-family: var(--mono); }
.chart-svg { width: 100%; height: 190px; display: block; overflow: visible; }
.chart-svg .grid-line { stroke: var(--border); stroke-width: 1; }
.chart-svg .axis-label { fill: var(--text-dim); font-size: 12px; font-family: var(--mono); }
.chart-svg .axis-label--y { font-size: 11px; opacity: 0.85; }
.chart-svg .dot { transition: r 0.15s; }
.chart-note {
  margin-top: 0.75rem; font-size: 0.8rem; color: var(--text-dim);
  border-top: 1px solid var(--border); padding-top: 0.7rem; min-height: 1.2em;
}

.disclaimer { color: var(--text-dim); font-size: 0.82rem; margin-top: 1.4rem; max-width: 70ch; }

/* ── проекты (сетка) ────────────────────────────────────────────────────── */
.projects-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.pcard {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
  height: 100%;
}
.pcard:hover { border-color: var(--border-strong); transform: translateY(-4px); background: var(--surface-2); }
@media (prefers-reduced-motion: reduce) { .pcard:hover { transform: none; } }
.pcard__top { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-bottom: 0.9rem; }
.pcard__sector { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: var(--text-dim); }
.pcard__sector .d { width: 8px; height: 8px; border-radius: 3px; }
.pcard h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.pcard__tagline { color: var(--text-muted); font-size: 0.92rem; margin: 0 0 1.1rem; flex: 1; }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-top: auto; }
.pcard__arrow { color: var(--accent); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.3rem; }

.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.28rem 0.65rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600;
  border: 1px solid var(--border-strong);
}
.badge .d { width: 7px; height: 7px; border-radius: 50%; }
.badge--idea .d { background: var(--st-idea); } .badge--idea { color: var(--st-idea); }
.badge--mvp .d { background: var(--st-mvp); } .badge--mvp { color: var(--st-mvp); }
.badge--live .d { background: var(--st-live); } .badge--live { color: var(--st-live); }
.badge--scaling .d { background: var(--st-scaling); } .badge--scaling { color: var(--st-scaling); }
.badge--paused .d { background: var(--st-paused); } .badge--paused { color: var(--st-paused); }

.readiness { margin-top: 0.9rem; }
.readiness__bar { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.readiness__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--amber)); }
.readiness__label { display: flex; justify-content: space-between; font-size: 0.76rem; color: var(--text-dim); margin-top: 0.35rem; }

/* ── страница проекта ───────────────────────────────────────────────────── */
.pd-hero { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.backlink { color: var(--text-muted); font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 1.4rem; }
.backlink:hover { color: var(--text); }
.pd-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.pd-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 18ch; }
.pd-hero__tagline { color: var(--text-muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 60ch; margin-top: 1rem; }
.pd-hero__facts { display: flex; flex-wrap: wrap; gap: 1.8rem; margin-top: 1.6rem; }
.fact .k { font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.fact .v { font-size: 1.15rem; font-weight: 700; margin-top: 0.2rem; }

.pd-grid { display: grid; gap: var(--gap); grid-template-columns: 1.6fr 1fr; align-items: start; }
@media (max-width: 900px) { .pd-grid { grid-template-columns: 1fr; } }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(1.4rem, 2.5vw, 2rem); }
.panel + .panel { margin-top: var(--gap); }
.panel h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.panel p { color: var(--text-muted); }
.prose p { white-space: pre-line; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem 1.2rem; font-size: 0.95rem; }
.kv dt { color: var(--text-dim); }
.kv dd { margin: 0; font-variant-numeric: tabular-nums; }

.comp { border-top: 1px solid var(--border); padding: 1rem 0; }
.comp:first-of-type { border-top: 0; padding-top: 0; }
.comp__name { font-weight: 650; display: flex; align-items: center; gap: 0.5rem; }
.comp__note { color: var(--text-muted); font-size: 0.9rem; margin: 0.3rem 0; }
.comp__edge { color: var(--growth); font-size: 0.9rem; display: flex; gap: 0.45rem; }
.comp__edge::before { content: "▸"; }

.risk { display: flex; gap: 0.9rem; padding: 0.9rem 0; border-top: 1px solid var(--border); }
.risk:first-of-type { border-top: 0; }
.risk__lvl { flex: 0 0 auto; align-self: flex-start; }
.risk__body strong { display: block; margin-bottom: 0.2rem; }
.risk__body span { color: var(--text-muted); font-size: 0.9rem; }
.lvl { display: inline-block; min-width: 74px; text-align: center; font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.lvl--low { background: rgba(52,211,153,0.14); color: var(--growth); }
.lvl--medium { background: rgba(245,185,66,0.14); color: var(--amber); }
.lvl--high { background: rgba(239,75,52,0.16); color: var(--accent); }

.feat-list { display: grid; gap: 1rem; }
.feat { display: flex; gap: 0.8rem; }
.feat__ic { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.feat__ic svg { width: 18px; height: 18px; }
.feat strong { display: block; }
.feat span { color: var(--text-muted); font-size: 0.9rem; }

/* ── команда / раунд (The Ask) ──────────────────────────────────────────── */
.nav a.nav__cta { color: var(--accent); font-weight: 600; }
.nav a.nav__cta:hover { color: var(--accent); background: var(--accent-soft); }

.prose-block { max-width: 68ch; }
.prose-block p { color: var(--text-muted); margin: 0 0 0.9rem; }
.prose-block p:last-child { margin-bottom: 0; }

.ask-stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.5rem;
}
.ask-stat__num {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; line-height: 1;
  letter-spacing: -0.03em; color: var(--accent); font-variant-numeric: tabular-nums;
}
.ask-stat__title { font-weight: 650; margin-top: 0.7rem; }
.ask-stat__desc { color: var(--text-muted); font-size: 0.9rem; margin: 0.4rem 0 0; }

.ask-body { margin-top: 2.5rem; }
.ask-body__cta { margin-top: 1.5rem; }

/* портфельная воронка в блоке «Раунд» — обоснование use of funds */
.ask-funnel {
  margin-top: 2.5rem; padding: clamp(1.4rem, 2.5vw, 2rem);
  border: 1px solid var(--border-strong); border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.ask-funnel__title { font-size: 1.3rem; }
.ask-funnel__lead { color: var(--text-muted); margin: 0.6rem 0 0; max-width: 70ch; }
.ask-scale { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.4rem; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--border); }
.ask-scale__k { color: var(--text-dim); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.ask-scale__step { font-variant-numeric: tabular-nums; color: var(--text-muted); font-size: 0.95rem; }
.ask-scale__step b { color: var(--text); }
.ask-scale__rev { color: var(--growth); font-weight: 700; }

/* ── юнит-экономика (закупка × наценка = цена клиента → маржа) ────────────── */
.uecon { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.6rem; }
.uecon__step {
  flex: 1 1 150px; display: flex; flex-direction: column; gap: 0.3rem;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 0.9rem 1rem;
}
.uecon__step--client { border-color: var(--border-strong); }
.uecon__step--margin { background: rgba(52, 211, 153, 0.10); border-color: rgba(52, 211, 153, 0.30); }
.uecon__k { font-size: 0.76rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; }
.uecon__v { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.uecon__step--margin .uecon__v { color: var(--growth); }
.uecon__op { align-self: center; color: var(--text-dim); font-family: var(--mono); font-size: 0.95rem; font-weight: 700; }
.uecon__note { color: var(--text-dim); font-size: 0.82rem; margin: 1rem 0 0; }

/* воронка услуги: бюджет → показы → клики → лиды → продажи → выручка */
.funnel { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.funnel__row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.4rem 1rem; background: var(--surface); padding: 0.85rem 1.1rem; }
.funnel__k { color: var(--text-muted); font-size: 0.9rem; }
.funnel__v { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.funnel__sub { display: inline-block; color: var(--text-dim); font-weight: 500; font-size: 0.8rem; margin-left: 0.4rem; }
.funnel__row--rev { background: rgba(52, 211, 153, 0.10); }
.funnel__row--rev .funnel__v { color: var(--growth); font-size: 1.1rem; }

/* ── дорожная карта (timeline) ───────────────────────────────────────────── */
.timeline {
  display: grid; gap: var(--gap); margin-top: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.tl {
  position: relative; padding: 1.5rem;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface);
}
.tl__node {
  position: absolute; top: -6px; left: 1.5rem;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.tl__q { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin-top: 0.4rem; font-variant-numeric: tabular-nums; }
.tl__u { font-size: 0.8rem; font-weight: 600; color: var(--text-dim); }
.tl__t { font-weight: 650; margin-top: 0.5rem; }
.tl__d { color: var(--text-muted); font-size: 0.9rem; margin: 0.4rem 0 0; }

/* ── footer ─────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0; color: var(--text-dim); font-size: 0.9rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }

/* ── reveal-анимация (прогрессивное улучшение) ──────────────────────────────
   Без JS контент виден всегда. Скрытое стартовое состояние включается только
   когда JS добавил класс .js на <html> — иначе пустой экран при сбое JS. */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

.divider { height: 1px; background: var(--border); border: 0; margin: 0; }
