/* =============================================================
   EmplyFlow — инжиниринговый кейс
   «Проект ищет человека. Человек ищет следующий шаг.»
   Визуальный язык: инженерный blueprint, точная геометрия,
   модульные конструкции, слои проектной документации.
   Токены наследуют design-system/colors_and_type.css.
   ============================================================= */

:root {
  --navy: #050230;
  --navy-2: #0a0540;
  --navy-3: #100b52;
  --indigo: #4a3bff;
  --indigo-2: #6a5cff;

  /* смысловые акценты кейса */
  --violet: #8a7bff;   /* система */
  --mint: #7fe9cd;     /* подтверждённое соответствие */
  --peach: #ffb777;    /* карьерная возможность */
  --pink: #ffb8e2;     /* skill gap */
  --sky: #9ad8ff;      /* проектный опыт */

  --fg1: #ffffff;
  --fg2: rgba(217, 214, 255, 0.86);
  --fg3: rgba(217, 214, 255, 0.66);
  --fg4: rgba(217, 214, 255, 0.54);
  --stroke: rgba(217, 214, 255, 0.14);
  --stroke-2: rgba(217, 214, 255, 0.26);
  --glass: rgba(217, 214, 255, 0.05);
  --glass-2: rgba(217, 214, 255, 0.09);

  --font: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --shell: min(1240px, 100% - clamp(28px, 7vw, 120px));
  --grid: rgba(217, 214, 255, 0.045);

  /* фирменные плитки: Frosted Mint / Periwinkle / Fog / Cotton Candy / Mac-and-Cheese / Blue Ribbon */
  --t-mint: #d5fff3;
  --t-peri: #cec8ff;
  --t-fog: #d9d6ff;
  --t-candy: #ffb8e2;
  --t-mac: #ffb777;
  --t-ribbon: #4a3bff;
  --ink: #050230;

  --accent: var(--violet);
}

[data-accent="violet"] { --accent: var(--violet); }
[data-accent="mint"]   { --accent: var(--mint); }
[data-accent="peach"]  { --accent: var(--peach); }
[data-accent="pink"]   { --accent: var(--pink); }
[data-accent="sky"]    { --accent: var(--sky); }

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--fg1);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

a { color: inherit; }
img, svg, canvas, video { display: block; max-width: 100%; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 0 0 14px 14px;
  background: var(--indigo);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus { top: 0; }

/* ---------- типографика ---------- */

.h-display {
  font-size: clamp(36px, 5vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.032em;
  font-weight: 800;
  margin: 0;
  text-wrap: balance;
}

.h-chapter {
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.028em;
  font-weight: 800;
  margin: 0;
  text-wrap: balance;
}

/* акценты в заголовках (mint / peach) — как в emplyflow-case-bento.css */
.h-display em,
.h-chapter em {
  font-style: normal;
  font-synthesis: none;
  font-weight: inherit;
  color: var(--mint);
}

.h-display em.is-orange,
.h-chapter em.is-orange {
  color: var(--peach);
}

.lead {
  margin: 20px 0 0;
  max-width: 62ch;
  font-size: clamp(17px, 1.3vw, 21px);
  line-height: 1.55;
  color: var(--fg2);
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg3);
}

.eyebrow b { color: var(--accent); font-weight: 700; }

/* =============================================================
   БЕНТО-СЕТКА И ФИРМЕННЫЕ ПЛИТКИ
   ============================================================= */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(36px, 4.2vw, 56px);
}

.bento > * { grid-column: span 2; }
.b-3 { grid-column: span 3; }
.b-4 { grid-column: span 4; }
.b-6 { grid-column: 1 / -1; }
.b-tall { grid-row: span 2; }

.tile {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: clamp(20px, 2.2vw, 30px);
  border-radius: 22px;
  border: 1px solid var(--stroke);
  background: var(--glass);
  overflow: hidden;
}

/* цветные плитки — тёмный текст */
.tile--mint,
.tile--peri,
.tile--fog,
.tile--candy,
.tile--mac {
  border-color: transparent;
  color: var(--ink);
  --fg1: var(--ink);
  --fg2: rgba(5, 2, 48, 0.72);
  --fg3: rgba(5, 2, 48, 0.58);
  --fg4: rgba(5, 2, 48, 0.45);
  --stroke: rgba(5, 2, 48, 0.16);
  --stroke-2: rgba(5, 2, 48, 0.28);
  --glass: rgba(255, 255, 255, 0.42);
}

.tile--mint { background: var(--t-mint); }
.tile--peri { background: var(--t-peri); }
.tile--fog { background: var(--t-fog); }
.tile--candy { background: var(--t-candy); }
.tile--mac { background: var(--t-mac); }

.tile--ribbon {
  background: var(--t-ribbon);
  border-color: transparent;
  color: #fff;
  --fg1: #fff;
  --fg2: rgba(255, 255, 255, 0.82);
  --fg3: rgba(255, 255, 255, 0.66);
  --fg4: rgba(255, 255, 255, 0.5);
  --stroke: rgba(255, 255, 255, 0.24);
  --stroke-2: rgba(255, 255, 255, 0.4);
  --glass: rgba(255, 255, 255, 0.14);
}

.tile--outline {
  background: transparent;
  border: 1px dashed rgba(255, 184, 226, 0.55);
}

.tile__eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg3);
}

.tile__value {
  font-size: clamp(30px, 3.4vw, 50px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.tile__label { font-size: 15px; line-height: 1.45; color: var(--fg2); }

.tile__title {
  margin: 0;
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.tile__text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--fg2); }

.tile > .badge { justify-self: start; }

/* фирменная четырёхлучевая искра (design-system flat spark) */
.spark {
  position: absolute;
  width: 22px;
  height: 22px;
  color: #ffffff;
  opacity: 0.92;
  pointer-events: none;
}

.spark--tr { top: 14px; right: 14px; }
.spark--br { bottom: 14px; right: 16px; width: 18px; height: 18px; opacity: 0.75; }

.tile--ribbon .spark,
.takeaway .spark {
  color: #ffb8e2;
  opacity: 0.9;
}

.rcard .spark {
  color: #ffffff;
  width: 20px;
  height: 20px;
  opacity: 0.95;
}

.tiny {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg3);
  max-width: 78ch;
}

.ui__block-title {
  margin: 0 0 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg3);
}

/* ---------- бейджи ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg3);
  white-space: nowrap;
}

.badge--verified { border-color: rgba(127, 233, 205, 0.5); color: var(--mint); }
.badge--demo { border-color: rgba(255, 184, 226, 0.42); color: var(--pink); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease);
}

.btn--primary { background: var(--indigo); color: #fff; }
.btn--primary:hover { background: #5a4bff; transform: translateY(-2px); }

.btn--ghost { background: transparent; border-color: var(--stroke-2); color: var(--fg1); }
.btn--ghost:hover { border-color: var(--violet); transform: translateY(-2px); }

.btn--sm { padding: 9px 16px; font-size: 13.5px; }

/* =============================================================
   PRELOADER
   ============================================================= */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--navy);
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}

.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader__inner { display: grid; gap: 22px; justify-items: center; width: min(420px, 84vw); }

.preloader__brand {
  margin: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg3);
}

.preloader__blueprint { width: 100%; height: auto; }
.preloader__grid path { stroke: var(--grid); stroke-width: 1; }
.preloader__frame path { fill: none; stroke: rgba(138, 123, 255, 0.4); stroke-width: 1.2; }

.preloader__pt {
  fill: var(--navy);
  stroke: rgba(217, 214, 255, 0.28);
  stroke-width: 1.4;
  transition: fill 0.4s var(--ease), stroke 0.4s var(--ease), r 0.4s var(--ease);
}

.preloader__pt.is-on { fill: var(--violet); stroke: var(--violet); }

.preloader__labels { position: relative; height: 20px; width: 100%; }

.preloader__label {
  position: absolute;
  inset: 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--fg3);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.preloader__label.is-on { opacity: 1; transform: none; }

