/* Detector «измерительный прибор» v54 — страница tools/detektor-ii-teksta.html
   в текущем языке «Анатомии v4» (как tools.html / главная).
   Подключается только этой страницей после site.css / detector-report.css.
   Меняется только оформление: разметка, тексты, якоря и JS-контракт — те же. */

/* ─── 0. Светлые токены v52 (как на tools.html): бумага вместо серого тумана ── */
@media (prefers-color-scheme: light){
  html:not([data-color-scheme="dark"]) body[data-sk-theme="anatomy"].tool-page{
    --bg:#E7EBE6;--paper:#FFFFFF;--card:#FFFFFF;--soft:#EDF2E9;
    --surface:#FFFFFF;--surface-soft:#F1F5EE;--surface-deep:#F1F5EE;
    --warm:#F6EFE9;--surface-warm:#F6EFE9;
    --ink:#20382F;--text:#20382F;--muted:#59665E;--quiet:#53645A;
    --green:#254D3E;--accent:#B94725;--accent-hover:#9C3B1F;--accent-ink:#A33F29;
    --line:#D8E1D6;--line-strong:#AEBDAF;--line-control:#AEBDAF;
  }
}
html[data-color-scheme="light"] body[data-sk-theme="anatomy"].tool-page{
  --bg:#E7EBE6;--paper:#FFFFFF;--card:#FFFFFF;--soft:#EDF2E9;
  --surface:#FFFFFF;--surface-soft:#F1F5EE;--surface-deep:#F1F5EE;
  --warm:#F6EFE9;--surface-warm:#F6EFE9;
  --ink:#20382F;--text:#20382F;--muted:#59665E;--quiet:#53645A;
  --green:#254D3E;--accent:#B94725;--accent-hover:#9C3B1F;--accent-ink:#A33F29;
  --line:#D8E1D6;--line-strong:#AEBDAF;--line-control:#AEBDAF;
}
body[data-sk-theme="anatomy"].tool-page{
  background:var(--bg);color:var(--text);
  /* один шрифт на странице: SKOnest/SKMono из site-tokens.css перекрыты Onest */
  --font:Onest,system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-body:var(--font);
  --font-display:var(--font);
  --font-mono:Onest,system-ui,-apple-system,"Segoe UI",sans-serif;
  font-family:var(--font);
}
body[data-sk-theme="anatomy"].tool-page .shell{width:min(1280px,calc(100% - 2 * clamp(20px,4vw,40px)))}
body[data-sk-theme="anatomy"].tool-page .eyebrow{color:var(--accent-ink)}

/* ─── 1. Ритм и главы ──────────────────────────────────────────────────── */
body[data-sk-theme="anatomy"].tool-page main{counter-reset:ch}
body[data-sk-theme="anatomy"].tool-page .section{padding-block:clamp(54px,6.2vw,86px);border-top:0}
body[data-sk-theme="anatomy"].tool-page .section:not(:has(>.shell>.tk__head)){border-top:1px solid var(--line)}
body[data-sk-theme="anatomy"].tool-page main>.section:has(>.shell>.tk__head){counter-increment:ch;border-top:0;position:relative}
body[data-sk-theme="anatomy"].tool-page main>.section>.shell>.tk__head{
  position:relative;
  display:grid;grid-template-columns:minmax(0,1.12fr) minmax(280px,.7fr);
  gap:14px 56px;align-items:start;
  padding-top:26px;margin-bottom:clamp(26px,3.2vw,38px);
  border-top:1px solid var(--line-strong);
}
body[data-sk-theme="anatomy"].tool-page main>.section>.shell>.tk__head::before{
  content:"";position:absolute;top:-2px;left:0;width:56px;height:3px;background:var(--accent);
}
body[data-sk-theme="anatomy"].tool-page .tk__head>.eyebrow{
  grid-column:1;margin:0;font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--accent-ink);
}
body[data-sk-theme="anatomy"].tool-page .tk__head>.eyebrow::before{
  content:counter(ch,decimal-leading-zero) "  ·  ";font-family:var(--font-mono);font-weight:500;color:var(--quiet);
}
body[data-sk-theme="anatomy"].tool-page .tk__head>h2{
  grid-column:1;margin:0;font-size:clamp(32px,3.7vw,54px);line-height:1.04;letter-spacing:-.05em;font-weight:500;text-wrap:balance;
}
body[data-sk-theme="anatomy"].tool-page .tk__head>.tk__head-lead{
  grid-column:2;align-self:end;margin:0;max-width:60ch;font-size:16px;line-height:1.62;color:var(--muted);
}

