/* ============================================================
   УОР — Итоги II квартала 2026 · дизайн-система v3
   Светлая тема · голубой glassmorphism · стекло · неон · SB Sans
   ============================================================ */

/* ---------- Шрифты ---------- */
@font-face {
  font-family: 'SB Sans Display';
  src: url('../fonts/SBSansDisplay-Light.otf') format('opentype');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'SB Sans Display';
  src: url('../fonts/SBSansDisplay-Regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'SB Sans Display';
  src: url('../fonts/SBSansDisplay-SemiBold.otf') format('opentype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'SB Sans Display';
  src: url('../fonts/SBSansDisplay-Bold.otf') format('opentype');
  font-weight: 700; font-style: normal; font-display: swap;
}
/* Самое жирное начертание семейства — для кинетического дисплея */
@font-face {
  font-family: 'SB Sans Display';
  src: url('../fonts/SBSansText-Heavy.otf') format('opentype');
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ---------- Токены ---------- */
:root {
  --white: #FFFFFF;
  --sage-bg: #EAF2FC;            /* светлая чистая зелень */
  --green: #2E86FF;              /* основной — чистый весенний */
  --green-bright: #35D0F5;
  --green-deep: #1668D8;
  --card-soft: #DCEAFF;
  --card-soft-2: #C7DEFF;
  --hl-bg: #CFE4FF;
  --forest: #123A6B;             /* глубокий лесной */
  --ink: #0F1B2E;
  --muted: #64748B;

  --grad-green: linear-gradient(135deg, #4FC6FF 0%, #2E86FF 55%, #6A78FF 100%);
  --lilac: #6A78FF;
  --page-bg: linear-gradient(165deg, #EAF1FC 0%, #E7ECFB 45%, #F0EAFB 100%);

  --r-card: 24px;
  --r-tile: 20px;

  --font: 'SB Sans Display', 'Segoe UI', system-ui, sans-serif;

  --shadow-soft: 0 20px 55px -20px rgba(18, 42, 82, 0.22);
  --shadow-tiny: 0 8px 26px -12px rgba(18, 42, 82, 0.18);

  --header-h: 68px;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--page-bg);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: clip;      /* clip, а не hidden — hidden ломает position: sticky */
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
mark { background: none; color: inherit; }

.container {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

::selection { background: var(--card-soft-2); color: var(--forest); }

main { position: relative; z-index: 1; }

/* ---------- КИНО-СЦЕНЫ: видео на весь экран, промотка скроллом ---------- */
.film {
  position: relative;
  background: transparent;
}
.film-stage {
  position: relative;
  height: 100svh;
  width: 100%;
  overflow: hidden;
  background: transparent;
}
.film-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* видео — главный герой: без вуалей и приглушения */
}
.film-overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  pointer-events: none;
  z-index: 2;
}
.film-caption {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(1100px, 88vw);
  text-align: center;
  opacity: 0;
  will-change: transform, opacity;
}
.film-kicker {
  display: inline-block;
  margin-bottom: 18px;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--forest);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  backdrop-filter: blur(14px) saturate(1.6);
  box-shadow: 0 12px 30px -16px rgba(18, 42, 82, 0.35);
}
.film-title {
  font-size: clamp(38px, 6.4vw, 104px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-shadow: 0 2px 30px rgba(255, 255, 255, 0.85);
}
.film-title-mark {
  font-size: clamp(84px, 13vw, 220px);
  line-height: 0.95;
}
.film-sub {
  margin-top: 14px;
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
}
.film-progress {
  position: absolute;
  left: 50%; bottom: 42px;
  transform: translateX(-50%);
  width: min(280px, 40vw); height: 3px;
  border-radius: 999px;
  background: rgba(18, 42, 82, 0.14);
  overflow: hidden;
  z-index: 2;
}
.film-progress-bar {
  display: block; height: 100%; width: 100%;
  border-radius: 999px;
  background: var(--grad-green);
  transform: scaleX(0);
  transform-origin: left center;
}

/* ---------- Плёночное зерно ---------- */
.grain {
  position: fixed;
  inset: -60%;
  width: 220%; height: 220%;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  animation: grain-shift 9s steps(12) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 2%); } 100% { transform: translate(0, 0); }
}

/* ---------- Размытые сферы (ambient) ---------- */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
  will-change: transform;
  z-index: 0;
}
.orb-numbers-a {
  width: 520px; height: 520px; left: -140px; top: 16%;
  background: radial-gradient(circle at 35% 35%, rgba(53, 200, 245, 0.55), rgba(46, 134, 255, 0.12) 70%);
}
.orb-numbers-b {
  width: 420px; height: 420px; right: -120px; bottom: 4%;
  background: radial-gradient(circle at 60% 40%, rgba(22, 104, 216, 0.4), rgba(120, 205, 255, 0.1) 70%);
}
.orb-done {
  width: 560px; height: 560px; right: -160px; top: 10%;
  background: radial-gradient(circle at 40% 40%, rgba(53, 200, 245, 0.34), rgba(46, 134, 255, 0.08) 70%);
}
.orb-chapter {
  width: 480px; height: 480px; top: 22%;
  background: radial-gradient(circle at 40% 40%, rgba(53, 200, 245, 0.4), rgba(46, 134, 255, 0.08) 70%);
}
.orb-chapter.orb-left  { left: -150px; }
.orb-chapter.orb-right { right: -150px; }
.orb-plans {
  width: 520px; height: 520px; left: 30%; top: -80px;
  background: radial-gradient(circle at 45% 45%, rgba(53, 200, 245, 0.42), rgba(22, 104, 216, 0.08) 70%);
}
.orb-outro {
  width: 640px; height: 640px; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 50% 45%, rgba(120, 205, 255, 0.32), rgba(46, 134, 255, 0.05) 72%);
}

