/* ============================================================
   AI CJM – Страница /audit/ (AI-диагностика бизнес-процессов).

   Дизайн перенесён со страницы /edu/: канон – edu/BRANDBOOK.md
   и brandbook/system/, реализация-эталон – edu/styles.css.
   Композиция строится на линиях и сетке: белые поверхности,
   разделители --line, глубокие синие блоки для акцентов,
   острые углы, Inter.

   Подключать ПОСЛЕ redesign.css и redesign-components.css.
============================================================ */

/* ------------------------------------------------------------
   Ролевые алиасы поверх токенов redesign.css (как в edu/styles.css)
------------------------------------------------------------ */
:root{
  --page:        var(--bg);
  --surface:     var(--bg-card);
  --soft:        var(--bg-1);
  --text:        var(--ink);
  --muted:       var(--ink-2);
  --quiet:       var(--ink-3);
  --brand:       var(--accent);
  --brand-deep:  var(--bg-blue);
  --brand-hover: var(--accent-ink);
  --white:       #ffffff;
  --white-72:    rgba(255, 255, 255, 0.72);
  --white-40:    rgba(255, 255, 255, 0.4);
  --white-16:    rgba(255, 255, 255, 0.16);
  --white-10:    rgba(255, 255, 255, 0.1);
  --shadow:      0 24px 70px rgba(15, 23, 42, 0.12);

  --container:     min(1376px, calc(100vw - 64px));
  --section-space: clamp(52px, 4.8vw, 76px);

  /* острые углы */
  --r-sm: 0; --r-md: 0; --r-lg: 0; --r-xl: 0;
}

/* ------------------------------------------------------------
   База
------------------------------------------------------------ */
html { overflow-x: clip; scroll-behavior: smooth; }
body {
  overflow-x: clip;
  background: var(--page);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 12px 16px;
  background: var(--brand-deep);
  color: var(--white);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; }

/* ------------------------------------------------------------
   Кнопки: .button (первичная) и .text-link (текстовая ссылка)
------------------------------------------------------------ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: var(--white);
  font-size: 15px;
  font-weight: 650;
  line-height: 1;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.button:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.button--light { background: var(--white); border-color: var(--white); color: var(--brand-deep); }
.button--light:hover { background: var(--soft); border-color: var(--soft); }

.text-link { color: var(--text); font-size: 15px; font-weight: 600; }
.text-link span { margin-left: 9px; color: var(--brand); }
.text-link:hover { color: var(--brand); }

/* ------------------------------------------------------------
   HERO
------------------------------------------------------------ */
.hero {
  display: flex;
  min-height: calc(100vh - 72px);
  border-bottom: 1px solid var(--line);
}
.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 980px);
  padding: clamp(42px, 4vw, 64px) clamp(32px, 5vw, 78px);
}

.proof-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
}
.proof-line > i { width: 4px; height: 4px; background: var(--brand); }
.proof-group { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.proof-group a { color: var(--muted); }
.proof-group a span { margin-left: 6px; color: var(--brand); }
.proof-group a:hover { color: var(--brand); }
.proof-logos { display: flex; align-items: center; gap: 16px; height: 26px; }
.proof-logos img {
  width: auto;
  max-width: 92px;
  height: 20px;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: left center;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--text);
  font-size: clamp(52px, 5vw, 72px);
  font-weight: 520;
  letter-spacing: -0.075em;
  line-height: 0.94;
}
.hero h1 span { display: block; color: var(--brand); font-style: italic; font-weight: 520; }
.hero__lead {
  max-width: 780px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.45;
}
.hero__lead b { color: var(--text); font-weight: 600; }
.hero__actions { display: flex; align-items: center; gap: 28px; margin-top: 26px; }

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 760px;
  margin: 30px 0 0;
  border-top: 1px solid var(--line);
}
.hero__metrics div { padding: 24px 18px 0 0; }
.hero__metrics div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.hero__metrics dt { color: var(--text); font-size: 20px; font-weight: 700; letter-spacing: -0.03em; }
.hero__metrics dt small { color: var(--quiet); font-size: 14px; font-weight: 650; }
.hero__metrics dd { margin: 3px 0 0; color: var(--quiet); font-size: 12px; }