/* ─── 2. Hero ──────────────────────────────────────────────────────────── */
body[data-sk-theme="anatomy"].tool-page .tool-hero{
  padding:clamp(44px,5.6vw,76px) 0 clamp(30px,3.6vw,46px);
  background:linear-gradient(180deg,color-mix(in srgb,var(--surface) 60%,var(--bg)) 0%,var(--bg) 92%);
  border-bottom:1px solid var(--line);
}
body[data-sk-theme="anatomy"].tool-page .tool-hero h1{
  font-size:var(--chrome-h1-internal)!important;font-weight:450!important;line-height:1.015!important;
  letter-spacing:-.055em;max-width:11ch;margin-top:16px;
}
body[data-sk-theme="anatomy"].tool-page .tool-hero .eyebrow{margin-top:0}
body[data-sk-theme="anatomy"].tool-page .tool-hero__lead{
  max-width:54ch;margin-top:24px;color:var(--muted);font-size:18px;line-height:1.58;
}
body[data-sk-theme="anatomy"].tool-page .dr-hero{
  display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,.72fr);gap:clamp(30px,4vw,60px);align-items:start;
}
body[data-sk-theme="anatomy"].tool-page .dr-hero__actions{display:flex;flex-wrap:wrap;align-items:center;gap:18px 26px;margin-top:28px}
body[data-sk-theme="anatomy"].tool-page .button{border-radius:12px!important;min-height:52px;padding:14px 24px}
body[data-sk-theme="anatomy"].tool-page .dr-hero-demo{
  padding:22px 24px 20px;border-radius:18px;filter:none!important;
  box-shadow:0 30px 60px -46px rgba(20,50,38,.85);
}
body[data-sk-theme="anatomy"].tool-page .dr-hero-demo__bar{padding-bottom:12px}
body[data-sk-theme="anatomy"].tool-page .dr-hero-demo__quote{border-radius:12px;font-size:12.5px;line-height:1.5}

/* паспорт цифр: открытая строка с крупными числами на волосяной линии-шкале */
body[data-sk-theme="anatomy"].tool-page .tool-hero .hero-caps{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  margin:clamp(32px,4vw,52px) 0 0;padding:22px 0 0;
  border:0!important;border-top:1px solid var(--line-strong)!important;
  border-radius:0;background:transparent;box-shadow:none;overflow:visible;
  background-image:repeating-linear-gradient(90deg,var(--line-strong) 0 1px,transparent 1px 40px);
  background-repeat:no-repeat;background-size:100% 5px;background-position:0 0;
}
body[data-sk-theme="anatomy"].tool-page .hero-caps li{
  display:grid;gap:6px;padding:0 28px 0 0!important;margin:0;border:0!important;
}
body[data-sk-theme="anatomy"].tool-page .hero-caps li+li{padding-left:28px!important;border-left:1px solid var(--line)!important}
body[data-sk-theme="anatomy"].tool-page .hero-caps li+li::before{display:none!important}
body[data-sk-theme="anatomy"].tool-page .hero-caps b{
  font-size:clamp(34px,3.5vw,52px)!important;font-weight:400!important;letter-spacing:-.05em;line-height:1.02!important;
  font-variant-numeric:tabular-nums;
}
body[data-sk-theme="anatomy"].tool-page .hero-caps span{color:var(--text);font-size:13px;line-height:1.35}
body[data-sk-theme="anatomy"].tool-page .hero-caps small{color:var(--quiet);font-size:12px;line-height:1.4}

