/* ============================================================
   ИКС Образование — прототип главной
   Палитра и принципы: 03-proposal/design.md
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "RF Dewi";
  src: url("../assets/fonts/RFDewi-Regular.ttf") format("truetype");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "RF Dewi";
  src: url("../assets/fonts/RFDewi-Semibold.ttf") format("truetype");
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: "RF Dewi";
  src: url("../assets/fonts/RFDewi-Bold.ttf") format("truetype");
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: "RF Dewi Expanded";
  src: url("../assets/fonts/RFDewiExpanded-Semibold.ttf") format("truetype");
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: "RF Dewi Expanded";
  src: url("../assets/fonts/RFDewiExpanded-Bold.ttf") format("truetype");
  font-weight: 700; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #05070A;
  --graphite: #101925;
  --grid-slate: #2D3946;
  --soft-slate: #9AA7B2;
  --white: #FFFFFF;
  --x-blue: #6C78FF;
  --blue-hover: #7F8AFF;
  --muted-blue: #3D467A;

  --grid-line: rgba(45, 57, 70, 0.55);
  --grid-line-strong: rgba(45, 57, 70, 0.9);

  --font-body: "RF Dewi", "Manrope", system-ui, sans-serif;
  --font-display: "RF Dewi Expanded", "RF Dewi", system-ui, sans-serif;

  --container: 1360px;
  --gutter: clamp(16px, 3vw, 40px);

  --t-micro: 160ms;
  --t-card: 220ms;
  --t-step: 280ms;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; margin: 0 0 0.5em; }
h1 { font-size: clamp(38px, 6vw, 84px); letter-spacing: 0; }
h2 { font-size: clamp(28px, 3.6vw, 54px); }
h3 { font-size: clamp(19px, 1.8vw, 26px); font-family: var(--font-body); font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
em { font-style: normal; color: var(--x-blue); }
.accent { color: var(--x-blue); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 920px; }

/* технические подписи — часть языка сетки */
.tech-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft-slate);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background var(--t-micro) ease, border-color var(--t-micro) ease,
              color var(--t-micro) ease, box-shadow var(--t-micro) ease;
}
.btn--lg { padding: 17px 34px; font-size: 16px; }
.btn--primary {
  background: var(--x-blue);
  color: var(--ink);
  border-color: var(--x-blue);
}
.btn--primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); box-shadow: 0 0 32px rgba(108,120,255,.35); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--grid-slate);
}
.btn--ghost:hover { border-color: var(--x-blue); color: var(--blue-hover); }
.btn[disabled] { opacity: .35; cursor: not-allowed; box-shadow: none; }

.link-arrow {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  color: var(--x-blue);
  transition: color var(--t-micro) ease, transform var(--t-micro) ease;
}
.link-arrow:hover { color: var(--blue-hover); transform: translateX(4px); }

/* ============================================================
   ЛОАДЕР + летающий X
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink);
  display: none;
  place-items: center;
}
.loader__construction {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--grid-slate);
}
.loader__lines {
  width: min(46vmin, 420px);
  height: min(46vmin, 420px);
  overflow: visible;
}
.cline {
  stroke-dasharray: 1600;
  stroke-dashoffset: 0;
}
.loader__meta {
  position: absolute;
  left: var(--gutter);
  bottom: 28px;
  right: var(--gutter);
  display: flex;
  justify-content: space-between;
}

/* Единый X: fixed-слой, GSAP двигает через transform */
.x-flight {
  position: fixed;
  z-index: 95;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  will-change: transform, width, height;
}
/* после парковки в hero X уходит под контент */
.x-flight--parked { z-index: 1; }

/* Фирменный PNG, порезанный на 4 клина для анимации */
.x-real { position: relative; width: 100%; height: 100%; }
.x-quad {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  will-change: transform, opacity;
}
.x-quad--top    { clip-path: polygon(0 0, 100% 0, 50% 50%); }
.x-quad--bottom { clip-path: polygon(0 100%, 100% 100%, 50% 50%); }
.x-quad--left   { clip-path: polygon(0 0, 0 100%, 50% 50%); }
.x-quad--right  { clip-path: polygon(100% 0, 100% 100%, 50% 50%); }

/* ============================================================
   ВИДИМАЯ СЕТКА
   ============================================================ */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  opacity: 1;
}
.grid-overlay__col { border-left: 1px solid var(--grid-line); }
.grid-overlay__col:last-child { border-right: 1px solid var(--grid-line); }

