/* «Натурпласт» — прототип сценария. Спокойная тёплая палитра, системный шрифт, без внешних зависимостей. */

:root {
  color-scheme: light;
  --bg: #F7F6F3;
  --surface: #FFFFFF;
  --surface-2: #FBFBFA;
  --surface-3: #F2F1ED;
  --line: #E8E6E1;
  --line-2: #D8D6CF;
  --ink: #1B1A18;
  --ink-2: #3A3934;
  --ink-3: #6B6964;
  --ink-4: #9C9A93;
  --link: #1F5F8F;

  /* серии графиков */
  --s1: #2a78d6;
  --s2: #eb6834;
  /* статусы */
  --crit: #d03b3b;
  --warn: #fab219;
  --good: #0ca30c;

  --red-bg: #FCEBEB;    --red-ink: #9F2F2D;
  --green-bg: #EAF3E9;  --green-ink: #2F5E33;
  --yellow-bg: #FBF2D9; --yellow-ink: #7E5700;
  --blue-bg: #E4F1FB;   --blue-ink: #1F5F8F;
  --violet-bg: #EFECFA; --violet-ink: #5340AE;

  --r-lg: 14px;
  --r: 10px;
  --r-sm: 6px;
  --font: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --top-h: 74px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent); }
a:hover { text-decoration-color: currentColor; }
button { font: inherit; color: inherit; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 12px; top: -48px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 50; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Верхняя панель ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top__in {
  max-width: 1240px; margin: 0 auto; padding: 10px 24px 4px;
  display: flex; align-items: center; gap: 12px; min-height: 48px;
}
.brand { display: flex; align-items: baseline; gap: 8px; min-width: 0; font-size: 14.5px; white-space: nowrap; }
.brand__name { font-weight: 680; letter-spacing: -0.01em; }
.brand__sub { color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; }
.top__spacer { flex: 1; }
.steps-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; white-space: nowrap; flex: none;
  border: 1px solid var(--line-2); background: var(--surface); border-radius: 8px; cursor: pointer;
  font-size: 14px; font-weight: 550;
}
.steps-btn svg { width: 16px; height: 16px; }
.steps-btn__short { display: none; }
.steps-btn:hover { border-color: var(--ink-4); }

.progress { max-width: 1240px; margin: 0 auto; padding: 0 24px 2px; display: flex; gap: 4px; }
.progress__seg {
  flex: 1; height: 22px; padding: 9px 0; border: 0; background: none; cursor: pointer; position: relative;
}
.progress__seg::before {
  content: ""; display: block; height: 4px; border-radius: 2px; background: var(--line-2);
  transition: background-color .25s var(--ease);
}
.progress__seg.is-done::before { background: var(--ink-3); }
.progress__seg[aria-current="step"]::before { background: var(--ink); }
.progress__seg:hover::before { background: var(--ink-4); }
.progress__seg[aria-current="step"]:hover::before { background: var(--ink); }

