/* =====================================================================
   Capability & Credentials Deck
   Layout: каждый слайд — «лист чертежа»: рамка, слева поле подшивки
   (в нём навигация), в правом нижнем углу штамп с номером листа.
   Внутри листа — 12-колоночная сетка. Один акцент — «синька»:
   размерные линии, номера разделов, активные состояния.
   Единый светлый вид выбран намеренно: документ живёт как стопка листов
   и печатается в PDF без отдельной темы.
   ===================================================================== */
:root {
  color-scheme: light;
  --paper: #ECEEF2;        /* лист: прохладная калька */
  --panel: #F7F8FA;        /* светлые плашки и карточки */
  --ink: #11141A;          /* графит */
  --ink-2: #363D4A;        /* основной текст второго уровня */
  --muted: #5A6376;        /* подписи и метки */
  --rule: #B9C0CB;         /* линии рамки */
  --rule-soft: #D3D8E0;    /* внутренние линии */
  --accent: #2141DB;       /* синька */
  --accent-soft: #DCE3FA;
  --hatch: rgba(33, 65, 219, .08);
  --stage: #13161D;        /* тёмная подложка для медиа и схем */
  --stage-2: #1C2029;
  --stage-ink: #E8EBF0;
  --stage-muted: #9AA3B3;
  --stage-rule: #343A47;
  --stage-accent: #8FA2FF;
  --stage-ok: #4FCB8E;
  --stage-warn: #E7B24A;
  --stage-bad: #F07A70;

  --f-display: "Geologica", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Geologica", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Martian Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --bind: 64px;                         /* поле подшивки слева */
  --edge: 14px;                         /* поле рамки */
  --pad: clamp(22px, 2.3vw, 40px);      /* отступ внутри рамки */
  --stamp-h: 30px;
  --gap: clamp(16px, 1.7vw, 28px);
}

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-snap-type: y proximity; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--f-text);
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
}
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sheet:focus { outline: none; }
.skip {
  position: fixed; left: 12px; top: 12px; z-index: 60;
  padding: 10px 14px; background: var(--ink); color: var(--paper); text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }
.num { font-variant-numeric: tabular-nums; }
.nb { white-space: nowrap; }

/* ---------- типографика ---------- */
.label {
  font: 500 10.5px/1.35 var(--f-mono);
  font-stretch: 87.5%;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}
.label--accent, .sec-no { color: var(--accent); }
.label--ink { color: var(--ink); }
.display {
  font: 640 clamp(38px, 4.6vw, 78px)/1.0 var(--f-display);
  letter-spacing: -.036em;
  font-variation-settings: "SHRP" 100;
  text-wrap: balance;
}
.h2 {
  font: 620 clamp(30px, 3.2vw, 54px)/1.04 var(--f-display);
  letter-spacing: -.03em;
  font-variation-settings: "SHRP" 100;
  text-wrap: balance;
  max-width: 24ch;
}
.h3 {
  font: 600 clamp(17px, 1.3vw, 21px)/1.22 var(--f-display);
  letter-spacing: -.012em;
  text-wrap: balance;
}
.lead {
  font-size: clamp(16px, 1.22vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 62ch;
  text-wrap: pretty;
}
.txt { font-size: clamp(14px, .98vw, 15.5px); line-height: 1.52; color: var(--ink-2); text-wrap: pretty; }

/* ---------- лист ---------- */
.sheet {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  padding:
    calc(var(--edge) + var(--pad))
    calc(var(--edge) + var(--pad))
    calc(var(--edge) + var(--stamp-h) + var(--pad) * .75)
    calc(var(--bind) + var(--pad));
  scroll-snap-align: start;
}
.sheet::before {
  content: "";
  position: absolute;
  inset: var(--edge) var(--edge) var(--edge) var(--bind);
  border: 1px solid var(--rule);
  pointer-events: none;
}
.sheet__eyebrow { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.sheet__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(20px, 3vh, 40px);
  min-height: 0;
}
.sheet__intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: end; }
.sheet__intro .lead { justify-self: start; }