/* ------------------------------------------------------------
   СЕКЦИИ И ЗАГОЛОВКИ
------------------------------------------------------------ */
main > .section {
  width: var(--container);
  margin: 0 auto;
  padding: var(--section-space) 0;
}
main > .section + .section { border-top: 1px solid var(--line); }

.section-heading { max-width: 880px; margin-bottom: clamp(32px, 3.5vw, 46px); }
.section-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(40px, 4.2vw, 56px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.02;
}
.section-heading p {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}
.section-heading p b { color: var(--text); font-weight: 600; }

/* ------------------------------------------------------------
   КОГДА НУЖНА ДИАГНОСТИКА – список-аккордеон
------------------------------------------------------------ */
.pain-list { border-top: 1px solid var(--line); }
.pain { border-bottom: 1px solid var(--line); }
.pain summary {
  display: grid;
  grid-template-columns: 52px 1fr 30px;
  gap: 18px;
  align-items: center;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
}
.pain summary::-webkit-details-marker { display: none; }
.pain-num { color: var(--brand); font-size: 12px; font-weight: 650; }
.pain-quote {
  color: var(--text);
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 520;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.pain-toggle {
  justify-self: end;
  color: var(--brand);
  font-size: 28px;
  font-weight: 350;
  line-height: 1;
  transition: transform 180ms ease;
}
.pain[open] .pain-toggle { transform: rotate(45deg); }

.pain-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  max-width: 1060px;
  margin: -6px 0 30px;
  padding-left: 70px;
}
.pain-section-label { margin-bottom: 12px; color: var(--brand); font-size: 12px; font-weight: 650; }
.pain-body p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.pain-body p b { color: var(--text); font-weight: 600; }
.pain-body ul { margin: 22px 0 0; padding: 0; list-style: none; }
.pain-body li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