/* ---------- Бейджи, теги, чипы ---------- */
.badge {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.badge--demo { background: var(--yellow-bg); color: var(--yellow-ink); }

.tag {
  display: inline-flex; align-items: center; height: 19px; padding: 0 7px; border-radius: 999px;
  font-size: 11px; font-weight: 600; white-space: nowrap; letter-spacing: .01em;
}
.tag--code { background: var(--blue-bg); color: var(--blue-ink); }
.tag--ai { background: var(--violet-bg); color: var(--violet-ink); }
.tag--muted { background: var(--surface-3); color: var(--ink-3); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 7px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; white-space: nowrap; line-height: 1.3;
}
.chip svg { width: 14px; height: 14px; flex: none; }
.chip--bad { background: var(--red-bg); color: var(--red-ink); }
.chip--warn { background: var(--yellow-bg); color: var(--yellow-ink); }
.chip--good { background: var(--green-bg); color: var(--green-ink); }
.chip--info { background: var(--blue-bg); color: var(--blue-ink); }
.chip--muted { background: var(--surface-3); color: var(--ink-3); }

.pill { display: inline-block; padding: 1px 7px; border-radius: 999px; font-weight: 600; }
.pill--bad { background: var(--red-bg); color: var(--red-ink); }
.pill--good { background: var(--green-bg); color: var(--green-ink); }

.chtag {
  display: inline-block; font-size: 10.5px; font-weight: 650; color: var(--ink-3); border: 1px solid var(--line-2);
  border-radius: 4px; padding: 0 4px; line-height: 15px; vertical-align: 1px; letter-spacing: .02em;
}
.minitag { display: inline-block; font-size: 10.5px; font-weight: 600; color: var(--yellow-ink); background: var(--yellow-bg); border-radius: 4px; padding: 0 5px; line-height: 16px; vertical-align: 1px; }

/* ---------- Сцена и шаг ---------- */
.stage { max-width: 1240px; margin: 0 auto; padding: 36px 24px 128px; outline: none; }
.step {
  display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 48px; align-items: start;
}
.step.is-entering .step__text, .step.is-entering .step__visual { animation: rise .45s var(--ease) both; }
.step.is-entering .step__visual { animation-delay: .06s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.step__text { position: static; }
@media (min-width: 960px) and (min-height: 700px) {
  .step__text { position: sticky; top: calc(var(--top-h) + 28px); }
}
.step__kicker { font-size: 13px; color: var(--ink-3); margin: 0 0 10px; font-weight: 550; letter-spacing: .01em; }
.step__title {
  font-size: 30px; line-height: 1.14; letter-spacing: -0.022em; font-weight: 700; margin: 0 0 16px;
  text-wrap: balance; outline: none;
}
.step__body p { margin: 0 0 12px; font-size: 17px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.step__body p:last-child { margin-bottom: 0; }
.step__hint {
  margin: 16px 0 0; padding: 10px 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; color: var(--ink-2); line-height: 1.45; display: flex; gap: 8px;
}
.step__hint svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--ink-3); }
.step__links { margin: 18px 0 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.step__links a { display: inline-flex; align-items: center; gap: 6px; width: fit-content; }
.step__links svg { width: 14px; height: 14px; }
.step__cta { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }

.cycle-line {
  margin: 20px 0 0; padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
  font-size: 15px; line-height: 1.7; color: var(--ink-2);
}
.cycle-line b { font-weight: 650; color: var(--ink); }
.cycle-line .arr { color: var(--ink-4); padding: 0 2px; }

.track { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 0; font-size: 12.5px; color: var(--ink-4); }
.track li { display: inline-flex; align-items: center; white-space: nowrap; }
.track li + li::before { content: "→"; color: var(--line-2); padding: 0 6px; }
.track li.is-done { color: var(--ink-3); }
.track li.is-on { color: var(--ink); font-weight: 680; }

.who { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); }
.who span.who__chip { color: var(--ink-2); font-weight: 600; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; }

.step__visual { min-width: 0; container-type: inline-size; container-name: visual; }

/* ---------- Нижняя навигация ---------- */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.nav__in { max-width: 1240px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 12px; }
.nav__pos { flex: 1; text-align: center; font-size: 14px; color: var(--ink-3); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav__pos b { color: var(--ink); font-weight: 650; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 8px; border: 1px solid transparent; cursor: pointer;
  font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #34332F; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink-4); }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn:disabled { opacity: .35; cursor: default; transform: none; }

/* ---------- Список шагов ---------- */
.sheet { position: fixed; inset: 0; z-index: 40; display: flex; justify-content: flex-end; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(27, 26, 24, .28); animation: fade .2s ease both; }
.sheet__panel {
  position: relative; width: min(420px, 100%); height: 100%; background: var(--surface); overflow-y: auto;
  padding: 18px 18px calc(24px + env(safe-area-inset-bottom)); box-shadow: -12px 0 40px rgba(0, 0, 0, .06);
  animation: slide .28s var(--ease) both;
}
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
.sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sheet__head h2 { font-size: 18px; margin: 0; letter-spacing: -0.01em; }
.icon-btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 16px; height: 16px; }
.sheet__list { list-style: none; margin: 0; padding: 0; }
.sheet__item {
  width: 100%; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--line); padding: 12px 6px; cursor: pointer; border-radius: 0;
}
.sheet__item:hover { background: var(--surface-2); }
.sheet__n { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 13px; font-weight: 650; color: var(--ink-3); }
.sheet__item[aria-current="step"] .sheet__n { background: var(--ink); color: #fff; border-color: var(--ink); }
.sheet__t { display: block; font-weight: 650; font-size: 15px; line-height: 1.35; }
.sheet__d { display: block; font-size: 13.5px; color: var(--ink-3); line-height: 1.4; margin-top: 2px; }

/* ---------- Тост ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 45;
  transform: translate(-50%, 8px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; font-size: 14px; line-height: 1.4; padding: 10px 14px; border-radius: 10px;
  max-width: min(440px, calc(100% - 32px)); transition: opacity .2s ease, transform .2s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Мокап экрана ---------- */
.mock {
  margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .025), 0 10px 30px rgba(0, 0, 0, .035);
}
.mock + .mock { margin-top: 16px; }
.mock__bar {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 14px; border-bottom: 1px solid var(--line);
  background: var(--surface); font-size: 13px;
}
.mock__dots { display: inline-flex; gap: 5px; flex: none; }
.mock__dots i { width: 9px; height: 9px; border-radius: 50%; background: #E4E2DC; }
.mock__label { flex: 1; min-width: 0; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock__body { padding: 18px; background: var(--surface-2); container-type: inline-size; container-name: mock; }
.mock__note { margin: 10px 2px 0; font-size: 13.5px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }

.proto-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; font-size: 14px; color: var(--ink-3); }
.seg { display: inline-flex; padding: 3px; background: var(--surface-3); border-radius: 10px; border: 1px solid var(--line); flex-wrap: wrap; }
.seg button {
  border: 0; background: none; padding: 7px 12px; border-radius: 7px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px;
}
.seg button svg { width: 14px; height: 14px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 0 0 1px var(--line); }

/* ---------- Карточки внутри мокапов ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; min-width: 0; container-type: inline-size; }
@container (max-width: 420px) {
  .hide-sm { display: none; }
  .card .tbl { font-size: 12.5px; }
  .card .tbl th, .card .tbl td { padding: 6px 5px; }
  .card .tbl thead th { white-space: normal; }
}
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; flex-wrap: wrap; }
.card__title { font-size: 14px; font-weight: 650; margin: 0; letter-spacing: -0.005em; }
.card__sub { font-size: 12.5px; color: var(--ink-3); }
.foot { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }

.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th, .tbl td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
.tbl thead th { font-weight: 550; color: var(--ink-3); font-size: 12.5px; white-space: nowrap; padding-top: 0; }
.tbl th:first-child, .tbl td:first-child { text-align: left; padding-left: 0; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl tbody th { font-weight: 500; }
.tbl td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .sub { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.tbl .sub.is-bad { color: var(--red-ink); }
.tbl .sub.is-good { color: var(--green-ink); }
.tbl tr.is-key th, .tbl tr.is-key td { font-weight: 650; }
.tbl .art { font-weight: 600; white-space: nowrap; }

/* ---------- Шаг 1: цикл ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: 0 1px 2px rgba(0, 0, 0, .025), 0 10px 30px rgba(0, 0, 0, .035); }
.panel__head { margin-bottom: 18px; }
.panel__title { font-size: 18px; font-weight: 680; margin: 0; letter-spacing: -0.01em; }
.panel__sub { font-size: 14px; color: var(--ink-3); margin: 4px 0 0; }
.panel__foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.panel__foot button { border: 0; background: none; padding: 0; color: var(--link); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent); font-size: 14px; }

.ring { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr); grid-template-rows: auto 30px auto; list-style: none; margin: 0; padding: 0; }
.ring__node {
  display: flex; flex-direction: column; gap: 4px; text-align: left; cursor: pointer; min-width: 0;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px 12px;
  transition: border-color .15s ease, background-color .15s ease;
}
.ring__node:hover { border-color: var(--ink-4); background: var(--surface); }
.ring__top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ring__n { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 700; display: grid; place-items: center; flex: none; }
.ring__step { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.ring__t { font-weight: 680; font-size: 15px; line-height: 1.25; letter-spacing: -0.005em; }
.ring__d { font-size: 13px; color: var(--ink-3); line-height: 1.4; }
.ring__arr { display: grid; place-items: center; color: var(--ink-4); }
.ring__arr svg { width: 18px; height: 18px; transform: rotate(var(--rot-w)); }
.ring [data-pos] { grid-row: var(--rw); grid-column: var(--cw); }
@container visual (max-width: 559px) {
  .ring { grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); grid-template-rows: auto 26px auto 26px auto; }
  .ring [data-pos] { grid-row: var(--rn); grid-column: var(--cn); }
  .ring__arr svg { transform: rotate(var(--rot-n)); }
  .ring__d { font-size: 12.5px; }
  .panel { padding: 18px 14px; }
}

/* ---------- Шаг 2: дашборд ---------- */
.dash { display: grid; gap: 12px; }
.dash__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px 16px; flex-wrap: wrap; }
.dash__title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.dash__sub { font-size: 13px; color: var(--ink-3); }
.dash__meta { font-size: 12.5px; color: var(--green-ink); display: inline-flex; align-items: center; gap: 6px; }
.dash__meta svg { width: 14px; height: 14px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; min-width: 0; }
.kpi__label { font-size: 12.5px; color: var(--ink-3); line-height: 1.3; }
.kpi__value { font-size: 22px; font-weight: 680; letter-spacing: -0.015em; margin-top: 4px; white-space: nowrap; }
.kpi__delta { font-size: 12.5px; font-weight: 600; margin-top: 1px; }
.delta--good { color: var(--green-ink); }
.delta--bad { color: var(--red-ink); }
.delta--flat { color: var(--ink-3); }
.dash__mid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.dash__col { display: grid; gap: 12px; min-width: 0; }

.devs { display: grid; gap: 8px; }
.dev {
  display: grid; gap: 4px; text-align: left; width: 100%; padding: 11px 12px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--surface-2); font-size: 13.5px; line-height: 1.45;
}
button.dev { cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
button.dev:hover { border-color: var(--ink-4); background: var(--surface); }
.dev__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dev__title { font-weight: 650; color: var(--ink); }
.dev__meta { color: var(--ink-3); font-size: 12.5px; }
.dev__why { color: var(--ink-2); }
.dev__act { font-size: 12.5px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 5px; }
button.dev .dev__act { color: var(--link); font-weight: 600; }
.dev__act svg { width: 13px; height: 13px; }

.pf { display: grid; gap: 10px; }
.pf__row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 44px; gap: 10px; align-items: center; }
.pf__who { font-size: 13px; line-height: 1.25; min-width: 0; }
.pf__who b { font-weight: 600; display: block; white-space: nowrap; }
.pf__who span { font-size: 11.5px; color: var(--ink-3); }
.pf__bar { position: relative; height: 10px; border-radius: 3px; background: #E3EDF9; }
.pf__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; background: var(--s1); }
.pf__fill--low { background: var(--warn); }
.pf__bar.is-low { background: #FBEFD2; }
.pf__plan { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 1px; }
.pf__val { font-size: 13.5px; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.pf__legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.pf__legend i { display: inline-block; vertical-align: -1px; margin-right: 5px; }
.pf__legend .k-plan { width: 2px; height: 12px; background: var(--ink); }
.pf__legend .k-ok { width: 12px; height: 8px; border-radius: 2px; background: var(--s1); }
.pf__legend .k-low { width: 12px; height: 8px; border-radius: 2px; background: var(--warn); }

@container mock (max-width: 640px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash__mid { grid-template-columns: minmax(0, 1fr); }
}
@container mock (max-width: 400px) {
  .kpi { padding: 10px 12px; }
  .kpi__value { font-size: 19px; }
  .tbl { font-size: 12.5px; }
  .tbl th, .tbl td { padding: 6px 5px; }
  .tbl .hide-xs { display: none; }
  .tbl thead th { white-space: normal; }
  .card { padding: 12px; }
  .pf__row { grid-template-columns: 78px minmax(0, 1fr) 40px; gap: 8px; }
}

/* ---------- Шаг 3: сигнал и графики ---------- */
.sig { display: grid; gap: 12px; }
.sig__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.sig__title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.sig__sub { font-size: 13px; color: var(--ink-3); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 11px 13px; min-width: 0; }
.fact__label { font-size: 12.5px; color: var(--ink-3); line-height: 1.3; }
.fact__value { font-size: 18px; font-weight: 680; margin-top: 3px; letter-spacing: -0.01em; white-space: nowrap; }
.fact__sub { font-size: 12.5px; color: var(--ink-3); }
@container mock (max-width: 520px) { .facts { grid-template-columns: minmax(0, 1fr); gap: 8px; } .fact { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; } .fact__value { font-size: 16px; } }

.unit__row { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-bottom: 10px; font-size: 13px; }
.unit__label { color: var(--ink-2); white-space: nowrap; }
.unit__bar { display: flex; gap: 2px; height: 14px; }
.unit__bar i { display: block; height: 100%; }
.unit__bar i:first-child { border-radius: 2px 0 0 2px; }
.unit__bar i:last-child { border-radius: 0 4px 4px 0; }
.u-fixed { background: #D6D4CC; }
.u-ad { background: var(--s2); }
.u-profit { background: var(--s1); }
.unit__vals { white-space: nowrap; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.unit__vals b { color: var(--ink); font-weight: 650; }
.unit__legend { margin-top: 4px; font-size: 12px; color: var(--ink-3); }
.legend .lg i.sq { width: 10px; height: 10px; border-radius: 2px; }
@container (max-width: 560px) {
  .unit__row { grid-template-columns: minmax(0, 1fr); gap: 4px; margin-bottom: 12px; }
}
.rule { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; background: var(--surface); font-size: 13.5px; line-height: 1.5; }
.rule__head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); margin-bottom: 4px; }
.rule__name { font-weight: 650; color: var(--ink); }
.rule__more { color: var(--ink-3); margin-top: 6px; font-size: 12.5px; }

.chart-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--ink-2); }
.legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.legend .lg i { width: 14px; height: 2px; border-radius: 1px; display: inline-block; }
.legend .lg i.dash { height: 0; border-top: 2px dashed var(--crit); background: none !important; opacity: .75; }
.chart { position: relative; width: 100%; min-height: 200px; outline: none; touch-action: pan-y; }
.chart:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
.chart svg { overflow: visible; }
.c-grid { stroke: #ECEAE4; stroke-width: 1; shape-rendering: crispEdges; }
.c-base { stroke: #C9C7BF; stroke-width: 1; shape-rendering: crispEdges; }
.c-tick { fill: var(--ink-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.c-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.c-s1 { stroke: var(--s1); } .c-f1 { fill: var(--s1); }
.c-s2 { stroke: var(--s2); } .c-f2 { fill: var(--s2); }
.c-dot { stroke: var(--surface); stroke-width: 2; }
.c-thr { stroke: var(--crit); stroke-width: 1.5; stroke-dasharray: 5 4; opacity: .7; }
.c-thr-label { fill: var(--red-ink); font-size: 11.5px; font-weight: 600; }
.c-band { fill: var(--red-bg); }
.c-band-label { fill: var(--red-ink); font-size: 11.5px; font-weight: 650; }
.c-mark { stroke: var(--ink-3); stroke-width: 1; shape-rendering: crispEdges; }
.c-mark-label { fill: var(--ink-2); font-size: 11.5px; font-weight: 650; }
.c-end { font-size: 12px; fill: var(--ink-2); }
.c-end tspan.v { font-weight: 700; fill: var(--ink); }
.c-cross { stroke: var(--ink-3); stroke-width: 1; shape-rendering: crispEdges; }
.c-hit { fill: transparent; cursor: crosshair; }
.tip {
  position: absolute; top: 0; left: 0; z-index: 2; pointer-events: none; min-width: 150px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .08); font-size: 12.5px; line-height: 1.45; opacity: 0; transition: opacity .12s ease;
}
.tip.is-on { opacity: 1; }
.tip__d { color: var(--ink-3); margin-bottom: 3px; }
.tip__r { display: grid; grid-template-columns: 12px auto 1fr; align-items: center; gap: 7px; white-space: nowrap; }
.tip__r i { width: 12px; height: 2px; border-radius: 1px; }
.tip__r b { font-weight: 700; font-variant-numeric: tabular-nums; }
.tip__r span { color: var(--ink-3); }

.tview { margin-top: 8px; font-size: 13px; }
.tview summary { cursor: pointer; color: var(--link); width: fit-content; list-style: none; display: inline-flex; align-items: center; gap: 4px; }
.tview summary::-webkit-details-marker { display: none; }
.tview summary::after { content: "↓"; font-size: 12px; }
.tview[open] summary::after { content: "↑"; }
.tview .tbl { margin-top: 8px; }
.tview__wrap { overflow-x: auto; }

/* ---------- Задача (нейтральный мокап) ---------- */
.task { display: grid; gap: 14px; }
.task__meta { font-size: 12.5px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.task__title { font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; margin: 4px 0 0; text-wrap: balance; }
.task__grid { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 14px; align-items: start; }
.task__main { display: grid; gap: 12px; min-width: 0; }
.fields { margin: 0; display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 14px; }
.fields > div { padding: 9px 0; border-bottom: 1px solid var(--line); }
.fields > div:last-child { border-bottom: 0; }
.fields dt { font-size: 11.5px; color: var(--ink-3); margin: 0 0 2px; }
.fields dd { margin: 0; font-size: 13.5px; font-weight: 550; line-height: 1.35; }
.person { display: flex; align-items: center; gap: 8px; }
.person small { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.ava {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-size: 10.5px; font-weight: 700; letter-spacing: .02em; background: var(--surface-3); color: var(--ink-2);
}
.ava--ai { background: var(--violet-bg); color: var(--violet-ink); }
.ava--sys { background: var(--blue-bg); color: var(--blue-ink); }
.ava--head { background: #EFE7DE; color: #6B4E33; }
.ava--mgr { background: #E3EFE6; color: #2F5E33; }

.sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; min-width: 0; }
.sec__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.sec__title { font-size: 14px; font-weight: 650; margin: 0; margin-right: auto; }
.sec p { margin: 0 0 8px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.sec p:last-child { margin-bottom: 0; }
.goal { font-size: 13.5px; line-height: 1.5; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r); padding: 10px 14px; color: var(--ink-2); }
.goal b { color: var(--ink); }

.opts-tbl thead th { vertical-align: bottom; }
.opts-tbl thead th b { display: block; color: var(--ink); font-size: 13px; font-weight: 700; }
.opts-tbl .th-sub { display: block; }
.opts-tbl .col-a { background: color-mix(in srgb, var(--blue-bg) 55%, transparent); }
.opts-tbl th.col-a, .opts-tbl td.col-a { padding-left: 8px; padding-right: 8px; }
.opts-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.opt-note { font-size: 13px; line-height: 1.45; color: var(--ink-2); border-left: 2px solid var(--line-2); padding: 2px 0 2px 10px; }
.opt-note b { color: var(--ink); }
.sec p.assume { font-size: 12.5px; color: var(--ink-3); margin: 8px 0 0; line-height: 1.45; }

.decision { display: grid; gap: 8px; }
.opt {
  display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); font-size: 13.5px; line-height: 1.45;
}
.opt.is-on { border-color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px var(--ink); }
.opt__radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); margin-top: 1px; display: grid; place-items: center; background: var(--surface); }
.opt.is-on .opt__radio { border-color: var(--ink); }
.opt.is-on .opt__radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.opt b { display: block; font-weight: 650; color: var(--ink); }
.opt span { color: var(--ink-3); }
.comment { border: 1px solid var(--line); border-radius: 9px; background: var(--surface); padding: 10px 12px; font-size: 13.5px; line-height: 1.5; }
.comment__who { font-size: 12px; color: var(--ink-3); margin-bottom: 3px; display: flex; align-items: center; gap: 6px; }
.decision__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.decision__actions small { font-size: 12.5px; color: var(--ink-3); }
.decided { display: grid; gap: 4px; font-size: 13.5px; line-height: 1.5; }
.decided__row { display: flex; align-items: flex-start; gap: 8px; }
.decided__row svg { width: 16px; height: 16px; color: var(--green-ink); flex: none; margin-top: 2px; }

.checklist { display: grid; gap: 6px; }
.ck {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); font-size: 13.5px; line-height: 1.45; text-align: left; width: 100%;
}
button.ck { cursor: pointer; }
button.ck:hover { border-color: var(--ink-4); }
.ck__box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-2); background: var(--surface); display: grid; place-items: center; margin-top: 1px; }
.ck__box svg { width: 13px; height: 13px; color: #fff; opacity: 0; }
.ck.is-on .ck__box { background: var(--good); border-color: var(--good); }
.ck.is-on .ck__box svg { opacity: 1; }
.ck.is-on .ck__t { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--ink-4); }
.ck__who { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.ck--auto .ck__box { border-style: dashed; }

.feed { display: grid; gap: 0; }
.feed__item { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.45; }
.feed__item:last-child { border-bottom: 0; padding-bottom: 0; }
.feed__item:first-child { padding-top: 0; }
.feed__t { color: var(--ink-3); font-size: 12px; }
.feed__who { font-weight: 650; color: var(--ink); }
.feed__item.is-new { animation: flash 1.6s ease both; }
@keyframes flash { 0% { background: var(--yellow-bg); } 100% { background: transparent; } }
.feed__item.is-warn .feed__x { color: var(--red-ink); }

.result { display: grid; gap: 10px; }
.verdict { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border-radius: 9px; font-size: 14px; line-height: 1.45; font-weight: 600; }
.verdict svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.verdict--ok { background: var(--green-bg); color: var(--green-ink); }
.verdict--fail { background: var(--red-bg); color: var(--red-ink); }
.mark-ok, .mark-fail { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; }
.mark-ok { color: var(--green-ink); }
.mark-fail { color: var(--red-ink); }
.mark-ok svg, .mark-fail svg { width: 14px; height: 14px; }

@container mock (max-width: 600px) {
  .task__grid { grid-template-columns: minmax(0, 1fr); }
  .task__side { order: -1; }
  .fields { grid-template-columns: 1fr 1fr; column-gap: 14px; padding: 4px 12px; }
  .fields > div:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
  .opts-notes { grid-template-columns: minmax(0, 1fr); }
  .sec { padding: 12px; }
}
@container mock (max-width: 400px) {
  .task__title { font-size: 16px; }
  .opts-tbl { font-size: 12px; }
  .opts-tbl th, .opts-tbl td { padding: 6px 4px; }
  .opts-tbl th.col-a, .opts-tbl td.col-a { padding-left: 5px; padding-right: 5px; }
  .opts-tbl thead th b { font-size: 12.5px; }
  .opts-tbl thead th { white-space: normal; font-size: 11px; line-height: 1.3; }
  .opts-tbl .th-word { display: none; }
  .opts-tbl tbody th { font-size: 12px; line-height: 1.35; }
  .tbl tbody th { white-space: normal; }
}

/* ---------- Шаг 6: кабинет и задача ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.duo .mock + .mock { margin-top: 0; }
@container visual (max-width: 760px) { .duo { grid-template-columns: minmax(0, 1fr); } }
.cab { display: grid; gap: 12px; }
.cab__crumbs { font-size: 12.5px; color: var(--ink-3); }
.cab__camp { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.cab__camp b { display: block; font-size: 15px; }
.cab__camp small { display: block; font-size: 12.5px; line-height: 1.4; color: var(--ink-3); margin-top: 2px; }
.cab__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cab__stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 9px 11px; min-width: 0; }
.cab__stat span { display: block; font-size: 11.5px; color: var(--ink-3); }
.cab__stat b { font-size: 15px; font-weight: 680; white-space: nowrap; }
.cab__form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 10px; }
.cab__label { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.cab__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cab__input { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1.5px solid var(--ink); border-radius: 8px; font-size: 17px; font-weight: 700; min-width: 120px; background: var(--surface); font-variant-numeric: tabular-nums; }
.cab__input s { color: var(--ink-4); font-weight: 500; font-size: 14px; }
.cab__input.is-saved { border-color: var(--line-2); }
.cab__ok { font-size: 13px; color: var(--green-ink); display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.cab__ok svg { width: 15px; height: 15px; }
@container mock (max-width: 400px) { .cab__stats { gap: 6px; } .cab__stat { padding: 8px 9px; } .cab__stat span { font-size: 11px; } .cab__stat b { font-size: 14px; } }

/* ---------- Шаг 8: ИИ-агент ---------- */
.chat { display: grid; gap: 14px; }
.msg { display: grid; gap: 4px; max-width: 100%; }
.msg--user { justify-items: end; }
.msg--user .bubble { background: var(--ink); color: #fff; border-radius: 14px 14px 4px 14px; padding: 10px 14px; font-size: 14.5px; max-width: 85%; }
.msg__who { font-size: 12px; color: var(--ink-3); }
.msg--bot { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; }
.msg--bot .ava { width: 30px; height: 30px; font-size: 11px; }
.msg--bot .bubble { background: var(--surface); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 13px 15px; font-size: 14px; line-height: 1.55; color: var(--ink-2); min-width: 0; }
.bubble p { margin: 0 0 10px; }
.bubble p:last-child { margin-bottom: 0; }
.bubble b { color: var(--ink); }
.causes { margin: 0 0 12px; padding: 0 0 0 20px; display: grid; gap: 8px; }
.causes li::marker { color: var(--ink-3); font-weight: 600; }
.screen-link {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 2px; padding: 1px 7px; border-radius: 6px;
  background: var(--blue-bg); color: var(--blue-ink); font-size: 12.5px; font-weight: 600; border: 0; cursor: pointer; white-space: nowrap; vertical-align: 1px;
}
.screen-link svg { width: 12px; height: 12px; }
.screen-link:hover { background: #D5E9F8; }
.contrib { display: grid; gap: 6px; margin: 4px 0 12px; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; }
.contrib__row { display: grid; grid-template-columns: minmax(84px, 128px) minmax(0, 1fr) 68px; gap: 10px; align-items: center; font-size: 12.5px; }
.contrib__row.is-total { border-top: 1px solid var(--line); padding-top: 6px; font-weight: 650; color: var(--ink); }
.contrib__name { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contrib__bar { position: relative; height: 12px; }
.contrib__bar::after { content: ""; position: absolute; top: -3px; bottom: -3px; left: var(--zero); width: 1px; background: var(--line-2); }
.contrib__bar i { position: absolute; top: 0; bottom: 0; background: #e34948; border-radius: 4px 0 0 4px; }
.contrib__bar i.pos { background: var(--s1); border-radius: 0 4px 4px 0; }
.contrib__bar i.tot { background: var(--ink-2); }
.contrib__v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; color: var(--ink); white-space: nowrap; }
.access { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--ink-3); line-height: 1.45; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 4px; }
.access svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.how { margin-top: 8px; font-size: 12.5px; color: var(--ink-3); }
.how summary { cursor: pointer; color: var(--link); width: fit-content; }
.how p { margin: 6px 0 0; }
.suggest { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; }
.suggest span { flex: 1 1 220px; }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4); animation: blink 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@container mock (max-width: 420px) {
  .contrib__row { grid-template-columns: 100px minmax(0, 1fr) 60px; gap: 8px; }
  .msg--bot { grid-template-columns: minmax(0, 1fr); }
  .msg--bot .ava { display: none; }
  .msg--bot .bubble { padding: 12px; }
}

/* ---------- Шаг 9: устройство ---------- */
.flow { display: grid; gap: 0; justify-items: stretch; }
.flow__row { display: grid; gap: 8px; }
.flow__row--src { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.flow__row--out { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flow__label { font-size: 12px; color: var(--ink-3); margin: 0 0 6px; font-weight: 600; letter-spacing: .02em; }
.node { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 650; line-height: 1.3; min-width: 0; }
.node small { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-3); margin-top: 3px; line-height: 1.4; }
.node--key { background: var(--surface); border-color: var(--line-2); }
.node--db { background: var(--ink); border-color: var(--ink); color: #fff; }
.node--db small { color: rgba(255, 255, 255, .72); }
.node--bx { background: var(--surface); border-color: var(--line-2); }
.flow__arrow { display: grid; place-items: center; height: 30px; color: var(--ink-4); }
.flow__arrow svg { width: 18px; height: 18px; transform: rotate(90deg); }
.flow__arrow span { font-size: 12px; color: var(--ink-3); margin-left: 8px; }
.flow__arrow.has-label { display: flex; justify-content: center; align-items: center; }
.layers { margin-top: 18px; }
.layers .tbl td { white-space: normal; text-align: left; font-variant-numeric: normal; }
.layers .tbl th, .layers .tbl td { padding: 10px 10px 10px 0; text-align: left; }
.layers .tbl thead th { font-size: 12.5px; }
.layers .tbl tbody th { font-weight: 650; white-space: nowrap; }
.principles { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.principles li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.principles svg { width: 16px; height: 16px; margin-top: 3px; color: var(--green-ink); }
@container visual (max-width: 640px) {
  .flow__row--src { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow__row--src .node:last-child { grid-column: 1 / -1; }
  .flow__row--out { grid-template-columns: minmax(0, 1fr); }
  .layers .tbl thead { display: none; }
  .layers .tbl, .layers .tbl tbody, .layers .tbl tr, .layers .tbl th, .layers .tbl td { display: block; width: 100%; }
  .layers .tbl tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .layers .tbl tbody tr:last-child { border-bottom: 0; }
  .layers .tbl th, .layers .tbl td { border: 0; padding: 2px 0; }
  .layers .tbl td::before { content: attr(data-h); display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 600; margin-top: 6px; }
}

/* ---------- Шаг 10: пилот ---------- */
.pilot { display: grid; gap: 22px; }
.pilot h3 { font-size: 13px; font-weight: 650; color: var(--ink-3); margin: 0 0 10px; letter-spacing: .02em; }
.scope { display: flex; flex-wrap: wrap; gap: 6px; }
.scope span { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 14px; font-weight: 550; }
.gantt { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px 4px; }
.gantt__w { font-size: 12px; color: var(--ink-3); text-align: center; padding-bottom: 2px; border-bottom: 1px solid var(--line); }
.gantt__bar { border-radius: 8px; padding: 9px 11px; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.gantt__bar small { display: block; font-weight: 500; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.gantt__bar--a { grid-column: 1 / span 2; background: var(--surface-3); border: 1px solid var(--line-2); }
.gantt__bar--b { grid-column: 3 / span 4; background: var(--ink); color: #fff; }
.gantt__bar--b small { color: rgba(255, 255, 255, .72); }
.criteria { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: c; }
.criteria li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); counter-increment: c; }
.criteria li::before { content: counter(c); width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 12.5px; font-weight: 650; color: var(--ink-3); }
.risk { background: var(--red-bg); border-radius: var(--r); padding: 14px 16px; font-size: 14.5px; line-height: 1.55; color: #5E2524; }
.risk b { color: var(--red-ink); }
.questions { margin: 0; padding: 0 0 0 18px; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.pilot__foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); }
@container visual (max-width: 520px) {
  .gantt { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .gantt__bar { font-size: 12.5px; padding: 8px; }
  .gantt__bar small { font-size: 11.5px; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .step { grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 959px) {
  .step { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .step__text { position: static; max-width: 640px; }
  .stage { padding-top: 28px; }
}
@media (max-width: 599px) {
  :root { --top-h: 70px; }
  .top__in { padding: 8px 16px 2px; gap: 8px; min-height: 46px; }
  .brand__sub { display: none; }
  .steps-btn__all { display: none; }
  .steps-btn__short { display: inline; }
  .progress { padding: 0 16px 2px; gap: 3px; }
  .stage { padding: 22px 16px 112px; }
  .step__title { font-size: 24px; margin-bottom: 12px; }
  .step__body p { font-size: 16px; line-height: 1.55; }
  .nav__in { padding: 10px 16px; gap: 8px; }
  .nav__pos .nav__title { display: none; }
  .btn { padding: 0 14px; }
  .mock__dots { display: none; }
  .mock__bar { padding: 8px 10px 8px 12px; }
  .mock__body { padding: 12px; }
  .mock { border-radius: 12px; }
  .cycle-line { font-size: 14.5px; }
  .proto-ctrl { font-size: 13.5px; }
  .seg { width: 100%; }
  .seg button { flex: 1 1 auto; justify-content: center; padding: 7px 8px; font-size: 13.5px; }
}
@media (max-width: 339px) {
  .badge--top { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

@media print {
  .top, .nav, .sheet, .toast { display: none !important; }
  .stage { padding: 0; }
  .step__text { position: static; }
}