/* ---------- номер листа в углу рамки ---------- */
.stamp {
  position: absolute;
  right: var(--edge);
  bottom: var(--edge);
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 7px 12px 7px 14px;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  background: var(--paper);
  font: 500 10px/1 var(--f-mono);
  font-stretch: 87.5%;
  letter-spacing: .04em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.stamp__n { font: 600 14px/1 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- навигация в поле подшивки ---------- */
.rail {
  position: fixed;
  z-index: 20;
  left: 0; top: 0; bottom: 0;
  width: var(--bind);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.rail ol { display: flex; flex-direction: column; gap: 1px; }
.rail a {
  position: relative;
  display: block;
  padding: 7px 0 7px 24px;
  font: 500 11px/1 var(--f-mono);
  font-stretch: 87.5%;
  letter-spacing: .04em;
  color: var(--muted);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.rail a::before {
  content: "";
  position: absolute; left: 11px; top: 50%;
  width: 7px; height: 1px;
  background: var(--rule);
  transition: width .15s, background-color .15s;
}
.rail a:hover { color: var(--ink); }
.rail a[aria-current="true"] { color: var(--accent); }
.rail a[aria-current="true"]::before { width: 11px; left: 8px; background: var(--accent); }
.rail__name {
  position: absolute;
  left: calc(100% - 2px); top: 50%;
  padding: 6px 9px;
  background: var(--ink);
  color: var(--paper);
  white-space: nowrap;
  letter-spacing: .04em;
  text-transform: none;
  opacity: 0;
  pointer-events: none;
  transform: translate(-4px, -50%);
  transition: opacity .15s, transform .15s;
}
.rail a:hover .rail__name, .rail a:focus-visible .rail__name { opacity: 1; transform: translate(0, -50%); }
.rail__block {
  margin: 12px 0 4px 11px;
  font: 500 9px/1 var(--f-mono);
  letter-spacing: .12em;
  color: var(--rule);
}

/* ---------- обложка: тёмный лист с живой сценой (assets/cover.js) ---------- */
.sheet--cover {
  --cv-bg: #0E1119;
  --cv-ink: #E8EBF0;
  --cv-muted: #9AA3B3;
  --cv-rule: rgba(154, 163, 179, .22);
  --cv-accent: #8FA2FF;
  color: var(--cv-ink);
}
.sheet--cover::before {
  border-color: var(--cv-bg);
  background:
    radial-gradient(58% 66% at 72% 46%, rgba(78, 96, 214, .17), transparent 72%),
    linear-gradient(rgba(143, 162, 255, .045) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(143, 162, 255, .045) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--cv-bg);
}
.sheet--cover :focus-visible { outline-color: var(--cv-accent); }
.sheet--cover ::selection { background: rgba(143, 162, 255, .35); }
.cover-fx { position: absolute; inset: var(--edge) var(--edge) var(--edge) var(--bind); overflow: hidden; pointer-events: none; }
.cover-fx canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cover__print { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cover {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto minmax(0, 1fr) auto;
  column-gap: var(--gap);
  row-gap: clamp(16px, 2.8vh, 34px);
}
.cover__mast { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
.sheet--cover .label { color: var(--cv-muted); }
.sheet--cover .label--accent { color: var(--cv-accent); }
.brand { display: flex; align-items: center; gap: 12px; font: 650 clamp(18px, 1.45vw, 23px)/1 var(--f-display); letter-spacing: -.02em; }
.brand__mark { display: inline-grid; grid-template-columns: 11px 11px; gap: 3px; }
.brand__mark i { display: block; height: 22px; border: 1.5px solid var(--cv-ink); }
.brand__mark i:last-child { background: var(--cv-accent); border-color: var(--cv-accent); transform: translateY(5px); }
.cover__main { grid-column: 1 / 6; grid-row: 2; align-self: center; display: flex; flex-direction: column; gap: clamp(14px, 2.2vh, 24px); min-width: 0; }
.cover__main .display { max-width: 14ch; font-size: clamp(36px, 4.15vw, 70px); }
.sheet--cover .lead { color: var(--cv-muted); max-width: 44ch; }
.cover__toc {
  margin-top: clamp(4px, 1.6vh, 18px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 10px clamp(24px, 3vw, 52px);
}
.cover__toc ol { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; }
.cover__toc a { display: flex; gap: 10px; text-decoration: none; font-size: 14.5px; color: rgba(232, 235, 240, .82); }
.cover__toc a span { font: 500 11px/1.9 var(--f-mono); color: var(--cv-accent); }
.cover__toc a:hover { color: var(--cv-ink); text-decoration: underline; }

.cover__stage { grid-column: 6 / -1; grid-row: 2; position: relative; min-height: 340px; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.cover__stage:active { cursor: grabbing; }
.cover__inset { position: absolute; right: 16px; bottom: 16px; width: clamp(140px, 13.5vw, 212px); display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.cover__inset-img { aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid rgba(143, 162, 255, .5); background: var(--stage); box-shadow: 0 10px 40px rgba(0, 0, 0, .45); }
.cover__inset-img img { width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 0 0 0); transition: clip-path .4s cubic-bezier(.2, .7, .2, 1), opacity .4s; }
.cover__inset.is-swap img { clip-path: inset(0 0 0 100%); opacity: .25; transition-duration: .2s; }
.cover__inset--light .cover__inset-img { background: #0F1320; }
.cover__inset--light .cover__inset-img img { object-fit: contain; padding: 6px; filter: invert(.92) hue-rotate(180deg) saturate(1.4); }
.cover__inset figcaption { font: 500 9.5px/1.2 var(--f-mono); font-stretch: 87.5%; letter-spacing: .06em; text-transform: uppercase; color: var(--cv-muted); text-align: right; }
.cover__hint { position: absolute; left: 86px; bottom: 34px; font: 500 9.5px/1.2 var(--f-mono); font-stretch: 87.5%; letter-spacing: .06em; text-transform: uppercase; color: rgba(154, 163, 179, .7); pointer-events: none; }

.cover__modes { grid-column: 1 / -1; grid-row: 3; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cover__modes li { border-top: 1px solid var(--cv-rule); min-width: 0; }
.cover__modes li + li { border-left: 1px solid var(--cv-rule); }
.cmode { position: relative; display: flex; flex-direction: column; gap: 5px; height: 100%; padding: 13px 14px 2px; text-decoration: none; color: inherit; transition: background-color .2s; }
.cover__modes li:first-child .cmode { padding-left: 0; }
.cmode:hover { background: rgba(143, 162, 255, .06); }
.cmode__n { font: 500 10px/1 var(--f-mono); color: var(--cv-accent); font-variant-numeric: tabular-nums; }
.cmode__t { font: 600 11px/1.3 var(--f-mono); font-stretch: 87.5%; letter-spacing: .06em; text-transform: uppercase; color: var(--cv-ink); transition: color .2s; }
.cmode__s { font-size: 12.5px; line-height: 1.38; color: var(--cv-muted); text-wrap: pretty; transition: color .2s; }
.cmode__bar { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--cv-accent); transform-origin: left center; transform: scaleX(0); }
.cmode[aria-current="true"] .cmode__bar { transform: scaleX(var(--p, 0)); }
.cmode[aria-current="true"] .cmode__t { color: var(--cv-accent); }
.cmode[aria-current="true"] .cmode__s, .cmode:hover .cmode__s { color: var(--cv-ink); }
.cmode:focus-visible { outline-offset: -2px; }

/* без скрипта сцены на обложке остаются текст, фото и список направлений */
.sheet--cover:not(.cover--live) .cover-fx, .sheet--cover:not(.cover--live) .cover__hint { display: none; }

@keyframes cvIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes cvFade { from { opacity: 0; } to { opacity: 1; } }
.cover--live .cover__mast { animation: cvFade 1s .1s both; }
.cover--live .cover__main > * { animation: cvIn .9s cubic-bezier(.2, .7, .2, 1) both; }
.cover--live .cover__main > :nth-child(1) { animation-delay: .25s; }
.cover--live .cover__main > :nth-child(2) { animation-delay: .38s; }
.cover--live .cover__main > :nth-child(3) { animation-delay: .52s; }
.cover--live .cover__main > :nth-child(4) { animation-delay: .66s; }
.cover--live .cover__modes > li { animation: cvIn .8s cubic-bezier(.2, .7, .2, 1) both; }
.cover--live .cover__modes > li:nth-child(1) { animation-delay: 1s; }
.cover--live .cover__modes > li:nth-child(2) { animation-delay: 1.07s; }
.cover--live .cover__modes > li:nth-child(3) { animation-delay: 1.14s; }
.cover--live .cover__modes > li:nth-child(4) { animation-delay: 1.21s; }
.cover--live .cover__modes > li:nth-child(5) { animation-delay: 1.28s; }
.cover--live .cover__modes > li:nth-child(6) { animation-delay: 1.35s; }
.cover--live .cover__inset, .cover--live .cover__hint { animation: cvFade 1s 1.6s both; }

/* ---------- 01 кто мы ---------- */
.who {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(20px, 3.4vh, 44px) var(--gap);
  align-items: start;
}
.who__text { grid-column: 1 / 8; display: flex; flex-direction: column; gap: 20px; }
.who__facts { grid-column: 9 / -1; display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.who__facts > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule-soft); }
.who__facts dd { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.who__big { display: flex; align-items: baseline; gap: 12px; padding: 14px 0 12px; border-bottom: 1px solid var(--rule-soft); }
.who__big b { font: 640 clamp(44px, 4.4vw, 70px)/.9 var(--f-display); letter-spacing: -.04em; font-variation-settings: "SHRP" 100; }
.who__big span { font-size: 15px; line-height: 1.35; color: var(--ink-2); max-width: 16ch; }

/* путь — как цепочка размеров на чертеже */
.path { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.path__step { position: relative; padding: 22px clamp(14px, 2vw, 32px) 0 0; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--ink); }
.path__step::before { content: ""; position: absolute; left: 0; top: -7px; width: 1px; height: 13px; background: var(--ink); }
.path__step:last-child::after { content: ""; position: absolute; right: 0; top: -7px; width: 1px; height: 13px; background: var(--ink); }
.path__step:last-child { padding-right: 0; }
.path__step .txt { max-width: 44ch; }
.path__step--now { border-top-color: var(--accent); }
.path__step--now::before, .path__step--now::after { background: var(--accent) !important; }

/* ---------- 02 люди ---------- */
.people { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
.person {
  grid-column: span 4;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--rule);
  min-width: 0;
}
.person__photo {
  aspect-ratio: 4 / 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 1px dashed var(--rule);
  background: repeating-linear-gradient(-45deg, var(--hatch) 0 6px, transparent 6px 12px);
  font: 620 24px/1 var(--f-display);
  color: var(--accent);
}
.person__body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.person__name { font: 620 clamp(19px, 1.5vw, 24px)/1.15 var(--f-display); letter-spacing: -.02em; }
.person__dl { display: flex; flex-direction: column; gap: 9px; }
.person__dl dd { font-size: 14px; line-height: 1.45; color: var(--ink-2); margin-top: 3px; }
.together { grid-column: span 4; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--ink); padding-top: 14px; }
.together ul { display: flex; flex-direction: column; }
.together li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--rule-soft); }
.together li b { font: 600 16px/1.3 var(--f-display); }
.together li span { font-size: 14px; color: var(--ink-2); }

/* заглушка: поле, которое нужно заполнить */
.ph {
  display: inline;
  padding: 1px 5px;
  background: repeating-linear-gradient(-45deg, var(--hatch) 0 5px, transparent 5px 10px);
  box-shadow: inset 0 0 0 1px rgba(33, 65, 219, .35);
  color: var(--accent);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.ph::before {
  content: "заполнить · ";
  font: 500 9.5px/1 var(--f-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ---------- 03 компетенции ---------- */
.skills { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); }
.skills th, .skills td { text-align: left; vertical-align: top; padding: 11px 22px 11px 0; border-bottom: 1px solid var(--rule-soft); }
.skills thead th { padding-block: 9px; }
.skills tbody th { font: 600 clamp(15px, 1.1vw, 18px)/1.3 var(--f-display); letter-spacing: -.01em; width: 22%; }
.skills td { font-size: clamp(14px, .98vw, 15.5px); line-height: 1.48; color: var(--ink-2); }
.skills td:last-child { width: 30%; padding-right: 0; font: 500 11.5px/1.55 var(--f-mono); font-stretch: 87.5%; color: var(--ink); }

/* ---------- 04 подход и 05 направления: сетка 3×2 ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.cell {
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px 24px 20px;
  border-bottom: 1px solid var(--rule-soft);
  border-right: 1px solid var(--rule-soft);
  min-width: 0;
}
.grid3 > .cell:nth-child(3n) { border-right: 0; padding-right: 0; }
.grid3 > .cell:nth-child(3n + 1) { padding-left: 0; }
.cell__ex { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--rule); display: flex; flex-direction: column; gap: 5px; }
.cell__ex p:not(.label) { font-size: 14px; line-height: 1.45; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.chip {
  font: 500 11px/1 var(--f-mono);
  font-stretch: 87.5%;
  letter-spacing: .02em;
  padding: 6px 8px;
  border: 1px solid var(--rule);
  background: var(--panel);
  color: var(--ink-2);
}

/* ---------- 06 избранные проекты ---------- */
.switcher-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.switcher { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--rule); background: var(--panel); }
.switcher button {
  border: 0;
  border-right: 1px solid var(--rule-soft);
  background: none;
  padding: 9px 14px;
  font: 500 13px/1 var(--f-text);
  color: var(--ink-2);
  cursor: pointer;
}
.switcher button:last-child { border-right: 0; }
.switcher button:hover { color: var(--ink); background: var(--accent-soft); }
.switcher button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.linkbtn {
  border: 0; background: none; padding: 6px 0; cursor: pointer;
  font: 500 11px/1 var(--f-mono); font-stretch: 87.5%; letter-spacing: .05em; text-transform: uppercase;
  color: var(--accent); text-decoration: underline; text-underline-offset: 4px;
}
.copy-status { font: 500 11px/1 var(--f-mono); color: var(--muted); }
.copy-field { width: min(100%, 420px); font: 12px/1.4 var(--f-mono); padding: 6px 8px; border: 1px solid var(--rule); background: var(--panel); }

.switcher .cnt { margin-left: 6px; font: 500 10px/1 var(--f-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.switcher button[aria-pressed="true"] .cnt { color: var(--accent-soft); }

/* оглавление проектов по направлениям */
.idx { columns: 3 250px; column-gap: clamp(24px, 3vw, 52px); border-top: 1px solid var(--ink); padding-top: 14px; }
.idx__group { break-inside: avoid; margin-bottom: 16px; }
.idx__group ol { margin-top: 6px; display: flex; flex-direction: column; }
.idx a {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 16px;
  gap: 1px 10px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid var(--rule-soft);
  text-decoration: none;
}
.idx__n { grid-row: span 2; font: 500 11px/1.7 var(--f-mono); color: var(--accent); font-variant-numeric: tabular-nums; }
.idx__t { font: 600 clamp(14px, 1.05vw, 16px)/1.28 var(--f-display); letter-spacing: -.01em; }
.idx__go { grid-row: span 2; justify-self: end; font: 500 12px/1.7 var(--f-mono); color: var(--muted); transition: transform .15s, color .15s; }
.idx__k { font: 500 9.5px/1.35 var(--f-mono); font-stretch: 87.5%; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.idx a:hover .idx__t, .idx a:hover .idx__go { color: var(--accent); }
.idx a:hover .idx__go { transform: translateX(3px); }
.idx-note { font-size: 14px; color: var(--ink-2); max-width: 80ch; }
.idx--single { columns: 1; }
.idx--single ol { display: block; columns: 2 300px; column-gap: clamp(24px, 3vw, 52px); }
.idx--single li { break-inside: avoid; }

/* ---------- лист кейса ---------- */
.case-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: end; }
.case-head__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 12px; }
.kind { display: inline-flex; align-items: center; gap: 7px; }
.kind::before { content: ""; width: 7px; height: 7px; background: var(--ink); }
.kind--own::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.case-title {
  font: 620 clamp(26px, 2.55vw, 44px)/1.06 var(--f-display);
  letter-spacing: -.028em;
  font-variation-settings: "SHRP" 100;
  text-wrap: balance;
  max-width: 26ch;
}
.case-comp { margin-top: 10px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 15px; color: var(--ink-2); }

.key { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding-bottom: 2px; }
.key__v {
  font: 640 clamp(40px, 4.3vw, 72px)/.92 var(--f-display);
  letter-spacing: -.04em;
  font-variation-settings: "SHRP" 100;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.key__v small { font-size: .5em; letter-spacing: -.02em; }
.key__l { font-size: 14px; line-height: 1.42; color: var(--ink-2); max-width: 34ch; }

/* размерная линия: «было → стало» */
.dim { display: grid; grid-template-columns: auto minmax(40px, 1fr) auto; align-items: center; gap: 12px; color: var(--accent); }
.dim__v {
  font: 640 clamp(30px, 3.1vw, 52px)/1 var(--f-display);
  letter-spacing: -.035em;
  font-variation-settings: "SHRP" 100;
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.dim__v small { font-size: .46em; letter-spacing: 0; color: var(--ink-2); margin-left: .15em; }
.dim__line { position: relative; height: 16px; min-width: 40px; }
.dim__line::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  border-top: 1px solid currentColor;
}
.dim__line::after {
  content: ""; position: absolute; right: 1px; top: 50%;
  width: 9px; height: 9px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.dim__line i { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: currentColor; }

.case-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: start; }
.case-text { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; align-content: start; }
.blk { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.blk--wide { grid-column: 1 / -1; }
.blk--result { padding-top: 12px; border-top: 1px solid var(--ink); }
.results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 22px; margin-top: 4px; }
.results li { position: relative; padding-left: 15px; font-size: 14.5px; line-height: 1.45; color: var(--ink); text-wrap: pretty; }
.results li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; background: var(--accent); }
.case-foot { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; padding-top: 10px; border-top: 1px solid var(--rule-soft); }
.case-foot p:not(.label) { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); margin-top: 4px; }
.case-foot > div:only-child { grid-column: 1 / -1; }

.case-media { display: grid; gap: 12px; align-content: start; min-width: 0; }
.fig { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fig__frame { position: relative; overflow: hidden; background: var(--stage); border: 1px solid var(--rule); max-width: 100%; }
.fig__frame--light { background: #FFFFFF; }
.fig__frame img, .fig__frame video { width: 100%; height: 100%; object-fit: cover; }
.fig__frame--light img { object-fit: contain; }
.fig figcaption, .media-cap {
  font: 500 10.5px/1.4 var(--f-mono);
  font-stretch: 87.5%;
  letter-spacing: .02em;
  color: var(--muted);
}
.ar-16x9 { aspect-ratio: 16 / 9; }
.ar-16x10 { aspect-ratio: 16 / 10; }
.ar-21x9 { aspect-ratio: 21 / 9; }
.ar-4x3 { aspect-ratio: 4 / 3; }
.ph-media {
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(-45deg, var(--hatch) 0 8px, transparent 8px 16px), var(--panel);
  border: 1px dashed rgba(33, 65, 219, .45);
}
.ar-3x1 { aspect-ratio: 3 / 1; }
.ar-1x1 { aspect-ratio: 1 / 1; }
.ar-3x4 { aspect-ratio: 3 / 4; }
.ar-9x16 { aspect-ratio: 9 / 16; }
.ar-chat { aspect-ratio: 1600 / 487; }
.ar-lods { aspect-ratio: 1200 / 520; }
.pos-top img { object-position: 50% 0; }
.pos-left img { object-position: 0 50%; }
.media-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.media-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

/* схема-цепочка на тёмной подложке */
.flow {
  background: var(--stage);
  color: var(--stage-ink);
  border: 1px solid var(--stage);
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.flow__title { color: var(--stage-muted); margin-bottom: 10px; }
.flow ol { display: flex; flex-direction: column; }
.flow li {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 2px 10px;
  padding: 7px 0 9px;
}
.flow li::before {
  content: ""; position: absolute; left: 4px; top: 26px; bottom: -7px;
  border-left: 1px dashed var(--stage-rule);
}
.flow li:last-child::before { display: none; }
.flow__n { grid-row: span 2; font: 500 10.5px/1.6 var(--f-mono); color: var(--stage-accent); font-variant-numeric: tabular-nums; }
.flow__t { font: 600 15px/1.3 var(--f-display); }
.flow__d { font-size: 13px; line-height: 1.4; color: var(--stage-muted); }
.flow li.flow__hl .flow__t { color: var(--stage-accent); }
.flow__loop {
  margin-top: 8px;
  padding: 9px 12px;
  border: 1px dashed var(--stage-rule);
  font-size: 13px; line-height: 1.4; color: var(--stage-muted);
}
.flow__loop b { color: var(--stage-ink); font-weight: 600; }
.flow--compact li { padding: 5px 0 7px; }
.flow--compact li::before { top: 22px; }

.pos-right img { object-position: 100% 50%; }
.media-split { display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, 1fr); gap: 10px; align-items: start; }

/* панель управления сетью (иллюстрация на демо-данных) */
.panel { background: var(--stage); color: var(--stage-ink); padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 12px; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 500 10.5px/1 var(--f-mono); font-stretch: 87.5%; letter-spacing: .04em; color: var(--stage-muted); }
.panel__live { display: inline-flex; align-items: center; gap: 8px; color: var(--stage-ink); text-transform: uppercase; }
.panel__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--stage-ok); }
.panel__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.panel__kpis > div { display: flex; flex-direction: column; gap: 4px; padding: 9px 10px; border: 1px solid var(--stage-rule); min-width: 0; }
.panel__kpis small { font: 500 9.5px/1.2 var(--f-mono); font-stretch: 87.5%; letter-spacing: .04em; text-transform: uppercase; color: var(--stage-muted); }
.panel__kpis b { font: 640 22px/1 var(--f-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.panel__kpis em { font: 500 10px/1.2 var(--f-mono); font-style: normal; color: var(--stage-ok); }
.stores { display: flex; flex-direction: column; gap: 6px; }
.st { display: grid; grid-template-columns: 96px minmax(0, 1fr) 42px 64px; gap: 10px; align-items: center; font-size: 12.5px; }
.st__bar { position: relative; height: 7px; background: var(--stage-rule); }
.st__bar i { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); background: var(--stage-ok); }
.st__bar i.is-warn { background: var(--stage-warn); }
.st__bar i.is-bad { background: var(--stage-bad); }
.st__bar::after { content: ""; position: absolute; top: -3px; bottom: -3px; left: 83.3%; width: 1px; background: var(--stage-ink); opacity: .6; }
.st__pc { font: 500 11px/1 var(--f-mono); text-align: right; font-variant-numeric: tabular-nums; }
.pill { padding: 4px 6px; text-align: center; font: 500 9.5px/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; }
.pill--ok { color: var(--stage-ok); background: rgba(79, 203, 142, .14); }
.pill--warn { color: var(--stage-warn); background: rgba(231, 178, 74, .14); }
.pill--bad { color: var(--stage-bad); background: rgba(240, 122, 112, .15); }
.panel__alerts { display: flex; flex-direction: column; gap: 7px; padding-top: 10px; border-top: 1px dashed var(--stage-rule); font-size: 12.5px; line-height: 1.4; color: var(--stage-muted); }
.panel__alerts p { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 8px; }
.panel__alerts b { font: 500 9.5px/1.6 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--stage-warn); }
.panel__alerts span strong { color: var(--stage-ink); font-weight: 500; }
.panel__foot { font: 500 9.5px/1.3 var(--f-mono); color: var(--stage-muted); opacity: .8; }

/* сценарии системы: дорожки шагов */
.lanes { background: var(--stage); color: var(--stage-ink); padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 13px; }
.lane { display: flex; flex-direction: column; gap: 6px; }
.lane__name { font: 500 10px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--stage-muted); }
.lane ol { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px 14px; }
.lane li { position: relative; padding: 6px 8px; border: 1px solid var(--stage-rule); font-size: 12px; line-height: 1.25; }
.lane li:not(:last-child)::after { content: "→"; position: absolute; right: -12px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--stage-muted); }
.lane li.t-ai { border-color: var(--stage-accent); background: rgba(143, 162, 255, .14); }
.lane li.t-human { border-style: dashed; border-color: var(--stage-warn); }
.lanes__legend { display: flex; flex-wrap: wrap; gap: 8px 16px; padding-top: 10px; border-top: 1px dashed var(--stage-rule); font: 500 10px/1 var(--f-mono); color: var(--stage-muted); }
.lanes__legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; border: 1px solid var(--stage-rule); }
.lanes__legend .lg-ai::before { border-color: var(--stage-accent); background: rgba(143, 162, 255, .14); }
.lanes__legend .lg-human::before { border-style: dashed; border-color: var(--stage-warn); }

/* интерфейс продукта (SimpleBit) */
.app { background: var(--stage); color: var(--stage-ink); padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 12px; }
.app__bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.app__logo { display: inline-flex; align-items: center; gap: 7px; font: 650 14px/1 var(--f-display); letter-spacing: -.01em; }
.app__logo::before { content: ""; width: 10px; height: 10px; background: var(--stage-accent); }
.app__search {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  padding: 8px 10px; border: 1px solid var(--stage-rule);
  font-size: 13px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app__search::before { content: ""; flex: none; width: 8px; height: 8px; border: 1.5px solid var(--stage-muted); border-radius: 50%; }
.app__user { font: 500 9.5px/1 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--stage-muted); white-space: nowrap; }
.app__main { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
.app__nav { display: flex; flex-direction: column; gap: 2px; padding-right: 10px; border-right: 1px solid var(--stage-rule); }
.app__nav li { padding: 6px 8px; font-size: 12.5px; line-height: 1.2; color: var(--stage-muted); }
.app__nav li.is-on { color: var(--stage-ink); background: rgba(143, 162, 255, .14); box-shadow: inset 2px 0 0 var(--stage-accent); }
.app__content { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.app__card { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--stage-rule); font-size: 12.5px; line-height: 1.45; }
.app__card--ai { border-color: var(--stage-accent); background: rgba(143, 162, 255, .08); }
.app__card--gap { border-style: dashed; border-color: var(--stage-warn); }
.app__kicker { font: 500 9.5px/1.2 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--stage-accent); }
.app__card--gap .app__kicker { color: var(--stage-warn); }
.app__kicker--muted { color: var(--stage-muted); }
.app__src, .app__links { display: flex; flex-wrap: wrap; gap: 6px; }
.app__src span { padding: 3px 7px; border: 1px solid var(--stage-rule); font: 500 10px/1.3 var(--f-mono); color: var(--stage-muted); }
.app__links span { display: flex; flex-direction: column; gap: 2px; padding: 5px 8px; border: 1px solid var(--stage-rule); }
.app__links small { font: 500 9px/1.2 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--stage-muted); }
.app__route { color: var(--stage-muted); }
.app__route b { color: var(--stage-ink); font-weight: 500; }
.app__foot { padding-top: 8px; border-top: 1px dashed var(--stage-rule); font: 500 9.5px/1.3 var(--f-mono); color: var(--stage-muted); }

/* игры: навыки и демонстрации */
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.grid4 > .cell:nth-child(4n) { border-right: 0; padding-right: 0; }
.grid4 > .cell:nth-child(4n + 1) { padding-left: 0; }
.cell__demo { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--rule); display: flex; flex-direction: column; gap: 4px; }
.cell__demo p:not(.label) { font: 600 13.5px/1.35 var(--f-display); color: var(--ink); }
.stackline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; }
.demos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 14px; }
.demo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.demo .fig__frame { aspect-ratio: 16 / 10; }
.demo h3 { margin-top: 4px; font: 600 16px/1.2 var(--f-display); letter-spacing: -.01em; }
.demo__meta { font: 500 10px/1.35 var(--f-mono); font-stretch: 87.5%; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.demo__skills { font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }

/* ---------- 07 сотрудничество ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px clamp(14px, 1.8vw, 28px) 0 0; border-top: 1px solid var(--ink); }
.step::before { content: ""; position: absolute; left: 0; top: -7px; width: 1px; height: 13px; background: var(--ink); }
.step:last-child::after { content: ""; position: absolute; right: 0; top: -7px; width: 1px; height: 13px; background: var(--ink); }
.step:last-child { padding-right: 0; }
.coop-foot { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: stretch; }
.aside-list { display: flex; flex-direction: column; border-top: 1px solid var(--rule-soft); }
.aside-list > div { padding: 12px 0; border-bottom: 1px solid var(--rule-soft); display: flex; flex-direction: column; gap: 4px; }
.cta {
  background: var(--stage);
  color: var(--stage-ink);
  padding: clamp(20px, 2.2vw, 32px);
  display: flex; flex-direction: column; gap: 14px;
}
.cta .label { color: var(--stage-muted); }
.cta__h { font: 620 clamp(22px, 2vw, 32px)/1.12 var(--f-display); letter-spacing: -.02em; font-variation-settings: "SHRP" 100; text-wrap: balance; }
.cta__p { color: var(--stage-muted); font-size: 15px; line-height: 1.5; max-width: 56ch; }
.contacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; padding-top: 14px; border-top: 1px solid var(--stage-rule); }
.contacts div { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.contacts .ph { color: var(--stage-accent); background: repeating-linear-gradient(-45deg, rgba(143, 162, 255, .12) 0 5px, transparent 5px 10px); box-shadow: inset 0 0 0 1px rgba(143, 162, 255, .4); font-size: 14px; }
.aside-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }
.aside-row > div { display: flex; flex-direction: column; gap: 6px; padding: 16px 24px 18px 0; min-width: 0; }
.aside-row > div + div { padding-left: 24px; border-left: 1px solid var(--rule-soft); }

/* ---------- приложение: технологии ---------- */
.tech { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.tech > div { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px 18px 0; border-bottom: 1px solid var(--rule-soft); min-width: 0; }
.tech > div:not(:nth-child(4n + 1)) { padding-left: 20px; border-left: 1px solid var(--rule-soft); }
.tech .chips { margin-top: 0; padding-top: 0; }

/* =====================================================================
   Адаптив
   ===================================================================== */
@media (max-width: 1240px) {
  .cover__modes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cover__modes li:nth-child(3n + 1) { border-left: 0; }
  .cover__modes li:nth-child(3n + 1) .cmode { padding-left: 0; }
  .results { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 1099px) {
  :root { --bind: var(--edge); }
  .rail { display: none; }
  .sheet { padding-left: calc(var(--edge) + var(--pad)); }
  .cover { grid-template-rows: auto auto auto auto; }
  .cover__main { grid-column: 1 / -1; grid-row: 2; }
  .cover__stage { grid-column: 1 / -1; grid-row: 3; min-height: 0; height: clamp(340px, 56vw, 520px); }
  .cover__modes { grid-row: 4; }
  .who__text, .who__facts { grid-column: 1 / -1; }
  .person { grid-column: span 6; }
  .together { grid-column: 1 / -1; }
  .together ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid3 > .cell:nth-child(n) { padding: 16px 20px 18px; border-right: 1px solid var(--rule-soft); }
  .grid3 > .cell:nth-child(2n) { border-right: 0; padding-right: 0; }
  .grid3 > .cell:nth-child(2n + 1) { padding-left: 0; }
  .sheet__intro, .case-head, .case-body, .coop-foot { grid-template-columns: minmax(0, 1fr); }
  .case-media { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-media > .fig:only-child, .case-media > .flow, .case-media > .media-grid2, .case-media > .media-grid3,
  .case-media > .panel, .case-media > .lanes, .case-media > .app, .case-media > .media-split,
  .case-media > .ph-media, .case-media > .media-cap { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .idx { columns: 2 220px; }
  .grid4, .demos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid4 > .cell:nth-child(n) { padding: 16px 20px 18px; border-right: 1px solid var(--rule-soft); }
  .grid4 > .cell:nth-child(2n) { border-right: 0; padding-right: 0; }
  .grid4 > .cell:nth-child(2n + 1) { padding-left: 0; }
  .tech { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech > div:nth-child(n) { padding-left: 20px; border-left: 1px solid var(--rule-soft); }
  .tech > div:nth-child(2n + 1) { padding-left: 0; border-left: 0; }
}

/* невысокие экраны ноутбуков: обложка остаётся в один экран, оглавление — в поле подшивки */
@media (min-width: 1100px) and (max-height: 880px) {
  .cover__main { gap: 12px; }
  .cover__main .display { font-size: clamp(34px, 6.2vh, 62px); }
  .sheet--cover .lead { font-size: 15px; }
  .cover__stage { min-height: 250px; }
  .cmode { padding-top: 10px; gap: 3px; }
  .cmode__s { font-size: 12px; }
}
@media (min-width: 1100px) and (max-height: 760px) {
  .cover__toc { display: none; }
}

@media (max-width: 759px) {
  :root { --edge: 8px; --pad: 14px; --gap: 18px; }
  html { scroll-snap-type: none; }
  .sheet {
    min-height: 0;
    padding-top: calc(var(--edge) + 22px);
    padding-bottom: calc(var(--edge) + 18px);
    padding-left: max(calc(var(--edge) + var(--pad)), env(safe-area-inset-left, 0px));
    padding-right: max(calc(var(--edge) + var(--pad)), env(safe-area-inset-right, 0px));
  }
  .sheet + .sheet { margin-top: -6px; }
  .sheet__body { justify-content: flex-start; }
  .stamp { position: static; align-self: flex-end; margin-top: 6px; }
  .cover__toc { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
  .cover__stage { height: clamp(330px, 102vw, 450px); margin: 0 calc(var(--pad) * -1); }
  .cover__inset, .cover__hint { display: none; }
  .cover__modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cover__modes li:nth-child(n) { border-left: 1px solid var(--cv-rule); }
  .cover__modes li:nth-child(2n + 1) { border-left: 0; }
  .cover__modes li:nth-child(n) .cmode { padding-left: 12px; }
  .cover__modes li:nth-child(2n + 1) .cmode { padding-left: 0; }
  .cmode { padding-bottom: 10px; }
  .who__facts > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .path, .steps { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .path__step, .step { padding-right: 0; }
  .path__step::after, .step::after { display: none; }
  .person { grid-column: 1 / -1; grid-template-columns: 64px minmax(0, 1fr); padding: 14px; gap: 14px; }
  .together ul { grid-template-columns: minmax(0, 1fr); }
  .skills, .skills tbody, .skills tr, .skills th, .skills td { display: block; width: auto !important; }
  .skills thead { display: none; }
  .skills tr { padding: 12px 0; border-bottom: 1px solid var(--rule-soft); }
  .skills th, .skills td { border: 0; padding: 2px 0; }
  .skills td:last-child { margin-top: 6px; }
  .grid3 { grid-template-columns: minmax(0, 1fr); }
  .grid3 > .cell:nth-child(n) { padding: 16px 0; border-right: 0; }
  .case-text, .case-foot, .case-media, .contacts, .tech { grid-template-columns: minmax(0, 1fr); }
  .tech > div:nth-child(n) { padding-left: 0; border-left: 0; }
  .idx { columns: 1; }
  .grid4, .demos { grid-template-columns: minmax(0, 1fr); }
  .grid4 > .cell:nth-child(n) { padding: 16px 0; border-right: 0; }
  .st { grid-template-columns: 76px minmax(0, 1fr) 38px 56px; gap: 8px; }
  .app__bar { grid-template-columns: auto minmax(0, 1fr); }
  .app__user { display: none; }
  .app__search { white-space: normal; }
  .app__main { grid-template-columns: minmax(0, 1fr); }
  .app__nav { flex-direction: row; flex-wrap: wrap; padding: 0 0 8px; border-right: 0; border-bottom: 1px solid var(--stage-rule); }
  .aside-row { grid-template-columns: minmax(0, 1fr); }
  .aside-row > div { padding: 14px 0; }
  .aside-row > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule-soft); }
  .lane ol { display: flex; flex-wrap: wrap; gap: 6px 16px; }
  .lane li { max-width: 46%; }
  .switcher button { padding: 9px 11px; font-size: 12.5px; }
  .key__v { white-space: normal; }
  .dim { grid-template-columns: auto minmax(28px, 1fr) auto; gap: 8px; }
}

/* =====================================================================
   Печать: лист 13,33 × 7,5 дюйма (широкоформатный слайд)
   ===================================================================== */
@media print {
  @page { size: 338.7mm 190.5mm; margin: 0; }
  html { scroll-snap-type: none; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rail, .skip, .switcher-row { display: none !important; }
  .sheet { min-height: 190.5mm; height: 190.5mm; overflow: hidden; break-after: page; }
  .ph { box-shadow: none; }
  .cover-fx, .cover__hint { display: none !important; }
  .cover__print[src] { display: block; }
  .cover__main .display { font-size: 46px; }
  .sheet--cover .lead { font-size: 15px; }
  /* обложка при печати всегда в широкой раскладке */
  .cover { grid-template-rows: auto minmax(0, 1fr) auto; }
  .cover__main { grid-column: 1 / 6; grid-row: 2; }
  .cover__stage { grid-column: 6 / -1; grid-row: 2; min-height: 0; height: auto; margin: 0; }
  .cover__toc { grid-template-columns: repeat(2, minmax(0, max-content)); }
  .cover__modes { grid-row: 3; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cover__modes li:nth-child(n), .cover__modes li:nth-child(3n + 1), .cover__modes li:nth-child(2n + 1) { border-left: 1px solid var(--cv-rule); }
  .cover__modes li:first-child { border-left: 0; }
  .cover__modes li:nth-child(n) .cmode, .cover__modes li:nth-child(3n + 1) .cmode, .cover__modes li:nth-child(2n + 1) .cmode { padding-left: 12px; }
  .cover__modes li:first-child .cmode { padding-left: 0; }
  .cover__inset { display: flex; }
  .cover__inset img { clip-path: none !important; opacity: 1 !important; }
}

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