main, .header, .footer { position: relative; z-index: 2; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background var(--t-card) ease, border-color var(--t-card) ease;
}
.header.is-scrolled {
  background: rgba(5, 7, 10, 0.86);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--grid-line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  height: 68px;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.header__x {
  width: 26px; height: 26px;
  opacity: 0;
  transform: scale(.4) rotate(-90deg);
  transition: opacity .4s ease, transform .5s cubic-bezier(.2,.9,.3,1.2);
}
.header.is-scrolled .header__x { opacity: 1; transform: none; }
.header__nav {
  display: flex;
  gap: clamp(12px, 1.8vw, 28px);
  margin-left: auto;
}
.header__nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--soft-slate);
  transition: color var(--t-micro) ease;
}
.header__nav a:hover { color: var(--white); }
.header__cta { flex-shrink: 0; }
.header__burger { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
  overflow: hidden;
}
/* построительные линии hero — вокруг слота X */
.hero__construction {
  position: absolute;
  top: 50%;
  right: max(calc((100vw - var(--container)) / 2), var(--gutter));
  transform: translateY(-50%);
  width: min(44vw, 640px);
  aspect-ratio: 1;
  color: var(--grid-slate);
  opacity: 1;
  pointer-events: none;
}
.hero__constr-svg { width: 100%; height: 100%; overflow: visible; }
/* слот, куда GSAP привезёт X */
.hero__x-slot {
  position: absolute;
  top: 50%;
  right: max(calc((100vw - var(--container)) / 2), var(--gutter));
  transform: translateY(-50%);
  width: min(44vw, 640px);
  aspect-ratio: 1;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px;
}
.hero__content { grid-column: 1; max-width: 720px; }
.eyebrow { display: block; margin-bottom: 20px; color: var(--x-blue); }
.hero__title { margin-bottom: 24px; }
.hero__lead { font-size: clamp(16px, 1.4vw, 20px); color: var(--soft-slate); max-width: 560px; margin-bottom: 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

.hero__facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--grid-line-strong);
  border-bottom: 1px solid var(--grid-line-strong);
  margin-top: clamp(24px, 4vh, 56px);
}
.fact-cell {
  padding: 18px 20px 16px;
  border-left: 1px solid var(--grid-line);
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background var(--t-micro) ease;
}
.fact-cell:last-child { border-right: 1px solid var(--grid-line); }
.fact-cell:hover { background: rgba(108,120,255,.06); }
.fact-cell b { font-family: var(--font-display); font-size: clamp(20px, 2vw, 30px); color: var(--white); }
.fact-cell span { font-size: 12.5px; color: var(--soft-slate); }

.hero__quick {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.hero__quick-label { margin-right: 8px; }
.quick-dir {
  padding: 9px 16px;
  border: 1px solid var(--grid-slate);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  color: var(--soft-slate);
  transition: border-color var(--t-micro) ease, color var(--t-micro) ease, background var(--t-micro) ease;
}
.quick-dir:hover { border-color: var(--x-blue); color: var(--white); background: rgba(108,120,255,.08); }
.quick-dir--unknown { border-style: dashed; color: var(--x-blue); }

.hero__scroll-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  animation: hint-pulse 2.4s ease-in-out infinite;
}
@keyframes hint-pulse { 50% { opacity: .35; } }

/* ============================================================
   СЕКЦИИ: общий ритм
   ============================================================ */
.section {
  position: relative;
  padding: clamp(64px, 9vh, 120px) 0;
  border-top: 1px solid var(--grid-line-strong);
}
/* «тики» на пересечении секционной линии с сеткой */
.section::before, .section::after {
  content: "";
  position: absolute;
  top: -1px;
  width: 9px; height: 9px;
  border: 1px solid var(--grid-slate);
  border-top-color: var(--x-blue);
  border-left-color: var(--x-blue);
  transform: translateY(-50%) rotate(45deg);
  background: var(--ink);
}
.section::before { left: max(calc((100vw - var(--container)) / 2), var(--gutter)); }
.section::after { right: max(calc((100vw - var(--container)) / 2), var(--gutter)); }