/* ------------------------------------------------------------
   ТРИ ШАГА ДИАГНОСТИКИ
------------------------------------------------------------ */
.method-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.method-steps li {
  display: flex;
  min-height: 300px;
  padding: 26px;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.method-steps > li > span { color: var(--brand); font-size: 12px; font-weight: 650; }
.method-steps h3 {
  margin: 18px 0 14px;
  font-size: 23px;
  font-weight: 550;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.method-steps p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.method-steps p b { color: var(--text); font-weight: 600; }
.method-step-tags { margin: 30px 0 0; padding: 0; margin-top: auto; padding-top: 24px; list-style: none; }
.method-step-tags li {
  display: block;
  min-height: 0;
  padding: 8px 0;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 12px;
}

/* ------------------------------------------------------------
   АРТЕФАКТЫ – вкладки
------------------------------------------------------------ */
.deliv-wrap { border: 1px solid var(--line); background: var(--surface); }

.deliv-tabbar {
  display: flex;
  min-width: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.deliv-tabbar::-webkit-scrollbar { display: none; }
.deliv-tab {
  display: inline-flex;
  min-height: 52px;
  padding: 0 20px;
  align-items: center;
  flex: 0 0 auto;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}
.deliv-tab:hover { color: var(--brand); }
.deliv-tab.active { background: var(--surface); color: var(--brand); box-shadow: inset 0 -2px var(--brand); }

.deliv-screen { display: none; }
.deliv-screen.active { display: block; }

/* --- Карта процессов --- */
.procmap { display: grid; grid-template-columns: minmax(240px, 0.32fr) minmax(0, 1fr); min-height: 520px; }
.procmap-list { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.procmap-filters {
  display: flex;
  min-width: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.procmap-filters::-webkit-scrollbar { display: none; }
.pf {
  min-height: 44px;
  padding: 0 14px;
  flex: 0 0 auto;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}
.pf:hover { color: var(--brand); }
.pf.on { background: var(--brand-deep); color: var(--white); }

.proc-list { flex: 1; overflow-y: auto; }
.proc-item {
  display: flex;
  width: 100%;
  min-height: 78px;
  padding: 16px 20px;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease;
}
.proc-item:hover { background: var(--soft); }
.proc-item.active { background: var(--brand-deep); color: var(--white); }
.proc-name { font-size: 14px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.proc-dept { color: var(--quiet); font-size: 12px; }
.proc-item.active .proc-dept { color: var(--white-72); }
.proc-score { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.proc-bar { display: block; flex: 1; height: 2px; background: var(--line); }
.proc-item.active .proc-bar { background: var(--white-16); }
.proc-fill { display: block; height: 100%; background: var(--brand); }
.proc-item.active .proc-fill { background: var(--white); }
.proc-pct { color: var(--brand); font-size: 12px; font-weight: 650; }
.proc-item.active .proc-pct { color: var(--white); }

.proc-detail { min-width: 0; padding: clamp(24px, 3vw, 40px); }
.proc-empty {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: var(--quiet);
  font-size: 13px;
}
.proc-empty-arrow { font-size: 26px; opacity: 0.3; }

.dc { display: flex; flex-direction: column; gap: 26px; }
.dc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dc-title { font-size: clamp(22px, 2vw, 28px); font-weight: 550; letter-spacing: -0.045em; line-height: 1.08; }
.dc-dept-tag {
  padding: 7px 10px;
  flex: 0 0 auto;
  background: var(--soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.dc-summary { color: var(--muted); font-size: 15px; line-height: 1.55; }
.dc-summary b { color: var(--text); font-weight: 600; }

.dc-axes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.dc-axis { padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dc-axis-name { margin-bottom: 12px; color: var(--quiet); font-size: 12px; }
.dc-axis-bar { height: 3px; margin-bottom: 10px; background: var(--line); }
.dc-axis-fill { height: 100%; }
.dc-axis-val { color: var(--text); font-size: 14px; font-weight: 650; letter-spacing: -0.02em; }

.dc-metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.dc-metrics > div { padding: 20px 18px 0 0; }
.dc-metrics > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.dc-metric-num { color: var(--brand); font-size: 21px; font-weight: 650; letter-spacing: -0.04em; line-height: 1.1; }
.dc-metric-lab { margin-top: 5px; color: var(--quiet); font-size: 12px; line-height: 1.35; }

.dc-rec { padding: 20px 22px; background: var(--soft); }
.dc-rec-label { margin-bottom: 10px; color: var(--brand); font-size: 12px; font-weight: 650; }
.dc-rec-text { color: var(--muted); font-size: 14px; line-height: 1.55; }
.dc-rec-text b { color: var(--text); font-weight: 600; }

/* --- Матрица приоритетов --- */
.matrix-wrap { display: flex; flex-direction: column; min-height: 520px; padding: clamp(24px, 3vw, 40px); }
.matrix-head { margin-bottom: 26px; }
.matrix-head h4 { margin: 0; font-size: 23px; font-weight: 550; letter-spacing: -0.04em; }
.matrix-head p { max-width: 620px; margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.matrix-canvas-wrap { position: relative; flex: 1; }
.matrix-canvas { display: block; width: 100%; }
.m-tooltip {
  position: absolute;
  z-index: 10;
  display: none;
  max-width: 230px;
  padding: 12px 15px;
  background: var(--brand-deep);
  color: var(--white);
  font-size: 12px;
  line-height: 1.55;
  box-shadow: var(--shadow);
  pointer-events: none;
}
.m-tooltip b { color: var(--white); font-weight: 650; }
.m-tooltip .zone { margin-bottom: 4px; font-size: 12px; font-weight: 650; }

.m-legend { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.m-leg { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.m-leg-dot { width: 8px; height: 8px; }

.matrix-mobile { display: none; flex-direction: column; }
.mz-label { padding: 18px 0 8px; font-size: 12px; font-weight: 650; }
.mz-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.mz-dot { width: 8px; height: 8px; }
.mz-name { font-size: 14px; font-weight: 600; letter-spacing: -0.02em; }
.mz-dept { margin-top: 2px; color: var(--quiet); font-size: 12px; }
.mz-badge { padding: 4px 9px; font-size: 12px; font-weight: 650; white-space: nowrap; }

/* --- AI-готовность --- */
.readiness { display: flex; flex-direction: column; gap: clamp(26px, 3vw, 40px); padding: clamp(24px, 3vw, 40px); }
.readiness-top { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.radar-wrap canvas { display: block; width: 100%; }
.score-wrap { display: flex; flex-direction: column; gap: 26px; }
.score-big { padding: 24px 26px; background: var(--soft); }
.score-num { color: var(--brand); font-size: 56px; font-weight: 650; letter-spacing: -0.055em; line-height: 1; }
.score-num span { color: var(--quiet); font-size: 22px; font-weight: 650; letter-spacing: -0.03em; }
.score-label { margin-top: 8px; color: var(--muted); font-size: 12px; font-weight: 650; }
.score-desc { max-width: 460px; margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.55; }

.dims { display: flex; flex-direction: column; }
.dim { padding: 13px 0; border-top: 1px solid var(--line); }
.dim-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 9px; }
.dim-name { font-size: 14px; font-weight: 600; }
.dim-val { color: var(--brand); font-size: 14px; font-weight: 650; letter-spacing: -0.02em; }
.dim-bar { height: 2px; background: var(--line); }
.dim-fill { height: 100%; background: var(--brand); }

.insights { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.insight { padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.insight-icon { margin-bottom: 12px; font-size: 12px; font-weight: 650; }
.insight.green .insight-icon { color: #15803d; }
.insight.amber .insight-icon { color: #a16207; }
.insight.red   .insight-icon { color: #b91c1c; }
.insight-text { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ------------------------------------------------------------
   BRD – глубокая синяя секция с белым документом
------------------------------------------------------------ */
.section-deep {
  padding: var(--section-space) max(32px, calc((100vw - 1376px) / 2));
  background: var(--brand-deep);
  color: var(--white);
}
.section-deep .section-heading { max-width: 980px; }
.section-deep .section-heading h2 { color: var(--white); }
.section-deep .section-heading p { max-width: 800px; color: var(--white-72); }
.section-deep .section-heading p b { color: var(--white); }

.brd-wrap { background: var(--white); color: var(--text); box-shadow: 0 34px 100px rgba(0, 0, 0, 0.24); }
.brd-dochead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: clamp(22px, 2.4vw, 32px) clamp(22px, 2.6vw, 36px);
  border-bottom: 1px solid var(--line);
}
.brd-dochead-left { display: flex; flex-direction: column; gap: 8px; }
.brd-tag { color: var(--brand); font-size: 12px; font-weight: 650; }
.brd-title { max-width: 620px; font-size: clamp(22px, 2vw, 28px); font-weight: 550; letter-spacing: -0.045em; line-height: 1.08; }
.brd-dochead-sub { color: var(--quiet); font-size: 12px; }

.brd-sec { border-bottom: 1px solid var(--line); }
.brd-sec:last-child { border-bottom: 0; }
.brd-sec-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 30px;
  gap: 16px;
  align-items: center;
  padding: 22px clamp(22px, 2.6vw, 36px);
  cursor: pointer;
  user-select: none;
  transition: background-color 160ms ease;
}
.brd-sec-head:hover { background: var(--soft); }
.brd-sec-num { color: var(--brand); font-size: 12px; font-weight: 650; }
.brd-sec-name { font-size: clamp(16px, 1.4vw, 19px); font-weight: 550; letter-spacing: -0.025em; line-height: 1.2; }
.brd-toggle { justify-self: end; color: var(--brand); font-size: 26px; font-weight: 350; line-height: 1; transition: transform 180ms ease; }
.brd-sec.open .brd-toggle { transform: rotate(45deg); }

.brd-sec-body { display: none; padding: 0 clamp(22px, 2.6vw, 36px) 30px 60px; }
.brd-sec.open .brd-sec-body { display: block; }

.brd-block { margin-bottom: 26px; }
.brd-block:last-child { margin-bottom: 0; }
.brd-block-label { margin-bottom: 10px; color: var(--brand); font-size: 12px; font-weight: 650; }
.brd-block-text { max-width: 860px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.brd-block-text b { color: var(--text); font-weight: 600; }

.brd-kpis { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 24px; border-top: 1px solid var(--line); }
.brd-kpi { padding: 20px 18px 0 0; }
.brd-kpi + .brd-kpi { padding-left: 20px; border-left: 1px solid var(--line); }
.brd-kpi-num { color: var(--brand); font-size: 24px; font-weight: 650; letter-spacing: -0.045em; line-height: 1.1; }
.brd-kpi-lab { margin-top: 6px; color: var(--quiet); font-size: 12px; line-height: 1.4; }

.brd-sources { margin-top: 14px; border-top: 1px solid var(--line); }
.brd-source-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1.1fr) minmax(0, 1.3fr) 120px;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.brd-source-row.head { color: var(--quiet); font-size: 12px; }
.brd-source-name { font-weight: 600; }
.brd-source-field { color: var(--muted); line-height: 1.45; }
.brd-freq { display: inline-block; padding: 4px 9px; font-size: 12px; font-weight: 650; }
.brd-freq.rt     { background: rgba(34, 197, 94, 0.12);  color: #15803d; }
.brd-freq.daily  { background: rgba(29, 78, 216, 0.08);  color: var(--brand); }
.brd-freq.manual { background: var(--soft); color: var(--muted); }

.brd-screens { margin-top: 14px; border-top: 1px solid var(--line); }
.brd-screen { padding: 20px 0; border-bottom: 1px solid var(--line); }
.brd-screen-name { margin-bottom: 8px; font-size: 16px; font-weight: 600; letter-spacing: -0.025em; }
.brd-screen-desc { max-width: 820px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.brd-screen-desc b { color: var(--text); font-weight: 600; }
.brd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.brd-chip { padding: 5px 10px; background: var(--soft); color: var(--muted); font-size: 12px; }

.brd-rules { margin-top: 14px; border-top: 1px solid var(--line); }
.brd-rule { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.brd-rule-dot { width: 8px; height: 8px; margin-top: 7px; background: var(--brand); }
.brd-rule-text { max-width: 820px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.brd-rule-text b { color: var(--text); font-weight: 600; }

.brd-criteria { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.brd-crit { padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brd-crit-label { margin-bottom: 8px; font-size: 12px; font-weight: 650; }
.brd-crit.pass .brd-crit-label { color: #15803d; }
.brd-crit.fail .brd-crit-label { color: #b91c1c; }
.brd-crit-text { color: var(--muted); font-size: 14px; line-height: 1.45; }

/* ------------------------------------------------------------
   ФОРМАТЫ
------------------------------------------------------------ */
.format-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.format-card {
  display: flex;
  min-height: 430px;
  padding: 26px;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.format-card > span { color: var(--brand); font-size: 12px; font-weight: 650; }
.format-card h3 { margin: 42px 0 10px; font-size: 25px; font-weight: 550; letter-spacing: -0.045em; line-height: 1.1; }
.format-tagline { margin: 0 0 18px; color: var(--quiet); font-size: 14px; font-style: italic; }
.format-card > p:not(.format-tagline) { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.format-card ul { margin: 30px 0; padding: 0; flex: 1; list-style: none; }
.format-card li { padding: 8px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.45; }
.format-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.format-dur { color: var(--quiet); font-size: 12px; }
.format-price { color: var(--brand); font-size: 21px; font-weight: 650; letter-spacing: -0.04em; }

.format-card--accent { background: var(--brand-deep); color: var(--white); }
.format-card--accent > span { color: var(--white); }
.format-card--accent .format-tagline { color: var(--white-72); }
.format-card--accent > p:not(.format-tagline) { color: var(--white-72); }
.format-card--accent li { border-top-color: var(--white-16); color: var(--white-72); }
.format-card--accent .format-foot { border-top-color: var(--white-16); }
.format-card--accent .format-dur { color: var(--white-72); }
.format-card--accent .format-price { color: var(--white); }

.formats-note { margin: 26px 0 0; color: var(--quiet); font-size: 14px; }

/* ------------------------------------------------------------
   АДАПТИВ
------------------------------------------------------------ */
@media (max-width: 1180px) {
  :root { --container: min(100% - 48px, 1120px); }
  .hero__copy { padding-inline: 48px; }
  .hero h1 { font-size: clamp(52px, 6.4vw, 72px); }
  .section-deep { padding-inline: max(24px, calc((100vw - 1120px) / 2)); }
  .format-grid { grid-template-columns: repeat(2, 1fr); }
  .readiness-top { grid-template-columns: 1fr; }
  .procmap { grid-template-columns: minmax(210px, 0.34fr) minmax(0, 1fr); }
}

@media (max-width: 900px) {
  :root { --container: calc(100% - 36px); --section-space: 68px; }
  .hero { min-height: auto; }
  .hero__copy { padding: 64px 24px; }
  .hero h1 { font-size: clamp(52px, 12vw, 72px); }
  .pain-body { grid-template-columns: 1fr; gap: 26px; padding-left: 0; }
  .method-steps { grid-template-columns: repeat(2, 1fr); }
  .procmap { grid-template-columns: 1fr; }
  .procmap-list { border-right: 0; border-bottom: 1px solid var(--line); }
  .proc-list { display: flex; max-height: 300px; flex-direction: column; }
  .dc-metrics { grid-template-columns: 1fr; }
  .dc-metrics > div { padding: 14px 0; }
  .dc-metrics > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .insights { grid-template-columns: 1fr; }
  .brd-sec-body { padding-left: clamp(22px, 2.6vw, 36px); }
  .brd-kpis { grid-template-columns: 1fr; }
  .brd-kpi { padding: 16px 0; }
  .brd-kpi + .brd-kpi { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .brd-source-row { grid-template-columns: 26px minmax(0, 1fr); }
  .brd-source-row.head { display: none; }
  .brd-source-field, .brd-source-row > div:last-child { grid-column: 2; }
  .brd-criteria { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  :root { --container: calc(100% - 36px); --section-space: 46px; }
  .hero__copy { padding: 48px 18px; }
  .proof-line { gap: 10px 14px; }
  .proof-line > i { display: none; }
  .proof-group { flex-wrap: wrap; white-space: normal; }
  .proof-logos { gap: 14px; height: 22px; }
  .proof-logos img { max-width: 74px; height: 17px; }
  .hero h1 { font-size: 52px; line-height: 0.98; }
  .hero__lead { font-size: 17px; }
  .hero__actions { align-items: stretch; flex-direction: column; gap: 14px; }
  .hero__actions .button { width: 100%; }
  .hero__metrics { grid-template-columns: 1fr; margin-top: 32px; }
  .hero__metrics div, .hero__metrics div + div { padding: 13px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .section-heading h2, .section-deep .section-heading h2 { font-size: 40px; }
  .section-heading p { font-size: 16px; }
  .pain summary { grid-template-columns: 40px 1fr 26px; gap: 12px; }
  .method-steps, .format-grid { grid-template-columns: 1fr; }
  .matrix-canvas-wrap, .m-legend { display: none; }
  .matrix-mobile { display: flex; }
  .section-deep { padding-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