/* ─── 3. Форма-консоль ─────────────────────────────────────────────────── */
body[data-sk-theme="anatomy"].tool-page .tool-launch{padding-block:clamp(40px,4.6vw,62px) clamp(52px,6.2vw,82px)}
body[data-sk-theme="anatomy"].tool-page .tool-launch__copy h2{
  margin:10px 0 0;font-size:clamp(32px,3.7vw,54px);line-height:1.04;letter-spacing:-.05em;font-weight:500;
}
body[data-sk-theme="anatomy"].tool-page .tool-launch__copy p:not(.eyebrow){margin:16px 0 0;max-width:52ch;color:var(--muted);font-size:15px;line-height:1.62}
body[data-sk-theme="anatomy"].tool-page .tool-form{
  padding:30px 32px 26px;
  border:1px solid var(--line)!important;border-top:3px solid var(--accent)!important;
  border-radius:18px;background:var(--paper)!important;
  box-shadow:0 26px 52px -44px rgba(32,56,47,.45);filter:none!important;
}
body[data-sk-theme="anatomy"].tool-page .tool-form::before{clip-path:none!important;border-radius:inherit}
body[data-sk-theme="anatomy"].tool-page .dr-console__bar{padding-bottom:12px;margin-bottom:18px;border-bottom:1px solid var(--line)}
body[data-sk-theme="anatomy"].tool-page .dr-console__t,
body[data-sk-theme="anatomy"].tool-page .dr-console__meta{
  font-family:var(--font-mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--quiet);
}
body[data-sk-theme="anatomy"].tool-page .dr-console__t::before{
  content:"";display:inline-block;width:7px;height:7px;margin-right:8px;border-radius:2px;background:var(--accent);vertical-align:1px;
}
body[data-sk-theme="anatomy"].tool-page .tk__seg{padding:4px;border:1px solid var(--line)!important;border-radius:12px!important;background:var(--surface-deep)!important}
body[data-sk-theme="anatomy"].tool-page .tk__segbtn{border-radius:9px!important;min-height:50px;font-size:14px;font-weight:600;color:var(--muted)!important}
body[data-sk-theme="anatomy"].tool-page .tk__segbtn.is-active{background:var(--green)!important;color:#fff!important}
body[data-sk-theme="anatomy"].tool-page .tk__segbtn.is-active::after{display:none}
body[data-sk-theme="anatomy"].tool-page .tool-url,
body[data-sk-theme="anatomy"].tool-page .tk__captcha-i,
body[data-sk-theme="anatomy"].tool-page .tk__textarea{border-radius:10px!important}
body[data-sk-theme="anatomy"].tool-page .tool-url{border:1px solid var(--line-control);background:var(--bg)}
body[data-sk-theme="anatomy"].tool-page .tool-url:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 16%,transparent)}
body[data-sk-theme="anatomy"].tool-page .tk__textarea{padding:14px 16px 12px;font-size:15px;line-height:1.55}
body[data-sk-theme="anatomy"].tool-page .tk__textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 16%,transparent);outline:none}
body[data-sk-theme="anatomy"].tool-page .tool-form label{color:var(--text);font-size:13px;font-weight:600}
body[data-sk-theme="anatomy"].tool-page .tool-form__hint{color:var(--quiet);font-size:12.5px;line-height:1.5}
body[data-sk-theme="anatomy"].tool-page .tool-form__submit{width:100%;min-height:56px;font-size:16px}
body[data-sk-theme="anatomy"].tool-page .tool-form__submit:disabled{
  background:var(--surface-deep)!important;color:var(--quiet)!important;
  border-color:var(--line)!important;box-shadow:none;cursor:not-allowed;
}
body[data-sk-theme="anatomy"].tool-page .ghost-btn{border-radius:12px!important;min-height:52px;padding:13px 20px;font-size:14px;font-weight:600}
body[data-sk-theme="anatomy"].tool-page .tk__captcha-r{border-radius:10px!important;min-height:48px;border:1px solid var(--line-strong);background:var(--bg);color:var(--text);font-size:13px;font-weight:600}
body[data-sk-theme="anatomy"].tool-page .tk__captcha-r:hover{border-color:var(--accent);color:var(--accent)}
body[data-sk-theme="anatomy"].tool-page .dr-linkbtn{color:var(--accent);font-weight:600}
body[data-sk-theme="anatomy"].tool-page .dr-linkbtn:hover{color:var(--accent-hover)}
body[data-sk-theme="anatomy"].tool-page :is(.dr-hero-demo,.dr-panel) .dr-linkbtn{color:var(--dr-on-acc)}
body[data-sk-theme="anatomy"].tool-page :is(.dr-hero-demo,.dr-panel) .dr-linkbtn:hover{color:#fff}
body[data-sk-theme="anatomy"].tool-page .tk__after-i{border:1px solid var(--line-strong);border-radius:999px;padding:7px 13px;font-size:12.5px;background:transparent}
body[data-sk-theme="anatomy"].tool-page .dr-demo-note{border:1px solid var(--line);border-radius:12px;background:var(--surface-deep)}
body[data-sk-theme="anatomy"].tool-page .tk__error{border-radius:12px}
body[data-sk-theme="anatomy"].tool-page .tk__status{border-radius:10px}

/* ─── 4. Врезки вместо карточной каши: рубрика → утверждение → пояснение ─── */
body[data-sk-theme="anatomy"].tool-page .tk__groups{border:0!important;background:transparent!important;gap:14px!important;overflow:visible}
body[data-sk-theme="anatomy"].tool-page .tk__group{
  padding:22px 22px 18px;border:1px solid var(--line);border-radius:16px;background:var(--surface-deep);
}
body[data-sk-theme="anatomy"].tool-page :is(
  section[aria-labelledby="how-title"],
  section[aria-labelledby="calib-title"],
  section[aria-labelledby="serp-title"],
  section[aria-labelledby="genres-title"],
  section[aria-labelledby="honest-title"],
  section[aria-labelledby="vs-title"]
) .tk__group{
  padding:20px 0 18px;border:0;border-top:1px solid var(--line-strong);border-radius:0;background:transparent;
}
body[data-sk-theme="anatomy"].tool-page :is(
  section[aria-labelledby="how-title"],
  section[aria-labelledby="calib-title"],
  section[aria-labelledby="serp-title"],
  section[aria-labelledby="genres-title"],
  section[aria-labelledby="honest-title"],
  section[aria-labelledby="vs-title"]
) .tk__groups{gap:24px 40px!important}
body[data-sk-theme="anatomy"].tool-page :is(
  section[aria-labelledby="how-title"],
  section[aria-labelledby="calib-title"],
  section[aria-labelledby="serp-title"],
  section[aria-labelledby="genres-title"],
  section[aria-labelledby="honest-title"],
  section[aria-labelledby="vs-title"]
) .tk__group h3{
  display:flex;align-items:center;gap:10px;
  padding:0 0 14px;border-bottom:0;
  font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);
}
body[data-sk-theme="anatomy"].tool-page :is(
  section[aria-labelledby="how-title"],
  section[aria-labelledby="calib-title"],
  section[aria-labelledby="serp-title"],
  section[aria-labelledby="genres-title"],
  section[aria-labelledby="honest-title"],
  section[aria-labelledby="vs-title"]
) .tk__group h3::before{content:"";width:18px;height:2px;background:var(--accent);flex:none}
body[data-sk-theme="anatomy"].tool-page main .tk__group b{font-size:17.5px;font-weight:550;letter-spacing:-.015em;line-height:1.35}
body[data-sk-theme="anatomy"].tool-page .tk__group span{font-size:14px;line-height:1.6}
body[data-sk-theme="anatomy"].tool-page .tk__group:hover{border-color:var(--line-strong)}