.section--tight { padding-top: clamp(48px, 6vh, 80px); }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 18px;
}
.section-num {
  flex-shrink: 0;
  color: var(--x-blue);
  border: 1px solid var(--grid-slate);
  padding: 5px 10px;
}
.section-lead {
  color: var(--soft-slate);
  max-width: 640px;
  margin-bottom: clamp(28px, 4vh, 52px);
  font-size: clamp(15px, 1.25vw, 18px);
}
.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  color: var(--soft-slate);
  margin-bottom: clamp(28px, 4vh, 48px);
  max-width: 1040px;
}

/* ---------- Ячейки/карточки ---------- */
.card-row { display: grid; gap: 1px; background: var(--grid-line); border: 1px solid var(--grid-line); }
.card-row--3 { grid-template-columns: repeat(3, 1fr); }
.cell {
  position: relative;
  background: var(--ink);
  padding: 28px 26px 30px;
  transition: background var(--t-card) ease;
}
.cell:hover { background: var(--graphite); }
.cell__marker {
  position: absolute;
  top: 0; left: 0;
  width: 22px; height: 22px;
  border-right: 1px solid var(--x-blue);
  border-bottom: 1px solid var(--x-blue);
  opacity: 0;
  transition: opacity var(--t-micro) ease;
}
.cell:hover .cell__marker { opacity: 1; }
.cell p { color: var(--soft-slate); font-size: 15px; margin-bottom: 0; }
.cell h3 { margin-top: 10px; }

.ticks li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: var(--soft-slate);
  font-size: 15px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 10px; height: 10px;
  background:
    linear-gradient(45deg, transparent 44%, var(--x-blue) 44%, var(--x-blue) 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, var(--x-blue) 44%, var(--x-blue) 56%, transparent 56%);
}

/* ============================================================
   03 ВИДЕО
   ============================================================ */
.video-block {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  border: 1px solid var(--grid-line);
}
.video-block__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--graphite);
  border: none;
  border-right: 1px solid var(--grid-line);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.video-block__x {
  position: absolute;
  width: 68%;
  opacity: .16;
  transition: opacity var(--t-card) ease, transform .6s ease;
}
.video-block__stage:hover .video-block__x { opacity: .3; transform: scale(1.04); }
.video-block__play {
  position: relative;
  width: 84px; height: 84px;
  display: grid;
  place-items: center;
  border: 1px solid var(--x-blue);
  color: var(--x-blue);
  background: rgba(5,7,10,.65);
  transition: background var(--t-micro) ease, color var(--t-micro) ease;
}
.video-block__stage:hover .video-block__play { background: var(--x-blue); color: var(--ink); }
.video-block__timer { position: absolute; left: 18px; bottom: 14px; }
.video-block__aside {
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
}
.video-block__aside p { color: var(--soft-slate); margin: 0; }
.video-block__aside .btn { align-self: flex-start; }

/* ============================================================
   04 ROUTE FINDER
   ============================================================ */
.section--route { background: var(--graphite); }
.section--route .cell, .section--route .route__screen { background: var(--graphite); }

.route { border: 1px solid var(--grid-line-strong); background: var(--ink); }

.route__progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--grid-line-strong);
}
.route__step-cell {
  padding: 14px 18px;
  border-left: 1px solid var(--grid-line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 76px;
  transition: background var(--t-step) ease;
}
.route__step-cell:first-child { border-left: none; }
.route__step-cell b {
  font-size: 13px;
  font-weight: 600;
  color: var(--soft-slate);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.route__step-cell.is-active { background: rgba(108,120,255,.10); box-shadow: inset 0 -2px 0 var(--x-blue); }
.route__step-cell.is-done b { color: var(--white); }
.route__step-cell.is-done .tech-label { color: var(--x-blue); }
.route__step-cell--result.is-done { background: rgba(108,120,255,.14); }

.route__screen { display: none; padding: clamp(28px, 4vw, 56px); }
.route__screen--active { display: block; }

.route__start {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}
.route__start-x { width: clamp(90px, 12vw, 170px); flex-shrink: 0; }
.route__start p { color: var(--soft-slate); }

.route__q-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(21px, 2.4vw, 32px);
  margin-bottom: 28px;
}
.route__options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--grid-line);
  border: 1px solid var(--grid-line);
  margin-bottom: 28px;
}
.route-opt {
  background: var(--ink);
  border: none;
  color: var(--soft-slate);
  text-align: left;
  padding: 20px;
  font-size: 15px;
  font-weight: 600;
  min-height: 84px;
  position: relative;
  transition: background var(--t-micro) ease, color var(--t-micro) ease;
}
.route-opt:hover { background: var(--graphite); color: var(--white); }
.route-opt.is-selected {
  background: rgba(108,120,255,.14);
  color: var(--white);
  box-shadow: inset 0 0 0 1px var(--x-blue);
}
.route-opt.is-selected::after {
  content: "";
  position: absolute;
  top: 10px; right: 10px;
  width: 12px; height: 12px;
  background:
    linear-gradient(45deg, transparent 42%, var(--x-blue) 42%, var(--x-blue) 58%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, var(--x-blue) 42%, var(--x-blue) 58%, transparent 58%);
}
.route__hint { grid-column: 1 / -1; padding: 10px 20px; background: var(--ink); color: var(--soft-slate); font-size: 13px; }
.route__nav { display: flex; justify-content: space-between; gap: 16px; }