/* ---------- Кастомный курсор ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  border-radius: 50%;
  will-change: transform;
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--forest);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1.5px solid rgba(46, 134, 255, 0.7);
  transform: translate(-50%, -50%);
  transition: width .25s ease, height .25s ease, border-color .25s ease, background-color .25s ease;
}
body.cursor-hover .cursor-ring {
  width: 52px; height: 52px;
  border-color: rgba(46, 134, 255, 0.95);
  background: rgba(53, 200, 245, 0.1);
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- Шапка ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  pointer-events: none;
}
.site-nav {
  pointer-events: auto;
  display: flex; gap: 2px;
  padding: 5px;
  border: 1px solid rgba(18, 42, 82, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 10px 30px -18px rgba(18, 42, 82, 0.3);
}
.nav-pill {
  display: inline-block;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  transition: background-color .25s ease, color .25s ease;
}
.nav-pill:hover { background: var(--card-soft); color: var(--forest); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: transparent;
}

.hero-video-wrap {
  position: absolute; inset: 0;
  z-index: 0; opacity: 0;                /* включается скриптом, если есть файл */
  transition: opacity 1.2s ease;
}
.hero-video-wrap.is-on { opacity: 0.6; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-video-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.32) 45%, rgba(255,255,255,0.88) 100%);
}

/* Неоновые дуги — сигнатура из colors-reference */
.glow-arc {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  pointer-events: none;
  border: 1.5px solid rgba(90, 205, 255, 0.5);
  box-shadow:
    0 0 34px 3px rgba(53, 200, 245, 0.4),
    inset 0 0 34px rgba(53, 200, 245, 0.22);
  will-change: transform;
}
.glow-arc-1 {
  width: 128vmax; height: 128vmax;
  left: 50%; top: 66%;
  transform: translate(-50%, -50%);
}
.glow-arc-2 {
  width: 62vmax; height: 62vmax;
  left: 78%; top: 40%;
  transform: translate(-50%, -50%);
  border-color: rgba(120, 150, 255, 0.4);
  box-shadow:
    0 0 30px 2px rgba(106, 120, 255, 0.32),
    inset 0 0 26px rgba(106, 120, 255, 0.18);
}

.hero-field { position: absolute; inset: 0; z-index: 1; }

.float-comp, .outro-comp {
  position: absolute;
  width: 64px; height: 64px;
  border-radius: 22px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 12px 32px -12px rgba(18, 42, 82, 0.28),
    inset 0 0 0 1px rgba(53, 200, 245, 0.12);
  -webkit-backdrop-filter: blur(10px) saturate(1.5);
  backdrop-filter: blur(10px) saturate(1.5);
}
.float-comp svg, .outro-comp svg { width: 30px; height: 30px; stroke: var(--forest); }

.float-comp[data-comp="hub"]    { top: 16%; left: 8%; }
.float-comp[data-comp="tech"]   { top: 66%; left: 15%; }
.float-comp[data-comp="load"]   { top: 32%; left: 85%; }
.float-comp[data-comp="design"] { top: 72%; left: 68%; }
.float-comp[data-comp="devops"] { top: 12%; left: 64%; }
.float-comp[data-comp="pdlc"]   { top: 80%; left: 36%; }