/* =============================================================
   ТОПБАР И НАВИГАЦИЯ
   ============================================================= */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  padding: 14px 0;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
}

.topbar > .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar.is-stuck {
  background: rgba(5, 2, 48, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--stroke);
}

.topbar__back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--fg2);
  text-decoration: none;
}

.topbar__back:hover { color: var(--fg1); }

.topbar__right { display: flex; align-items: center; gap: 16px; }

.topbar__chapter {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg4);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  max-width: 30ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar.is-stuck .topbar__chapter { opacity: 1; }

.topbar__progress {
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(var(--read, 0));
  background: linear-gradient(90deg, var(--violet), var(--mint));
}

.topbar__cta { padding: 10px 18px; font-size: 14.5px; }

/* ---------- боковой рельс глав ---------- */

/* Рельс живёт строго в поле за контентной колонкой и ничего не перекрывает:
   подписи не выезжают, название текущей главы дублируется в топбаре. */
.rail {
  position: fixed;
  right: max(12px, calc((100vw - var(--shell)) / 2 - 46px));
  top: 50%;
  transform: translateY(-50%);
  z-index: 55;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.rail.is-on { opacity: 1; visibility: visible; }

.rail__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.rail__btn {
  display: block;
  width: 28px;
  padding: 6px 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.rail__label {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.rail__dot {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--stroke-2);
  transition: background 0.24s var(--ease), width 0.24s var(--ease);
}

.rail__btn:hover .rail__dot { background: var(--fg2); width: 26px; }
.rail__btn.is-active .rail__dot { background: var(--violet); width: 28px; }

/* =============================================================
   ОБЩИЕ БЛОКИ
   ============================================================= */

/* разделитель в духе чертёжной разметки */
.section-line {
  position: relative;
  width: var(--shell);
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--stroke), transparent);
}

.section-line::before,
.section-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  transform: translateY(-50%);
  background:
    linear-gradient(var(--stroke-2), var(--stroke-2)) 50% 50% / 100% 1px no-repeat,
    linear-gradient(var(--stroke-2), var(--stroke-2)) 50% 50% / 1px 100% no-repeat;
}

.section-line::before { left: 50%; margin-left: -4.5px; }
.section-line::after { right: 0; }

.chapter { position: relative; padding: clamp(76px, 8.5vw, 132px) 0; overflow: hidden; }

.chapter--ambient .shell { position: relative; z-index: 1; }

.chapter__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s var(--ease);
}

.chapter__media.is-ready { opacity: 0.34; }

.chapter__scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 2, 48, 0.88) 0%, rgba(5, 2, 48, 0.72) 42%, rgba(5, 2, 48, 0.9) 100%),
    linear-gradient(90deg, rgba(5, 2, 48, 0.94) 0%, rgba(5, 2, 48, 0.55) 52%, rgba(5, 2, 48, 0.82) 100%);
}

.chapter--light.chapter--ambient .chapter__scrim {
  background:
    linear-gradient(180deg, rgba(248, 247, 255, 0.92) 0%, rgba(248, 247, 255, 0.78) 50%, rgba(248, 247, 255, 0.94) 100%);
}

.chapter--ambient[data-accent="pink"] .chapter__media.is-ready { opacity: 0.28; }
.chapter--ambient[data-accent="violet"] .chapter__media.is-ready { opacity: 0.32; }
.chapter--ambient[data-accent="sky"] .chapter__media.is-ready { opacity: 0.3; }
.chapter--ambient[data-accent="peach"] .chapter__media.is-ready { opacity: 0.32; }

/* крупный «чертёжный» номер главы на фоне */
[data-num]::before {
  content: attr(data-num);
  position: absolute;
  right: clamp(6px, 2vw, 40px);
  top: clamp(24px, 3vw, 56px);
  z-index: 0;
  font-family: var(--mono);
  font-size: clamp(110px, 15vw, 240px);
  font-weight: 800;
  line-height: 0.78;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(217, 214, 255, 0.07);
  pointer-events: none;
  user-select: none;
}

.hero::before,
.finale::before { display: none; }

.chapter > .shell { position: relative; z-index: 1; }