/* результат */
.route__result-title { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 36px); font-weight: 700; margin-bottom: 10px; }
.route__result-title em { color: var(--x-blue); }
.route__result-why { color: var(--soft-slate); max-width: 640px; }
.route__result-opps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--grid-line);
  border: 1px solid var(--grid-line);
  margin: 26px 0;
}
.route__result-opp { background: var(--ink); padding: 18px 20px; }
.route__result-opp .tech-label { display: block; margin-bottom: 6px; color: var(--x-blue); }
.route__result-opp p { margin: 0; font-size: 15px; font-weight: 600; }
.route__result-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.route__result-reset { background: none; border: none; color: var(--soft-slate); text-decoration: underline; font-size: 14px; }
.route__result-reset:hover { color: var(--white); }

/* ============================================================
   05 НАПРАВЛЕНИЯ
   ============================================================ */
.dirs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--grid-line);
  border: 1px solid var(--grid-line);
}
.dir {
  background: var(--ink);
  padding: 30px 28px 34px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: background var(--t-card) ease;
}
.dir:hover { background: var(--graphite); }
.dir::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--t-card) ease;
  pointer-events: none;
}
/* каждое направление — своя зона карты */
.dir[data-dir="it"]::before {
  background: repeating-linear-gradient(90deg, transparent 0 39px, rgba(108,120,255,.10) 39px 40px);
}
.dir[data-dir="space"]::before {
  background: radial-gradient(circle at 85% -10%, rgba(108,120,255,.20), transparent 55%);
}
.dir[data-dir="sec"]::before {
  background: repeating-linear-gradient(45deg, transparent 0 26px, rgba(108,120,255,.09) 26px 27px);
}
.dir:hover::before { opacity: 1; }
.dir__head .tech-label { display: block; margin-bottom: 12px; color: var(--x-blue); }
.dir__desc { color: var(--soft-slate); font-size: 15px; margin: 0; }
.dir__companies { margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--grid-slate); }
.dir.is-highlight { box-shadow: inset 0 0 0 1px var(--x-blue); }

.dont-know {
  margin-top: 1px;
  border: 1px solid var(--grid-line);
  border-top: none;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--graphite);
}
.dont-know h3 { margin-bottom: 4px; }
.dont-know p { margin: 0; color: var(--soft-slate); font-size: 15px; }

/* ============================================================
   06 ВОЗМОЖНОСТИ
   ============================================================ */
.opps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--grid-line);
  border: 1px solid var(--grid-line);
}
.opp { display: flex; flex-direction: column; gap: 12px; }
.opp .tech-label { color: var(--x-blue); }
.opp h3 { margin: 0; }
.opp p { flex-grow: 0; }
.opp__facts { margin-top: auto; }
.opp__facts li {
  font-size: 13px;
  color: var(--soft-slate);
  padding: 5px 0;
  border-top: 1px dashed var(--grid-slate);
}
.opp .link-arrow { margin-top: 12px; font-size: 14.5px; }
/* асимметричная раскладка: не одинаковые плитки */
.opp:nth-child(1) { grid-column: span 3; }
.opp:nth-child(2) { grid-column: span 3; }
.opp:nth-child(3) { grid-column: span 2; }
.opp:nth-child(4) { grid-column: span 2; }
.opp:nth-child(5) { grid-column: span 2; }

/* ============================================================
   07 ПОЧЕМУ ИКС
   ============================================================ */