/* Стеклянные AI-чипы */
.ai-chip {
  position: absolute;
  padding: 9px 16px 9px 30px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--forest);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px -14px rgba(18, 42, 82, 0.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.6);
  backdrop-filter: blur(12px) saturate(1.6);
  white-space: nowrap;
}
.ai-chip::before {
  content: '';
  position: absolute; left: 12px; top: 50%;
  width: 10px; height: 10px;
  transform: translateY(-50%);
  background: var(--grad-green);
  border-radius: 3px;
  rotate: 45deg;
}

.hero-inner { position: relative; z-index: 2; text-align: center; padding-inline: 20px; }
.hero-line, .hero-eyebrow, .hero-uor, .hero-dept, .hero-quarter { display: block; }
.hero-eyebrow, .hero-uor, .hero-dept, .hero-quarter { overflow: hidden; }
.hero-word { display: inline-block; will-change: transform; }

.hero-eyebrow .hero-word {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--forest);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 26px -14px rgba(18, 42, 82, 0.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.6);
  backdrop-filter: blur(12px) saturate(1.6);
}
.ai-spark {
  width: 14px; height: 14px; flex: none;
  background: var(--grad-green);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.hero-uor {
  margin-top: 26px;
  font-weight: 900;
  font-size: clamp(120px, 21vw, 330px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  padding-block: 0.03em;
}
.hero-dept {
  margin-top: 10px;
  font-size: clamp(22px, 2.9vw, 42px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hero-quarter {
  margin-top: 14px;
  font-size: clamp(16px, 1.7vw, 23px);
  font-weight: 400;
  color: var(--muted);
}

.hl {
  display: inline-block;
  padding: 0.02em 0.18em;
  border-radius: 0.28em;
  background: var(--hl-bg);
  color: var(--forest);
}

.scroll-hint {
  position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint-track {
  width: 26px; height: 42px;
  border: 1.5px solid rgba(16, 20, 16, 0.25);
  border-radius: 999px;
  display: flex; justify-content: center; padding-top: 7px;
}
.scroll-hint-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--green);
  animation: hint-drop 1.8s ease-in-out infinite;
}
@keyframes hint-drop {
  0%   { transform: translateY(0);    opacity: 1; }
  70%  { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(0);    opacity: 0; }
}
.scroll-hint-label { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* ---------- Бегущая строка ---------- */
.marquee {
  overflow: hidden;
  padding-block: 18px;
  background: var(--card-soft);
  border-block: 1px solid rgba(18, 42, 82, 0.08);
  position: relative; z-index: 2;
}
.marquee-sage { background: var(--forest); }
.marquee-track {
  display: flex; align-items: center; gap: 36px;
  width: max-content;
  will-change: transform;
}
.marquee-item {
  display: inline-flex; align-items: center; gap: 36px;
  font-weight: 600; font-size: 17px;
  color: var(--forest);
  white-space: nowrap;
}
.marquee-sage .marquee-item { color: #DCEBFF; }
.marquee-dot {
  width: 8px; height: 8px;
  background: var(--grad-green);
  border-radius: 2px;
  transform: rotate(45deg);
  flex: none;
}

/* ---------- Общее для секций ---------- */
section { position: relative; }
.section-sage { background: rgba(234, 242, 252, 0.5); }

/* Кинетические заголовки: целиком в кадре, по центру,
   двигаются медленным параллаксом (не уезжают за экран) */
.kinetic-wrap {
  overflow: visible;
  text-align: center;
  padding-block: clamp(28px, 6vh, 64px) clamp(16px, 3vh, 32px);
  pointer-events: none;
}
.kinetic-word {
  display: inline-block;
  font-weight: 900;
  font-size: clamp(64px, 13.5vw, 230px);
  line-height: 1.14;                    /* выносные элементы не режутся */
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--ink);
  will-change: transform;
}

.section-head { padding-block: clamp(20px, 4vh, 44px) clamp(28px, 5vh, 56px); position: relative; z-index: 2; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--grad-green);
  border-radius: 2px;
  transform: rotate(45deg);
}
.section-title {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

/* ---------- Цифры ---------- */
.numbers {
  padding-bottom: clamp(72px, 10vh, 132px);
  overflow: clip;
  background: rgba(234, 242, 252, 0.4);
}
.numbers .kinetic-wrap, .numbers .section-head, .numbers-grid { position: relative; z-index: 2; }

/* Призрачные растущие цифры */
.ghost-nums { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ghost-num {
  position: absolute;
  left: var(--gx); top: var(--gy);
  transform: translate(-50%, -50%);
  font-weight: 900;
  font-size: clamp(84px, 10vw, 175px);
  letter-spacing: -0.03em;
  color: rgba(47, 125, 18, 0.12);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  will-change: transform;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.numbers-grid .stat-card:nth-child(1) { grid-column: span 2; }
.numbers-grid .stat-card:nth-child(2) { grid-column: span 2; }
.numbers-grid .stat-card:nth-child(3) { grid-column: span 2; }
.numbers-grid .stat-card:nth-child(4) { grid-column: span 3; }
.numbers-grid .stat-card:nth-child(5) { grid-column: span 3; }

.glass {
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.stat-card {
  border-radius: var(--r-card);
  padding: clamp(24px, 3vw, 36px);
  position: relative;
  overflow: hidden;
  will-change: transform;
  transition: transform .35s ease, box-shadow .35s ease;
}
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 26px 60px -22px rgba(18, 42, 82, 0.32); }
.stat-card::before {
  content: '';
  position: absolute; right: -40px; top: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(53, 200, 245, 0.28) 0%, transparent 70%);
  pointer-events: none;
}

.stat-value {
  font-weight: 900;
  font-size: clamp(52px, 6vw, 92px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--forest);
  font-variant-numeric: tabular-nums;
}
.stat-value-word {
  font-size: clamp(34px, 3.6vw, 56px);
  background: var(--grad-green);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { margin-top: 10px; font-weight: 600; font-size: 17px; }
.stat-note { margin-top: 4px; font-size: 14px; color: var(--muted); }

.stat-card-ring .stat-ring {
  position: relative;
  width: clamp(120px, 11vw, 150px);
  aspect-ratio: 1;
}
.stat-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.stat-ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.ring-bg { stroke: rgba(18, 42, 82, 0.08); }
.ring-fg { stroke: url(#ringGrad); }
.stat-card-ring .stat-value {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: clamp(26px, 2.6vw, 38px);
}

/* ---------- Сделано (pinned) ---------- */
.done { background: rgba(255, 255, 255, 0.4); }
.done-pin {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: calc(var(--header-h) + 8px) 40px;
  overflow: hidden;
  position: relative;
}
.done .kinetic-wrap { padding-block: 0 clamp(16px, 3vh, 36px); position: relative; z-index: 1; }
.done .kinetic-word { font-size: clamp(68px, 11.5vw, 180px); }
.done-grid { position: relative; z-index: 1; }

.done-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.done-card {
  border-radius: var(--r-card);
  background: var(--sage-bg);
  border: 1px solid rgba(18, 42, 82, 0.06);
  padding: 24px;
  min-height: 158px;
  will-change: transform, opacity;
  transition: box-shadow .3s ease;
}
.done-card:hover { box-shadow: var(--shadow-tiny); }
.done-card h3 {
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--forest);
}
.done-card p { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.done-card-accent { background: var(--card-soft); }
.done-card-accent h3 { color: var(--ink); }
.done-card-accent p { color: rgba(18, 42, 82, 0.74); }

/* ---------- Чаптеры ---------- */
.chapter {
  padding-bottom: clamp(64px, 9vh, 120px);
  overflow-x: clip;
  position: relative;
}
.chapter:nth-child(odd)  { background: rgba(255, 255, 255, 0.36); }
.chapter:nth-child(even) { background: rgba(234, 242, 252, 0.5); }
.chapter:nth-child(odd) .block-card { background: rgba(255, 255, 255, 0.72); }

.chapter .kinetic-word { font-size: clamp(56px, 11.5vw, 190px); }
.chapter > .container { position: relative; z-index: 1; }

.chapter-head {
  display: flex; align-items: center; gap: 20px;
  padding-block: clamp(18px, 3.5vh, 40px) clamp(24px, 4vh, 44px);
}
.chapter-badge {
  position: relative;
  width: 84px; height: 84px; flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 34px -16px rgba(18, 42, 82, 0.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  backdrop-filter: blur(12px) saturate(1.5);
  display: grid; place-items: center;
}
.chapter-badge .badge-bit {
  position: absolute;
  border-radius: 999px;
  background: var(--green);
  will-change: transform, opacity;
}
.chapter-badge .badge-bit:nth-child(1) { width: 10px; height: 10px; top: 10px;  left: 40px; }
.chapter-badge .badge-bit:nth-child(2) { width: 7px;  height: 7px;  top: 40px;  left: 8px;  background: var(--forest); }
.chapter-badge .badge-bit:nth-child(3) { width: 8px;  height: 8px;  top: 66px;  left: 60px; background: var(--green-bright); }
.chapter-badge svg { width: 38px; height: 38px; stroke: var(--forest); position: relative; }

.chapter-meta .chapter-index {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}
.chapter-meta .chapter-tagline {
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 600;
  color: var(--forest);
  margin-top: 4px;
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.block-card {
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-tiny);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  padding: clamp(22px, 2.4vw, 30px);
  will-change: transform, opacity;
  transition: transform .35s ease, box-shadow .35s ease;
}
.block-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }

.block-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.block-title::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--grad-green);
  border-radius: 2px;
  transform: rotate(45deg);
}

.block-achv { grid-column: span 7; }
.block-new  { grid-column: span 5; background: var(--card-soft) !important; border-color: rgba(255,255,255,0.6); }
.block-video{ grid-column: span 7; }
.block-photo{ grid-column: span 5; }
.block-people{ grid-column: span 7; }
.block-thanks{ grid-column: span 5; background: var(--forest) !important; border-color: transparent; }

.achv-list li {
  position: relative;
  padding: 12px 0 12px 34px;
  font-size: 16.5px; line-height: 1.5;
  border-bottom: 1px dashed rgba(18, 42, 82, 0.14);
}
.achv-list li:last-child { border-bottom: none; }
.achv-list li::before {
  content: '';
  position: absolute; left: 4px; top: 20px;
  width: 9px; height: 9px;
  background: var(--grad-green);
  border-radius: 3px;
  transform: rotate(45deg);
}
.achv-list li strong { font-weight: 700; color: var(--forest); }

.new-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding-block: 10px;
  font-size: 16px; font-weight: 600;
  color: var(--forest);
}
.new-badge {
  flex: none;
  margin-top: 2px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--grad-green);
  color: var(--white);
}

/* Слоты-плейсхолдеры */
.slot-note {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green-deep);
  border: 1px dashed rgba(46, 134, 255, 0.75);
  border-radius: 999px;
  padding: 3px 10px;
  margin-left: auto;
}

.video-slot {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-tile);
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 20% 10%, var(--card-soft) 0%, var(--card-soft-2) 55%, #B8D8FF 100%);
  display: grid; place-items: center;
  box-shadow: var(--shadow-tiny);
}
.video-slot-play {
  width: 74px; height: 74px;
  border-radius: 50%;
  background: var(--forest);
  display: grid; place-items: center;
  box-shadow: 0 14px 34px -12px rgba(18, 42, 82, 0.55);
  transition: transform .3s ease;
}
.video-slot:hover .video-slot-play { transform: scale(1.1); }
.video-slot-play::after {
  content: '';
  margin-left: 4px;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #F0F6FF;
}
.video-slot-caption {
  position: absolute; left: 16px; bottom: 14px;
  font-size: 12.5px; font-weight: 600;
  color: rgba(18, 42, 82, 0.7);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 5px 12px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.photo-tile {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-tile);
  background: linear-gradient(145deg, var(--card-soft) 0%, var(--card-soft-2) 100%);
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease;
}
.photo-tile:hover { transform: scale(1.03); }
.photo-tile svg { width: 26px; height: 26px; stroke: rgba(18, 42, 82, 0.45); }
.photo-tile span {
  position: absolute; bottom: 8px;
  font-size: 11px; font-weight: 600;
  color: rgba(18, 42, 82, 0.5);
  letter-spacing: 0.06em;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.person-card {
  border-radius: var(--r-tile);
  border: 1px solid rgba(18, 42, 82, 0.08);
  background: rgba(255, 255, 255, 0.7);
  padding: 18px 14px;
  text-align: center;
}
.person-avatar {
  width: 62px; height: 62px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 1.5px dashed rgba(46, 134, 255, 0.85);
  background: var(--sage-bg);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  color: var(--green-deep);
  letter-spacing: 0.06em;
}
.person-name { font-size: 14.5px; font-weight: 700; color: var(--forest); }
.person-role { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

.block-thanks .block-title { color: rgba(230, 248, 211, 0.78); }
.block-thanks .block-title::before { background: var(--grad-green); }
.thanks-quote {
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.4;
  color: #F0F6FF;
}
.thanks-quote .accent, .thanks-note .accent { color: #5FC8FF; }
.thanks-note { margin-top: 14px; font-size: 13.5px; color: rgba(230, 248, 211, 0.68); }

/* ---------- Планы ---------- */
.plans { padding-bottom: clamp(72px, 10vh, 130px); overflow: hidden; }
.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  position: relative; z-index: 1;
}
.plan-card {
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-tiny);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  padding: clamp(24px, 2.6vw, 34px);
  will-change: transform, opacity;
  transition: transform .35s ease, box-shadow .35s ease;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.plan-card h3 {
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  color: var(--forest);
}
.plan-steps li {
  display: flex; align-items: center; gap: 14px;
  padding-block: 11px;
  font-size: 16.5px;
  border-bottom: 1px dashed rgba(18, 42, 82, 0.14);
}
.plan-steps li:last-child { border-bottom: none; }
.plan-num {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--card-soft);
  color: var(--forest);
  font-size: 13.5px; font-weight: 700;
  display: grid; place-items: center;
  font-variant-numeric: tabular-nums;
}
.plan-card-dark { background: var(--forest); border-color: transparent; }
.plan-card-dark h3 { color: #F0F6FF; }
.plan-card-dark .plan-steps li { color: #DCEBFF; border-color: rgba(230, 248, 211, 0.18); }
.plan-card-dark .plan-num { background: rgba(53, 200, 245, 0.28); color: #A9D4FF; }

/* ---------- Outro ---------- */
.outro { background: rgba(255, 255, 255, 0.3); }
.outro-pin {
  min-height: 100vh;
  position: relative;
  display: grid; place-items: center;
  overflow: hidden;
}
.outro-field { position: absolute; inset: 0; z-index: 1; }
.outro-comp {
  top: 50%; left: 50%;
  margin: -32px 0 0 -32px;   /* центрируем; разлёт задаёт GSAP */
}
.outro-mark {
  display: flex; flex-direction: column; align-items: center;
  will-change: transform, opacity;
  position: relative; z-index: 1;
}
.outro-mark-text {
  font-size: clamp(64px, 9vw, 140px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}
.outro-copy {
  position: absolute;
  bottom: clamp(48px, 10vh, 96px);
  left: 50%; transform: translateX(-50%);
  text-align: center;
  width: min(680px, 90vw);
  z-index: 1;
}
.outro-thanks { font-size: clamp(18px, 2vw, 24px); font-weight: 600; color: var(--forest); }
.outro-teaser { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* ---------- Футер ---------- */
.site-footer {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 26px 20px;
  font-size: 13.5px; font-weight: 600;
  color: var(--muted);
  border-top: 1px solid rgba(16, 20, 16, 0.06);
  background: var(--white);
}
.footer-dot {
  width: 7px; height: 7px;
  background: var(--grad-green);
  border-radius: 2px;
  transform: rotate(45deg);
}

/* ---------- Reveal-заготовка ---------- */
[data-reveal] { will-change: transform, opacity; }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .site-nav { display: none; }
}
@media (max-width: 1024px) {
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .numbers-grid .stat-card { grid-column: auto !important; }
  .done-grid { grid-template-columns: repeat(2, 1fr); }
  .block-achv, .block-new, .block-video, .block-photo, .block-people, .block-thanks { grid-column: span 12; }
  .chapter-head { padding-top: clamp(90px, 16vh, 160px); }
}

@media (max-width: 900px) {
  .plans-grid { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: repeat(3, 1fr); }
  .done-pin { min-height: auto; padding-top: 90px; }
  .done-grid { gap: 14px; }
  .float-comp, .outro-comp { width: 52px; height: 52px; border-radius: 18px; }
  .float-comp svg, .outro-comp svg { width: 24px; height: 24px; }
  .outro-comp { margin: -26px 0 0 -26px; }
  .ai-chip { display: none; }
  .orb { filter: blur(50px); }
  .grain { display: none; }
  /* на мобильном промотка видео дорогая — сцены короче и мягче */
  .film-stage { height: 78svh; }
  .film-title { font-size: clamp(30px, 8vw, 46px); }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .numbers-grid, .done-grid { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .hero-uor { font-size: clamp(96px, 30vw, 160px); }
  .chapter-head { padding-top: 70px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .grain { display: none; }
}