/* светлая глава — смена настроения по ходу истории */
.chapter--light {
  background: linear-gradient(180deg, #efedff 0%, #e3dfff 100%);
  color: var(--ink);
  --fg1: var(--ink);
  --fg2: rgba(5, 2, 48, 0.74);
  --fg3: rgba(5, 2, 48, 0.58);
  --fg4: rgba(5, 2, 48, 0.44);
  --stroke: rgba(5, 2, 48, 0.14);
  --stroke-2: rgba(5, 2, 48, 0.26);
  --glass: rgba(255, 255, 255, 0.55);
  --glass-2: rgba(255, 255, 255, 0.75);
}

.chapter--light::before { -webkit-text-stroke-color: rgba(5, 2, 48, 0.08); }

.chapter--light .ui,
.chapter--light .offer {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(5, 2, 48, 0.12);
}

.chapter--light .offer {
  border: 2px solid rgba(13, 122, 95, 0.42);
  box-shadow: 0 18px 44px rgba(13, 122, 95, 0.12);
}

.chapter--light .offer__ribbon {
  border-color: rgba(13, 122, 95, 0.28);
  background: linear-gradient(90deg, rgba(213, 255, 243, 0.95), rgba(255, 255, 255, 0.72));
}

.chapter--light .offer__kind { color: #0d7a5f; }
.chapter--light .offer__hint { color: rgba(5, 2, 48, 0.58); }
.chapter--light .offer__apply {
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 10px 24px rgba(74, 59, 255, 0.22);
}

.chapter--light .offer__section-title { color: rgba(5, 2, 48, 0.72); }

.chapter--light .oblock { background: rgba(255, 255, 255, 0.88); }
.chapter--light .oblock[data-b="fit"] {
  border-color: rgba(13, 122, 95, 0.35);
  background: linear-gradient(180deg, rgba(213, 255, 243, 0.72), rgba(255, 255, 255, 0.92));
}
.chapter--light .oblock[data-b="gap"] {
  border-color: rgba(178, 73, 127, 0.32);
  background: linear-gradient(180deg, rgba(255, 230, 242, 0.72), rgba(255, 255, 255, 0.92));
}
.chapter--light .oblock[data-b="gain"] {
  border-color: rgba(31, 111, 156, 0.32);
  background: linear-gradient(180deg, rgba(220, 241, 255, 0.72), rgba(255, 255, 255, 0.92));
}
.chapter--light .oblock[data-b="next"] {
  border-color: rgba(163, 92, 20, 0.32);
  background: linear-gradient(180deg, rgba(255, 236, 210, 0.72), rgba(255, 255, 255, 0.92));
}

.chapter--light .oblock[data-b="fit"] .oblock__icon { background: rgba(13, 122, 95, 0.14); color: #0d7a5f; }
.chapter--light .oblock[data-b="gap"] .oblock__icon { background: rgba(178, 73, 127, 0.12); color: #b2497f; }
.chapter--light .oblock[data-b="gain"] .oblock__icon { background: rgba(31, 111, 156, 0.12); color: #1f6f9c; }
.chapter--light .oblock[data-b="next"] .oblock__icon { background: rgba(163, 92, 20, 0.12); color: #a35c14; }

.chapter--light .oblock__text { color: rgba(5, 2, 48, 0.82); }

.chapter--light .ui__bar { background: rgba(255, 255, 255, 0.55); }
.chapter--light .badge { color: rgba(5, 2, 48, 0.6); border-color: rgba(5, 2, 48, 0.24); }
.chapter--light .badge--verified { color: #0d7a5f; border-color: rgba(13, 122, 95, 0.5); }
.chapter--light .badge--demo { color: #b2497f; border-color: rgba(178, 73, 127, 0.45); }
.chapter--light .oblock[data-b="fit"] .oblock__title { color: #0d7a5f; }
.chapter--light .oblock[data-b="gap"] .oblock__title { color: #b2497f; }
.chapter--light .oblock[data-b="gain"] .oblock__title { color: #1f6f9c; }
.chapter--light .oblock[data-b="next"] .oblock__title { color: #a35c14; }
.chapter--light .compare__col--plain {
  border-style: dashed;
  border-color: rgba(5, 2, 48, 0.18);
  background: rgba(255, 255, 255, 0.42);
  color: rgba(5, 2, 48, 0.62);
}

.chapter--light .compare__col--plain .compare__tag {
  color: rgba(5, 2, 48, 0.45);
  border-color: rgba(5, 2, 48, 0.16);
  background: rgba(255, 255, 255, 0.55);
}

.chapter--light .compare__col--plain .compare__title { color: rgba(5, 2, 48, 0.72); }
.chapter--light .compare__col--plain .compare__note { color: rgba(5, 2, 48, 0.48); }
.chapter--light .compare__col--plain .compare__text { color: rgba(5, 2, 48, 0.58); }
.chapter--light .compare__col--plain .compare__mark {
  border-color: rgba(5, 2, 48, 0.16);
  color: rgba(5, 2, 48, 0.35);
}

.chapter--light .compare__col--smart {
  border: 2px solid rgba(13, 122, 95, 0.55);
  background: linear-gradient(180deg, rgba(213, 255, 243, 0.92), rgba(186, 245, 226, 0.72));
  box-shadow: 0 14px 36px rgba(13, 122, 95, 0.14);
}

.chapter--light .compare__col--smart .compare__tag {
  color: #0d7a5f;
  border-color: rgba(13, 122, 95, 0.35);
  background: rgba(255, 255, 255, 0.72);
}

.chapter--light .compare__col--smart .compare__title { color: var(--fg0); }
.chapter--light .compare__col--smart .compare__note { color: rgba(5, 2, 48, 0.62); }
.chapter--light .compare__col--smart .compare__mark {
  border-color: rgba(13, 122, 95, 0.35);
  background: rgba(255, 255, 255, 0.72);
  color: #0d7a5f;
}

.chapter--light .compare__vs {
  border-color: rgba(13, 122, 95, 0.35);
  background: rgba(255, 255, 255, 0.88);
  color: #0d7a5f;
  box-shadow: 0 8px 22px rgba(13, 122, 95, 0.12);
}

/* полноширинное типографическое заявление между главами */
.statement {
  position: relative;
  padding: clamp(56px, 7vw, 104px) 0;
  background:
    radial-gradient(900px 420px at 22% 50%, rgba(255, 184, 226, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(16, 11, 82, 0.5), rgba(5, 2, 48, 0.2));
  border-top: 1px dashed rgba(255, 184, 226, 0.32);
  border-bottom: 1px dashed rgba(255, 184, 226, 0.32);
}

.statement__list { display: grid; gap: 14px; }

.statement__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 3vw, 56px);
  align-items: center;
}

.statement__aside { display: grid; gap: 12px; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in { opacity: 1; transform: none; }

/* макет продукта */

.ui {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(16, 11, 82, 0.6), rgba(5, 2, 48, 0.5));
  overflow: hidden;
}

/* чертёжные уголки на макетах интерфейса */
.ui::after {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border-radius: 16px;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 0 / 14px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 0 0 / 1px 14px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 100% 100% / 14px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 100% 100% / 1px 14px no-repeat;
  opacity: 0.4;
}

.ui__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--stroke);
  background: rgba(5, 2, 48, 0.5);
}

.ui__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--stroke-2);
  flex: none;
}

.ui__dot--on { background: var(--mint); box-shadow: 0 0 0 4px rgba(127, 233, 205, 0.16); }

.ui__name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--fg2);
  margin-right: auto;
}

/* метрики */

.metric-row { margin-top: clamp(28px, 3.4vw, 48px); }

.metric--inline { margin-top: 18px; justify-items: start; }

/* бейджи внутри цветных плиток — тёмные, читаемые версии */
.tile--mint .badge--verified,
.tile--peri .badge--verified,
.tile--fog .badge--verified,
.tile--candy .badge--verified,
.tile--mac .badge--verified { color: #0d6b53; border-color: rgba(13, 107, 83, 0.45); }

.tile--mint .badge--demo,
.tile--peri .badge--demo,
.tile--fog .badge--demo,
.tile--candy .badge--demo,
.tile--mac .badge--demo { color: #a83f74; border-color: rgba(168, 63, 116, 0.42); }

.tile--ribbon .badge--verified { color: var(--t-mint); border-color: rgba(213, 255, 243, 0.5); }

/* =============================================================
   ГЛАВА 1. HERO
   ============================================================= */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 96px;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  /* левая треть кадра уходит в фон, чтобы не спорить с заголовком */
  -webkit-mask-image: linear-gradient(90deg, transparent 8%, rgba(0, 0, 0, 0.35) 34%, #000 62%);
  mask-image: linear-gradient(90deg, transparent 8%, rgba(0, 0, 0, 0.35) 34%, #000 62%);
}

.hero__video.is-ready { opacity: 0.85; }

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.9;
  transition: opacity 0.8s var(--ease);
}

/* когда видео доехало, canvas остаётся только как лёгкий слой связей */
.hero.has-video .hero__canvas { opacity: 0.4; }

.hero__grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 100% 64px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 64px 100%,
    radial-gradient(900px 520px at 22% 32%, rgba(106, 92, 255, 0.22), transparent 70%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
  width: var(--shell);
  margin-inline: auto;
}

.hero__title { max-width: 17ch; }

.hero__lead { max-width: 46ch; }

.hero__accent {
  display: inline-grid;
  gap: 4px;
  margin-top: clamp(28px, 3.4vw, 44px);
  padding: 18px 26px;
  border-radius: 20px;
  border: 1px dashed rgba(255, 184, 226, 0.55);
  background: rgba(255, 184, 226, 0.06);
}

.hero__accent-value {
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero__accent-label { font-size: 14px; color: var(--fg2); }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 3vw, 40px); }

.hero__roles { display: grid; gap: 12px; }

.hero__problem {
  margin: 0;
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 184, 226, 0.62);
  background:
    linear-gradient(135deg, rgba(255, 184, 226, 0.14), rgba(138, 123, 255, 0.08));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.hero__problem-lead {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--fg2);
}

.hero__problem-q {
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--mint);
}

.hero__nodes { display: grid; gap: 8px; }

.hero__node {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(217, 214, 255, 0.22);
  background: rgba(5, 2, 48, 0.66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), border-color 0.6s var(--ease);
}

.hero__node.is-in { opacity: 1; transform: none; }
.hero__node.is-filled { border-color: rgba(127, 233, 205, 0.55); }

.hero__node-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.hero__node-title::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--fg4);
  flex: none;
  transform: translateY(-1px);
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
}

.hero__node.is-filled .hero__node-title::before { background: var(--mint); border-color: var(--mint); }

.hero__node-reqs {
  margin: 0;
  padding: 0 0 0 15px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 12.5px;
  color: var(--fg3);
}

.hero__node-reqs li { position: relative; padding-left: 10px; }

.hero__node-reqs li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 4px; height: 1.5px;
  background: currentColor;
  opacity: 0.7;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg4);
  z-index: 2;
}

/* =============================================================
   ГЛАВА 2. ДО ВНЕДРЕНИЯ
   ============================================================= */

.sources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(30px, 3.6vw, 52px);
}

.source {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 20px 20px 20px 22px;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: var(--glass);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.source::before {
  content: "";
  position: absolute;
  left: 0; top: 18px; bottom: 18px;
  width: 2px;
  border-radius: 2px;
  background: var(--stroke-2);
  transition: background 0.3s var(--ease);
}

.source:hover { border-color: var(--stroke-2); transform: translateY(-3px); }
.source:hover::before { background: var(--violet); }

.source__kind {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg4);
}

.source__title { font-size: 16px; font-weight: 700; }
.source__note { font-size: 14.5px; color: var(--fg3); line-height: 1.5; }