.reasons { counter-reset: r; border-top: 1px solid var(--grid-line); }
.reason {
  display: grid;
  grid-template-columns: 90px minmax(0, 4fr) minmax(0, 6fr);
  gap: 24px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--grid-line);
  transition: background var(--t-micro) ease;
}
.reason:hover { background: rgba(108,120,255,.04); }
.reason__num { color: var(--x-blue); }
.reason h3 { margin: 0; }
.reason p { margin: 0; color: var(--soft-slate); font-size: 15px; }
#why .link-arrow { margin-top: 28px; }

/* ============================================================
   08 ИСТОРИИ
   ============================================================ */
.story blockquote {
  margin: 14px 0;
  padding-left: 16px;
  border-left: 2px solid var(--x-blue);
  color: var(--white);
  font-size: 15.5px;
  font-style: italic;
}
.story__photo {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 8;
  background: var(--graphite);
  border: 1px solid var(--grid-line);
  margin-bottom: 16px;
  overflow: hidden;
}
.story__photo img { width: 34%; opacity: .3; }
#stories .link-arrow { margin-top: 28px; display: inline-block; }

/* ============================================================
   09 СОБЫТИЯ
   ============================================================ */
.events-list { border-top: 1px solid var(--grid-line); }
.event {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 240px auto;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--grid-line);
  transition: background var(--t-micro) ease;
}
.event:hover { background: rgba(108,120,255,.04); }
.event__status { padding: 6px 10px; border: 1px solid var(--grid-slate); text-align: center; }
.event__status--open { color: var(--x-blue); border-color: var(--muted-blue); }
.event__body h3 { margin: 6px 0 0; font-size: clamp(17px, 1.5vw, 21px); }
.event__meta { text-align: right; }
.events-cta { display: flex; align-items: center; gap: 24px; margin-top: 30px; flex-wrap: wrap; }

/* ============================================================
   10 FAQ
   ============================================================ */
.faq { border-top: 1px solid var(--grid-line); }
.faq__item { border-bottom: 1px solid var(--grid-line); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 44px 20px 0;
  font-weight: 700;
  font-size: clamp(16px, 1.4vw, 19px);
  position: relative;
  transition: color var(--t-micro) ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--blue-hover); }
/* плюс из X-геометрии, поворачивается в X при открытии */
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 4px; top: 50%;
  width: 16px; height: 16px;
  transform: translateY(-50%);
  background:
    linear-gradient(0deg, transparent 44%, var(--x-blue) 44%, var(--x-blue) 56%, transparent 56%),
    linear-gradient(90deg, transparent 44%, var(--x-blue) 44%, var(--x-blue) 56%, transparent 56%);
  transition: transform var(--t-card) ease;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { color: var(--soft-slate); padding: 0 0 20px; max-width: 720px; margin: 0; }

/* ============================================================
   11 ФИНАЛЬНЫЙ CTA
   ============================================================ */
.final-cta {
  position: relative;
  border-top: 1px solid var(--grid-line-strong);
  padding: clamp(90px, 14vh, 170px) 0;
  overflow: hidden;
  text-align: center;
  background: var(--graphite);
}
.final-cta__x {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.final-cta__x .x-real, .final-cta__x svg {
  grid-area: 1 / 1;
  width: min(72vmin, 560px);
  opacity: .2;
}
.final-cta__x .x-real { aspect-ratio: 1; height: auto; }
.final-cta__lines { color: var(--grid-slate); }
.final-cta__content { position: relative; max-width: 680px; }
.final-cta__content p { color: var(--soft-slate); }
.final-cta__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ============================================================
   12 ФОРМА
   ============================================================ */
.apply-form { border: 1px solid var(--grid-line); padding: clamp(24px, 3.4vw, 44px); background: var(--ink); }
.apply-form__route {
  margin-bottom: 22px;
  padding: 12px 16px;
  border: 1px dashed var(--muted-blue);
  color: var(--x-blue);
  line-height: 1.8;
}
.apply-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  margin-bottom: 22px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field--wide { grid-column: 1 / -1; }
.field span { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--soft-slate); }
.field input, .field select {
  background: var(--graphite);
  border: 1px solid var(--grid-slate);
  color: var(--white);
  padding: 13px 14px;
  font: inherit;
  font-size: 15px;
  transition: border-color var(--t-micro) ease;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--x-blue); }
