/* ==========================================================================
   Компетометр — публичный сайт
   Дизайн-система: тёплая бумага, глубокий синий, градиентные акценты,
   техническая графика. Наследует визуальный язык service.bt360.ru
   и business-simulation.ru (ТЗ, раздел 7.2).
   ========================================================================== */

/* ---------- Шрифты ---------- */
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/golos-text-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/golos-text-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F;
}

/* ---------- Токены ---------- */
:root {
  --ink: #141a2e;
  --navy: #15225c;
  --navy-deep: #101a45;
  --muted: #5b6478;
  --muted-soft: #667085;
  --line: #e3e5ec;
  --line-strong: #c9ccd6;
  --paper: #f6f4f0;
  --paper-deep: #efede7;
  --white: #ffffff;
  --blue: #2947d9;
  --blue-deep: #1f36a8;
  --sky: #7ec8ee;
  --cyan: #0e9bd8;
  --amber: #f0a128;
  --magenta: #c62e71;
  --red: #d93025;
  --violet: #6b4fd8;
  --teal: #1f8a70;
  --indigo: #4453c4;

  --grad: linear-gradient(115deg, var(--sky) 0%, var(--blue) 45%, var(--magenta) 80%, var(--amber) 100%);
  --grad-cool: linear-gradient(135deg, var(--sky), var(--blue) 60%, var(--navy));

  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;

  --shadow: 0 8px 24px -8px rgba(21, 34, 92, 0.14);
  --shadow-lg: 0 30px 60px -20px rgba(21, 34, 92, 0.22);

  --max: 1200px;
  --gutter: 20px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(41, 71, 217, 0.16); color: var(--navy); }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--navy);
  color: #fff; text-decoration: none; font-size: 14px;
}
.skip:focus { left: 8px; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.ribbon {
  height: 4px;
  background: var(--grad);
  background-size: 200% 100%;
  animation: ribbon 18s linear infinite;
}
@keyframes ribbon {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .ribbon { animation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Типографика ---------- */
.h1, .h2, .h3 { color: var(--navy); font-weight: 700; }
.h1 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.h2 { font-size: clamp(27px, 3.9vw, 44px); line-height: 1.1; letter-spacing: -0.028em; font-weight: 650; text-wrap: balance; }
.h3 { font-size: clamp(19px, 2.1vw, 24px); line-height: 1.24; letter-spacing: -0.018em; font-weight: 650; }
.lead { font-size: clamp(17px, 1.55vw, 20px); line-height: 1.5; color: var(--muted); max-width: 62ch; }
.body-muted { color: var(--muted); }
.small { font-size: 13px; color: var(--muted); }

.grad-text {
  background: linear-gradient(115deg, #0c85bd 0%, var(--blue) 38%, var(--magenta) 72%, #d98a12 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
}
.grad-text--cool {
  background: var(--grad-cool);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.link {
  color: var(--blue); font-weight: 500; text-decoration: none;
  border-bottom: 1px solid rgba(41, 71, 217, 0.25); transition: border-color 0.2s;
}
.link:hover { border-color: var(--blue); }

/* ---------- Секции ---------- */
.section { position: relative; padding: 56px 0; }
@media (min-width: 1024px) { .section { padding: 96px 0; } }
.section--tight { padding: 40px 0; }
@media (min-width: 1024px) { .section--tight { padding: 64px 0; } }
.section--paper { background: var(--paper); }
.section--fade { background: linear-gradient(180deg, #fff 0%, var(--paper) 100%); }
.section--fade-top { background: linear-gradient(180deg, var(--paper) 0%, #fff 100%); }

.section-head { display: grid; gap: 16px; justify-items: start; max-width: 820px; margin-bottom: 40px; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 32px; flex-wrap: wrap; }
.section-head--row > div { flex: 1 1 460px; min-width: 0; }
.section-head--row > .btn { flex: none; }
.section-head .lead { margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px 10px; margin-bottom: 16px;
  font-size: 14px; font-weight: 500; color: var(--blue); flex-wrap: wrap;
}
.eyebrow .mono { padding: 4px 9px; border-radius: 7px; background: rgba(41, 71, 217, 0.08); color: var(--blue); white-space: nowrap; }
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--grad);
  box-shadow: 0 0 0 4px rgba(41, 71, 217, 0.1);
}
.eyebrow--light { color: var(--sky); }
.eyebrow--light .mono { background: rgba(255, 255, 255, 0.12); color: #fff; }
.eyebrow--light .eyebrow__dot { background: var(--sky); box-shadow: 0 0 0 4px rgba(126, 200, 238, 0.16); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font); font-size: 15px; font-weight: 600; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.btn svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; flex: none;
}
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 54px; padding: 0 28px; font-size: 16px; }
.btn--primary { color: #fff; background: var(--navy); box-shadow: 0 8px 22px -8px rgba(41, 71, 217, 0.55); }
.btn--primary:hover { background: var(--blue); transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(41, 71, 217, 0.6); }
.btn--ghost { color: var(--navy); background: rgba(255, 255, 255, 0.7); border-color: var(--line-strong); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--navy); background: #fff; transform: translateY(-1px); }
.btn--light { color: var(--navy); background: #fff; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.45); }
.btn--light:hover { background: var(--sky); transform: translateY(-1px); }
.btn--outline-light { color: #fff; background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.28); }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.55); transform: translateY(-1px); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn--link {
  height: auto; padding: 0; border: 0; background: none; color: var(--blue);
  font-weight: 600; border-radius: 4px;
}
.btn--link:hover { color: var(--navy); }

/* ---------- Пилюли, чипы, теги ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.8); border: 1px solid var(--line);
  font-size: 13px; font-weight: 500; color: var(--navy); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px rgba(41, 71, 217, 0.1); }

.chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 6px 13px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: #fff;
  font-size: 13px; font-weight: 500; color: var(--navy); text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.chip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip:hover { border-color: var(--blue); background: rgba(41, 71, 217, 0.05); }
.chip--static { border-color: transparent; background: var(--paper); color: var(--muted); }
.chip--accent { border-color: transparent; background: rgba(41, 71, 217, 0.08); color: var(--blue); }
.tag {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px;
  border-radius: 7px; background: var(--paper); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.tag--accent { background: rgba(41, 71, 217, 0.07); border-color: transparent; color: var(--blue); }
.tag--amber { background: rgba(240, 161, 40, 0.16); border-color: transparent; color: #7a4a05; }
.tag--teal { background: rgba(31, 138, 112, 0.12); border-color: transparent; color: #166b56; }
.tag--red { background: rgba(217, 48, 37, 0.1); border-color: transparent; color: #b02419; }
.tag--magenta { background: rgba(198, 46, 113, 0.1); border-color: transparent; color: #a12259; }
.tag--sky { background: rgba(14, 155, 216, 0.12); border-color: transparent; color: #0a6f9b; }

.dot-legend { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.dot-legend i { width: 9px; height: 9px; border-radius: 50%; flex: none; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.header.is-scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, 0.94); box-shadow: 0 6px 24px -20px rgba(21, 34, 92, 0.4); }
.header__row { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.logo__mark { width: 38px; height: 38px; }
.logo__text { display: grid; line-height: 1.05; }
.logo__text b { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; color: var(--navy); }
.logo__text span { font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-soft); margin-top: 4px; }
.nav { display: none; margin-left: 10px; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__link {
  display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.nav__link:hover { background: rgba(21, 34, 92, 0.05); color: var(--navy); }
.nav__link[aria-current="page"] { color: var(--blue); background: rgba(41, 71, 217, 0.07); }
.header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header__login { display: none; }
.header__cta { display: none; }
.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 0 10px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: #fff;
}
.burger span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: var(--header-h);
  padding: 14px var(--gutter) 22px; background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow); max-height: calc(100vh - var(--header-h)); overflow: auto;
}
.nav.is-open .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
.nav.is-open .nav__link { padding: 12px 14px; border-radius: 10px; font-size: 15px; }
.nav__login, .nav__mobile-cta { display: none; }
@media (max-width: 1023px) {
  .nav.is-open .nav__login { display: block; }
  .nav.is-open .nav__login .nav__link { width: 100%; text-align: left; background: none; border: 0; font: inherit; font-size: 15px; color: var(--ink); }
  .nav.is-open .nav__mobile-cta { display: block; margin-top: 6px; }
}
@media (min-width: 1024px) {
  .nav { display: block; }
  .burger { display: none; }
  .header__login { display: inline-flex; }
  .header__cta { display: inline-flex; }
  .header__actions { gap: 10px; }
}

/* ---------- Декоративный фон ---------- */
.dotgrid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(21, 34, 92, 0.13) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(60% 60% at 50% 40%, #000 0%, transparent 100%);
  mask-image: radial-gradient(60% 60% at 50% 40%, #000 0%, transparent 100%);
  pointer-events: none; opacity: 0.5;
}
.hero__aura {
  position: absolute; top: -180px; right: -120px; width: 760px; height: 760px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(126, 200, 238, 0.4), transparent 70%),
    radial-gradient(closest-side at 30% 65%, rgba(198, 46, 113, 0.16), transparent 70%);
  filter: blur(30px); pointer-events: none;
}
.hero__grid-bg {
  position: absolute; inset: 0; opacity: 0.35;
  background-image: radial-gradient(circle, rgba(21, 34, 92, 0.18) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(100deg, transparent 20%, #000 85%);
  mask-image: linear-gradient(100deg, transparent 20%, #000 85%);
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 36px 0 56px; }
@media (min-width: 768px) { .hero { padding: 48px 0 68px; } }
@media (min-width: 1024px) { .hero { padding: 56px 0 76px; } }
.hero__grid { position: relative; display: grid; gap: 44px; }
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1.04fr 1fr; align-items: center; gap: 56px; }
}
.hero__text { display: grid; gap: 20px; justify-items: start; max-width: 620px; }
.hero__title { max-width: 16ch; }
.hero__lead { max-width: 30em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); max-width: 330px; }
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta svg { width: 15px; height: 15px; fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Сцена: дерево + карточка */
.stage {
  position: relative; z-index: 1; padding: 16px 2px 22px;
}
.stage__panel {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background:
    radial-gradient(120% 90% at 85% 8%, rgba(126, 200, 238, 0.16), transparent 55%),
    radial-gradient(90% 80% at 10% 95%, rgba(198, 46, 113, 0.14), transparent 60%),
    linear-gradient(160deg, #172a6e 0%, var(--navy-deep) 58%, #0b1230 100%);
  color: #fff; padding: 22px;
  box-shadow: 0 40px 70px -30px rgba(16, 26, 69, 0.55);
  min-height: 440px;
  display: grid; grid-template-rows: auto 1fr; gap: 8px;
}
@media (min-width: 430px) { .stage__panel { padding: 26px; } }
.stage__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; z-index: 2; }
.stage__label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); }
.stage__label i { width: 6px; height: 6px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px rgba(126, 200, 238, 0.18); }
.stage__badge {
  padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16); font-family: var(--mono);
  font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}
.stage__art { position: relative; display: grid; place-items: center; min-height: 300px; }
.stage__art svg.tree-static { width: 100%; height: auto; max-width: 470px; overflow: visible; }
.stage__art .tree-ring { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 1; }
.stage__art .tree-ring--dash { stroke-dasharray: 3 7; stroke: rgba(126, 200, 238, 0.22); }
.stage__art .branch { fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 1.2; }
.stage__art .hub { fill: #fff; }
.stage__art .leaf { stroke: rgba(16, 26, 69, 0.6); stroke-width: 1.2; }
.stage__art .cluster-label { font-family: var(--mono); font-size: 8px; letter-spacing: 0.06em; fill: rgba(255, 255, 255, 0.62); text-transform: uppercase; }
.stage__float {
  position: absolute; z-index: 3; background: rgba(255, 255, 255, 0.97);
  border-radius: 16px; box-shadow: 0 24px 50px -20px rgba(4, 10, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.6); color: var(--ink);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.stage__float--card { left: 0; bottom: 0; width: min(268px, 78%); padding: 14px 15px 13px; }
.stage__float--chip { right: 0; top: 12px; padding: 10px 13px; width: min(232px, 64%); }
@media (max-width: 480px) {
  .stage__panel { min-height: 0; }
  .stage__art { min-height: 250px; }
  .stage__float--chip { display: none; }
}
.mini-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.mini-card__code { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.06em; color: var(--blue); }
.mini-card__name { font-size: 14px; font-weight: 650; color: var(--navy); line-height: 1.2; }
.mini-card__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 10px; }
.mini-card__level { display: flex; align-items: baseline; gap: 5px; }
.mini-card__level b { font-family: var(--mono); font-size: 30px; line-height: 0.9; font-weight: 500; color: var(--navy); letter-spacing: -0.04em; }
.mini-card__level span { font-size: 11px; color: var(--muted); }
.mini-card__target { text-align: right; font-size: 11px; color: var(--muted); line-height: 1.3; }
.mini-card__target b { display: block; font-family: var(--mono); font-size: 15px; color: #a2650a; font-weight: 500; }
.mini-card__bar { display: flex; gap: 3px; margin-top: 9px; }
.mini-card__bar i { height: 5px; flex: 1; border-radius: 3px; background: var(--line); }
.mini-card__bar i.on { background: var(--blue); }
.mini-card__bar i.goal { background: var(--amber); }
.mini-card__meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.mini-card__meta .tag { height: 21px; font-size: 8.5px; padding: 0 6px; }

/* ---------- Статистика ---------- */
.stats { position: relative; z-index: 2; }
.stats__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .stats__list { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.stat {
  display: grid; gap: 6px; padding: 20px 18px; border-radius: var(--r);
  background: #fff; box-shadow: var(--shadow); border: 1px solid rgba(201, 204, 214, 0.55);
}
.stat__num {
  font-size: clamp(30px, 3.8vw, 44px); line-height: 1; letter-spacing: -0.035em; font-weight: 750;
  background: var(--grad-cool); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat__label { color: var(--muted); font-size: 13.5px; line-height: 1.35; max-width: 20em; }
.stat__hint { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted-soft); }

/* ---------- Карточки-проблемы ---------- */
.pain__grid { display: grid; gap: 16px; }
@media (min-width: 800px) { .pain__grid { grid-template-columns: repeat(3, 1fr); } }
.pain {
  display: grid; align-content: start; gap: 12px; padding: 24px 22px 26px;
  border-radius: var(--r); background: #fff; border: 1px solid rgba(201, 204, 214, 0.55);
  box-shadow: var(--shadow);
}
.pain__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pain__stamp {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: #b02419; background: rgba(217, 48, 37, 0.08); padding: 4px 7px; border-radius: 6px;
}
.pain__title { font-size: 19px; font-weight: 650; color: var(--navy); letter-spacing: -0.015em; line-height: 1.25; }
.pain p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.pain__art { height: 84px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; position: relative; display: grid; place-items: center; }
.pain__art svg { width: 100%; height: 100%; }

.callout {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  margin-top: 28px; padding: 22px 24px; border-radius: var(--r);
  background: linear-gradient(120deg, #fff, #fbfaf7);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.callout__mark {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px;
  background: linear-gradient(140deg, var(--sky), var(--blue)); color: #fff;
  font-family: var(--mono); font-size: 16px; font-weight: 500; flex: none;
}
.callout b { display: block; font-size: 16px; color: var(--navy); margin-bottom: 3px; }
.callout p { font-size: 14.5px; color: var(--muted); max-width: 74ch; }

/* ---------- Шаги ---------- */
.steps { display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.step {
  position: relative; display: grid; align-content: start; gap: 10px;
  padding: 24px 22px 26px; border-radius: var(--r); background: #fff;
  border: 1px solid rgba(201, 204, 214, 0.55); box-shadow: var(--shadow);
}
.step__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.step__num {
  font-family: var(--mono); font-size: 26px; font-weight: 500; letter-spacing: -0.06em;
  background: var(--grad-cool); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step__time { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--blue); background: rgba(41, 71, 217, 0.07); padding: 4px 7px; border-radius: 6px; white-space: nowrap; }
.step h3 { font-size: 17px; font-weight: 650; color: var(--navy); line-height: 1.3; letter-spacing: -0.012em; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.step__art { margin-top: 4px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); }

/* ---------- Explorer (дерево) ---------- */
.explorer {
  scroll-margin-top: calc(var(--header-h) + 16px);
  border-radius: var(--r-lg); background: #fff; border: 1px solid rgba(201, 204, 214, 0.65);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.explorer__bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--line); background: rgba(246, 244, 240, 0.5);
}
.explorer__search { position: relative; flex: 1 1 220px; min-width: 180px; }
.explorer__search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.explorer__search input {
  width: 100%; height: 42px; padding: 0 14px 0 38px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: #fff; font-size: 14px;
}
.explorer__search input::placeholder { color: var(--muted-soft); }
.explorer__search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(41, 71, 217, 0.12); }
.explorer__roles { display: inline-flex; padding: 3px; border-radius: 999px; background: #fff; border: 1px solid var(--line-strong); }
.explorer__role {
  border: 0; background: none; border-radius: 999px; padding: 7px 12px;
  font-size: 12.5px; font-weight: 600; color: var(--muted); transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.explorer__role[aria-pressed="true"] { background: var(--navy); color: #fff; }
.explorer__role:hover:not([aria-pressed="true"]) { color: var(--navy); }
.explorer__views { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: #fff; border: 1px solid var(--line-strong); margin-left: auto; }
.explorer__view {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: none;
  border-radius: 999px; padding: 7px 11px; font-size: 12.5px; font-weight: 600; color: var(--muted);
}
.explorer__view svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.explorer__view[aria-pressed="true"] { background: var(--paper); color: var(--navy); }
.explorer__filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.filter-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.filter-group__label { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-soft); margin-right: 2px; }
.filter-chip {
  border: 1px solid var(--line-strong); background: #fff; border-radius: 999px;
  padding: 5px 11px; font-size: 12px; font-weight: 500; color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px; transition: all 0.18s;
}
.filter-chip i { width: 7px; height: 7px; border-radius: 2px; background: var(--dot, var(--blue)); flex: none; }
.filter-chip:hover { color: var(--navy); border-color: var(--muted-soft); }
.filter-chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.explorer__count { margin-left: auto; font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-soft); }
.explorer__body { display: grid; gap: 0; }
@media (min-width: 1024px) { .explorer__body { grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr); } }
.explorer__canvas {
  position: relative; min-height: 380px; padding: 10px;
  background:
    radial-gradient(circle at 50% 50%, rgba(246, 244, 240, 0.9), rgba(246, 244, 240, 0.35) 60%, transparent 75%),
    radial-gradient(circle, rgba(21, 34, 92, 0.1) 1px, transparent 1px) 0 0 / 24px 24px,
    #fbfaf8;
  overflow: hidden;
}
@media (min-width: 1024px) { .explorer__canvas { min-height: 620px; border-right: 1px solid var(--line); } }
.explorer__canvas svg { width: 100%; height: 100%; touch-action: none; display: block; }
.explorer__hint {
  position: absolute; left: 14px; top: 12px; z-index: 2;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted-soft); pointer-events: none; background: rgba(251, 250, 248, 0.8);
  padding: 4px 7px; border-radius: 5px;
}
.explorer__zoom { position: absolute; right: 14px; bottom: 14px; z-index: 2; display: grid; gap: 4px; }
.explorer__zoom button {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.96); font-size: 19px; line-height: 1; color: var(--navy);
  display: grid; place-items: center; box-shadow: var(--shadow); font-family: var(--font);
}
.explorer__zoom button:hover { border-color: var(--navy); }
.tree-link { fill: none; stroke: var(--line-strong); stroke-width: 1.1; transition: opacity 0.2s, stroke 0.2s; }
.tree-link--cluster { stroke: rgba(21, 34, 92, 0.28); stroke-width: 1.4; }
.tree-node { cursor: pointer; transition: opacity 0.2s; }
.tree-node:focus { outline: none; }
.tree-node:focus-visible .tree-node__hit { stroke: var(--blue); stroke-width: 2; }
.tree-node__hit { fill: transparent; stroke: transparent; }
.tree-node__disc { transition: transform 0.18s var(--ease), opacity 0.2s; transform-origin: center; transform-box: fill-box; }
.tree-node:hover .tree-node__disc { transform: scale(1.28); }
.tree-node__label {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.02em; fill: var(--navy);
  opacity: 0; transition: opacity 0.18s; pointer-events: none;
}
.tree-node:hover .tree-node__label, .tree-node.is-active .tree-node__label { opacity: 1; }
.tree-cluster__label { font-family: var(--font); font-size: 10px; font-weight: 600; fill: var(--navy); }
.tree-cluster__meta { font-family: var(--mono); font-size: 7.2px; fill: var(--muted-soft); letter-spacing: 0.04em; }
.tree-center__num { font-family: var(--mono); font-size: 26px; font-weight: 500; fill: #fff; letter-spacing: -0.04em; }
.tree-center__cap { font-family: var(--mono); font-size: 6.5px; fill: rgba(255, 255, 255, 0.55); letter-spacing: 0.1em; text-transform: uppercase; }
.tree-target { fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; }
.tree-node.is-dim { opacity: 0.16; }
.tree-cluster.is-dim { opacity: 0.16; }
.tree-node.is-active .tree-node__disc { transform: scale(1.34); }
.tree-node.is-active .tree-node__halo { opacity: 1; }
.tree-node__halo { fill: none; stroke: var(--blue); stroke-width: 1.4; opacity: 0; transition: opacity 0.2s; }

.tree-legend {
  position: absolute; left: 12px; bottom: 12px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px 12px;
  max-width: calc(100% - 90px); padding: 9px 11px; border-radius: 11px;
  background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line);
  font-size: 10.5px; color: var(--muted); box-shadow: 0 4px 14px -8px rgba(21, 34, 92, 0.2);
}
.tree-legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.tree-legend i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.tree-empty {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
  gap: 6px; padding: 24px; background: rgba(251, 250, 248, 0.9); z-index: 3;
}
.tree-empty b { font-size: 15px; color: var(--navy); }
.tree-empty p { font-size: 13px; color: var(--muted); max-width: 34ch; }
.tree-empty[hidden] { display: none; }

.explorer__panel {
  display: grid; align-content: start; gap: 0; background: #fff; min-height: 320px;
  max-height: none;
}
@media (min-width: 1024px) { .explorer__panel { max-height: 620px; overflow: auto; } }
.panel { padding: 22px 22px 24px; display: grid; gap: 14px; align-content: start; }
.panel__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel__code { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; color: var(--blue); }
.panel__close { display: none; }
.panel__title { font-size: 21px; line-height: 1.2; font-weight: 650; color: var(--navy); letter-spacing: -0.02em; }
.panel__cluster { font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.panel__def { font-size: 14px; line-height: 1.55; color: var(--ink); }
.panel__def--muted { color: var(--muted); }
.panel__section-title { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted-soft); margin-top: 4px; }
.panel__gauge { display: grid; gap: 7px; padding: 14px; border-radius: 13px; background: var(--paper); border: 1px solid var(--line); }
.panel__gauge-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.panel__gauge-num { display: flex; align-items: baseline; gap: 6px; }
.panel__gauge-num b { font-family: var(--mono); font-size: 34px; line-height: 0.9; font-weight: 500; color: var(--navy); letter-spacing: -0.04em; }
.panel__gauge-num span { font-size: 11.5px; color: var(--muted); }
.panel__gauge-goal { text-align: right; font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.panel__gauge-goal b { display: block; font-family: var(--mono); font-size: 17px; color: #a2650a; font-weight: 500; }
.gauge { display: flex; gap: 3px; }
.gauge i { flex: 1; height: 7px; border-radius: 4px; background: var(--line); }
.gauge i.on { background: var(--blue); }
.gauge i.on-amber { background: var(--amber); }
.gauge i.on-teal { background: var(--teal); }
.gauge i.on-magenta { background: var(--magenta); }
.panel__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.panel__fact { padding: 9px 11px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); }
.panel__fact span { display: block; font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted-soft); margin-bottom: 3px; }
.panel__fact b { font-size: 12.5px; color: var(--navy); font-weight: 600; }
.panel__list { display: grid; gap: 7px; font-size: 13.5px; color: var(--ink); }
.panel__list li { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; line-height: 1.45; }
.panel__list li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); margin-top: 7px; }
.panel__list--check li::before { content: "✓"; width: auto; height: auto; background: none; color: var(--teal); font-size: 11px; font-weight: 700; margin-top: 1px; }
.panel__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.panel__states { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; font-size: 11.5px; color: var(--muted); }
.panel__states span { display: flex; align-items: center; gap: 7px; }
.panel__states .st { width: 13px; height: 13px; border-radius: 50%; flex: none; }
.st--solid { background: #1f8a70; }
.st--hypo { border: 2px dashed #c62e71; background: rgba(198, 46, 113, 0.08); }
.st--none { border: 2px dashed #c9ccd6; }
.st--goal { border: 2px solid #f0a128; box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px #f0a128; }
.st--gap { border: 2px solid #d93025; background: rgba(217, 48, 37, 0.12); }
.panel__empty { display: grid; gap: 10px; padding: 30px 22px; align-content: start; }
.panel__empty b { font-size: 16px; color: var(--navy); }
.panel__empty p { font-size: 13.5px; color: var(--muted); max-width: 34ch; }
.panel__empty ul { display: grid; gap: 8px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.panel__empty li { display: flex; gap: 8px; align-items: flex-start; }
.panel__empty li::before { content: "—"; color: var(--line-strong); }
.panel__skeleton { padding: 22px; display: grid; gap: 10px; }
.sk { border-radius: 7px; background: linear-gradient(90deg, #efede8, #f7f6f3, #efede8); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
.sk--title { height: 22px; width: 70%; }
.sk--line { height: 11px; width: 100%; }
.sk--line.short { width: 55%; }
.sk--block { height: 74px; border-radius: 12px; }
@keyframes sk { 0% { background-position: 0 0; } 100% { background-position: -200% 0; } }

/* Список-вид дерева */
.explorer__list { padding: 8px 0 16px; max-height: 620px; overflow: auto; border-right: 0; }
@media (min-width: 1024px) { .explorer__list { border-right: 1px solid var(--line); } }
.tree-list__cluster { border-bottom: 1px solid var(--line); }
.tree-list__toggle {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 18px;
  border: 0; background: none; text-align: left; font-size: 14px; font-weight: 600; color: var(--navy);
}
.tree-list__toggle:hover { background: var(--paper); }
.tree-list__toggle svg { width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 2; margin-left: auto; transition: transform 0.2s; flex: none; }
.tree-list__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.tree-list__dot { width: 8px; height: 8px; border-radius: 2px; background: var(--dot); flex: none; }
.tree-list__count { font-family: var(--mono); font-size: 10px; color: var(--muted-soft); font-weight: 400; margin-left: 2px; }
.tree-list__items { display: grid; gap: 1px; padding: 0 10px 10px; }
.tree-list__items[hidden] { display: none; }
.tree-list__item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px;
  border: 0; border-radius: 8px; background: none; text-align: left; font-size: 13px;
  color: var(--ink); text-decoration: none;
}
.tree-list__item:hover { background: var(--paper); }
.tree-list__item.is-active { background: rgba(41, 71, 217, 0.08); color: var(--navy); }
.tree-list__item code { font-family: var(--mono); font-size: 9.5px; color: var(--muted-soft); flex: none; }
.tree-list__item .mini-gauge { margin-left: auto; flex: none; display: flex; gap: 2px; }
.tree-list__item .mini-gauge i { width: 5px; height: 10px; border-radius: 2px; background: var(--line); }
.tree-list__item .mini-gauge i.on { background: var(--blue); }
.tree-list__item .mini-gauge i.goal { background: var(--amber); }
.explorer[data-view="list"] .explorer__canvas { display: none; }

/* ---------- Уровни 0–5 ---------- */
.level-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .level-strip { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .level-strip { grid-template-columns: repeat(6, 1fr); } }
.level-card {
  position: relative; display: grid; align-content: start; gap: 6px; padding: 18px 16px;
  border-radius: 14px; border: 1px solid var(--line); background: #fff;
  border-top: 3px solid var(--tone, var(--blue));
}
.level-card b { font-family: var(--mono); font-size: 22px; font-weight: 500; letter-spacing: -0.04em; color: var(--tone, var(--navy)); line-height: 1; }
.level-card strong { font-size: 12.5px; font-weight: 650; color: var(--navy); line-height: 1.25; }
.level-card span { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.level-note {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 15px 17px;
  border-radius: 12px; background: rgba(240, 161, 40, 0.09); border: 1px solid rgba(240, 161, 40, 0.28);
  font-size: 13.5px; color: #6d4a10;
}
.level-note svg { width: 18px; height: 18px; fill: none; stroke: #a2650a; stroke-width: 2; flex: none; margin-top: 1px; }
.level-note b { color: #523607; }

/* Покрытие */
.coverage-grid { display: grid; gap: 12px; }
@media (min-width: 768px) { .coverage-grid { grid-template-columns: repeat(3, 1fr); } }
.coverage-card { display: grid; gap: 8px; padding: 20px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; }
.coverage-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.coverage-card__letter {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  font-family: var(--mono); font-size: 15px; font-weight: 500; color: #fff; background: var(--tone);
}
.coverage-card h4 { font-size: 14px; font-weight: 650; color: var(--navy); }
.coverage-card p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.coverage-card__count { font-family: var(--mono); font-size: 11px; color: var(--muted-soft); letter-spacing: 0.04em; }
.meter { display: grid; gap: 5px; }
.meter__head { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.meter__head code { font-family: var(--mono); font-size: 10px; color: var(--muted-soft); }
.meter__track { height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; }
.meter__fill { height: 100%; border-radius: 4px; background: var(--tone, var(--blue)); }

/* ---------- Профиль (мок) ---------- */
.mock {
  border-radius: var(--r-lg); background: #fff; border: 1px solid rgba(201, 204, 214, 0.7);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock__bar { display: flex; align-items: center; gap: 8px; padding: 11px 16px; background: rgba(246, 244, 240, 0.6); border-bottom: 1px solid var(--line); }
.mock__dots { display: flex; gap: 5px; }
.mock__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.mock__dots i:first-child { background: #f0b3a8; }
.mock__dots i:nth-child(2) { background: #f3d29c; }
.mock__dots i:nth-child(3) { background: #b7dccb; }
.mock__title { margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--navy); }
.mock__title span { font-weight: 400; color: var(--muted); }
.mock__badge { margin-left: auto; padding: 3px 8px; border-radius: 999px; background: rgba(41, 71, 217, 0.08); font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--blue); }
.mock__body { display: grid; gap: 20px; padding: 20px; }
@media (min-width: 760px) { .mock__body { grid-template-columns: 0.95fr 1.05fr; gap: 24px; align-items: start; } }
.mock__radar { display: grid; gap: 8px; justify-items: center; }
.mock__radar svg { width: 100%; max-width: 320px; height: auto; }
.mock__radar .r-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.mock__radar .r-axis { stroke: var(--line); stroke-width: 1; }
.mock__radar .r-current { fill: rgba(41, 71, 217, 0.16); stroke: var(--blue); stroke-width: 1.6; stroke-linejoin: round; }
.mock__radar .r-target { fill: none; stroke: var(--amber); stroke-width: 1.3; stroke-dasharray: 3 3; }
.mock__radar .r-label { font-family: var(--mono); font-size: 8.4px; fill: var(--muted); text-transform: uppercase; letter-spacing: 0.02em; }
.mock__legend { display: flex; gap: 12px; font-size: 10.5px; color: var(--muted); }
.mock__legend span { display: inline-flex; align-items: center; gap: 5px; }
.mock__legend i { width: 14px; height: 2px; background: var(--blue); }
.mock__legend i.dash { background: repeating-linear-gradient(90deg, var(--amber) 0 3px, transparent 3px 6px); }
.mock__trend { width: 100%; max-width: 260px; padding: 11px 12px 6px; border-radius: 11px; background: var(--paper); border: 1px solid var(--line); }
.mock__trend-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; font-size: 10.5px; color: var(--muted); }
.mock__trend-head b { font-family: var(--mono); font-size: 9.5px; color: var(--teal); font-weight: 500; white-space: nowrap; }
.mock__trend svg { width: 100%; height: auto; }
.mock__summary { display: grid; gap: 14px; }
.mock__index { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mock__index-num { display: flex; align-items: baseline; gap: 5px; }
.mock__index-num b { font-family: var(--mono); font-size: 42px; line-height: 0.9; font-weight: 500; color: var(--navy); letter-spacing: -0.05em; }
.mock__index-num span { font-size: 12px; color: var(--muted); }
.mock__index-meta { text-align: right; font-size: 11px; color: var(--muted); line-height: 1.4; }
.mock__index-meta b { display: block; font-family: var(--mono); font-size: 13px; color: var(--navy); font-weight: 500; }
.mock__rows { display: grid; gap: 9px; }
.mock__row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.mock__row-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mock__row-top span { font-size: 11.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock__row-top .tag { height: 18px; font-size: 8px; padding: 0 5px; flex: none; }
.mock__row-bar { height: 4px; border-radius: 3px; background: var(--line); margin-top: 4px; position: relative; overflow: hidden; }
.mock__row-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--blue); }
.mock__row-bar i.gap { background: rgba(217, 48, 37, 0.55); }
.mock__row-val { font-family: var(--mono); font-size: 10.5px; color: var(--muted); white-space: nowrap; }

/* ---------- Роли (табы) ---------- */
.tabs { display: grid; gap: 22px; }
.tabs__list { display: flex; flex-wrap: wrap; gap: 6px; }
.tab {
  border: 1px solid var(--line-strong); background: #fff; border-radius: 999px;
  padding: 9px 15px; font-size: 13.5px; font-weight: 600; color: var(--muted);
  transition: all 0.2s;
}
.tab:hover { color: var(--navy); border-color: var(--navy); }
.tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tabs__panel { border-radius: var(--r-lg); background: #fff; border: 1px solid rgba(201, 204, 214, 0.65); box-shadow: var(--shadow); overflow: hidden; }
.role-panel { display: grid; }
@media (min-width: 900px) { .role-panel { grid-template-columns: 1fr 1.08fr; } }
.role-panel__text { display: grid; align-content: start; gap: 14px; padding: 28px 26px 30px; }
.role-panel__kicker { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--blue); }
.role-panel__title { font-size: clamp(22px, 2.5vw, 28px); line-height: 1.18; font-weight: 650; color: var(--navy); letter-spacing: -0.02em; }
.role-panel__text p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.role-panel__list { display: grid; gap: 9px; margin-top: 2px; }
.role-panel__list li { display: grid; grid-template-columns: auto 1fr; gap: 9px; font-size: 13.5px; line-height: 1.45; color: var(--ink); }
.role-panel__list svg { width: 16px; height: 16px; fill: none; stroke: var(--teal); stroke-width: 2.4; margin-top: 2px; flex: none; }
.role-panel__art { padding: 22px; background: var(--paper); border-top: 1px solid var(--line); display: grid; align-content: center; gap: 10px; }
@media (min-width: 900px) { .role-panel__art { border-top: 0; border-left: 1px solid var(--line); } }
.role-panel__art svg { width: 100%; height: auto; }
.art-caption { font-family: var(--mono); font-size: 9px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted-soft); text-align: center; }

/* ---------- Тёмная секция «методология» ---------- */
.method { position: relative; overflow: hidden; background: var(--navy-deep); color: #fff; border-radius: var(--r-lg); padding: 34px 24px; }
@media (min-width: 900px) { .method { padding: 56px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; } }
.method__glow {
  position: absolute; inset: -40% -10% auto auto; width: 70%; height: 130%;
  background: radial-gradient(closest-side, rgba(126, 200, 238, 0.5), transparent 70%),
    radial-gradient(closest-side at 30% 70%, rgba(198, 46, 113, 0.4), transparent 70%);
  filter: blur(16px); pointer-events: none;
}
.method__body { position: relative; display: grid; gap: 16px; justify-items: start; align-content: start; }
.method__body .h2 { color: #fff; }
.method__lead { color: rgba(255, 255, 255, 0.72); font-size: 16px; max-width: 40ch; }
.method__list { display: grid; gap: 12px; margin-top: 6px; }
.method__item { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.13); }
.method__item b { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 2px; }
.method__item p { font-size: 13px; color: rgba(255, 255, 255, 0.62); line-height: 1.5; max-width: 44ch; }
.method__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.14); flex: none; }
.method__ico svg { width: 18px; height: 18px; fill: none; stroke: var(--sky); stroke-width: 1.9; }
.method__stats { position: relative; display: grid; gap: 10px; align-content: start; }
@media (min-width: 900px) { .method__stats { align-content: center; align-self: stretch; } }
.method__stat { padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.13); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.method__stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.method__stat-top b { font-family: var(--mono); font-size: 21px; font-weight: 500; color: #fff; letter-spacing: -0.03em; }
.method__stat-top span { font-family: var(--mono); font-size: 9px; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.method__matrix { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; margin-top: 4px; }
.method__matrix i { aspect-ratio: 1 / 1; border-radius: 2px; background: rgba(255, 255, 255, 0.12); }
.method__matrix i.a { background: #6fe0c8; }
.method__matrix i.b { background: #5aa8ff; }
.method__matrix i.c { background: #e58aa8; }
.method__legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 9px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.method__legend span { display: inline-flex; align-items: center; gap: 5px; }
.method__legend i { width: 7px; height: 7px; border-radius: 2px; }
.method__legend i.a { background: #6fe0c8; }
.method__legend i.b { background: #5aa8ff; }
.method__legend i.c { background: #e58aa8; }
.method__quote { position: relative; padding: 16px 18px; border-left: 2px solid var(--amber); background: rgba(240, 161, 40, 0.08); border-radius: 0 12px 12px 0; font-size: 13px; color: rgba(255, 255, 255, 0.8); line-height: 1.5; }
.method__quote b { color: #fff; }
.method__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }

/* ---------- Интеграции ---------- */
.integr { display: grid; gap: 12px; }
@media (min-width: 700px) { .integr { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .integr { grid-template-columns: repeat(3, 1fr); } }
.integr-item {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  padding: 20px; border-radius: var(--r); border: 1px solid var(--line); background: #fff;
  transition: border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.integr-item:hover { border-color: rgba(41, 71, 217, 0.35); transform: translateY(-2px); box-shadow: var(--shadow); }
.integr-item h3 { font-size: 14.5px; font-weight: 650; color: var(--navy); margin-bottom: 3px; }
.integr-item p { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.integr-item .icon-tile { width: 42px; height: 42px; border-radius: 12px; }
.integr-item .icon-tile svg { width: 22px; height: 22px; }
.icon-tile {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px;
  color: var(--acc, var(--blue)); background: linear-gradient(140deg, #fff, #f4f2ee);
  border: 1px solid rgba(201, 204, 214, 0.7); box-shadow: 0 1px 2px rgba(21, 34, 92, 0.05); flex: none;
}
.icon-tile svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.security-row {
  display: grid; gap: 10px; margin-top: 18px; padding: 18px 20px;
  border-radius: var(--r); background: var(--paper); border: 1px solid var(--line);
}
@media (min-width: 900px) { .security-row { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.security-item { display: flex; gap: 10px; align-items: flex-start; }
.security-item svg { width: 18px; height: 18px; fill: none; stroke: var(--blue); stroke-width: 1.9; flex: none; margin-top: 1px; }
.security-item b { display: block; font-size: 12.5px; color: var(--navy); font-weight: 600; }
.security-item span { font-size: 11.5px; color: var(--muted); line-height: 1.35; }

/* ---------- Тарифы ---------- */
.pricing { display: grid; gap: 14px; align-items: stretch; }
@media (min-width: 860px) { .pricing { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.price {
  position: relative; display: grid; align-content: start; gap: 16px; padding: 26px 24px 28px;
  border-radius: var(--r-lg); border: 1px solid rgba(201, 204, 214, 0.7); background: #fff;
  box-shadow: var(--shadow);
}
.price--featured { background: linear-gradient(180deg, #17245f, var(--navy-deep)); color: #fff; border-color: transparent; box-shadow: var(--shadow-lg); }
.price--featured .price__name, .price--featured .price__amount b { color: #fff; }
.price--featured .price__desc, .price--featured .price__note, .price--featured .price__list li { color: rgba(255, 255, 255, 0.74); }
.price--featured .price__list svg { stroke: var(--sky); }
.price__badge {
  position: absolute; top: -11px; left: 24px; height: 22px; padding: 0 10px; border-radius: 999px;
  background: var(--amber); color: #3c2604; font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.05em; text-transform: uppercase; display: inline-flex; align-items: center;
}
.price__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price__name { font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue); }
.price__audience { font-family: var(--mono); font-size: 9px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-soft); }
.price--featured .price__audience { color: rgba(255, 255, 255, 0.5); }
.price__amount { display: flex; align-items: baseline; gap: 6px; }
.price__amount b { font-family: var(--font); font-size: 24px; font-weight: 650; color: var(--navy); letter-spacing: -0.02em; }
.price__amount span { font-size: 12px; color: var(--muted); }
.price__desc { font-size: 13px; color: var(--muted); line-height: 1.5; min-height: 3em; }
.price__list { display: grid; gap: 8px; padding-top: 4px; }
.price__list li { display: grid; grid-template-columns: auto 1fr; gap: 8px; font-size: 13px; color: var(--ink); line-height: 1.4; }
.price__list svg { width: 15px; height: 15px; fill: none; stroke: var(--teal); stroke-width: 2.4; margin-top: 1px; flex: none; }
.price__cta { margin-top: auto; }
.price__note { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.pricing-note { margin-top: 16px; font-size: 12.5px; color: var(--muted); max-width: 60ch; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 28px; }
@media (min-width: 960px) { .faq { grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; } }
.faq__aside { display: grid; gap: 14px; align-content: start; position: sticky; top: calc(var(--header-h) + 24px); }
.faq__card { padding: 20px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 10px; }
.faq__card b { font-size: 14.5px; color: var(--navy); }
.faq__card p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.faq__list { display: grid; gap: 8px; }
.faq__item { border-radius: 14px; border: 1px solid var(--line); background: #fff; overflow: hidden; }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; font-size: 15px; font-weight: 600; color: var(--navy); cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { background: rgba(246, 244, 240, 0.6); }
.faq__item summary svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; transition: transform 0.2s; }
.faq__item[open] summary svg { transform: rotate(45deg); }
.faq__item[open] summary { border-bottom: 1px solid var(--line); }
.faq__answer { padding: 14px 18px 18px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.faq__answer p + p { margin-top: 10px; }
.faq__answer a { color: var(--blue); }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; padding: 36px 24px; border-radius: var(--r-lg);
  background: var(--navy); color: #fff;
}
@media (min-width: 900px) { .cta { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 56px; align-items: center; padding: 56px; } }
.cta__glow {
  position: absolute; inset: -50% -20% auto auto; width: 90%; height: 180%;
  background: radial-gradient(closest-side, rgba(126, 200, 238, 0.55), transparent 70%),
    radial-gradient(closest-side at 25% 70%, rgba(198, 46, 113, 0.45), transparent 70%);
  filter: blur(12px); pointer-events: none;
}
.cta__body { position: relative; display: grid; gap: 16px; justify-items: start; align-content: start; }
.cta__title { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; color: #fff; }
.cta__lead { color: rgba(255, 255, 255, 0.72); font-size: 16px; max-width: 36em; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.cta__aside { position: relative; display: grid; gap: 10px; padding-top: 8px; }
.cta__fact { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 13px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.13); }
.cta__fact svg { width: 20px; height: 20px; fill: none; stroke: var(--sky); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cta__fact b { display: block; font-size: 14px; font-weight: 600; line-height: 1.2; }
.cta__fact span { display: block; font-size: 11.5px; color: rgba(255, 255, 255, 0.6); margin-top: 2px; }

/* ---------- Подвал ---------- */
.footer { padding: 52px 0 22px; border-top: 1px solid var(--line); background: var(--paper); font-size: 15px; }
.footer__row { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer__row { grid-template-columns: 1.7fr 0.8fr 0.8fr; gap: 40px; } }
@media (min-width: 1024px) { .footer__row { grid-template-columns: 1.6fr 0.7fr 0.7fr 1fr; } }
.footer__brand p { margin-top: 14px; max-width: 340px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.footer__badge { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; padding: 5px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-family: var(--mono); font-size: 9px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.footer__badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__col h4 { margin-bottom: 2px; font-family: var(--mono); font-size: 9.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-soft); }
.footer__col a { color: var(--ink); text-decoration: none; font-size: 13.5px; width: fit-content; }
.footer__col a:hover { color: var(--blue); }
.footer__contacts { display: grid; gap: 6px; align-content: start; }
.footer__contacts a { font-size: 13.5px; color: var(--navy); text-decoration: none; }
.footer__contacts a:hover { color: var(--blue); }
.footer__contacts span { font-size: 12px; color: var(--muted); }
.footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer__legal a { color: var(--muted); text-decoration: none; }
.footer__legal a:hover { color: var(--blue); }
.footer__disclaimer { margin-top: 14px; font-size: 11.5px; line-height: 1.5; color: var(--muted-soft); max-width: 100ch; }

/* ---------- Cookie, тост, диалог ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80;
  display: grid; gap: 12px; padding: 16px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.98); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg); font-size: 13px; color: var(--muted);
}
@media (min-width: 760px) {
  .cookie { left: auto; right: 24px; bottom: 24px; width: 420px; padding: 18px; }
}
.cookie b { color: var(--navy); display: block; margin-bottom: 3px; font-size: 13.5px; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie__actions .btn { height: 36px; padding: 0 14px; font-size: 12.5px; }
.cookie[hidden] { display: none; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px);
  z-index: 95; max-width: min(420px, calc(100vw - 32px));
  padding: 12px 16px; border-radius: 12px; background: var(--navy-deep); color: #fff;
  font-size: 13px; line-height: 1.4; box-shadow: var(--shadow-lg); opacity: 0;
  pointer-events: none; transition: opacity 0.25s, transform 0.25s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast a { color: var(--sky); }

/* ---------- Внутренние страницы ---------- */
.page-hero { position: relative; overflow: hidden; padding: 36px 0 44px; background: var(--paper); border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .page-hero { padding: 48px 0 56px; } }
.page-hero .container { position: relative; z-index: 1; }
.page-hero__grid { display: grid; gap: 24px; align-items: end; }
@media (min-width: 960px) { .page-hero__grid { grid-template-columns: 1fr auto; gap: 40px; } }
.page-hero__text { display: grid; gap: 12px; justify-items: start; max-width: 780px; }
.page-hero__title { max-width: 22ch; }
.page-hero__lead { font-size: 16px; color: var(--muted); max-width: 62ch; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 7px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.crumbs span[aria-current] { color: var(--navy); }
.crumbs .sep { color: var(--line-strong); }
.page-hero__aside { display: grid; gap: 8px; min-width: 210px; }
.page-hero__figure {
  display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.page-hero__figure span { font-family: var(--mono); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-soft); }
.page-hero__figure b { font-size: 15px; color: var(--navy); font-weight: 650; }

.prose { max-width: 74ch; display: grid; gap: 16px; }
.prose h2 { font-size: clamp(23px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -0.02em; color: var(--navy); margin-top: 12px; }
.prose h3 { font-size: 18px; line-height: 1.3; color: var(--navy); margin-top: 8px; }
.prose p { font-size: 15px; line-height: 1.65; color: var(--ink); }
.prose p.muted, .prose .muted { color: var(--muted); }
.prose ul, .prose ol { display: grid; gap: 8px; }
.prose ul li, .prose ol li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.6; color: var(--ink); }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.prose ol { counter-reset: i; }
.prose ol li { counter-increment: i; padding-left: 24px; }
.prose ol li::before {
  content: counter(i); position: absolute; left: 0; top: 1px; font-family: var(--mono);
  font-size: 10px; color: var(--blue); background: rgba(41, 71, 217, 0.08);
  width: 17px; height: 17px; border-radius: 5px; display: grid; place-items: center;
}
.prose .link { font-size: inherit; }
.prose blockquote {
  margin: 6px 0; padding: 16px 20px; border-left: 2px solid var(--amber);
  background: rgba(240, 161, 40, 0.07); border-radius: 0 12px 12px 0;
  font-size: 14.5px; color: #5c440f; line-height: 1.55;
}
.prose code { font-family: var(--mono); font-size: 0.88em; background: var(--paper); padding: 1px 5px; border-radius: 4px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }

/* ---------- Таблицы ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
.table th, .table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table th { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted-soft); font-weight: 500; background: rgba(246, 244, 240, 0.6); white-space: nowrap; }
.table td { color: var(--ink); line-height: 1.45; }
.table tr:last-child td { border-bottom: 0; }
.table td b { color: var(--navy); }
.table__num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.table--compact th, .table--compact td { padding: 9px 12px; }

/* ---------- Форма демо ---------- */
.demo-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1000px) { .demo-grid { grid-template-columns: 1.15fr 0.85fr; gap: 48px; } }
.form-card { background: #fff; border: 1px solid rgba(201, 204, 214, 0.7); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 24px; }
@media (min-width: 640px) { .form-card { padding: 32px; } }
.form { display: grid; gap: 16px; }
.form__row { display: grid; gap: 16px; }
@media (min-width: 620px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; align-content: start; }
.field > label { font-size: 13px; font-weight: 600; color: var(--navy); }
.field > label .req { color: var(--magenta); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line-strong); background: #fff; border-radius: 11px;
  padding: 11px 13px; font-size: 14px; color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s;
}
.field input, .field select { height: 44px; padding-top: 0; padding-bottom: 0; }
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6478' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 38px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-soft); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted-soft); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(41, 71, 217, 0.12); }
.field__hint { font-size: 11.5px; color: var(--muted-soft); line-height: 1.4; }
.field__error { font-size: 11.5px; color: #b02419; display: none; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #d93025; box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.1); }
.field.has-error .field__error { display: block; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.check input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--blue); flex: none; }
.check a { color: var(--blue); }
.check.has-error { color: #b02419; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form__submit { display: grid; gap: 10px; }
.form__submit .btn { width: 100%; }
.form__legal { font-size: 11px; color: var(--muted-soft); line-height: 1.45; text-align: center; }
.form-success { display: grid; gap: 14px; padding: 8px 2px; }
.form-success[hidden] { display: none; }
.form-success__ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: rgba(31, 138, 112, 0.1); }
.form-success__ico svg { width: 28px; height: 28px; fill: none; stroke: var(--teal); stroke-width: 2.4; }
.form-success h2 { font-size: 24px; color: var(--navy); line-height: 1.2; }
.form-success p { font-size: 14px; color: var(--muted); line-height: 1.55; }
.form-success__facts { display: grid; gap: 8px; margin-top: 4px; }
.form-success__facts div { display: flex; gap: 8px; font-size: 13px; color: var(--ink); }
.form-success__facts span { color: var(--muted); }
.demo-aside { display: grid; gap: 14px; align-content: start; align-items: start; }
.demo-aside__card { padding: 20px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 10px; }
.demo-aside__card h3 { font-size: 15px; color: var(--navy); }
.demo-aside__card p, .demo-aside__card li { font-size: 13px; color: var(--muted); line-height: 1.5; }
.demo-aside__dark li { color: rgba(255, 255, 255, 0.8); }
.demo-aside__card ul { display: grid; gap: 8px; }
.demo-aside__card li { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.demo-aside__card li::before { content: "—"; color: var(--line-strong); }
.demo-aside__dark { background: var(--navy-deep); color: #fff; border-color: transparent; }
.demo-aside__dark h3 { color: #fff; }
.demo-aside__dark p { color: rgba(255, 255, 255, 0.7); }

/* ---------- Библиотека ---------- */
.lib-search { position: relative; max-width: 420px; }
.lib-search input { width: 100%; height: 44px; border-radius: 999px; border: 1px solid var(--line-strong); padding: 0 16px 0 40px; font-size: 14px; background: #fff; }
.lib-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 2; }
.layers { display: grid; gap: 14px; }
.layer-block { border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; overflow: hidden; }
.layer-block__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: linear-gradient(100deg, rgba(246, 244, 240, 0.9), #fff); }
.layer-block__badge { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; color: #fff; background: var(--tone); flex: none; }
.layer-block__head h2 { font-size: 18px; color: var(--navy); letter-spacing: -0.01em; }
.layer-block__head p { font-size: 12.5px; color: var(--muted); flex: 1 0 100%; max-width: none; }
.layer-block__count { margin-left: auto; font-family: var(--mono); font-size: 9.5px; color: var(--muted-soft); letter-spacing: 0.04em; }
.clusters-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: var(--line); }
.cluster-card { display: grid; gap: 8px; padding: 18px 20px; background: #fff; text-decoration: none; transition: background 0.2s; align-content: start; }
.cluster-card:hover { background: rgba(246, 244, 240, 0.55); }
.cluster-card__code { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.05em; color: var(--muted-soft); text-transform: uppercase; }
.cluster-card__code i { width: 7px; height: 7px; border-radius: 2px; background: var(--dot); }
.cluster-card h3 { font-size: 15px; font-weight: 650; color: var(--navy); line-height: 1.25; letter-spacing: -0.01em; }
.cluster-card p { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.cluster-card__foot { display: flex; align-items: center; gap: 8px; margin-top: 2px; font-size: 12px; color: var(--blue); font-weight: 500; }
.cluster-card__foot svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; transition: transform 0.2s; }
.cluster-card:hover .cluster-card__foot svg { transform: translateX(3px); }

.comp-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.comp-row { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center; padding: 12px 16px; background: #fff; text-decoration: none; transition: background 0.2s; }
@media (min-width: 760px) { .comp-row { grid-template-columns: 74px minmax(0, 1.4fr) minmax(0, 1fr) 150px 100px; } }
.comp-row:hover { background: rgba(246, 244, 240, 0.6); }
.comp-row__code { font-family: var(--mono); font-size: 10px; color: var(--muted-soft); }
.comp-row__name { font-size: 13.5px; font-weight: 600; color: var(--navy); }
.comp-row__cluster { font-size: 12px; color: var(--muted); }
.comp-row__targets { display: flex; gap: 3px; align-items: center; font-family: var(--mono); font-size: 9.5px; color: var(--muted-soft); }
.comp-row__targets i { width: 4px; height: 9px; border-radius: 1px; background: var(--line); }
.comp-row__targets i.on { background: var(--blue); }
.comp-row__more { justify-self: end; color: var(--blue); font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.comp-row__more svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.comp-list__empty { padding: 28px; text-align: center; color: var(--muted); font-size: 13.5px; background: #fff; }

/* ---------- Страница компетенции ---------- */
.comp-layout { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1000px) { .comp-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; } }
.comp-main { display: grid; gap: 28px; }
.comp-block { display: grid; gap: 12px; }
.comp-block__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; justify-content: space-between; }
.comp-block__title { font-size: 19px; font-weight: 650; color: var(--navy); letter-spacing: -0.015em; }
.comp-block__num { font-family: var(--mono); font-size: 10px; color: var(--muted-soft); letter-spacing: 0.05em; }
.comp-def { font-size: 15.5px; line-height: 1.65; color: var(--ink); max-width: 72ch; }
.sub-list { display: grid; gap: 8px; }
.sub-list li { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 12px 14px; border-radius: 11px; background: var(--paper); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; }
.sub-list li b { font-family: var(--mono); font-size: 10px; color: var(--blue); font-weight: 500; padding-top: 2px; }
.levels-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.levels-table th, .levels-table td { padding: 11px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.levels-table th { font-family: var(--mono); font-size: 9px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted-soft); font-weight: 500; background: rgba(246, 244, 240, 0.5); }
.levels-table tr:last-child td { border-bottom: 0; }
.levels-table td:first-child { width: 44px; font-family: var(--mono); font-size: 14px; color: var(--navy); }
.levels-table td:nth-child(2) { width: 130px; font-weight: 600; color: var(--navy); }
.levels-table tr.is-hyper td { background: rgba(198, 46, 113, 0.04); }
.levels-table tr.is-target td:first-child { color: #a2650a; }
.levels-table .target-mark { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; font-family: var(--mono); font-size: 8px; color: #6b4105; background: rgba(240, 161, 40, 0.2); padding: 2px 4px; border-radius: 3px; }
.actions { display: grid; gap: 8px; }
.action-item { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 13px 14px; border-radius: 11px; border: 1px solid var(--line); background: #fff; }
@media (max-width: 520px) { .action-item { grid-template-columns: 1fr; gap: 5px; } }
.action-item__cat { font-family: var(--mono); font-size: 9px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--blue); padding-top: 2px; }
.action-item p { font-size: 13px; line-height: 1.5; color: var(--ink); }
.qa { display: grid; gap: 10px; }
.qa__item { padding: 13px 15px; border-radius: 11px; background: var(--paper); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.55; }
.qa__item b { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted-soft); margin-bottom: 4px; font-weight: 500; }
.comp-aside { display: grid; gap: 14px; }
@media (min-width: 1000px) { .comp-aside { position: sticky; top: calc(var(--header-h) + 20px); } }
.aside-card { padding: 18px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 10px; align-content: start; }
.aside-card h3 { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted-soft); font-weight: 500; }
.aside-card__big { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.aside-card__big b { font-family: var(--mono); font-size: 30px; font-weight: 500; color: var(--navy); letter-spacing: -0.04em; line-height: 0.9; }
.aside-card__big span { font-size: 11px; color: var(--muted); }
.aside-card p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.aside-card--navy { background: var(--navy-deep); border-color: transparent; color: #fff; }
.aside-card--navy h3 { color: rgba(255, 255, 255, 0.55); }
.aside-card--navy b { color: #fff; }
.aside-card--navy p { color: rgba(255, 255, 255, 0.7); }
.aside-targets { display: grid; gap: 8px; }
.aside-target { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); }
.aside-target b { font-family: var(--mono); font-size: 13px; color: var(--navy); font-weight: 500; }
.aside-target .gauge { width: 82px; flex: none; }
.aside-target .gauge i { height: 5px; }
.comp-pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; }
.comp-pager a { display: grid; gap: 2px; text-decoration: none; font-size: 12px; color: var(--muted); }
.comp-pager a:hover b { color: var(--blue); }
.comp-pager b { font-size: 13.5px; color: var(--navy); font-weight: 600; }
.comp-pager .next { text-align: right; margin-left: auto; }
.more-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (min-width: 760px) { .more-grid { grid-template-columns: repeat(3, 1fr); } }
.more-item { display: grid; gap: 4px; padding: 14px 16px; background: #fff; text-decoration: none; }
.more-item:hover { background: rgba(246, 244, 240, 0.6); }
.more-item code { font-family: var(--mono); font-size: 9px; color: var(--muted-soft); }
.more-item b { font-size: 13px; color: var(--navy); font-weight: 600; line-height: 1.3; }

/* ---------- Юридические страницы ---------- */
.legal { max-width: 760px; margin-inline: auto; display: grid; gap: 22px; }
.legal h2 { font-size: clamp(20px, 2.2vw, 25px); color: var(--navy); margin-top: 10px; line-height: 1.25; }
.legal h3 { font-size: 16px; color: var(--navy); margin-top: 6px; }
.legal p, .legal li { font-size: 14.5px; line-height: 1.68; color: var(--ink); }
.legal ul { display: grid; gap: 7px; }
.legal ul li { position: relative; padding-left: 17px; }
.legal ul li::before { content: ""; position: absolute; left: 1px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--muted-soft); }
.legal__meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); }
.legal__note { padding: 14px 16px; border-radius: 12px; background: rgba(41, 71, 217, 0.05); border: 1px solid rgba(41, 71, 217, 0.14); font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ---------- 404 ---------- */
.err { padding: 80px 0; text-align: center; display: grid; gap: 16px; justify-items: center; }
.err__code { font-family: var(--mono); font-size: clamp(64px, 12vw, 120px); line-height: 1; letter-spacing: -0.06em; background: linear-gradient(115deg, #0c85bd, var(--blue) 40%, var(--magenta) 80%, #d98a12); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 500; }

/* ---------- Появление ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; } }

/* ---------- Печать ---------- */
@media print {
  .header, .cookie, .toast, .cta, .footer, .explorer__bar, .explorer__filters, .explorer__zoom { display: none !important; }
  body { background: #fff; }
  .section { padding: 20px 0; }
  .explorer__canvas { min-height: 0; }
  a { text-decoration: none; color: inherit; }
}

/* ---------- Дополнения: компоновка страниц ---------- */
[hidden] { display: none !important; }
.stats { margin-top: -28px; }
@media (max-width: 640px) { .stats { margin-top: 0; } }
.hero__title { max-width: 11em; }
.page-hero__title { max-width: 13em; }

.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1000px) {
  .split--profile { grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: 52px; }
}
.split__text { display: grid; gap: 16px; justify-items: start; align-content: start; }
.split__text .lead { margin: 0; }
.split__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.split__media { min-width: 0; }
.feature-list { display: grid; gap: 12px; margin-top: 2px; }
.feature-list li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.feature-list__ico {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: #fff; border: 1px solid var(--line); color: var(--blue); flex: none;
}
.feature-list__ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.feature-list b { display: block; font-size: 14px; color: var(--navy); margin-bottom: 2px; }
.feature-list p { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* Документные страницы */
.doc-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1000px) { .doc-grid { grid-template-columns: 264px minmax(0, 1fr); gap: 48px; } }
.doc-aside { display: grid; gap: 14px; align-content: start; }
@media (min-width: 1000px) { .doc-aside { position: sticky; top: calc(var(--header-h) + 20px); } }
.toc { padding: 18px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.toc__title { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted-soft); margin-bottom: 10px; }
.toc ol { display: grid; gap: 2px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: grid; grid-template-columns: 20px 1fr; gap: 4px; padding: 7px 8px; border-radius: 8px;
  font-size: 13px; color: var(--muted); text-decoration: none; line-height: 1.35;
}
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: 9px; color: var(--muted-soft); padding-top: 2px; }
.toc a:hover { background: var(--paper); color: var(--navy); }
.doc-body { display: grid; gap: 28px; min-width: 0; }
.doc-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line);
}
.doc-cta b { display: block; font-size: 16px; color: var(--navy); }
.doc-cta span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; max-width: 52ch; }
.doc-cta__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Состояния дерева */
.state-grid { display: grid; gap: 12px; }
@media (min-width: 700px) { .state-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .state-grid { grid-template-columns: repeat(3, 1fr); } }
.state-card { display: grid; gap: 8px; grid-template-columns: auto 1fr; align-items: start; padding: 18px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.state-card h3 { font-size: 14px; color: var(--navy); font-weight: 650; line-height: 1.25; }
.state-card p { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.state-card__swatch { width: 26px; height: 26px; border-radius: 50%; margin-top: 1px; }
.state-card__swatch--dashed { border: 2px dashed var(--tone); background: transparent; }
.state-card__swatch--hypo { border: 2px dashed var(--tone); background: color-mix(in srgb, var(--tone) 12%, #fff); }
.state-card__swatch--solid { background: var(--tone); }
.state-card__swatch--goal { background: transparent; border: 2px solid var(--tone); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5px var(--tone); }
.state-card__swatch--gap { background: color-mix(in srgb, var(--tone) 18%, #fff); border: 2px solid var(--tone); }
.state-card__swatch--excess { background: repeating-linear-gradient(45deg, var(--tone) 0 3px, #fff 3px 6px); border: 1px solid var(--tone); }

/* Навигация по кластерам */
.cluster-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.cluster-nav__item {
  display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--r); background: #fff;
  border: 1px solid var(--line); text-decoration: none; flex: 1 1 260px; box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.cluster-nav__item:hover { border-color: rgba(41, 71, 217, 0.4); transform: translateY(-2px); }
.cluster-nav__item span { font-family: var(--mono); font-size: 9px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted-soft); }
.cluster-nav__item b { font-size: 14px; color: var(--navy); line-height: 1.3; }
.cluster-nav__item--next { text-align: right; }

/* Контакты */
.contact-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .contact-grid { grid-template-columns: repeat(4, 1fr); } }
.contact-card {
  display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: var(--r);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.contact-card:hover { border-color: rgba(41, 71, 217, 0.4); transform: translateY(-2px); }
.contact-card .icon-tile { width: 44px; height: 44px; border-radius: 12px; }
.contact-card .icon-tile svg { width: 22px; height: 22px; }
.contact-card h2 { font-size: 16px; color: var(--navy); }
.contact-card p { font-size: 13px; color: var(--muted); line-height: 1.45; }
.contact-card__link { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 12.5px; color: var(--blue); font-weight: 600; }
.contact-card__link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.contact-info { display: grid; gap: 14px; margin-top: 28px; align-items: start; }
@media (min-width: 900px) { .contact-info { grid-template-columns: repeat(3, 1fr); } }

/* Дерево: состояния и доступность */
.tree-cluster { cursor: pointer; transition: opacity 0.2s; }
.tree-cluster:focus { outline: none; }
.tree-cluster:focus-visible circle { stroke: var(--blue); stroke-width: 2; }
.tree-cluster:hover .tree-cluster__label { fill: var(--blue); }
.tree-row.is-dim { opacity: 0.14; }
.tree-row.is-dim .tree-node { pointer-events: none; }
.explorer__canvas svg { user-select: none; }
.actions .action-item { background: var(--white); }

/* Адаптив библиотеки и дерева */
@media (max-width: 759px) {
  .explorer__views { display: none; }
  .explorer__roles { overflow-x: auto; max-width: 100%; }
  .explorer__canvas { display: none; }
  .explorer__list { max-height: none; }
  .explorer__bar { padding: 12px; }
  .explorer__filters { padding: 10px 12px; }
  .explorer__count { margin-left: 0; }
  .comp-row { grid-template-columns: auto 1fr; gap: 6px 10px; }
  .comp-row__cluster { display: none; }
  .comp-row__targets { grid-column: 1 / -1; }
  .comp-row__more { margin-left: auto; }
  .page-hero__aside { grid-template-columns: 1fr 1fr; display: grid; }
}
@media (min-width: 760px) {
  .explorer__list { border-right: 0; }
}
@media (min-width: 1024px) {
  .explorer__list { border-right: 1px solid var(--line); }
}
.explorer__list .tree-list__items[hidden] { display: none; }
.panel .tree-list__items { display: grid; gap: 2px; }
.panel .tree-list__item { background: var(--paper); }
.panel .tree-list__item:hover { background: #fff; }

/* Мобильная плотность */
@media (max-width: 520px) {
  .stage__float--card { width: 82%; padding: 12px 13px; }
  .stage__panel { padding: 16px; border-radius: 22px; }
  .method { padding: 26px 20px; }
  .method__item { grid-template-columns: 1fr; gap: 6px; }
  .doc-cta { padding: 18px; }
  .level-strip { grid-template-columns: repeat(2, 1fr); }
  .comp-aside { order: -1; }
  .comp-layout { gap: 22px; }
  .comp-pager { flex-direction: column; }
  .comp-pager .next { text-align: left; margin-left: 0; }
}

/* ---------- Иконки ---------- */
.ico {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.ico--sm { width: 18px; height: 18px; }
.ico--lg { width: 30px; height: 30px; }
.tree-row.is-muted { opacity: 0.26; }
.tree-row.is-muted .tree-node, .tree-row.is-muted .tree-cluster { pointer-events: none; }

/* Мобильные уточнения */
@media (max-width: 480px) {
  .hero__actions { display: grid; grid-template-columns: 1fr; gap: 10px; width: 100%; }
  .hero__actions .btn { width: 100%; }
  .cookie { padding: 12px 14px; max-height: 60vh; overflow: auto; }
  .cookie span { display: none; }
  .cookie__actions { margin-top: 2px; }
  .cookie__actions { gap: 6px; }
  .cookie__actions .btn { height: 34px; padding: 0 12px; }
  .eyebrow { font-size: 13px; }
  .page-hero__meta .tag { font-size: 8.5px; }
}

@media (max-width: 759px) {
  .explorer__filters { flex-wrap: nowrap; overflow-x: auto; gap: 12px; padding-bottom: 8px; scrollbar-width: none; }
  .explorer__filters::-webkit-scrollbar { display: none; }
  .filter-group { flex-wrap: nowrap; flex: none; }
  .explorer__count { display: none; }
  .explorer__roles { width: 100%; justify-content: space-between; }
  .explorer__role { padding: 7px 10px; font-size: 12px; }
  .explorer__list { max-height: none; }
  .tree-list__toggle { padding: 13px 14px; font-size: 13.5px; }
  .tree-list__items { padding: 0 6px 8px; }
}

.form-success__note {
  padding: 11px 13px; border-radius: 10px; font-size: 12px !important; line-height: 1.5 !important;
  color: #6d4a10 !important; background: rgba(240, 161, 40, 0.1);
  border: 1px solid rgba(240, 161, 40, 0.28);
}

.explorer__noscript {
  padding: 14px 18px; margin: 0; border-bottom: 1px solid var(--line);
  background: rgba(240, 161, 40, 0.08); font-size: 13px; color: #5c3f0d;
}