.before__claims { display: grid; gap: 12px; margin-top: clamp(34px, 4vw, 60px); }

.claim {
  margin: 0;
  font-size: clamp(20px, 2.3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.2;
}

.claim--soft { color: var(--fg2); font-weight: 600; font-size: clamp(17px, 1.7vw, 24px); }

.families { margin-top: clamp(30px, 3.4vw, 46px); }

.families__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.families__list li {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--glass);
  font-size: 14.5px;
  color: var(--fg2);
}

/* =============================================================
   ГЛАВА 3. ИЗ ДОКУМЕНТА В ПРОФИЛЬ РОЛИ
   ============================================================= */

.transform {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
  margin-top: clamp(30px, 3.6vw, 52px);
}

.transform__side--doc { position: sticky; top: 104px; }

.transform__arrow { align-self: center; width: 60px; color: var(--fg4); }
.transform__arrow svg { width: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.doc { padding: 20px 22px; display: grid; gap: 12px; }

.doc__line {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg3);
  transition: color 0.4s var(--ease);
}

.doc__line mark {
  background: transparent;
  color: inherit;
  border-radius: 4px;
  padding: 1px 3px;
  transition: background 0.45s var(--ease), color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.doc__line.is-lit { color: var(--fg2); }
.doc__line.is-lit mark { color: var(--fg1); }

.doc__line[data-pick="must"].is-lit mark { background: rgba(138, 123, 255, 0.24); box-shadow: inset 0 -1px 0 var(--violet); }
.doc__line[data-pick="grow"].is-lit mark { background: rgba(154, 216, 255, 0.2); box-shadow: inset 0 -1px 0 var(--sky); }
.doc__line[data-pick="ctx"].is-lit mark  { background: rgba(255, 183, 119, 0.2); box-shadow: inset 0 -1px 0 var(--peach); }

.groups { padding: 18px 20px; display: grid; gap: 16px; }

.group {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(5, 2, 48, 0.4);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), border-color 0.4s var(--ease);
}

.group.is-in { opacity: 1; transform: none; }

.group[data-group="must"].is-in { border-color: rgba(138, 123, 255, 0.5); }
.group[data-group="grow"].is-in { border-color: rgba(154, 216, 255, 0.42); }
.group[data-group="ctx"].is-in  { border-color: rgba(255, 183, 119, 0.42); }

.group__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }

.group__title { font-size: 16px; font-weight: 700; }

.group__note { font-size: 13.5px; color: var(--fg3); line-height: 1.45; }

.group__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.group__item {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--glass);
  border: 1px solid transparent;
}

.group__item-title { font-size: 14.5px; font-weight: 600; }
.group__item-meta { font-size: 12px; color: var(--fg3); }

/* =============================================================
   ГЛАВА 4. ПРОФИЛЬ СОТРУДНИКА
   ============================================================= */

.passport {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
  gap: clamp(20px, 2.6vw, 38px);
  align-items: start;
  margin-top: clamp(30px, 3.6vw, 52px);
}

.passport__legend { position: sticky; top: 108px; }

.layers { padding: 12px 14px 14px; display: grid; gap: 8px; }

.layer {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(5, 2, 48, 0.28);
  overflow: hidden;
}

.layer__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg2);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.layer__title::-webkit-details-marker { display: none; }

.layer__title::after {
  content: '+';
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  font-size: 14px;
  line-height: 1;
  color: var(--fg3);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.layer[open] .layer__title::after {
  content: '−';
  border-color: var(--stroke-2);
  color: var(--fg2);
}

.layer__count {
  margin-left: auto;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--fg3);
}

.layer__items {
  list-style: none;
  margin: 0;
  padding: 0 10px 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.pitem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 0;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(5, 2, 48, 0.34);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), opacity 0.3s var(--ease);
}

.pitem__main {
  display: grid;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.pitem__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pitem__meta {
  font-size: 11px;
  line-height: 1.25;
  color: var(--fg3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pitem__src {
  flex: 0 0 auto;
  max-width: 42%;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid var(--stroke-2);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pitem[data-src="manager"] .pitem__src { border-color: rgba(127, 233, 205, 0.5); color: var(--mint); }
.pitem[data-src="project"] .pitem__src { border-color: rgba(154, 216, 255, 0.5); color: var(--sky); }
.pitem[data-src="review"] .pitem__src  { border-color: rgba(138, 123, 255, 0.5); color: var(--violet); }
.pitem[data-src="hrm"] .pitem__src     { border-color: rgba(255, 183, 119, 0.5); color: var(--peach); }
.pitem[data-src="self"] .pitem__src    { border-color: var(--stroke-2); color: var(--fg3); }

.passport.is-filtered .pitem { opacity: 0.28; }
.passport.is-filtered .pitem.is-match { opacity: 1; border-color: var(--stroke-2); background: rgba(217, 214, 255, 0.07); }

.legend { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }

.legend__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: var(--glass);
  color: var(--fg2);
  font: inherit;
  font-size: 14.5px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.24s var(--ease), color 0.24s var(--ease), background 0.24s var(--ease);
}

.legend__btn:hover { border-color: var(--stroke-2); color: var(--fg1); }
.legend__btn.is-on { border-color: var(--violet); background: rgba(138, 123, 255, 0.12); color: var(--fg1); }

.legend__swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; }

/* =============================================================
   ГЛАВА 5. ДВОЙНОЙ МАТЧИНГ
   ============================================================= */

.duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(16px, 2.2vw, 32px);
  align-items: stretch;
  margin-top: clamp(30px, 3.6vw, 52px);
}

.duo__card {
  position: relative;
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 26px 26px 28px;
  border-radius: 22px;
  border: 1px solid transparent;
  overflow: hidden;
}

.duo__card--project {
  box-shadow: inset 0 0 0 1px rgba(127, 233, 205, 0.22), 0 18px 40px -28px rgba(74, 59, 255, 0.55);
}

.duo__card--project::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--mint), rgba(127, 233, 205, 0.2));
}

.duo__card--project::after {
  content: '';
  position: absolute;
  top: 18px;
  right: -1px;
  width: 18px;
  height: calc(100% - 36px);
  border-radius: 12px 0 0 12px;
  border: 1px dashed rgba(127, 233, 205, 0.45);
  border-right: 0;
  opacity: 0.7;
  pointer-events: none;
}

.duo__card--person {
  box-shadow: inset 0 0 0 1px rgba(5, 2, 48, 0.08), 0 18px 40px -28px rgba(255, 183, 119, 0.45);
}

.duo__card--person::before {
  content: '';
  position: absolute;
  inset: 0 0 0 auto;
  width: 4px;
  background: linear-gradient(180deg, #ff9f45, rgba(255, 159, 69, 0.2));
}

.duo__card--person::after {
  content: '';
  position: absolute;
  top: 18px;
  left: -1px;
  width: 18px;
  height: calc(100% - 36px);
  border-radius: 0 12px 12px 0;
  border: 1px dashed rgba(5, 2, 48, 0.18);
  border-left: 0;
  opacity: 0.85;
  pointer-events: none;
}

.duo__visual {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin: -4px 0 2px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--stroke);
}

.duo__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.duo__tag--project {
  background: rgba(127, 233, 205, 0.18);
  border: 1px solid rgba(127, 233, 205, 0.45);
  color: var(--mint);
}

.duo__tag--person {
  background: rgba(5, 2, 48, 0.08);
  border: 1px solid rgba(5, 2, 48, 0.16);
  color: rgba(5, 2, 48, 0.72);
}

.duo__icon-wrap {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: var(--glass);
}

.duo__card--project .duo__icon-wrap {
  color: var(--mint);
  background: rgba(127, 233, 205, 0.12);
  border-color: rgba(127, 233, 205, 0.35);
}

.duo__card--person .duo__icon-wrap {
  color: rgba(5, 2, 48, 0.72);
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(5, 2, 48, 0.12);
}

.duo__icon { width: 42px; height: 42px; display: block; }

.duo__beam {
  justify-self: end;
  width: 54px;
  height: 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.9;
}

