/* ==========================================================================
   Психологические тесты · AI BizCamp — «Виток роста»
   Белый и графит, один акцент — индиго «витка». Шрифт Onest.
   ========================================================================== */
:root {
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --line-2: #e8e8ed;
  --accent: #3d3af2;
  --accent-ink: #ffffff;
  --accent-soft: #ecebfe;
  --warm: #e2552b;
  --lvl-low: #ef6a3c;
  --lvl-mid: #e3a02f;
  --lvl-high: #1fa971;
  --lvl-vhigh: #3d3af2;
  --night: #000000;
  --night-2: #161618;
  --night-ink: #f5f5f7;
  --night-muted: #a1a1a6;
  --shadow: 0 1px 1px rgba(0,0,0,.03), 0 12px 32px -18px rgba(0,0,0,.22);
  --radius: 22px;
  --radius-s: 14px;
  --sans: "Onest", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --serif: var(--sans);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --bg-2: #161618; --surface: #1c1c1e; --surface-2: #2c2c2e; --ink: #f5f5f7; --ink-2: #d1d1d6;
    --muted: #98989d; --line: #3a3a3c; --line-2: #2c2c2e; --accent: #8583ff; --accent-ink: #0b0b1a; --accent-soft: #23224a;
    --warm: #ff8a5c; --lvl-low: #ff8458; --lvl-mid: #f2b84b; --lvl-high: #34c98a; --lvl-vhigh: #8583ff;
    --night: #1c1c1e; --night-2: #2c2c2e;
    --shadow: 0 1px 1px rgba(0,0,0,.4), 0 12px 32px -18px rgba(0,0,0,.8);
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --bg-2: #161618; --surface: #1c1c1e; --surface-2: #2c2c2e; --ink: #f5f5f7; --ink-2: #d1d1d6;
  --muted: #98989d; --line: #3a3a3c; --line-2: #2c2c2e; --accent: #8583ff; --accent-ink: #0b0b1a; --accent-soft: #23224a;
  --warm: #ff8a5c; --lvl-low: #ff8458; --lvl-mid: #f2b84b; --lvl-high: #34c98a; --lvl-vhigh: #8583ff;
  --night: #1c1c1e; --night-2: #2c2c2e;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 var(--sans); min-height: 100vh;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "tnum" 0;
}
body.app-body { background: var(--bg-2); }
h1, h2, h3 { font-family: var(--sans); font-weight: 700; line-height: 1.1; margin: 0 0 .45em; letter-spacing: -.025em; color: var(--ink); overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
h1 { font-size: clamp(34px, 5.4vw, 56px); letter-spacing: -.035em; }
h2 { font-size: clamp(24px, 2.8vw, 30px); }
h3 { font-size: 19px; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow { font-size: 15px; font-weight: 600; letter-spacing: -.005em; color: var(--accent); margin: 0 0 10px; }
.nowrap { white-space: nowrap; }
::selection { background: var(--accent-soft); }

/* ---------- верхняя панель ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 12px; }
.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 16px; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 22px; height: 22px; display: inline-block; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--accent) 0 3px, transparent 3.5px),
              conic-gradient(from 200deg, transparent 0 8%, var(--accent) 8% 100%);
  -webkit-mask: radial-gradient(circle, #000 0 3.4px, transparent 3.6px 6.2px, #000 6.4px 8.2px, transparent 8.4px 9.6px, #000 9.8px 11px, transparent 11.2px);
          mask: radial-gradient(circle, #000 0 3.4px, transparent 3.6px 6.2px, #000 6.4px 8.2px, transparent 8.4px 9.6px, #000 9.8px 11px, transparent 11.2px); }
.topnav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.topnav a, .linkbtn { color: var(--ink-2); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.topnav a:hover, .linkbtn:hover { color: var(--ink); text-decoration: none; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 700; font-size: 13px; }

/* ---------- кнопки и поля ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 22px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 16px/1.2 var(--sans); letter-spacing: -.01em; cursor: pointer; text-decoration: none;
  transition: transform .15s var(--ease), background .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease; }
.btn:hover { border-color: var(--ink-2); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.primary:hover { opacity: .86; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.accent:hover { opacity: .9; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--accent); padding-left: 12px; padding-right: 12px; }
.btn.ghost:hover { background: var(--accent-soft); border-color: transparent; }
.btn.lg { min-height: 52px; padding: 14px 28px; font-size: 17px; }
.btn[disabled] { opacity: .35; cursor: not-allowed; }
.btn:focus-visible, .option:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field > span { font-size: 15px; font-weight: 600; color: var(--ink); }
.field input, .field textarea { width: 100%; padding: 14px 16px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 17px var(--sans); transition: border-color .2s ease, box-shadow .2s ease; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); outline: none; }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field.sm input { padding: 8px 10px; font-size: 14px; border-radius: 10px; }
.error { color: var(--lvl-low); font-weight: 600; }

.card { background: var(--surface); border: 0; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); margin-bottom: 20px; }
.card.narrow { max-width: 440px; margin: 72px auto; }
.card h2 { margin-bottom: .5em; }

/* ---------- спираль «Виток роста» ---------- */
.spiral { display: block; width: 100%; height: auto; overflow: visible; }
.spiral .sp-path { fill: none; stroke: var(--line); stroke-width: 1.6; stroke-linecap: round; }
.spiral .sp-done { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.spiral .sp-node { fill: var(--surface); stroke: var(--line); stroke-width: 1.6; }
.spiral .sp-node.done { fill: var(--accent); stroke: var(--accent); }
.spiral .sp-node.next { fill: var(--surface); stroke: var(--accent); stroke-width: 2.4; }
.spiral .sp-halo { fill: none; stroke: var(--accent); stroke-width: 1.2; opacity: .35; }
.spiral .sp-goal { fill: var(--ink); }
.spiral .sp-goal-ring { fill: none; stroke: var(--ink); stroke-width: 1.4; opacity: .25; }
.spiral .sp-label { font: 600 13px var(--sans); fill: var(--ink-2); letter-spacing: -.01em; }
.spiral .sp-label.goal { fill: var(--ink); font-weight: 700; }
.spiral .sp-core { fill: var(--accent); }
.spiral.draw .sp-path, .spiral.draw .sp-done { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: sp-draw 1.8s var(--ease) .15s forwards; }
.spiral.draw .sp-node, .spiral.draw .sp-label, .spiral.draw .sp-goal, .spiral.draw .sp-goal-ring { opacity: 0; animation: sp-in .5s ease forwards; animation-delay: calc(.4s + var(--d, 0) * 1.3s); }
@keyframes sp-draw { to { stroke-dashoffset: 0; } }
@keyframes sp-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .spiral.draw .sp-path, .spiral.draw .sp-done { animation: none; stroke-dashoffset: 0; }
  .spiral.draw .sp-node, .spiral.draw .sp-label, .spiral.draw .sp-goal, .spiral.draw .sp-goal-ring { animation: none; opacity: 1; }
}
.spiral.on-night .sp-path { stroke: #3a3a3c; }
.spiral.on-night .sp-node { fill: var(--night); stroke: #48484a; }
.spiral.on-night .sp-node.done { fill: #8583ff; stroke: #8583ff; }
.spiral.on-night .sp-done, .spiral.on-night .sp-core { stroke: #8583ff; }
.spiral.on-night .sp-core { fill: #8583ff; }
.spiral.on-night .sp-goal { fill: #fff; }
.spiral.on-night .sp-goal-ring { stroke: #fff; opacity: .5; }
.spiral.on-night .sp-label { fill: #a1a1a6; }
.spiral.on-night .sp-label.goal { fill: #fff; }

/* ---------- приветствие ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 72px 0 56px; }
.hero h1 { font-size: clamp(40px, 6.2vw, 68px); line-height: 1.02; margin-bottom: 20px; }
.hero p.lead { font-size: 21px; line-height: 1.45; color: var(--ink-2); max-width: 30em; letter-spacing: -.01em; }
.hero form { max-width: 460px; margin-top: 32px; }
.hero .row { display: flex; gap: 10px; }
.hero .row input { flex: 1; min-width: 0; }
.hero-visual { position: relative; }
.hero-visual figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 8px; }
.brand-note { margin-top: 20px; font-size: 15px; color: var(--muted); }
.journey { display: grid; grid-template-columns: repeat(var(--steps, 4), 1fr); gap: 0; margin: 8px 0 88px; border-top: 1px solid var(--line); }
.journey-step { padding: 22px 22px 0 0; position: relative; }
.journey-step + .journey-step { padding-left: 22px; border-left: 1px solid var(--line-2); }
.journey-step .n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); font: 700 14px var(--sans); margin-bottom: 14px; }
.journey-step.goal .n { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.journey-step b { display: block; font-size: 18px; letter-spacing: -.02em; margin-bottom: 6px; }
.journey-step p { color: var(--muted); font-size: 15px; margin: 0; }
.notes { display: none; }
.pyramid, .pyramid-cap { display: none; }

/* ---------- каталог ---------- */
.page-head { padding: 56px 0 28px; }
.page-head h1 { margin-bottom: 10px; }
.growth-map { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: center; background: var(--surface); border-radius: 28px; padding: 28px 40px 28px 28px; box-shadow: var(--shadow); margin-bottom: 64px; }
.growth-map .gm-text h2 { font-size: clamp(26px, 3vw, 34px); }
.growth-map .gm-count { font-size: 64px; font-weight: 700; letter-spacing: -.05em; line-height: 1; margin: 0 0 6px; font-variant-numeric: tabular-nums; }
.growth-map .gm-count span { font-size: 24px; color: var(--muted); letter-spacing: -.02em; font-weight: 600; }
.growth-map .gm-bar { display: flex; gap: 4px; margin: 18px 0 22px; }
.growth-map .gm-bar i { flex: 1; height: 6px; border-radius: 99px; background: var(--line-2); }
.growth-map .gm-bar i.on { background: var(--accent); }
.growth-map .gm-bar i.goal { background: var(--ink); flex: .6; opacity: .15; }
.growth-map .gm-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stage { margin-bottom: 64px; }
.stage-head { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; margin-bottom: 24px; max-width: 760px; }
.stage-head .n { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); display: grid; place-items: center; font: 700 18px var(--sans); }
.stage-head h2 { margin: 2px 0 6px; }
.stage-head p { color: var(--muted); margin: 0; font-size: 17px; }
.section-h { font-size: clamp(24px, 2.8vw, 30px); margin: 0 0 6px; padding: 0; border: 0; }
.tests { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; padding-bottom: 0; }
.test-card { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 28px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.test-card:hover { transform: translateY(-2px); box-shadow: 0 1px 1px rgba(0,0,0,.03), 0 22px 40px -22px rgba(0,0,0,.3); }
.test-card.featured { grid-column: span 2; }
.test-card.featured h3 { font-size: 28px; }
.test-card .tag { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--muted); background: none; padding: 0; border-radius: 0; }
.test-card h3 { font-size: 22px; margin: 0; line-height: 1.15; }
.test-card p { color: var(--ink-2); font-size: 16px; margin: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--muted); }
.test-card .actions { margin-top: auto; padding-top: 16px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.test-card.done { box-shadow: inset 0 0 0 2px var(--accent-soft), var(--shadow); }
.status { font-size: 14px; color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.prog { color: var(--lvl-mid); }

/* ---------- вводная страница ---------- */
.intro { max-width: 760px; margin: 0 auto; padding: 56px 0 80px; }
.intro h1 { margin-bottom: 14px; }
.intro .authors { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.intro p { color: var(--ink-2); font-size: 18px; }
.intro-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-2); border-radius: var(--radius-s); overflow: hidden; margin: 28px 0; }
.intro-facts div { background: var(--surface); padding: 16px 18px; }
.intro-facts b { display: block; font-size: 22px; letter-spacing: -.02em; }
.intro-facts span { color: var(--muted); font-size: 14px; }
.instruction { background: var(--surface); padding: 20px 24px; border-radius: var(--radius-s); margin: 24px 0; box-shadow: var(--shadow); font-size: 17px; color: var(--ink-2); }
.instruction b { color: var(--ink); }
.intro .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- прохождение ---------- */
.quiz { max-width: 760px; margin: 0 auto; padding: 40px 0 80px; }
.progress-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; color: var(--muted); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.progress-top b { color: var(--ink); font-size: 15px; font-weight: 600; }
.progress { height: 4px; background: var(--line-2); border-radius: 99px; overflow: hidden; margin-bottom: 48px; }
.progress span { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .45s var(--ease); }
.q-prompt { font-size: 17px; font-weight: 500; color: var(--muted); margin-bottom: 14px; }
.q-text { font-size: clamp(24px, 3.2vw, 32px); font-weight: 600; line-height: 1.25; letter-spacing: -.025em; color: var(--ink); margin: 0 0 32px; }
.q-text.big { font-size: clamp(34px, 5vw, 52px); letter-spacing: -.035em; }
.options { display: grid; gap: 12px; }
.option { display: grid; grid-template-columns: 36px 1fr; gap: 16px; align-items: center; text-align: left; width: 100%;
  padding: 20px 22px; border-radius: 18px; border: 1.5px solid transparent; background: var(--surface); color: var(--ink);
  font: 500 18px/1.45 var(--sans); letter-spacing: -.01em; cursor: pointer; box-shadow: var(--shadow);
  transition: border-color .2s ease, background .2s ease, transform .15s var(--ease); }
.option:hover { border-color: var(--line); }
.option:active { transform: scale(.995); }
.option .letter { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; background: var(--bg-2); color: var(--ink-2); font-size: 15px; transition: background .2s ease, color .2s ease; }
.option.selected { border-color: var(--accent); background: var(--accent-soft); }
.option.selected .letter { background: var(--accent); color: var(--accent-ink); }
.quiz-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; gap: 12px; flex-wrap: wrap; }
.kbd-hint { font-size: 14px; color: var(--muted); }
kbd { font: 600 12px var(--sans); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; background: var(--surface); color: var(--ink-2); }
.fade-in { animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fade-in { animation: none; } .test-card:hover { transform: none; } }

/* ---------- результат ---------- */
.result { padding: 40px 0 80px; max-width: 920px; margin: 0 auto; }
.result-hero { display: grid; grid-template-columns: auto 1fr; gap: 44px; align-items: center; }
.result > .card:first-child, .result > .mine-note + .card { padding: 44px; }
.score-ring { --p: 50; --c: var(--accent); width: 210px; height: 210px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--line-2) 0); }
.score-ring > div { width: 176px; height: 176px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; text-align: center; }
.score-ring b { font-size: 52px; font-weight: 700; letter-spacing: -.045em; line-height: 1; display: block; font-variant-numeric: tabular-nums; }
.score-ring span { font-size: 14px; color: var(--muted); display: block; margin-top: 6px; padding: 0 14px; line-height: 1.3; }
.level-badge { display: inline-block; font-weight: 600; font-size: 15px; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; color: #fff; }
.result-hero h1 { font-size: clamp(30px, 4.2vw, 44px); }
.result-hero p { font-size: 18px; color: var(--ink-2); }
.lvl-bg-low { background: var(--lvl-low); } .lvl-bg-mid { background: var(--lvl-mid); } .lvl-bg-high { background: var(--lvl-high); } .lvl-bg-vhigh { background: var(--lvl-vhigh); }
:root[data-theme="dark"] .level-badge, :root[data-theme="dark"] .pill { color: #000; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .level-badge, :root:not([data-theme="light"]) .pill { color: #000; } }

.section-title { margin-top: 36px; }
.profile { display: grid; gap: 14px; margin-top: 8px; }
.p-row { display: grid; grid-template-columns: minmax(150px, 250px) 1fr 92px; gap: 16px; align-items: center; font-size: 16px; }
.p-track { position: relative; height: 10px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.p-track::before, .p-track::after { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: var(--surface); z-index: 1; }
.p-track::before { left: 40%; } .p-track::after { left: 60%; }
.p-fill { height: 100%; border-radius: 99px; }
.p-val { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); margin-top: 18px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split .card { margin-bottom: 20px; }
.chips { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.chips li { display: flex; justify-content: space-between; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--bg-2); font-size: 16px; }
.chips li b { font-variant-numeric: tabular-nums; }

details.scale { border-bottom: 1px solid var(--line-2); }
details.scale:last-child { border-bottom: 0; }
details.scale summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 18px 0; font-weight: 600; font-size: 17px; }
details.scale summary::-webkit-details-marker { display: none; }
details.scale summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s var(--ease); margin: 0 4px; }
details.scale[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
details.scale .body { padding: 0 0 20px; color: var(--ink-2); }
.pill { display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 11px; border-radius: 999px; color: #fff; white-space: nowrap; }
.pill.lvl-low { background: var(--lvl-low); } .pill.lvl-mid { background: var(--lvl-mid); } .pill.lvl-high { background: var(--lvl-high); } .pill.lvl-vhigh { background: var(--lvl-vhigh); }

.growth { display: grid; gap: 28px; }
.growth-item h3 { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.growth-item ul { margin: 0; padding-left: 0; list-style: none; color: var(--ink-2); display: grid; gap: 10px; }
.growth-item li { padding-left: 26px; position: relative; }
.growth-item li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--accent); }
.paths { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; counter-reset: p; }
.path { padding: 18px; border-radius: 16px; background: var(--bg-2); font-size: 15px; color: var(--ink-2); }
.path b { display: block; color: var(--ink); margin-bottom: 4px; font-size: 16px; }
.path b::before { counter-increment: p; content: counter(p) ". "; color: var(--accent); }
.saved-note { font-size: 15px; color: var(--lvl-high); font-weight: 600; }
.warn-note { font-size: 15px; color: var(--lvl-low); }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: center; }
.disclaimer { font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 32px; max-width: 70em; }

/* ---------- админка ---------- */
body.admin { background: var(--bg-2); }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding: 36px 0 20px; }
.filters { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.filters .field { margin: 0; }
.filters .btn { min-height: 38px; padding: 8px 16px; font-size: 14px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.kpi { background: var(--surface); border-radius: 18px; padding: 20px; display: grid; box-shadow: var(--shadow); }
.kpi-v { font-size: 34px; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.kpi-l { font-size: 14px; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(120px, 220px) 1fr 44px; gap: 12px; align-items: center; font-size: 14.5px; }
.bar-track { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 99px; }
.bar-fill.lvl-low { background: var(--lvl-low); } .bar-fill.lvl-mid { background: var(--lvl-mid); } .bar-fill.lvl-high { background: var(--accent); }
.bar-val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th, .tbl td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tbl th { font-size: 13px; font-weight: 600; color: var(--muted); }
.tbl td.refl { min-width: 240px; max-width: 420px; color: var(--ink-2); }
.login form { margin-top: 16px; }

/* ---------- адаптивность ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 12px; padding-top: 40px; }
  .hero-visual { max-width: 340px; margin: 8px auto 0; width: 100%; }
  .growth-map { grid-template-columns: 1fr; padding: 24px; }
  .growth-map .spiral { max-width: 300px; margin: 0 auto; }
  .journey { grid-template-columns: 1fr 1fr; }
  .journey-step:nth-child(odd) { padding-left: 0; border-left: 0; }
  .journey-step { padding-bottom: 22px; }
  .test-card.featured { grid-column: auto; }
  .split, .grid2 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .result-hero { grid-template-columns: 1fr; justify-items: start; gap: 24px; }
  .p-row { grid-template-columns: 1fr 92px; }
  .p-row .p-track { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero h1 { font-size: 40px; }
  h1 { font-size: clamp(28px, 8.4vw, 36px); }
  .q-text { overflow-wrap: break-word; hyphens: auto; }
  .hero p.lead { font-size: 18px; }
  .hero .row { flex-direction: column; }
  .journey { grid-template-columns: 1fr; }
  .journey-step + .journey-step { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-2); }
  .card { padding: 22px; border-radius: 18px; }
  .result > .card:first-child, .result > .mine-note + .card { padding: 26px; }
  .score-ring { width: 170px; height: 170px; } .score-ring > div { width: 142px; height: 142px; } .score-ring b { font-size: 42px; }
  .option { grid-template-columns: 30px 1fr; padding: 16px; font-size: 16px; gap: 12px; border-radius: 16px; }
  .option .letter { width: 30px; height: 30px; font-size: 13px; }
  .q-text { margin-bottom: 24px; }
  .progress { margin-bottom: 32px; }
  .topnav .hide-sm, .kbd-hint { display: none; }
  .brand { font-size: 15px; }
  .topnav { gap: 12px; font-size: 13.5px; }
  .bar-row { grid-template-columns: 1fr 40px; }
  .bar-row .bar-track { grid-column: 1 / -1; grid-row: 2; }
  .intro-facts { grid-template-columns: 1fr; }
  .stage-head { grid-template-columns: 1fr; gap: 10px; }
  .growth-map .gm-count { font-size: 52px; }
}

@media print {
  .topbar, .result-actions, .reflect-form .btn, .no-print { display: none !important; }
  body, body.app-body { background: #fff; }
  .card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
  details.scale .body { display: block; }
}

/* ---------- поделиться ---------- */
.lead.small-lead { font-size: 17px; }
.share-card { }
.share-link { display: flex; gap: 8px; margin: 16px 0; }
.share-link input { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--ink); font: 15px var(--sans); }
.share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.btn.tg { background: #2aabee; border-color: #2aabee; color: #fff; }
.btn.wa { background: #25d366; border-color: #25d366; color: #063d1d; }
.btn.tg:hover, .btn.wa:hover { opacity: .9; }
.cta-card { background: var(--accent-soft); box-shadow: none; }
.cta-card h2 { color: var(--ink); }
.mine-note { font-size: 15px; color: var(--ink-2); background: var(--surface); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); }
@media (max-width: 560px) { .share-link { flex-direction: column; } .share-btns .btn { flex: 1 1 auto; } }

/* ---------- элементы тестов ---------- */
.options.scale-opts { gap: 10px; }
.option.compact { padding: 15px 20px; font-size: 17px; grid-template-columns: 32px 1fr; }
.option.compact .letter { width: 32px; height: 32px; font-size: 14px; }
.score-ring.ring-text b { font-size: 22px; line-height: 1.15; padding: 0 12px; letter-spacing: -.02em; }
.profile.no-guides .p-track::before, .profile.no-guides .p-track::after { display: none; }
.visual-card { display: grid; justify-items: center; text-align: center; }
.visual { width: 100%; max-width: 380px; }
.quad { width: 100%; height: auto; display: block; }
.quad .q { stroke: var(--line); stroke-width: 1; }
.quad .q-andro { fill: color-mix(in srgb, var(--lvl-high) 14%, transparent); }
.quad .q-fem { fill: color-mix(in srgb, var(--lvl-mid) 16%, transparent); }
.quad .q-masc { fill: color-mix(in srgb, var(--lvl-low) 12%, transparent); }
.quad .q-undiff { fill: var(--bg-2); }
.quad .axis { stroke: var(--ink-2); stroke-width: 1.5; }
.quad .ax-l { font: 600 12px var(--sans); fill: var(--ink-2); }
.quad .q-l { font: 500 11px var(--sans); fill: var(--muted); }
.quad .dot { fill: var(--accent); stroke: var(--surface); stroke-width: 3; }
.test-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 24px; }
.test-tabs a { text-decoration: none; color: var(--ink-2); border-radius: 999px; padding: 7px 14px; font-size: 14px; background: var(--surface); box-shadow: var(--shadow); }
.test-tabs a span { color: var(--muted); margin-left: 4px; }
.test-tabs a.active { background: var(--ink); color: var(--bg); }
.test-tabs a.active span { color: inherit; opacity: .7; }
.open-ans { width: 100%; min-height: 240px; padding: 18px 20px; border-radius: 18px; border: 1.5px solid transparent; background: var(--surface); color: var(--ink); font: 18px/1.55 var(--sans); resize: vertical; box-shadow: var(--shadow); }
.open-ans:focus { border-color: var(--accent); outline: none; }
.open-a { padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.open-a:last-child { border-bottom: 0; }
.open-text { white-space: normal; margin: 8px 0 0; }

/* ---------- админка: «Обзор» ---------- */
.test-tabs a.tab-all { font-weight: 700; }
.ov-h { font-size: 15px; color: var(--muted); font-weight: 600; margin: 12px 0 10px; letter-spacing: 0; }
.ov-note { margin: -8px 0 20px; }
.ov-sec { font-size: 16px; font-weight: 700; margin: 24px 0 12px; color: var(--ink); letter-spacing: -.01em; }
.chart svg { width: 100%; height: auto; display: block; }
.chart text { font-size: 11px; fill: var(--muted); font-family: var(--sans); }
.chart .axis { stroke: var(--line); }
.b-uv { fill: var(--accent-soft); background: var(--accent-soft); stroke: var(--accent); stroke-width: .5; }
.b-done { fill: var(--accent); background: var(--accent); }
.legend-chips, .stack-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--ink-2); margin: 12px 0 0; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.ov-tbl tr.sec td { background: var(--bg-2); font-weight: 700; font-size: 13.5px; color: var(--ink-2); }
.ov-tbl td a { color: var(--accent); font-weight: 600; }
.stacks { display: grid; gap: 16px; }
.stack-row { display: grid; grid-template-columns: minmax(150px, 230px) 1fr; gap: 6px 14px; align-items: center; }
.stack-name { font-size: 14.5px; font-weight: 600; }
.stack { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--line-2); }
.stack > span { display: block; height: 100%; }
.stack > span + span { border-left: 2px solid var(--surface); }
.stack-legend { grid-column: 2; margin: 0; font-size: 13px; }
@media (max-width: 720px) { .stack-row { grid-template-columns: 1fr; } .stack-legend { grid-column: 1; } }

/* ---------- AI BizCamp ---------- */
.promo-card { background: var(--night); color: var(--night-ink); display: grid; grid-template-columns: 1fr 260px; gap: 32px; align-items: center; padding: 44px; border-radius: 28px; margin: 36px 0; }
.promo-card .eyebrow { color: #a5a3ff; }
.promo-card h2 { color: #fff; font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.035em; margin-top: 2px; }
.promo-card p { color: var(--night-muted); max-width: 34em; font-size: 17px; }
.promo-card .btn.primary { background: #fff; color: #000; border-color: #fff; margin-top: 8px; }
.promo-card .btn.primary:hover { opacity: .88; }
.promo-card .promo-visual { width: 100%; }
.promo-mark { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; border: 1.5px solid currentColor; font: 700 20px/1 var(--sans); letter-spacing: -.02em; }
.promo-mark.sm { width: 36px; height: 36px; border-radius: 10px; font-size: 13px; flex: none; color: var(--bg); background: var(--ink); border-color: var(--ink); }
.promo-about { display: flex; gap: 16px; align-items: center; margin: 48px 0 8px; padding: 22px 26px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); color: var(--ink-2); font-size: 16px; }
.promo-about p { margin: 0; }
.promo-link { color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.promo-link:hover { text-decoration: underline; }
.site-footer { border-top: 1px solid var(--line); margin-top: 56px; padding: 26px 0 40px; font-size: 13.5px; color: var(--muted); }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: var(--ink-2); font-weight: 600; }
@media (max-width: 760px) {
  .promo-card { grid-template-columns: 1fr; padding: 30px 26px; gap: 8px; }
  .promo-card .promo-visual { max-width: 220px; order: -1; }
  .promo-about { align-items: flex-start; }
}
@media print { .site-footer { display: none; } }

/* ---------- страницы тестов (t/<id>/) и статический каталог ---------- */
.seo-page { padding-bottom: 24px; max-width: 860px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); padding-top: 28px; }
.crumbs a { color: var(--ink-2); }
.seo-hero { padding: 28px 0 36px; max-width: 760px; }
.seo-hero h1 { margin: 6px 0 16px; }
.seo-hero .lead { font-size: 20px; color: var(--ink-2); line-height: 1.45; }
.seo-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 15px; margin: 0 0 26px; }
.seo-scales { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 12px; }
.seo-scales li { padding-left: 26px; position: relative; color: var(--ink-2); }
.seo-scales li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--accent); }
.seo-scales b { color: var(--ink); }
.seo-related { margin: 36px 0; }
.seo-related h2 { font-size: 22px; }
.seo-related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.seo-related a { color: var(--accent); font-weight: 600; }
.seo-static { padding: 48px 0; }
.seo-static ul { padding-left: 20px; display: grid; gap: 8px; }
.seo-static a { color: var(--accent); font-weight: 600; }

/* ---------- политика ---------- */
.muted-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.policy-page .card.policy h2 { font-size: 22px; }
.policy-page .card.policy ul { padding-left: 20px; display: grid; gap: 8px; }
.policy-page .card.policy a { color: var(--accent); }
.policy-page .card.policy p, .policy-page .card.policy li { color: var(--ink-2); }

/* ---------- выбор рода в формулировках ---------- */
.gender-pick { border: 0; padding: 0; margin: 0 0 28px; }
.gender-pick legend { font-weight: 600; font-size: 17px; margin-bottom: 12px; padding: 0; }
.gender-pick label { display: inline-flex; margin: 0 8px 8px 0; cursor: pointer; }
.gender-pick input { position: absolute; opacity: 0; pointer-events: none; }
.gender-pick label span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-weight: 600; border: 1.5px solid transparent; transition: border-color .2s ease, background .2s ease; }
.gender-pick input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.gender-pick input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
.gender-pick p { margin: 4px 0 0; }

/* ---------- этап на выбор ---------- */
.choose-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px !important; padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent) !important; font-weight: 600; font-size: 15px !important; }
.sub-h { font-size: 17px; color: var(--muted); font-weight: 600; letter-spacing: -.01em; margin: 28px 0 14px; }
.stage-head + .sub-h { margin-top: 4px; }
.stage { scroll-margin-top: 72px; }

/* ---------- каталог v2: единые карточки, темы, фильтр (16.0) ---------- */
.btn.sm { min-height: 38px; padding: 8px 18px; font-size: 15px; }
.stage-head .n.on { background: var(--accent); color: var(--accent-ink); }
.stage-head .n.goal { border-color: var(--ink); color: var(--ink); }
.path-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 64px; }
.path-pair .stage { margin: 0; display: flex; flex-direction: column; }
.path-pair .stage-head { min-height: 104px; margin-bottom: 16px; }
.path-pair .tgrid { flex: 1; }
.tgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tgrid.one { grid-template-columns: 1fr; }
.tcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px 24px 20px; min-height: 212px; transition: box-shadow .25s var(--ease); }
.tcard:hover { box-shadow: 0 1px 1px rgba(0,0,0,.03), 0 22px 40px -22px rgba(0,0,0,.32); }
.tcard:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent), var(--shadow); }
.tc-topic { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 8px; }
.tcard h3 { font-size: 21px; line-height: 1.18; margin: 0 0 8px; }
.tcard h3 a { color: var(--ink); }
.tcard h3 a:hover { text-decoration: none; color: var(--accent); }
.tc-text { font-size: 15.5px; line-height: 1.45; color: var(--ink-2); margin: 0; }
.tcard.big { padding: 30px 30px 24px; }
.tcard.big h3 { font-size: clamp(22px, 2.3vw, 27px); }
.tcard.big .tc-text { font-size: 16.5px; }
.tc-status { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; font-weight: 600; }
.tc-status.done { color: var(--accent); }
.tc-status.done::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.tc-status.prog { color: var(--ink-2); font-weight: 500; }
.tc-track { width: 72px; height: 5px; border-radius: 99px; background: var(--line-2); overflow: hidden; flex: none; }
.tc-track i { display: block; height: 100%; background: var(--lvl-mid); border-radius: inherit; }
.tc-foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tc-meta { font-size: 14px; color: var(--muted); }
.tc-act { display: inline-flex; align-items: center; gap: 12px; margin-left: auto; }
.tc-again { font-size: 14px; color: var(--muted); }
.tc-again:hover { color: var(--accent); text-decoration: none; }
.tcard.done { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 35%, transparent), var(--shadow); }
.quick { margin: 10px 0 0 !important; font-size: 15px !important; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 28px; scroll-margin-top: 80px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: 600 15px/1 var(--sans); cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.chip span { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--ink-2); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip.on span { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.chip:focus-visible, .linkbtn:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
.themes { display: grid; gap: 36px; }
.theme-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.theme-head h3 { font-size: 20px; margin: 0 0 4px; }
.theme-head p { margin: 0; font-size: 15px; color: var(--muted); }
.theme-head .more { color: var(--accent); font-weight: 600; font-size: 15px; white-space: nowrap; padding: 6px 0; }
.theme-head .more:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 980px) { .tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .path-pair { grid-template-columns: 1fr; gap: 40px; }
  .path-pair .stage-head { min-height: 0; }
  .tgrid { grid-template-columns: 1fr; gap: 12px; }
  .tcard { min-height: 0; padding: 20px 20px 18px; }
  .tcard.big { padding: 22px 22px 20px; }
  .chips { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 24px; }
  .chip { justify-content: center; min-height: 40px; padding: 7px 8px; font-size: 14px; white-space: nowrap; gap: 6px; }
  .theme-head { align-items: flex-start; flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { .tcard, .chip { transition: none; } }
.more-m { display: none; }
@media (max-width: 760px) {
  .theme-head .more { display: none; }
  .more-m { display: flex; width: 100%; margin-top: 12px; }
  .tcard { padding: 18px 18px 16px; }
  .tcard h3 { font-size: 19px; margin-bottom: 6px; }
  .tc-text { font-size: 15px; }
  .tc-foot { padding-top: 14px; }
}

/* ---------- админка v2: навигация по этапам (16.0) ---------- */
body.admin .wrap { max-width: 1320px; }
.adm-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 24px; }
.adm-side { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; padding: 4px 4px 24px 0; scrollbar-width: thin; }
.adm-nav { display: grid; gap: 1px; }
.adm-nav a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 10px; color: var(--ink-2); font-size: 14.5px; line-height: 1.25; text-decoration: none; }
.adm-nav a span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.adm-nav a:hover { background: var(--surface); color: var(--ink); }
.adm-nav a.zero { color: var(--muted); }
.adm-nav a.active { background: var(--ink); color: var(--bg); }
.adm-nav a.active span { color: inherit; opacity: .7; }
.adm-nav a.adm-all { font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.adm-nav a.adm-all.active { color: var(--bg); }
.adm-stage { display: flex; align-items: center; gap: 8px; margin: 14px 0 4px; padding: 0 12px; font-size: 13px; font-weight: 700; color: var(--ink); }
.adm-stage span { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-size: 11px; flex: none; }
.adm-sec { margin: 8px 0 2px; padding: 0 12px 0 40px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.adm-stage + .adm-sec { margin-top: 2px; }
.adm-nav a:not(.adm-all) { padding-left: 40px; }
.adm-jump { display: none; }
.adm-main { min-width: 0; }
.adm-main .admin-head { padding-top: 6px; }
.adm-links { display: flex; gap: 16px; margin: 4px 0 0; font-size: 14.5px; font-weight: 600; }
.grid2.even { grid-template-columns: 1fr 1fr; }
.path-funnel { display: grid; gap: 10px; margin-top: 14px; }
.pf-row { display: grid; grid-template-columns: minmax(150px, 210px) 1fr 86px; gap: 12px; align-items: center; font-size: 14.5px; }
.pf-track { height: 10px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.pf-track span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.pf-base .pf-track span { background: var(--ink-2); opacity: .35; }
.pf-goal .pf-track span { background: var(--lvl-high); }
.pf-goal .pf-name { font-weight: 700; }
.pf-val { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.theme-split { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--line-2); margin-top: 14px; }
.theme-split span + span { border-left: 2px solid var(--surface); }
.bar-name a { color: var(--ink); }
.ov-tbl tr.stg td { background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13.5px; }
.ov-tbl tr.stg td .muted { color: var(--accent); opacity: .7; font-weight: 500; }
.ov-tbl tr.sec td { padding-left: 14px; }
.ov-tbl tr.zero td { color: var(--muted); }
.ov-tbl tr.zero td a { color: var(--ink-2); font-weight: 500; }
.ov-tbl { font-size: 14px; }
.ov-tbl th { white-space: nowrap; }
.ov-tbl td:first-child { min-width: 150px; }
.ov-empty { margin-top: 20px; }
.stack-name a { color: var(--ink); }
@media (max-width: 1080px) { .grid2.even { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .adm-layout { grid-template-columns: 1fr; gap: 0; padding-top: 16px; }
  .adm-side { position: static; max-height: none; overflow: visible; padding: 0; }
  .adm-nav { display: none; }
  .adm-jump { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
  .adm-jump select { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 16px var(--sans); }
  .pf-row { grid-template-columns: 1fr 80px; }
  .pf-track { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 560px) { body.admin .topnav .muted { display: none; } }

/* ---------- страницы тестов для поисковиков: ключевые факты (16.0) ---------- */
.seo-facts dl { display: grid; gap: 0; margin: 4px 0 8px; }
.seo-facts dl > div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.seo-facts dl > div:last-child { border-bottom: 0; }
.seo-facts dt { font-weight: 600; color: var(--muted); font-size: 15px; }
.seo-facts dd { margin: 0; color: var(--ink); font-size: 16px; }
.seo-facts h3 { font-size: 18px; margin: 20px 0 8px; }
.seo-facts ul { margin: 0 0 12px; padding-left: 20px; color: var(--ink-2); }
.seo-facts li { margin: 4px 0; }
@media (max-width: 560px) { .seo-facts dl > div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- мобильные правки (16.1) ---------- */
@media (max-width: 900px) { .grid2, .grid2.even, .split { grid-template-columns: minmax(0, 1fr); } .grid2 > *, .split > * { min-width: 0; } }
@media (pointer: coarse), (max-width: 760px) { .linkbtn, .tc-again { display: inline-flex; align-items: center; min-height: 40px; padding-top: 0; padding-bottom: 0; } .topnav { gap: 14px; } }
.topnav a, .topnav .linkbtn, .brand { white-space: nowrap; }
@media (max-width: 420px) {
  .topnav .user-chip { display: none; }
  .brand { font-size: 15px; gap: 8px; }
  .growth-map .spiral { max-width: 220px; }
  .growth-map { gap: 12px; }
}
@media (max-width: 350px) { .chips { display: flex; flex-wrap: wrap; } .chip { white-space: normal; } }
code { overflow-wrap: anywhere; }
.adm-links { flex-wrap: wrap; }
.admin-head > div { min-width: 0; }

/* ==========================================================================
   Тренажёр эмоций: рисунок в задании, разбор ответа, карта эмоций
   ========================================================================== */
.q-media-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0 0 22px; }
.q-media { width: 100%; max-width: 240px; aspect-ratio: 200 / 240; background: var(--bg-2); border-radius: var(--radius-s); overflow: hidden; display: grid; place-items: center; }
.q-media svg { width: 100%; height: 100%; display: block; }
.q-media .emo-micro { position: relative; width: 100%; height: 100%; }
.q-media .emo-micro > div { position: absolute; inset: 0; }
.q-media .emo-micro-e { opacity: 0; animation: emoFlash .42s linear 1.1s 1 both; }
@keyframes emoFlash { 0% { opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; } }
.linkbtn.replay { font-size: 14px; color: var(--accent); }
.q-text.with-media { font-size: clamp(19px, 2.4vw, 22px); margin-bottom: 20px; }
.option.correct { border-color: var(--lvl-high); background: color-mix(in srgb, var(--lvl-high) 12%, transparent); }
.option.correct .letter { background: var(--lvl-high); color: #fff; }
.option.wrong { border-color: var(--lvl-low); background: color-mix(in srgb, var(--lvl-low) 10%, transparent); }
.option.wrong .letter { background: var(--lvl-low); color: #fff; }
.option.dim { opacity: .55; }
.option:disabled { cursor: default; }
.q-feedback { margin-top: 16px; padding: 18px 20px; border-radius: var(--radius-s); background: var(--bg-2); border-left: 4px solid var(--lvl-high); }
.q-feedback.bad { border-left-color: var(--lvl-low); }
.q-feedback b { display: block; margin-bottom: 6px; font-size: 17px; }
.q-feedback p { margin: 0; color: var(--ink-2); }

.emo-map { margin-top: 36px; text-align: left; }
.emo-map h3 { margin: 28px 0 8px; }
.emo-wheel-wrap { max-width: 640px; margin: 8px auto 0; }
.emo-wheel { width: 100%; height: auto; display: block; font-family: var(--sans); }
.emo-term { display: grid; gap: 8px; margin-top: 12px; }
.emo-term-row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; }
.emo-term-name { font-weight: 600; font-size: 14px; }
.emo-term-bar { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 10px; overflow: hidden; }
.emo-term-bar span { color: #1d1d1f; font-size: 13px; padding: 7px 8px; text-align: center; font-weight: 500; }
.emo-fams { display: grid; gap: 8px; margin-top: 12px; }
details.emo-fam { background: var(--bg-2); border-radius: var(--radius-s); padding: 0 16px; }
details.emo-fam summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: 14px auto 1fr; gap: 10px; align-items: center; padding: 14px 0; }
details.emo-fam summary::-webkit-details-marker { display: none; }
details.emo-fam summary i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
details.emo-fam summary span { color: var(--muted); font-size: 14px; }
.emo-fam-body { padding: 0 0 16px 24px; }
.emo-signal { font-weight: 600; margin: 0 0 8px; }
.emo-fam-body dl { margin: 0; display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; font-size: 15px; }
.emo-fam-body dt { color: var(--muted); }
.emo-fam-body dd { margin: 0; }
.emo-channels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.emo-channels div { background: var(--accent-soft); border-radius: var(--radius-s); padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.emo-channels span { font-size: 14px; color: var(--ink-2); }
.emo-rule { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-s); background: var(--bg-2); }
.emo-review { display: grid; gap: 14px; margin: 12px 0 8px; text-align: left; }
.emo-review-card h2 { margin-top: 0; }
.emo-rev { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.emo-rev:not(:has(.emo-rev-media)) { grid-template-columns: 1fr; }
.emo-rev-media { width: 96px; aspect-ratio: 200 / 240; background: var(--bg-2); border-radius: 12px; overflow: hidden; }
.emo-rev-media svg { width: 100%; height: 100%; display: block; }
.emo-rev p { margin: 0 0 4px; }
.visual-card .visual .emo-map { margin-top: 24px; }
@media (max-width: 720px) {
  .emo-channels { grid-template-columns: 1fr 1fr; }
  .emo-term-row { grid-template-columns: 1fr; gap: 4px; }
  .emo-fam-body { padding-left: 0; }
  .emo-fam-body dl { grid-template-columns: 1fr; }
  .q-media { max-width: 200px; }
}
@media print { .q-media .emo-micro-e { animation: none; } }
.emo-defs { margin: 0 0 12px; padding-left: 18px; font-size: 15px; color: var(--ink-2); }
.emo-defs li { margin-bottom: 4px; }
.emo-describe { padding-left: 22px; margin: 8px 0 0; }
.emo-describe li { margin-bottom: 6px; }

/* Измеритель настроения */
.q-media:has(.mood-grid) { max-width: 340px; aspect-ratio: auto; background: none; color: var(--ink); }
.mood-grid { width: 100%; height: auto; display: block; font-family: var(--sans); color: var(--ink); }
.mood-wrap { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 28px; align-items: start; margin-top: 8px; }
.mood-zone { border-left: 5px solid var(--z); padding: 4px 0 4px 18px; }
.mood-zone h3 { font-size: 28px; margin: 4px 0 8px; }
.mood-zones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.mood-zones div { border-radius: var(--radius-s); padding: 12px 14px; background: color-mix(in srgb, var(--z) 14%, transparent); border: 2px solid transparent; display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.mood-zones div.on { border-color: var(--z); }
.mood-zones span { color: var(--ink-2); }
@media (max-width: 720px) {
  .mood-wrap { grid-template-columns: 1fr; }
  .mood-zones { grid-template-columns: 1fr 1fr; }
}

/* Этап из двух тестов (например, «Понимать эмоции») */
.tgrid.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 720px) { .tgrid.two { grid-template-columns: 1fr; } }
/* Стратегии управления эмоциями */
.strat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.strat-col { border: 1.5px solid var(--line-2); border-radius: var(--radius-s); overflow: hidden; }
.strat-head { background: #3F51B5; color: #fff; padding: 12px 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.strat-head b { text-transform: uppercase; letter-spacing: .02em; font-size: 15px; }
.strat-head span { font-size: 13px; opacity: .85; }
.strat { padding: 12px 16px; border-top: 1px solid var(--line-2); }
.strat:first-of-type { border-top: 0; }
.strat.on { background: color-mix(in srgb, var(--lvl-high) 9%, transparent); }
.strat p { margin: 0; }
.strat-name { font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.strat-name .pill { font-size: 11px; padding: 2px 8px; }
.strat-what { color: var(--ink-2); font-size: 15px; margin-top: 2px !important; }
.strat-how { font-size: 14px; color: var(--ink); margin-top: 6px !important; padding-left: 10px; border-left: 3px solid var(--lvl-high); }
@media (max-width: 720px) { .strat-grid { grid-template-columns: 1fr; } }

/* Фото в тренажёре эмоций (созданы ИИ) */
.q-media:has(.emo-photo) { aspect-ratio: 1 / 1; max-width: 300px; background: var(--bg-2); }
.emo-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.q-media .emo-micro .emo-photo { position: absolute; inset: 0; }
.emo-rev-media:has(.emo-photo) { aspect-ratio: 1 / 1; }
.emo-ai-note { margin: 10px 0 0; font-size: 12px; color: var(--ink-2); }
@media (max-width: 600px) { .q-media:has(.emo-photo) { max-width: 260px; } }