.field input::placeholder { color: var(--grid-slate); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--soft-slate); margin-bottom: 24px; }
.consent input { accent-color: var(--x-blue); margin-top: 2px; }
.apply-form__success {
  margin: 22px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--x-blue);
  background: rgba(108,120,255,.08);
  color: var(--white);
}
.apply-form__success a { color: var(--x-blue); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--grid-line-strong); padding: clamp(40px, 6vh, 72px) 0; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: 40px;
}
.footer__brand { display: flex; flex-direction: column; gap: 10px; font-family: var(--font-display); font-weight: 700; }
.bnb-logo { display: inline-flex; line-height: 0; text-decoration: none; }
.bnb-logo__mark {
  display: block;
  width: 132px;
  height: 32px;
  background-color: #ff5c45;
  -webkit-mask: url("../assets/bnb-logo-nav.png") center / contain no-repeat;
  mask: url("../assets/bnb-logo-nav.png") center / contain no-repeat;
}
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a, .footer__contacts a { color: var(--soft-slate); text-decoration: none; font-size: 14.5px; }
.footer__nav a:hover, .footer__contacts a:hover { color: var(--white); }
.footer__contacts { display: flex; flex-direction: column; gap: 10px; }
.footer__contacts .link-arrow { color: var(--x-blue); }
.footer__legal {
  grid-column: 1 / -1;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--grid-line);
}
.footer__legal a { color: var(--soft-slate); text-decoration: none; }
.footer__legal a:hover { color: var(--white); }

/* ============================================================
   Reveal (базовое состояние; GSAP анимирует)
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(28px); }
.js.reduced-motion .reveal { opacity: 1; transform: none; }

/* ============================================================
   МОБАЙЛ
   ============================================================ */
@media (max-width: 1080px) {
  .opps { grid-template-columns: repeat(2, 1fr); }
  .opp:nth-child(n) { grid-column: span 1; }
  .opp:nth-child(5) { grid-column: span 2; }
  .card-row--3, .dirs, .route__options, .route__result-opps { grid-template-columns: repeat(2, 1fr); }
  .reason { grid-template-columns: 70px 1fr; }
  .reason p { grid-column: 2; }
  .hero__facts { grid-template-columns: repeat(3, 1fr); }
  .fact-cell:nth-child(n+4) { border-top: 1px solid var(--grid-line); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__construction, .hero__x-slot { opacity: .45; right: -10vw; }
  .x-flight--parked { opacity: .45; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .grid-overlay { grid-template-columns: 1fr; }
  .grid-overlay__col:not(:first-child) { display: none; }

  .header__nav { display: none; }
  .header__cta { margin-left: auto; padding: 10px 16px; font-size: 13.5px; }
  .header__burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 1px solid var(--grid-slate);
    padding: 10px 9px;
  }
  .header__burger span { width: 20px; height: 2px; background: var(--white); }
  .header.menu-open .header__nav {
    display: flex;
    position: fixed;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: var(--ink);
    border-bottom: 1px solid var(--grid-line);
    padding: 20px var(--gutter) 28px;
    gap: 18px;
  }

  .hero { padding-top: 100px; min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__construction, .hero__x-slot {
    position: absolute;
    top: 40%; right: -30vw;
    width: 90vw;
    opacity: .25;
  }
  .x-flight--parked { opacity: .22; }
  .hero__facts { grid-template-columns: 1fr 1fr; }
  .fact-cell:nth-child(n+3) { border-top: 1px solid var(--grid-line); }
  .hero__scroll-hint { display: none; }

  .cols-2 { grid-template-columns: 1fr; gap: 12px; }
  .card-row--3, .dirs, .route__options, .route__result-opps, .apply-form__grid { grid-template-columns: 1fr; }
  .video-block { grid-template-columns: 1fr; }
  .video-block__stage { border-right: none; border-bottom: 1px solid var(--grid-line); }

  .route__progress { grid-template-columns: repeat(5, 1fr); }
  .route__step-cell { padding: 10px 8px; min-height: 58px; }
  .route__step-cell b { display: none; }
  .route__step-cell .tech-label { font-size: 9px; }
  .route__start { flex-direction: column; text-align: center; }

  .dont-know { flex-direction: column; align-items: flex-start; }

  .event { grid-template-columns: 1fr; gap: 10px; }
  .event__status { justify-self: start; }
  .event__meta { text-align: left; }
  .event .btn { justify-self: start; }

  .reason { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__legal { flex-direction: column; gap: 12px; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