.duo__beam--project {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 16'%3E%3Cpath d='M0 8h38M32 3l8 5-8 5' fill='none' stroke='%237fe9cd' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='6' cy='8' r='2.5' fill='%237fe9cd'/%3E%3C/svg%3E");
}

.duo__beam--person {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 16'%3E%3Cpath d='M54 8H16M22 3l-8 5 8 5' fill='none' stroke='%23050230' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' opacity='0.72'/%3E%3Ccircle cx='48' cy='8' r='2.5' fill='%23ff9f45'/%3E%3C/svg%3E");
}

.duo__kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg4);
}

.duo__card--project .duo__kicker { color: var(--t-mint); }
.duo__card--person .duo__kicker { color: rgba(5, 2, 48, 0.62); }

.duo__role { margin: 0; font-size: clamp(19px, 1.9vw, 26px); font-weight: 800; letter-spacing: -0.02em; }

.duo__needs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.duo__need {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding-top: 10px;
  border-top: 1px solid var(--stroke);
}

.duo__need-mark {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 5px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
  flex: none;
}

.duo__need--project .duo__need-mark {
  background-color: rgba(127, 233, 205, 0.16);
  border: 1px solid rgba(127, 233, 205, 0.42);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6h6M6 4l2 2-2 2' fill='none' stroke='%237fe9cd' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.duo__need--person .duo__need-mark {
  background-color: rgba(255, 159, 69, 0.18);
  border: 1px solid rgba(255, 159, 69, 0.42);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 9V3M4 5l2-2 2 2' fill='none' stroke='%23c56d12' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.duo__need-body { display: grid; gap: 3px; min-width: 0; }

.duo__need-title { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg3); }
.duo__need-text { font-size: 15px; color: var(--fg2); line-height: 1.5; }

.duo__engine { display: grid; place-items: center; }

.engine { position: relative; display: grid; place-items: center; width: 120px; height: 120px; }

.engine__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(138, 123, 255, 0.4);
  animation: engine-spin 9s linear infinite;
}

.engine__ring--2 {
  inset: 16px;
  border-color: rgba(127, 233, 205, 0.4);
  border-style: dashed;
  animation-duration: 14s;
  animation-direction: reverse;
}

.engine__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg3);
}

@keyframes engine-spin { to { transform: rotate(360deg); } }

.breakdown {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: clamp(20px, 2.6vw, 40px);
  align-items: center;
  margin-top: clamp(24px, 2.8vw, 40px);
  padding: clamp(22px, 2.6vw, 34px);
  border-radius: 22px;
  border: 1px solid var(--stroke);
  background: var(--glass);
}

.breakdown__score { display: grid; gap: 8px; }

.breakdown__value {
  font-size: clamp(46px, 6vw, 84px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.breakdown__caption { font-size: 13.5px; color: var(--fg3); line-height: 1.5; max-width: 30ch; }

.breakdown__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.brow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--stroke);
}

.brow:last-child { border-bottom: 0; padding-bottom: 0; }

.brow__label { font-size: 15px; color: var(--fg2); }

.brow__value {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

.brow[data-kind="pass"] .brow__value { color: var(--mint); }
.brow[data-kind="high"] .brow__value { color: var(--peach); }
.brow[data-kind="warn"] .brow__value { color: var(--pink); }
.brow[data-kind="bar"] .brow__value { color: var(--fg1); }

.brow__track {
  grid-column: 1 / -1;
  height: 4px;
  border-radius: 4px;
  background: rgba(217, 214, 255, 0.1);
  overflow: hidden;
}

.brow__fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--violet), var(--mint));
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 1s var(--ease);
}

.brow.is-in .brow__fill { transform: scaleX(var(--v, 0)); }

/* =============================================================
   ГЛАВА 6. КОНСТРУКТОР КОМАНДЫ
   ============================================================= */

.builder__stage {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(18px, 2.4vw, 34px);
  align-items: start;
  margin-top: clamp(30px, 3.6vw, 52px);
}

.builder__slots { position: sticky; top: 104px; }

.builder__guide {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(138, 123, 255, 0.35);
  background: rgba(138, 123, 255, 0.1);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--fg1);
}

.builder__guide.is-step-1 {
  border-color: rgba(255, 184, 120, 0.45);
  background: rgba(255, 184, 120, 0.1);
}

.slots { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; counter-reset: slot; }

.slot {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: var(--glass);
  color: var(--fg2);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.24s var(--ease), background 0.24s var(--ease), transform 0.24s var(--ease), box-shadow 0.24s var(--ease);
}

.slot:hover { border-color: var(--stroke-2); transform: translateX(3px); }

.slot.is-active {
  border-color: var(--violet);
  background: rgba(138, 123, 255, 0.16);
  color: var(--fg1);
  box-shadow: 0 0 0 1px rgba(138, 123, 255, 0.35);
}

.slot.is-next:not(.is-done) {
  border-color: rgba(255, 184, 120, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 184, 120, 0.25);
  animation: slot-pulse 2.4s ease-in-out infinite;
}

@keyframes slot-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 184, 120, 0.25); }
  50% { box-shadow: 0 0 0 3px rgba(255, 184, 120, 0.35); }
}

.slot__main {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.slot__n {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--stroke-2);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg3);
}

.slot.is-done .slot__n { border-color: var(--mint); color: var(--mint); background: rgba(88, 214, 168, 0.08); }

.slot__body { display: grid; gap: 4px; min-width: 0; }

.slot__title { font-size: 15px; font-weight: 700; line-height: 1.3; }

.slot__pick {
  font-size: 12.5px;
  color: var(--fg3);
  line-height: 1.35;
}

.slot.is-done .slot__pick { color: var(--mint); }

.slot__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--stroke-2);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg2);
}

.slot.is-active .slot__cta {
  border-color: var(--violet);
  background: rgba(138, 123, 255, 0.22);
  color: var(--fg1);
}

.slot.is-next:not(.is-done) .slot__cta {
  border-color: rgba(255, 184, 120, 0.65);
  background: rgba(255, 184, 120, 0.14);
  color: var(--fg1);
}

.slot.is-done .slot__cta {
  border-color: rgba(88, 214, 168, 0.45);
  background: rgba(88, 214, 168, 0.08);
  color: var(--mint);
}

.builder__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.reqs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--stroke);
}

.req { display: grid; gap: 7px; }

.req__title {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.req[data-req="must"] .req__title { color: var(--violet); }
.req[data-req="nice"] .req__title { color: var(--sky); }
.req[data-req="ctx"] .req__title { color: var(--peach); }

.req__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 13px; color: var(--fg2); }
.req__list li { line-height: 1.4; }

.cands {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  padding: 18px 20px;
}

.cands__prompt {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed rgba(138, 123, 255, 0.45);
  background: rgba(138, 123, 255, 0.08);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fg1);
}

.cand {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(5, 2, 48, 0.42);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.24s var(--ease), transform 0.24s var(--ease), background 0.24s var(--ease), box-shadow 0.24s var(--ease);
}

.cand:hover {
  border-color: var(--violet);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.cand.is-picked { border-color: var(--mint); background: rgba(88, 214, 168, 0.1); }
.cand[disabled] { cursor: default; }
.cand[disabled]:hover { transform: none; border-color: var(--stroke); }
.cand.is-picked[disabled] { border-color: var(--violet); }

.cand__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cand__name { font-size: 15px; font-weight: 800; }
.cand__score { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--fg1); }
.cand__role { font-size: 13.5px; color: var(--fg3); }

.cand__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }

.cand__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 2px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(138, 123, 255, 0.55);
  background: rgba(138, 123, 255, 0.18);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg1);
}

.cand:hover .cand__cta {
  background: rgba(138, 123, 255, 0.28);
  border-color: var(--violet);
}

.cand.is-picked .cand__cta {
  border-color: rgba(88, 214, 168, 0.55);
  background: rgba(88, 214, 168, 0.16);
  color: var(--mint);
}