/* ─── 5. Три тональные полосы: калибровка, честность, «Дальше» ──────────── */
body[data-sk-theme="anatomy"].tool-page section[aria-labelledby="calib-title"]{
  background:var(--surface-soft);border-top:1px solid var(--line);border-bottom:1px solid var(--line);
}
body[data-sk-theme="anatomy"].tool-page section[aria-labelledby="honest-title"]{
  --bg:#244438;--surface:#1c382f;--surface-deep:#1c382f;
  --text:#e7ebe6;--muted:#c2d1be;--quiet:#c2d1be;
  --accent:#e4a38e;--accent-ink:#e4a38e;--accent-hover:#f0b8a4;
  --line:rgba(255,255,255,.2);--line-strong:rgba(255,255,255,.36);
  background:var(--bg);color:var(--text);border-top:0;
}
body[data-sk-theme="anatomy"].tool-page section[aria-labelledby="honest-title"] .tk__head>.eyebrow{color:#f1b39f}
body[data-sk-theme="anatomy"].tool-page section[aria-labelledby="honest-title"] .tk__group{background:transparent;border-top-color:rgba(255,255,255,.22)}
body[data-sk-theme="anatomy"].tool-page section[aria-labelledby="next-title"]{background:var(--warm);border-top:0}
html[data-theme-effective="dark"] body[data-sk-theme="anatomy"].tool-page section[aria-labelledby="honest-title"]{
  --bg:#1E2C26;--surface:#22332B;--surface-deep:#22332B;--text:#e7ebe6;--muted:#c2d1be;--quiet:#c2d1be;
  --accent:#e4a38e;--accent-ink:#e4a38e;--line:rgba(255,255,255,.16);--line-strong:rgba(255,255,255,.3);
}
html[data-theme-effective="dark"] body[data-sk-theme="anatomy"].tool-page section[aria-labelledby="next-title"]{background:var(--surface)}

/* ─── 6. Крупные числа ─────────────────────────────────────────────────── */
body[data-sk-theme="anatomy"].tool-page .dr-scheme,
body[data-sk-theme="anatomy"].tool-page .dr-calib,
body[data-sk-theme="anatomy"].tool-page .dr-serp,
body[data-sk-theme="anatomy"].tool-page .dr-sfeat,
body[data-sk-theme="anatomy"].tool-page .dr-bars,
body[data-sk-theme="anatomy"].tool-page .dr-can,
body[data-sk-theme="anatomy"].tool-page .dr-vs{border-radius:18px;overflow:hidden}
body[data-sk-theme="anatomy"].tool-page .dr-scheme__branches li{border-radius:12px;background:var(--bg)}
body[data-sk-theme="anatomy"].tool-page .dr-scheme__root,
body[data-sk-theme="anatomy"].tool-page .dr-scheme__sum{border-radius:10px}
body[data-sk-theme="anatomy"].tool-page .dr-calib__set p{margin:0}
body[data-sk-theme="anatomy"].tool-page .dr-calib__set p strong{
  display:block;font-size:clamp(48px,5.4vw,82px);font-weight:400;letter-spacing:-.06em;line-height:.92;
  font-variant-numeric:tabular-nums;
}
body[data-sk-theme="anatomy"].tool-page .dr-calib__set--machine p strong{color:var(--accent)}
body[data-sk-theme="anatomy"].tool-page .dr-serp__nums li b{font-variant-numeric:tabular-nums}
body[data-sk-theme="anatomy"].tool-page .dr-serp__nums li:first-child b{
  font-size:clamp(42px,4.4vw,64px);font-weight:400;letter-spacing:-.05em;line-height:1;
}
body[data-sk-theme="anatomy"].tool-page .dr-can__col{background:var(--surface-deep);padding:26px 28px;border-radius:14px}
body[data-sk-theme="anatomy"].tool-page .dr-can__t{font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:var(--quiet)}
body[data-sk-theme="anatomy"].tool-page .dr-can li{font-size:clamp(17px,1.45vw,21px);line-height:1.36;padding:14px 0;border-bottom-color:var(--line)}

/* ─── 7. Протокол: спокойный документ с мягкой тенью ───────────────────── */
body[data-sk-theme="anatomy"].tool-page .dr-sheet{
  border-radius:20px;filter:none!important;
  box-shadow:inset 3px 0 0 var(--accent),0 34px 74px -62px rgba(32,56,47,.55),0 2px 6px rgba(32,56,47,.04);
}
body[data-sk-theme="anatomy"].tool-page .dr-sheet::before{border-radius:20px;clip-path:none!important}
body[data-sk-theme="anatomy"].tool-page .dr-head{border-bottom:1px solid var(--line-strong)}
body[data-sk-theme="anatomy"].tool-page .dr-panel{margin:28px 0 0;border-radius:16px;box-shadow:none;padding:36px 40px 42px}
body[data-sk-theme="anatomy"].tool-page .dr-sig__num{font-size:clamp(76px,9vw,128px)}
body[data-sk-theme="anatomy"].tool-page .dr-panel__grid{gap:28px}
body[data-sk-theme="anatomy"].tool-page .dr-part{border-top:1px solid var(--line-strong)}
body[data-sk-theme="anatomy"].tool-page .dr-reg{border-radius:16px}
body[data-sk-theme="anatomy"].tool-page .dr-row{border-radius:0}
body[data-sk-theme="anatomy"].tool-page .dr-row[open]{background:var(--surface-deep);box-shadow:inset 0 0 0 1px var(--line);border-radius:10px}
body[data-sk-theme="anatomy"].tool-page .dr-vs__node{border-radius:10px}
body[data-sk-theme="anatomy"].tool-page .dr-ms__bar{border-radius:12px}
body[data-sk-theme="anatomy"].tool-page :is(.aid-matches,.aid-uni,.aid-ref-row){border-radius:14px}
body[data-sk-theme="anatomy"].tool-page .dr-serp__pane{border-radius:14px}
body[data-sk-theme="anatomy"].tool-page :is(.dr-show,.dr-ms__more){border-radius:9px;font-size:13px}
body[data-sk-theme="anatomy"].tool-page .dr-chip{border-radius:999px!important;min-height:44px;font-size:12px}
/* липкая полоса разметки — только на высоких окнах */
@media (max-height:820px){body[data-sk-theme="anatomy"].tool-page .dr-ms__bar{position:static!important}}

/* ─── 8. FAQ и «Дальше» ────────────────────────────────────────────────── */
body[data-sk-theme="anatomy"].tool-page .faq-layout>header{position:sticky;top:104px;align-self:start}
body[data-sk-theme="anatomy"].tool-page .faq-list summary{min-height:68px;font-size:17px}
body[data-sk-theme="anatomy"].tool-page .faq-list summary span{font-family:var(--font-mono);color:var(--accent-ink)}
body[data-sk-theme="anatomy"].tool-page .faq-list details[open]{box-shadow:inset 3px 0 0 var(--accent);padding-left:14px}
body[data-sk-theme="anatomy"].tool-page section[aria-labelledby="next-title"] .tk__group{background:var(--paper);border:1px solid rgba(32,56,47,.14);border-radius:16px;transition:border-color .16s,transform .16s}
body[data-sk-theme="anatomy"].tool-page section[aria-labelledby="next-title"] .tk__group:hover{border-color:var(--accent);transform:translateY(-2px)}
body[data-sk-theme="anatomy"].tool-page section[aria-labelledby="next-title"] .tk__group h3{font-size:19px;font-weight:550;line-height:1.2}

/* ─── 9. Адаптив ───────────────────────────────────────────────────────── */
@media(max-width:1080px){
  body[data-sk-theme="anatomy"].tool-page .dr-hero{grid-template-columns:1fr;gap:28px}
  body[data-sk-theme="anatomy"].tool-page .dr-hero-demo{max-width:640px}
  body[data-sk-theme="anatomy"].tool-page main>.section>.shell>.tk__head{grid-template-columns:minmax(0,1fr);gap:12px}
  body[data-sk-theme="anatomy"].tool-page .tk__head>.tk__head-lead{grid-column:1;align-self:start}
  body[data-sk-theme="anatomy"].tool-page .tool-hero .hero-caps{grid-template-columns:1fr 1fr!important}
  body[data-sk-theme="anatomy"].tool-page .hero-caps li:nth-child(n+3){border-top:1px solid var(--line)!important;padding-top:18px!important}
  body[data-sk-theme="anatomy"].tool-page .hero-caps li:nth-child(odd){padding-left:0!important;border-left:0!important}
  body[data-sk-theme="anatomy"].tool-page .faq-layout>header{position:static}
}
@media(max-width:760px){
  body[data-sk-theme="anatomy"].tool-page .tool-hero{padding:30px 0 26px}
  body[data-sk-theme="anatomy"].tool-page .tool-hero h1{max-width:14ch}
  body[data-sk-theme="anatomy"].tool-page .tool-hero__lead{font-size:16px;line-height:1.55;margin-top:18px}
  body[data-sk-theme="anatomy"].tool-page .dr-hero{gap:22px}
  body[data-sk-theme="anatomy"].tool-page .dr-hero-demo{padding:18px 18px 16px}
  body[data-sk-theme="anatomy"].tool-page .tool-hero .hero-caps{grid-template-columns:1fr 1fr!important;padding-top:18px;margin-top:26px}
  body[data-sk-theme="anatomy"].tool-page .hero-caps li{padding:0 14px 0 0!important}
  body[data-sk-theme="anatomy"].tool-page .hero-caps li+li{padding-left:14px!important}
  body[data-sk-theme="anatomy"].tool-page .hero-caps li:nth-child(n+3){padding-top:16px!important}
  body[data-sk-theme="anatomy"].tool-page .hero-caps b{font-size:30px!important}
  body[data-sk-theme="anatomy"].tool-page .section{padding-block:44px}
  body[data-sk-theme="anatomy"].tool-page main>.section>.shell>.tk__head{padding-top:20px;margin-bottom:24px}
  body[data-sk-theme="anatomy"].tool-page .tk__head>h2{font-size:clamp(27px,7.2vw,34px)}
  body[data-sk-theme="anatomy"].tool-page .tk__head>.tk__head-lead{font-size:15px}
  body[data-sk-theme="anatomy"].tool-page .tool-launch__copy h2{font-size:clamp(27px,7.2vw,34px)}
  body[data-sk-theme="anatomy"].tool-page .tool-form{padding:20px 18px 18px;border-radius:16px}
  body[data-sk-theme="anatomy"].tool-page .dr-sheet{border-radius:16px;box-shadow:inset 3px 0 0 var(--accent),0 20px 40px -40px rgba(32,56,47,.5)}
  body[data-sk-theme="anatomy"].tool-page .dr-sheet::before{border-radius:16px}
  body[data-sk-theme="anatomy"].tool-page .dr-panel{border-radius:14px;padding:26px 18px 30px}
  body[data-sk-theme="anatomy"].tool-page .dr-calib__set p strong{font-size:clamp(40px,11vw,56px)}
  body[data-sk-theme="anatomy"].tool-page .dr-serp__nums li:first-child b{font-size:clamp(34px,9.6vw,44px)}
  body[data-sk-theme="anatomy"].tool-page .dr-can__col{padding:20px 18px}
  body[data-sk-theme="anatomy"].tool-page section[aria-labelledby="next-title"] .tk__group:hover{transform:none}
}

/* ─── 10. Доводка: единый eyebrow, чистые стыки карточек, документ ─────── */
/* надзаголовки как на tools.html: Onest, верхний регистр, акцент */
body[data-sk-theme="anatomy"].tool-page .eyebrow{
  font-family:var(--font)!important;font-size:12px!important;font-weight:600!important;
  letter-spacing:.07em!important;text-transform:uppercase;color:var(--accent)!important;
}
body[data-sk-theme="anatomy"].tool-page .tk__head>.eyebrow::before,
body[data-sk-theme="anatomy"].tool-page .faq-layout>header .eyebrow::before{
  font-family:var(--font-mono);font-weight:500;color:var(--quiet);
}

/* Главы: FAQ тоже глава */
body[data-sk-theme="anatomy"].tool-page section.faq{counter-increment:ch}
body[data-sk-theme="anatomy"].tool-page section.faq{position:relative}
body[data-sk-theme="anatomy"].tool-page section.faq::before{
  content:"";position:absolute;left:var(--gutter);right:var(--gutter);top:0;height:1px;background:var(--line-strong);
}
body[data-sk-theme="anatomy"].tool-page section.faq .faq-layout>header{
  position:sticky;top:104px;align-self:start;padding-top:26px;
}
body[data-sk-theme="anatomy"].tool-page section.faq .faq-layout>header::before{
  content:"";position:absolute;top:-2px;left:0;width:56px;height:3px;background:var(--accent);
}
body[data-sk-theme="anatomy"].tool-page section.faq .faq-layout>header .eyebrow::before{
  content:counter(ch,decimal-leading-zero) "  ·  ";
}
body[data-sk-theme="anatomy"].tool-page section.faq .faq-layout>header h2{
  margin:10px 0 0;font-size:clamp(32px,3.7vw,54px);line-height:1.04;letter-spacing:-.05em;font-weight:500;
}

/* Карточки — белые в светлой теме и приподнятые в тёмной */
body[data-sk-theme="anatomy"].tool-page .tk__group{background:var(--surface)}
body[data-sk-theme="anatomy"].tool-page .dr-scheme__branches li{background:var(--surface);border:1px solid var(--line);border-radius:14px}
body[data-sk-theme="anatomy"].tool-page .dr-scheme__sum{background:var(--green);border-color:var(--green);color:#fff;border-radius:12px}
body[data-sk-theme="anatomy"].tool-page .dr-scheme__sum :is(b,span){color:#fff!important}
body[data-sk-theme="anatomy"].tool-page .dr-scheme__root{background:var(--surface);border-radius:12px}

/* Стыки карточек вместо «серых треугольников» */
body[data-sk-theme="anatomy"].tool-page .dr-serp,
body[data-sk-theme="anatomy"].tool-page .dr-bars,
body[data-sk-theme="anatomy"].tool-page .dr-can{border:0!important;background:transparent!important;overflow:visible!important}
body[data-sk-theme="anatomy"].tool-page .dr-serp__body{gap:14px}
body[data-sk-theme="anatomy"].tool-page .dr-serp__pane{border:1px solid var(--line)!important;border-radius:16px!important;background:var(--surface)!important}
body[data-sk-theme="anatomy"].tool-page .dr-serp__nums{border:1px solid var(--line)!important;border-radius:18px;overflow:hidden;background:var(--surface)}
body[data-sk-theme="anatomy"].tool-page .dr-serp__nums li{background:var(--surface);border-left:1px solid var(--line)}
body[data-sk-theme="anatomy"].tool-page .dr-serp__nums li:first-child{border-left:0}
body[data-sk-theme="anatomy"].tool-page .dr-bars{gap:14px}
body[data-sk-theme="anatomy"].tool-page .dr-bars__col{border:1px solid var(--line)!important;border-radius:16px!important;background:var(--surface)!important}
body[data-sk-theme="anatomy"].tool-page .dr-can{gap:14px}
body[data-sk-theme="anatomy"].tool-page .dr-can__col{border:1px solid var(--line)!important;background:var(--surface)!important}
body[data-sk-theme="anatomy"].tool-page .dr-serp__t,
body[data-sk-theme="anatomy"].tool-page .dr-bars__t,
body[data-sk-theme="anatomy"].tool-page .dr-sfeat__head,
body[data-sk-theme="anatomy"].tool-page .tk-bots th{border-color:var(--line)!important;border-width:1px!important}

/* Полоса разметки внутри протокола */
body[data-sk-theme="anatomy"].tool-page .dr-ms__bar{
  padding:12px 16px;border:1px solid var(--line);border-radius:12px;
  background:color-mix(in srgb,var(--bg) 92%,transparent);backdrop-filter:blur(8px);
}
body[data-sk-theme="anatomy"].tool-page .dr-ms .dm,
body[data-sk-theme="anatomy"].tool-page .dr-sw,
body[data-sk-theme="anatomy"].tool-page .dr-hero-demo__quote mark{border-radius:3px}

/* Автор — компактная карточка, а не пустая полоса */
body[data-sk-theme="anatomy"].tool-page main>.section:has(>.shell>.tool-author){padding-block:28px 44px;border-top:1px solid var(--line)}
body[data-sk-theme="anatomy"].tool-page .tool-author{
  margin:0;padding:18px 24px;border:1px solid var(--line);border-radius:16px;
  background:var(--surface);box-shadow:0 18px 40px -36px rgba(32,56,47,.35);
}
body[data-sk-theme="anatomy"].tool-page .tool-author img{border-radius:50%}

/* «Дальше»: карточки читаются как переходы */
body[data-sk-theme="anatomy"].tool-page section[aria-labelledby="next-title"] .tk__group h3{
  display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:0;
}
body[data-sk-theme="anatomy"].tool-page section[aria-labelledby="next-title"] .tk__group h3::after{
  content:"→" / "";flex:none;color:var(--accent);font-size:18px;line-height:1.2;transition:transform .16s;
}
body[data-sk-theme="anatomy"].tool-page section[aria-labelledby="next-title"] .tk__group:hover h3::after{transform:translateX(4px)}

/* Тёмная тема: карточки — приподнятая поверхность, а не светлая бумага */
html[data-theme-effective="dark"] body[data-sk-theme="anatomy"].tool-page .tool-form{
  background:var(--surface)!important;border-top-color:var(--accent)!important;
}
html[data-theme-effective="dark"] body[data-sk-theme="anatomy"].tool-page .tk__group{background:var(--surface)}
html[data-theme-effective="dark"] body[data-sk-theme="anatomy"].tool-page section[aria-labelledby="next-title"] .tk__group{background:var(--surface)}

@media(max-width:1080px){
  body[data-sk-theme="anatomy"].tool-page section.faq .faq-layout>header{position:static}
}
@media(max-width:760px){
  body[data-sk-theme="anatomy"].tool-page section.faq .faq-layout>header{padding-top:20px}
  body[data-sk-theme="anatomy"].tool-page section.faq .faq-layout>header h2{font-size:clamp(27px,7.2vw,34px)}
  body[data-sk-theme="anatomy"].tool-page .tool-author{padding:16px 18px}
  body[data-sk-theme="anatomy"].tool-page .dr-serp__nums li b{font-size:clamp(34px,9.6vw,44px)}
}

/* Строка про остаток бесплатных проверок */
body[data-sk-theme="anatomy"].tool-page .tool-form__limit{
  margin-top:6px;font-size:12.5px;line-height:1.5;color:var(--muted);
}
body[data-sk-theme="anatomy"].tool-page .tool-form__limit.is-empty{color:var(--accent-ink);font-weight:600}

/* ─── «После проверки вы увидите»: ровная сетка карточек ───────────────────
   Как на остальных инструментах: подпись отдельной строкой, признаки —
   карточками в сетке с равными зазорами, без рваного переноса чипов. */
body[data-sk-theme="anatomy"].tool-page .tk__after{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  align-items:stretch;
  align-content:start;
  margin-top:24px;
  padding-top:18px;
  border-top:1px solid var(--line);
}
body[data-sk-theme="anatomy"].tool-page .tk__after-l{
  grid-column:1/-1;
  margin:0 0 4px;
  color:var(--quiet);
  font-size:12px;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
}
body[data-sk-theme="anatomy"].tool-page .tk__after-i{
  display:flex;
  align-items:center;
  gap:7px;
  min-height:44px;
  padding:8px 11px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--paper);
  color:var(--text);
  font-size:13px;
  line-height:1.3;
}
body[data-sk-theme="anatomy"].tool-page .tk__after-i::before{
  content:"";
  flex:none;
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--accent);
  opacity:.55;
}
body[data-sk-theme="anatomy"].tool-page .tk__after-n{
  grid-column:1/-1;
  margin:12px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
}
@media(min-width:620px){
  body[data-sk-theme="anatomy"].tool-page .tk__after{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* ─── Тёмная тема: плашки «После проверки вы увидите» ─────────────────────
   Правила выше красят карточки в --paper, а в тёмной теме --paper — это
   светлая «бумага» графиков (oklch 93.7%). На почти белом --text получалось
   1.03:1, карточки выпадали из тёмной темы. Возвращаем им тёмную поверхность
   явными значениями палитры v4 и дублируем триггер: посетитель, выбравший
   тему вручную, получает и data-theme-effective, и data-color-scheme. */
html[data-theme-effective="dark"] body[data-sk-theme="anatomy"].tool-page .tk__after,
html[data-color-scheme="dark"] body[data-sk-theme="anatomy"].tool-page .tk__after{
  border-top-color:#3A4238;
}
html[data-theme-effective="dark"] body[data-sk-theme="anatomy"].tool-page .tk__after-l,
html[data-color-scheme="dark"] body[data-sk-theme="anatomy"].tool-page .tk__after-l{
  color:#A6B1A8;
}
html[data-theme-effective="dark"] body[data-sk-theme="anatomy"].tool-page .tk__after-i,
html[data-color-scheme="dark"] body[data-sk-theme="anatomy"].tool-page .tk__after-i{
  background:#1D211C;
  border-color:#3A4238;
  color:#E9EEE7;
}
html[data-theme-effective="dark"] body[data-sk-theme="anatomy"].tool-page .tk__after-i::before,
html[data-color-scheme="dark"] body[data-sk-theme="anatomy"].tool-page .tk__after-i::before{
  background:#E3A08A;
  opacity:1;
}
html[data-theme-effective="dark"] body[data-sk-theme="anatomy"].tool-page .tk__after-n,
html[data-color-scheme="dark"] body[data-sk-theme="anatomy"].tool-page .tk__after-n{
  color:#A6B1A8;
}