.cfact {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--fg3);
}

.cfact::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fg4);
  flex: none;
}

.cfact[data-tone="good"]::before { background: var(--mint); }
.cfact[data-tone="warn"]::before { background: var(--pink); }
.cfact[data-tone="career"]::before { background: var(--peach); }

.verdict[hidden] { display: none; }

.verdict {
  display: grid;
  gap: 10px;
  padding: 20px;
  margin: 0 20px 20px;
  border-radius: 16px;
  border: 1px solid var(--stroke-2);
  background: rgba(217, 214, 255, 0.06);
}

/* вердикт — сплошная фирменная плитка, чтобы выбор читался сразу */
.verdict[data-tone] {
  border-color: transparent;
  color: var(--ink);
  --fg1: var(--ink);
  --fg2: rgba(5, 2, 48, 0.74);
  --fg3: rgba(5, 2, 48, 0.6);
  --fg4: rgba(5, 2, 48, 0.45);
}

.verdict[data-tone="good"] { background: var(--t-mint); }
.verdict[data-tone="block"] { background: var(--t-candy); }
.verdict[data-tone="neutral"] { background: var(--t-mac); }
.verdict[data-tone] .verdict__dev { background: rgba(5, 2, 48, 0.08); }

.verdict__title { margin: 0; font-size: 16.5px; font-weight: 800; letter-spacing: -0.015em; }
.verdict__text { margin: 0; font-size: 15px; color: var(--fg2); line-height: 1.55; }

.verdict__risks { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.verdict__risks li { font-size: 14px; color: var(--fg3); padding-left: 16px; position: relative; line-height: 1.45; }
.verdict__risks li::before { content: "—"; position: absolute; left: 0; color: var(--fg4); }

.verdict__dev {
  margin: 0;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(255, 183, 119, 0.1);
  font-size: 14.5px;
  color: var(--fg2);
  line-height: 1.5;
}

.takeaway {
  position: relative;
  display: grid;
  gap: 10px;
  margin-top: clamp(28px, 3.2vw, 44px);
  padding: clamp(26px, 3vw, 44px);
  border-radius: 24px;
  border: 0;
  overflow: hidden;
  background: var(--t-candy);
  color: var(--ink);
  --fg1: var(--ink);
  --fg2: rgba(5, 2, 48, 0.74);
}

.takeaway__title { margin: 0; font-size: clamp(20px, 2.2vw, 30px); font-weight: 800; letter-spacing: -0.022em; }
.takeaway__text { margin: 0; font-size: 16px; color: var(--fg2); line-height: 1.55; max-width: 68ch; }

/* =============================================================
   ГЛАВА 7. ВНУТРЕННИЙ РЫНОК ПРОЕКТОВ
   ============================================================= */

.compare {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) auto minmax(0, 1.18fr);
  gap: clamp(12px, 1.6vw, 22px);
  align-items: stretch;
  margin-top: clamp(30px, 3.6vw, 52px);
}

.compare__bridge {
  display: grid;
  place-items: center;
  align-self: center;
}

.compare__vs {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--stroke-2);
  background: rgba(255, 255, 255, 0.06);
  font-size: 20px;
  font-weight: 800;
  color: var(--fg2);
}

.compare__col {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 24px 26px;
  border-radius: 22px;
  border: 1px solid var(--stroke);
  background: var(--glass);
}

.compare__col--plain {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.03);
  opacity: 0.92;
}

.compare__col--smart {
  border: 2px solid rgba(127, 233, 205, 0.55);
  background: linear-gradient(180deg, rgba(127, 233, 205, 0.14), rgba(127, 233, 205, 0.05));
  box-shadow: 0 16px 40px rgba(127, 233, 205, 0.12);
}

.compare__tag {
  display: inline-flex;
  align-self: start;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke-2);
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg3);
}

.compare__col--smart .compare__tag {
  color: var(--mint);
  border-color: rgba(127, 233, 205, 0.45);
  background: rgba(127, 233, 205, 0.1);
}

.compare__title { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.015em; }

.compare__note {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--fg3);
}

.compare__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.compare__item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.compare__mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid var(--stroke-2);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  color: var(--fg3);
}

.compare__col--smart .compare__mark {
  border-color: rgba(127, 233, 205, 0.45);
  background: rgba(127, 233, 205, 0.12);
  color: var(--mint);
}

.compare__text {
  font-size: 15px;
  color: var(--fg2);
  line-height: 1.5;
}

.compare__col--plain .compare__text { color: var(--fg3); }

.offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: clamp(20px, 2.4vw, 32px);
  padding: clamp(22px, 2.6vw, 34px);
  border-radius: 24px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(16, 11, 82, 0.55), rgba(5, 2, 48, 0.45));
}

.offer__ribbon {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(127, 233, 205, 0.45);
  background: rgba(127, 233, 205, 0.08);
}

.offer__kind {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint);
}

.offer__hint {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--fg2);
}

.offer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.offer__titlebox { display: grid; gap: 8px; min-width: 0; flex: 1 1 220px; }

.offer__role { margin: 0; font-size: clamp(21px, 2.2vw, 30px); font-weight: 800; letter-spacing: -0.022em; }
.offer__project { margin: 0; font-size: 14.5px; color: var(--fg3); }

.offer__apply {
  flex: none;
  align-self: center;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--indigo);
  color: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: default;
  box-shadow: 0 10px 26px rgba(74, 59, 255, 0.28);
}

.offer__meta { display: flex; flex-wrap: wrap; gap: 10px; }

.offer__meta div {
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--stroke);
}

.offer__meta dt { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg3); }
.offer__meta dd { margin: 0; font-size: 14px; font-weight: 700; color: var(--fg1); }

.offer__section { display: grid; gap: 12px; }

.offer__section-title {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg2);
}

.offer__blocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.oblock {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(5, 2, 48, 0.4);
}

.oblock__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.oblock__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  flex: none;
}

.oblock[data-b="fit"] { border-color: rgba(127, 233, 205, 0.42); background: rgba(127, 233, 205, 0.08); }
.oblock[data-b="gap"] { border-color: rgba(255, 184, 226, 0.42); background: rgba(255, 184, 226, 0.06); }
.oblock[data-b="gain"] { border-color: rgba(154, 216, 255, 0.42); background: rgba(154, 216, 255, 0.06); }
.oblock[data-b="next"] { border-color: rgba(255, 183, 119, 0.42); background: rgba(255, 183, 119, 0.06); }

.oblock[data-b="fit"] .oblock__icon { background: rgba(127, 233, 205, 0.16); color: var(--mint); }
.oblock[data-b="gap"] .oblock__icon { background: rgba(255, 184, 226, 0.16); color: var(--pink); }
.oblock[data-b="gain"] .oblock__icon { background: rgba(154, 216, 255, 0.16); color: var(--sky); }
.oblock[data-b="next"] .oblock__icon { background: rgba(255, 183, 119, 0.16); color: var(--peach); }

.oblock__title { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.oblock[data-b="fit"] .oblock__title { color: var(--mint); }
.oblock[data-b="gap"] .oblock__title { color: var(--pink); }
.oblock[data-b="gain"] .oblock__title { color: var(--sky); }
.oblock[data-b="next"] .oblock__title { color: var(--peach); }

.oblock__text { margin: 0; font-size: 15px; font-weight: 500; color: var(--fg1); line-height: 1.5; }

.offer__foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* =============================================================
   ГЛАВА 8. КАРЬЕРНАЯ КАРТА
   ============================================================= */

.map {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(20px, 2.6vw, 40px);
  align-items: center;
  margin-top: clamp(30px, 3.6vw, 52px);
}

.map__viz { position: relative; }
.map__svg { width: 100%; height: auto; overflow: visible; }

.map__from {
  position: absolute;
  left: 2%;
  top: 50%;
  transform: translateY(-50%);
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke-2);
  background: rgba(5, 2, 48, 0.85);
  font-size: 13px;
  font-weight: 700;
  max-width: 26%;
  line-height: 1.3;
}

.mpath { fill: none; stroke-width: 1.6; opacity: 0.42; transition: opacity 0.3s var(--ease), stroke-width 0.3s var(--ease); }
.mpath.is-on { opacity: 1; stroke-width: 2.6; }

.mnode { transition: opacity 0.3s var(--ease); }
.mnode circle { fill: var(--navy); stroke-width: 1.6; }
.mnode text { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; fill: var(--fg3); }
.mnode.is-on text { fill: var(--fg1); }

.map__paths { display: grid; gap: 8px; }

.ppath {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--glass);
  color: var(--fg2);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.24s var(--ease), background 0.24s var(--ease), transform 0.24s var(--ease);
}

.ppath:hover { border-color: var(--stroke-2); transform: translateX(3px); }
.ppath.is-on { color: var(--fg1); }

.ppath__kind { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg3); }
.ppath__title { grid-column: 1; font-size: 15.5px; font-weight: 700; }
.ppath__arrow { grid-row: 1 / span 2; grid-column: 2; color: var(--fg4); font-size: 15px; }

.map__detail {
  margin-top: clamp(18px, 2.2vw, 30px);
  padding: clamp(20px, 2.4vw, 30px);
  border-radius: 20px;
  border: 1px solid var(--stroke-2);
  background: var(--glass);
  display: grid;
  gap: 14px;
}

.mdetail__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.mdetail__title { margin: 0; font-size: clamp(18px, 1.9vw, 25px); font-weight: 800; letter-spacing: -0.02em; }

.mdetail__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.mdetail__col { display: grid; gap: 6px; align-content: start; }
.mdetail__col-title { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg3); }
.mdetail__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; color: var(--fg2); }
.mdetail__col p { margin: 0; font-size: 13.5px; color: var(--fg2); line-height: 1.5; }

/* =============================================================
   ГЛАВА 9. SKILL GAP
   ============================================================= */

.gap__target { margin: clamp(20px, 2.4vw, 32px) 0 12px; font-size: 15px; color: var(--fg2); }
.gap__target b { color: var(--fg1); }

.gap {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 12px;
  align-items: start;
}

.gstate {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: var(--glass);
  border-left-width: 3px;
}

.gstate--chips { align-content: start; }
.gstate--plan { align-content: start; }

.gstate[data-tone="done"] { border-left-color: var(--mint); }
.gstate[data-tone="develop"] { border-left-color: var(--violet); }

.gstate__label {
  margin: 0;
  align-self: start;
  justify-self: start;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.gstate[data-tone="done"] .gstate__label { background: var(--t-mint); }
.gstate[data-tone="develop"] .gstate__label { background: var(--t-peri); }

.gstate__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gchip {
  display: inline-grid;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(127, 233, 205, 0.35);
  background: rgba(127, 233, 205, 0.08);
}

.gchip__title { font-size: 13.5px; font-weight: 700; color: var(--fg1); line-height: 1.3; }
.gchip__meta { font-size: 11px; color: var(--fg3); letter-spacing: 0.02em; }

.gplan {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.gplan__item {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(5, 2, 48, 0.36);
  border: 1px solid var(--stroke);
}

.gplan__head { display: grid; gap: 2px; }

.gplan__title { font-size: 13.5px; font-weight: 700; line-height: 1.35; color: var(--fg1); }
.gplan__meta { font-size: 11.5px; color: var(--fg3); }

.gaction {
  display: inline-flex;
  align-items: center;
  align-self: start;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke-2);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--fg1);
}

.gaction--course {
  border-color: rgba(138, 123, 255, 0.45);
  background: rgba(138, 123, 255, 0.12);
  color: #cec8ff;
}

.gaction--training {
  border-color: rgba(154, 216, 255, 0.45);
  background: rgba(154, 216, 255, 0.1);
  color: #9ad8ff;
}

.gaction--mentor {
  border-color: rgba(255, 183, 119, 0.45);
  background: rgba(255, 183, 119, 0.1);
  color: #ffb777;
}

/* =============================================================
   ГЛАВА 10. ЦИКЛ РАЗВИТИЯ
   ============================================================= */

.cycle {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(22px, 2.8vw, 44px);
  align-items: center;
  margin-top: clamp(30px, 3.6vw, 52px);
}

.cycle__ring { display: grid; place-items: center; }
.cycle__svg { width: min(100%, 320px); height: auto; overflow: visible; }

.cycle__track { fill: none; stroke: var(--stroke); stroke-width: 1.5; }

.cycle__arc {
  fill: none;
  stroke: url(#cycle-grad);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: var(--len, 700);
  stroke-dashoffset: var(--len, 700);
  transition: stroke-dashoffset 1.6s var(--ease);
}

.cycle.is-in .cycle__arc { stroke-dashoffset: 0; }

.cycle__pt { fill: var(--navy); stroke: var(--stroke-2); stroke-width: 1.6; transition: fill 0.4s var(--ease), stroke 0.4s var(--ease); }
.cycle__pt.is-on { fill: var(--violet); stroke: var(--violet); }
.cycle__pt.is-key.is-on { fill: var(--mint); stroke: var(--mint); }

.cycle__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: cyc; }

.cstep {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 4px 14px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--glass);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.cstep.is-key { border-color: rgba(127, 233, 205, 0.45); background: rgba(127, 233, 205, 0.06); }

.cstep__n {
  grid-row: 1 / span 2;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--stroke-2);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--fg3);
}

.cstep.is-key .cstep__n { border-color: var(--mint); color: var(--mint); }

.cstep__title { font-size: 15.5px; font-weight: 700; }
.cstep__text { font-size: 14px; color: var(--fg3); line-height: 1.45; }

/* =============================================================
   ГЛАВА 11. РЕЗУЛЬТАТЫ
   ============================================================= */

.rlist {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(30px, 3.6vw, 52px);
}

.rcard {
  position: relative;
  grid-column: span 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 18px clamp(20px, 2.6vw, 44px);
  align-items: center;
  padding: clamp(24px, 2.8vw, 40px);
  border-radius: 24px;
  border: 1px solid transparent;
  overflow: hidden;
}

.rcard:nth-child(1),
.rcard:nth-child(4) { grid-column: 1 / -1; }

.rcard:nth-child(2),
.rcard:nth-child(3) { grid-template-columns: minmax(0, 1fr); align-content: space-between; }

.rcard__txt { display: grid; gap: 10px; align-content: center; }

.rcard__kind {
  margin: 0;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg3);
}

.rcard__title { margin: 0; font-size: clamp(19px, 2vw, 28px); font-weight: 800; letter-spacing: -0.022em; line-height: 1.2; }
.rcard__note { margin: 0; font-size: 14.5px; color: var(--fg3); line-height: 1.5; }

.rcard__viz { display: grid; gap: 14px; }

.shift { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.shift__from,
.shift__to { display: grid; gap: 3px; }

.shift__cap { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg3); }

.shift__val { font-size: clamp(22px, 2.4vw, 34px); font-weight: 800; letter-spacing: -0.028em; line-height: 1; }
.shift__from .shift__val { color: var(--fg3); }
.shift__to .shift__val { color: var(--fg1); }

.shift__arrow { color: var(--fg4); font-size: 22px; }

/* «было» может быть фразой, а не числом — тогда набор мельче */
.shift--text { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.shift--text .shift__arrow { display: none; }
.shift--text .shift__from .shift__val { font-size: clamp(16px, 1.5vw, 20px); font-weight: 700; letter-spacing: -0.01em; }

.bars { display: grid; gap: 8px; }

.barline { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; align-items: center; }
.barline__cap { font-size: 12px; color: var(--fg3); }

.barline__track { height: 10px; border-radius: 6px; background: rgba(5, 2, 48, 0.14); overflow: hidden; }

.barline__fill {
  display: block;
  height: 100%;
  border-radius: 6px;
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 1.1s var(--ease);
}

.barline--from .barline__fill { background: rgba(5, 2, 48, 0.28); }
.barline--to .barline__fill { background: linear-gradient(90deg, var(--t-ribbon), var(--indigo-2)); }

.rcard.is-in .barline__fill { transform: scaleX(var(--v, 0)); }

.dots { display: flex; flex-wrap: wrap; gap: 5px; }

.dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(5, 2, 48, 0.18);
  transition: background 0.5s var(--ease), transform 0.5s var(--ease);
  transform: scale(0.7);
}

.rcard.is-in .dots i.is-on { background: var(--t-ribbon); transform: none; }

/* =============================================================
   ГЛАВА 12. ФИНАЛ
   ============================================================= */

.finale {
  position: relative;
  padding: clamp(90px, 10vw, 150px) 0 clamp(70px, 8vw, 110px);
  overflow: hidden;
  text-align: center;
}

.finale__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.1s var(--ease);
}

.finale__video.is-ready { opacity: 0.42; }

.finale__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.6; z-index: 1; }

.finale.has-video .finale__canvas { opacity: 0.35; }

.finale__inner { position: relative; z-index: 2; display: grid; gap: clamp(24px, 3vw, 40px); justify-items: center; }

.finale__lines { display: grid; gap: 8px; }

.finale__line {
  margin: 0;
  font-size: clamp(25px, 3.4vw, 46px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.finale__line.is-in { opacity: 1; transform: none; }
.finale__line em { font-style: normal; color: var(--mint); }
.finale__line:last-child { color: var(--fg2); font-size: clamp(18px, 1.9vw, 26px); font-weight: 700; }

.finale__summary {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  width: 100%;
  text-align: left;
}

.finale__summary li {
  padding: 20px;
  border-radius: 18px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  overflow: visible;
}

.finale__summary .spark--tr {
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  color: #ffffff;
  opacity: 0.95;
}

.finale__summary .tile:has(.spark) .tile__text {
  padding-right: 6px;
}

.finale__next { width: 100%; max-width: 620px; text-align: left; }
.finale__next ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }

.finale__next li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--fg2);
  line-height: 1.5;
}

.finale__next li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 9px; height: 1.5px;
  background: var(--peach);
}

.finale__note { margin: 0; max-width: 62ch; font-size: 16.5px; line-height: 1.55; color: var(--fg2); }

.finale__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* =============================================================
   ФУТЕР
   ============================================================= */

.foot { padding: 40px 0 56px; border-top: 1px solid var(--stroke); }

.foot__inner {
  display: flex;
  align-items: center;
  gap: 16px 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--fg3);
}

.foot__inner > a { font-weight: 800; color: var(--fg1); text-decoration: none; }
.foot__links { display: flex; gap: 18px; flex-wrap: wrap; margin-left: auto; }
.foot__links a { color: var(--fg3); text-decoration: none; }
.foot__links a:hover { color: var(--fg1); }
.foot .tiny { margin: 0; }

/* =============================================================
   МОДАЛКА ДЕМО
   ============================================================= */

.ef-demo-modal { position: fixed; inset: 0; z-index: 260; display: grid; place-items: center; padding: 20px; }
.ef-demo-modal[hidden] { display: none !important; }

.ef-demo-modal__backdrop { position: absolute; inset: 0; background: rgba(5, 2, 48, 0.76); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

.ef-demo-modal__panel {
  position: relative;
  z-index: 1;
  width: min(480px, calc(100vw - 32px));
  max-height: min(92vh, 780px);
  overflow-y: auto;
  padding: clamp(24px, 4vw, 34px);
  border-radius: 28px;
  background: #fff;
  color: #151515;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
}

.ef-demo-modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(5, 2, 48, 0.07);
  color: #050230;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.ef-demo-modal__close:hover { background: rgba(5, 2, 48, 0.12); }

.ef-demo-modal__title {
  margin: 0 30px 10px 0;
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #050230;
}

.ef-demo-modal__lead { margin: 0 0 22px; font-size: 14px; line-height: 1.5; color: rgba(5, 2, 48, 0.68); }

.ef-demo-modal .ef-lead-form { max-width: none; }

/* =============================================================
   АДАПТИВ
   ============================================================= */

@media (max-width: 1180px) {
  .rail { display: none; }
}

@media (max-width: 1080px) {
  .bento,
  .rlist { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .bento > *,
  .rcard { grid-column: span 2; }

  .b-3, .b-4, .b-6,
  .rcard:nth-child(1),
  .rcard:nth-child(4) { grid-column: 1 / -1; }

  .rcard:nth-child(1),
  .rcard:nth-child(4) { grid-template-columns: minmax(0, 1fr); }

  .statement__grid { grid-template-columns: minmax(0, 1fr); }
  .statement__list { max-width: none; }

  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 44px); }
  .hero__title { max-width: 20ch; }
  .hero__lead { max-width: 58ch; }

  .sources { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .transform__side--doc { position: static; }

  .transform,
  .duo,
  .passport,
  .builder__stage,
  .compare,
  .map,
  .cycle,
  .breakdown,
  .rcard { grid-template-columns: minmax(0, 1fr); }

  .compare__bridge { padding: 2px 0; }
  .compare__vs { transform: rotate(90deg); width: 40px; height: 40px; font-size: 18px; }

  .transform__arrow { justify-self: center; transform: rotate(90deg); }

  .passport__legend,
  .builder__slots { position: static; }

  .gap { grid-template-columns: minmax(0, 1fr); }
  .gplan { grid-template-columns: minmax(0, 1fr); }

  .gstate { grid-template-columns: minmax(0, 1fr); }

  .map__from { position: static; transform: none; max-width: none; justify-self: start; display: inline-block; margin-bottom: 12px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  .layer__items { grid-template-columns: minmax(0, 1fr); }

  .pitem__src { max-width: 46%; }

  .sources { grid-template-columns: minmax(0, 1fr); }

  .bento,
  .rlist { grid-template-columns: minmax(0, 1fr); }

  .bento > *,
  .rcard,
  .b-3, .b-4, .b-6 { grid-column: 1 / -1; }

  [data-num]::before { font-size: clamp(90px, 26vw, 150px); opacity: 0.7; }

  .hero { min-height: auto; padding: 116px 0 72px; }
  .hero__scroll { display: none; }

  .topbar__chapter { display: none; }

  .duo__engine { padding: 6px 0; }
  .engine { width: 88px; height: 88px; }

  .cands { grid-template-columns: minmax(0, 1fr); }
  .verdict { margin: 0 16px 16px; }

  .offer__head { flex-direction: column; align-items: stretch; }
  .offer__apply { width: 100%; text-align: center; }
  .offer__blocks { grid-template-columns: minmax(0, 1fr); }

  .shift { gap: 10px; }
  .shift__arrow { transform: rotate(90deg); }

  .foot__links { margin-left: 0; }
}

@media (max-width: 520px) {
  .pitem { grid-template-columns: minmax(0, 1fr); }
  .pitem__src { grid-row: auto; grid-column: 1; justify-self: start; }

  .gitem { grid-template-columns: minmax(0, 1fr); }
  .gitem__action { grid-row: auto; grid-column: 1; justify-self: start; }

  .slot__main { grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
  .slot__n { width: 28px; height: 28px; font-size: 11px; }
  .slot__cta { min-height: 38px; font-size: 12px; }
}

/* WebKit: em в заголовках без font-style:normal даёт синтетический курсив */
@media (max-width: 1080px) {
  .h-display em,
  .h-chapter em {
    font-style: normal !important;
    font-synthesis: none !important;
  }
}

/* =============================================================
   REDUCED MOTION
   ============================================================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .slot.is-next:not(.is-done) { animation: none; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .preloader { display: none; }

  .reveal,
  .hero__node,
  .group,
  .finale__line { opacity: 1 !important; transform: none !important; }

  .hero__canvas,
  .finale__canvas { display: none; }

  .cycle__arc { stroke-dashoffset: 0 !important; }
  .brow__fill,
  .barline__fill { transform: scaleX(var(--v, 1)) !important; }
}
