/* ============================================================================
   tool-pages-v57.css — мягкий стиль v4.3 для пяти старых страниц инструментов:
     tools/ai-audit.html
     tools/generator-promptov.html
     tools/katalog-tehnik-promptinga.html
     tools/llms-txt-generator.html
     tools/seo-analiz-teksta.html

   Подключается последним перед chrome.css, работает только при классе
   body.tool-v57. Меняется только оформление: разметка, тексты, id, data-атрибуты,
   обработчики и API остаются прежними. Слой не переписывает tool-base.css,
   tool-kit.css и llms-generator.css — только переопределяет их своим скоупом,
   как detector-v53.css сделал для детектора ИИ-текста.

   Порядок внутри файла:
     0.  токены, шрифт, фон страницы
     1.  типографика и секционный ритм
     2.  hero инструмента
     3.  блок запуска и форма
     4.  статусы, ошибки, вкладки
     5.  результат и контейнеры отчёта
     6.  карточки, списки, таблицы (в том числе каталог техник kt-*)
     7.  FAQ, автор, «Дальше»
     8.  генератор промптов (pg-*)
     9.  генератор llms.txt (gen-*)
     10. общие мелочи и доступность
     11. тёмная тема
     12. адаптив
   ========================================================================= */

/* ─── 0. Токены, шрифт, фон ──────────────────────────────────────────────── */

/* Шрифт и радиусы — всегда, независимо от темы. SKOnest/SKMono и радиусы 0
   приходят из site-tokens.css старой «Анатомии»; на этих страницах их быть
   не должно (TARGET-STYLE §3, §6). */
body.tool-v57{
  --font:Onest, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body:var(--font);
  --font-display:var(--font);
  --font-mono:var(--font);
  --sk-font:var(--font);
  --sk-mono:var(--font);
  --r1:12px;
  --r2:16px;
  --radius-sm:10px;
  --radius-md:16px;
  --radius-lg:18px;
  --radius-xl:22px;
  --container:1320px;
  --focus:0 0 0 3px rgba(185,71,37,.18);
  --green:#254D3E;
  font-family:var(--font);
  font-size:clamp(17px,1.25vw,18px);
  line-height:1.65;
}

/* Светлая палитра — та же, что в services-v43.css и detector-v53.css.
   Условия повторяют логику детектора: система светлая и нет явного выбора
   тёмной, либо посетитель сам выбрал светлую. */
@media (prefers-color-scheme: light){
  html:not([data-color-scheme="dark"]) body.tool-v57{
    --bg:#E7EBE6;
    --paper:#FFFFFF;
    --card:#FFFFFF;
    --soft:#EDF2E9;
    --surface:#EDF2E9;
    --surface-soft:#F1F5EE;
    --surface-deep:#F1F5EE;
    --warm:#F6EFE9;
    --surface-warm:#F6EFE9;
    --surface-sage:#EAF0E8;
    --ink:#20382F;
    --text:#20382F;
    --fg:#20382F;
    --muted:#59665E;
    --quiet:#53645A;
    --green:#254D3E;
    --accent:#B94725;
    --accent-hover:#A33F29;
    --accent-ink:#A33F29;
    --danger:#A33325;
    --line:#D6E0D3;
    --line-strong:#AEBDAF;
    --line-control:#AEBDAF;
    --paper-ink:#20382F;
    --paper-body:#20382F;
    --paper-meta:#59665E;
    --paper-line:#D6E0D3;
    --paper-line-strong:#AEBDAF;
    --tk-line:#E3EAE1;
    --tk-line-2:#C9D6C8;
  }
}
html[data-color-scheme="light"] body.tool-v57{
  --bg:#E7EBE6;
  --paper:#FFFFFF;
  --card:#FFFFFF;
  --soft:#EDF2E9;
  --surface:#EDF2E9;
  --surface-soft:#F1F5EE;
  --surface-deep:#F1F5EE;
  --warm:#F6EFE9;
  --surface-warm:#F6EFE9;
  --surface-sage:#EAF0E8;
  --ink:#20382F;
  --text:#20382F;
  --fg:#20382F;
  --muted:#59665E;
  --quiet:#53645A;
  --green:#254D3E;
  --accent:#B94725;
  --accent-hover:#A33F29;
  --accent-ink:#A33F29;
  --danger:#A33325;
  --line:#D6E0D3;
  --line-strong:#AEBDAF;
  --line-control:#AEBDAF;
  --paper-ink:#20382F;
  --paper-body:#20382F;
  --paper-meta:#59665E;
  --paper-line:#D6E0D3;
  --paper-line-strong:#AEBDAF;
  --tk-line:#E3EAE1;
  --tk-line-2:#C9D6C8;
}

body.tool-v57{
  background:
    radial-gradient(900px 620px at 6% -6%, rgba(185,71,37,.055), transparent 62%),
    radial-gradient(820px 560px at 96% -2%, rgba(37,77,62,.075), transparent 64%),
    var(--bg);
  color:var(--text);
}
body.tool-v57 main{color:var(--text)}

/* Служебные подписи остаются Onest: в теме старого шаблона они были моноширинными. */
body.tool-v57 :is(.eyebrow,.tk__head-lead,.tk-rule,.tk-marked-wrap .tk-marked,
  .pg-check-card i,.pg-out,.tk__count,.tk__after-l){
  font-family:var(--font);
}

/* ─── 1. Типографика и ритм секций ──────────────────────────────────────── */

body.tool-v57 main h1,
body.tool-v57 main h2,
body.tool-v57 main h3,
body.tool-v57 main h4{color:var(--text);text-align:left}

body.tool-v57 main h2{
  font-weight:550;
  letter-spacing:-.045em;
  text-wrap:balance;
}
body.tool-v57 main h3{
  font-size:clamp(19px,1.5vw,22px);
  font-weight:550;
  letter-spacing:-.02em;
  line-height:1.3;
}
body.tool-v57 main p{color:inherit}

/* Секции: 76px на десктопе, 48px на телефоне (TARGET-STYLE §4). */
body.tool-v57 main > .section,
body.tool-v57 main > .tool-section{
  padding-block:clamp(48px,6vw,76px);
  border-top:1px solid var(--line);
}
body.tool-v57 main > .tool-hero + .section,
body.tool-v57 main > .tool-hero + .tool-section{
  border-top:0;
  padding-top:clamp(32px,4vw,48px);
}
body.tool-v57 main > .section.tk--out{padding-block:0 8px;border-top:0}
body.tool-v57 main > .section.tk--out:not(:empty){padding-block:clamp(24px,3vw,36px) 8px}

/* Разделительная линия секции — только между смысловыми блоками. */
body.tool-v57 main > .section + .section,
body.tool-v57 main > .tool-section + .tool-section{border-top:1px solid var(--line)}

/* Заголовки глав: eyebrow сверху, h2, лид справа/снизу. */
body.tool-v57 .tk__head{
  display:grid;
  gap:12px;
  max-width:920px;
  margin:0 0 clamp(24px,3vw,34px);
}
body.tool-v57 .tk__head > .eyebrow{
  display:block;
  margin:0;
  font-size:12px;
  font-weight:600;
  letter-spacing:.07em;
  text-transform:uppercase;
  color:var(--accent-ink);
}
body.tool-v57 .tk__head > h2{margin:0;max-width:24ch}
body.tool-v57 .tk__head-lead{
  margin:0;
  max-width:66ch;
  color:var(--muted);
  font-size:16px;
  line-height:1.62;
}

/* Заголовок секции прямо в .shell (генератор, каталог, llms.txt). */
body.tool-v57 main > .section > .shell > h2,
body.tool-v57 main > .tool-section > .shell > h2{
  margin:0;
  max-width:26ch;
}
body.tool-v57 main > .section > .shell > h2 + p,
body.tool-v57 main > .section > .shell > p,
body.tool-v57 main > .tool-section > .shell > p{
  max-width:74ch;
  margin-top:14px;
  color:var(--muted);
  font-size:16px;
  line-height:1.65;
}
body.tool-v57 main .shell > p + p{margin-top:12px}

/* Текстовая ссылка в теле. */
body.tool-v57 main p a,
body.tool-v57 main li a:not(.ghost-btn):not(.tk__link-card){
  color:var(--accent-ink);
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}
body.tool-v57 main p a:hover,
body.tool-v57 main li a:not(.ghost-btn):not(.tk__link-card):hover{color:var(--accent-hover)}

/* ─── 2. Hero инструмента ───────────────────────────────────────────────── */

/* Размеры h1/лида и вертикальные отступы hero задаёт chrome.css тем же
   контрактом, что у остальных внутренних страниц. Здесь — только воздух
   вокруг и акценты. */
body.tool-v57 .tool-hero{
  background:linear-gradient(180deg,
    color-mix(in srgb, var(--surface) 58%, var(--bg)) 0%,
    var(--bg) 92%);
  border-bottom:1px solid var(--line);
}
body.tool-v57 .tool-hero .eyebrow{
  display:block;
  margin:0 0 12px;
  font-family:var(--font);
  font-size:12px;
  font-weight:600;
  letter-spacing:.07em;
  text-transform:uppercase;
  color:var(--accent-ink);
}
/* Ширину заголовка задаёт контейнер: никаких max-width в ch — они оставляли
   заголовок узкой колонкой с пустотой справа. */
body.tool-v57 .tool-hero h1{
  max-width:none;
  color:var(--text);
}
body.tool-v57 .tool-hero__lead{
  color:var(--muted);
}
body.tool-v57 .tool-hero__lead + .tool-hero__lead{margin-top:10px}
body.tool-v57 .tool-hero__lead a{color:var(--accent-ink)}

/* Показатели инструмента: открытая строка крупных чисел на волосяной линии. */
body.tool-v57 .hero-caps{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:0;
  margin:clamp(28px,3.4vw,40px) 0 0;
  padding:22px 0 0;
  border:0;
  border-top:1px solid var(--line-strong);
  list-style:none;
}
body.tool-v57 .hero-caps li{
  display:block;
  margin:0;
  padding:0 24px 0 0;
  position:relative;
}
body.tool-v57 .hero-caps li + li{
  padding-left:24px;
  border-left:1px solid var(--line);
}
body.tool-v57 .hero-caps li + li::before{display:none}
body.tool-v57 .hero-caps b{
  display:block;
  color:var(--text);
  font-size:clamp(30px,3.2vw,44px);
  font-weight:450;
  letter-spacing:-.05em;
  line-height:1;
  font-variant-numeric:tabular-nums;
}
body.tool-v57 .hero-caps span{
  display:block;
  margin-top:7px;
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
}

/* ─── 3. Блок запуска и форма ───────────────────────────────────────────── */

body.tool-v57 .tool-launch__copy .eyebrow{
  display:block;
  margin:0 0 12px;
  font-family:var(--font);
  font-size:12px;
  font-weight:600;
  letter-spacing:.07em;
  text-transform:uppercase;
  color:var(--accent-ink);
}
body.tool-v57 .tool-launch__copy h2{margin:0;max-width:18ch}
body.tool-v57 .tool-launch__copy > p:not(.eyebrow){
  max-width:52ch;
  margin:16px 0 0;
  color:var(--muted);
  font-size:16px;
  line-height:1.62;
}

body.tool-v57 .tool-form{
  display:grid;
  gap:18px;
  align-self:start;
  padding:clamp(20px,2.4vw,30px) clamp(20px,2.4vw,32px);
  border:1px solid var(--line);
  border-top:3px solid var(--accent);
  border-radius:18px;
  background:var(--paper);
  box-shadow:0 2px 4px rgba(32,56,47,.04), 0 26px 56px -46px rgba(32,56,47,.5);
}
body.tool-v57 .tool-form__field{display:grid;gap:8px}
body.tool-v57 .tool-form__field > label,
body.tool-v57 .tool-form label{
  color:var(--text);
  font-size:13px;
  font-weight:600;
  line-height:1.45;
}
body.tool-v57 .tool-form__hint,
body.tool-v57 .tool-form__note{
  margin:0;
  color:var(--quiet);
  font-size:12.5px;
  line-height:1.55;
}
body.tool-v57 .tool-form__submit{
  justify-self:stretch;
  width:100%;
  font-size:15px;
}

/* Поле адреса: рамка идёт по группе, фокус подсвечивает её целиком. */
body.tool-v57 :is(.tool-url,.url-group){
  display:flex;
  align-items:stretch;
  min-width:0;
  border:1px solid var(--line-strong);
  border-radius:12px!important;
  background:var(--bg);
  transition:border-color .16s ease, box-shadow .16s ease;
}
body.tool-v57 :is(.tool-url,.url-group):focus-within{
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(185,71,37,.16);
}
body.tool-v57 :is(.tool-url__prefix,.url-group__prefix){
  display:flex;
  align-items:center;
  padding-left:14px;
  color:var(--quiet);
  font-family:var(--font);
  font-size:15px;
  white-space:nowrap;
  user-select:none;
}
body.tool-v57 :is(.tool-url__input,.gen-url-input){
  flex:1;
  min-width:0;
  min-height:52px;
  padding:12px 14px 12px 4px;
  border:0;
  border-radius:0 12px 12px 0!important;
  background:transparent;
  color:var(--text);
  font-family:inherit;
  font-size:16px!important;
  line-height:1.45;
  outline:none;
}
body.tool-v57 :is(.tool-url__input,.gen-url-input)::placeholder{color:var(--quiet)}
body.tool-v57 :is(.tool-url__input,.gen-url-input):focus,
body.tool-v57 :is(.tool-url__input,.gen-url-input):focus-visible{
  outline:none;
  box-shadow:none;
}

/* Все поля ввода на странице: белый фон, рамка, радиус 10–12.
   Радиус приходит с !important: старый слой ставит input/textarea/select
   радиус 0 тем же приёмом. */
body.tool-v57 :is(.tk__input,.tk__textarea,.pg-input,.form-input,.form-textarea,
  .gen-captcha__input,.tool-cap__input){
  width:100%;
  min-height:52px;
  padding:13px 14px;
  border:1px solid var(--line-strong);
  border-radius:12px!important;
  background:var(--bg);
  color:var(--text);
  font-family:inherit;
  font-size:16px!important;
  line-height:1.5;
  outline:none;
  transition:border-color .16s ease, box-shadow .16s ease;
}
body.tool-v57 :is(.tk__textarea,.form-textarea){min-height:200px;resize:vertical}
body.tool-v57 :is(input,textarea,select):focus-visible{border-color:var(--accent);box-shadow:0 0 0 3px rgba(185,71,37,.16);outline:none}
body.tool-v57 :is(.tk__input,.tk__textarea,.pg-input,.form-input,.form-textarea,
  .gen-captcha__input,.tool-cap__input):focus{
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(185,71,37,.16);
}
body.tool-v57 :is(input,textarea,select)::placeholder{color:var(--quiet);opacity:1}
body.tool-v57 select.pg-input,
body.tool-v57 .pg-input:is(select){
  appearance:none;
  background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),
    linear-gradient(135deg,var(--muted) 50%,transparent 50%);
  background-position:calc(100% - 20px) calc(50% - 2px), calc(100% - 14px) calc(50% - 2px);
  background-size:6px 6px, 6px 6px;
  background-repeat:no-repeat;
  padding-right:38px;
}

/* Капча: вопрос акцентной строкой, ответ и смена вопроса — в ряд. */
body.tool-v57 .tool-cap__q{
  color:var(--accent-ink);
  font-weight:600;
  font-variant-numeric:tabular-nums;
}
body.tool-v57 .tool-cap__row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 12px;
}
body.tool-v57 .tool-cap__input{
  width:130px;
  flex:0 0 auto;
  min-height:48px;
}
body.tool-v57 .tool-cap__refresh{
  min-height:48px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:0 14px;
  border:1px solid var(--line-strong);
  border-radius:12px;
  background:transparent;
  color:var(--muted);
  font:inherit;
  font-size:13px;
  font-weight:550;
  cursor:pointer;
  transition:border-color .16s ease, color .16s ease, background .16s ease;
}
body.tool-v57 .tool-cap__refresh:hover{
  border-color:var(--accent);
  color:var(--accent-ink);
  background:var(--surface-warm);
}
body.tool-v57 .tool-cap__refresh svg{flex:none}

/* Кнопки: основная — залитая зелёная, вторичная — рамка.
   !important здесь не для красоты: site.css красит .button через !important
   (заливка var(--text) и радиус 0). Без своего !important слой не победит. */
body.tool-v57 .button,
body.tool-v57 .ghost-btn--primary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:48px;
  padding:0 20px;
  border:1px solid #254D3E!important;
  border-radius:12px!important;
  background:#254D3E!important;
  color:#FFFFFF!important;
  font-family:inherit;
  font-size:15px;
  font-weight:600;
  line-height:1.2;
  text-align:center;
  text-decoration:none;
  box-shadow:none;
  cursor:pointer;
  transition:background .16s ease, border-color .16s ease, color .16s ease;
}
body.tool-v57 .button:hover,
body.tool-v57 .ghost-btn--primary:hover{
  background:#1e4034!important;
  border-color:#1e4034!important;
  color:#FFFFFF!important;
}
body.tool-v57 .button:disabled,
body.tool-v57 .button[aria-disabled="true"],
body.tool-v57 .ghost-btn--primary:disabled{
  background:var(--surface)!important;
  border-color:var(--line)!important;
  color:var(--quiet)!important;
  cursor:not-allowed;
}
body.tool-v57 .ghost-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:48px;
  padding:0 18px;
  border:1px solid var(--line-strong)!important;
  border-radius:12px!important;
  background:transparent!important;
  color:var(--text)!important;
  font-family:inherit;
  font-size:14px;
  font-weight:600;
  line-height:1.2;
  text-decoration:none;
  cursor:pointer;
  transition:border-color .16s ease, color .16s ease, background .16s ease;
}
body.tool-v57 .ghost-btn:hover{
  border-color:var(--accent)!important;
  color:var(--accent-ink)!important;
  background:var(--surface-warm)!important;
}
body.tool-v57 .ghost-btn--plain{
  border-color:transparent!important;
  color:var(--muted)!important;
}
body.tool-v57 .ghost-btn--plain:hover{
  border-color:var(--line-strong)!important;
  background:var(--surface)!important;
  color:var(--text)!important;
}
body.tool-v57 .ghost-btn--sm{min-height:40px;padding:0 12px;font-size:13px}
/* .ghost-btn--primary — модификатор .ghost-btn, поэтому заливку возвращаем
   селектором из двух классов: иначе прозрачная рамка перебьёт заливку. */
body.tool-v57 .ghost-btn.ghost-btn--primary{
  background:#254D3E!important;
  border-color:#254D3E!important;
  border-radius:12px!important;
  color:#FFFFFF!important;
}
body.tool-v57 .ghost-btn.ghost-btn--primary:hover{
  background:#1e4034!important;
  border-color:#1e4034!important;
  color:#FFFFFF!important;
}
body.tool-v57 .button svg,
body.tool-v57 .ghost-btn svg{flex:none;width:16px;height:16px}
body.tool-v57 .tk__actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin-top:2px;
}

/* Ссылки-кнопки внутри рабочей области. */
body.tool-v57 .gen-manual-toggle button{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:0;
  border:0;
  background:none;
  color:var(--text);
  font:inherit;
  font-size:14px;
  font-weight:600;
  text-decoration:underline;
  text-decoration-color:var(--accent);
  text-underline-offset:6px;
  cursor:pointer;
}
body.tool-v57 .gen-manual-toggle button:hover{color:var(--accent-ink)}

/* Поле с пояснением «после анализа вы увидите»: ровная сетка карточек
   вместо рваного переноса чипов и больших зазоров между строками. */
body.tool-v57 .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.tool-v57 .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.tool-v57 .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.tool-v57 .tk__after-i::before{
  content:"";
  flex:none;
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--accent);
  opacity:.55;
}
body.tool-v57 .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.tool-v57 .tk__after{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* ─── 4. Статусы, ошибки, вкладки ───────────────────────────────────────── */

body.tool-v57 .tk__error,
body.tool-v57 .tool-form__error,
body.tool-v57 .gen-error{
  margin:0;
  padding:12px 14px;
  border:1px solid var(--danger);
  border-radius:12px;
  background:color-mix(in srgb, var(--danger) 8%, var(--paper));
  color:var(--danger);
  font-size:14px;
  line-height:1.55;
}
body.tool-v57 .tk__status{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
}
body.tool-v57 .tk__hint{
  margin:0;
  color:var(--quiet);
  font-size:13px;
  line-height:1.5;
}
body.tool-v57 .tk__label{
  display:block;
  margin-bottom:6px;
  color:var(--text);
  font-size:13px;
  font-weight:600;
}
body.tool-v57 .tk__label-note{color:var(--quiet);font-weight:400}
body.tool-v57 .tk__count{
  display:inline-block;
  margin-left:6px;
  color:var(--muted);
  font-variant-numeric:tabular-nums;
}

/* Вкладки «страница / текст». */
body.tool-v57 .tk__seg{
  display:flex;
  gap:4px;
  padding:4px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface-soft);
}
body.tool-v57 .tk__segbtn{
  flex:1 1 0;
  min-width:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:46px;
  padding:0 12px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:var(--muted);
  font:inherit;
  font-size:13.5px;
  font-weight:600;
  line-height:1.2;
  cursor:pointer;
  transition:background .16s ease, color .16s ease;
}
body.tool-v57 .tk__segbtn:hover{color:var(--text)}
body.tool-v57 .tk__segbtn.is-active{
  background:var(--green);
  color:#FFFFFF;
}
body.tool-v57 .tk__segbtn.is-active::after{display:none}
body.tool-v57 .tk__segbtn svg{flex:none}
body.tool-v57 .tk__pane{padding:0;border:0;background:transparent}

/* Подробности внутри формы («добавить целевой запрос»). */
body.tool-v57 .tk__adv{
  margin-top:4px;
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--bg);
}
body.tool-v57 .tk__adv > summary{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:32px;
  color:var(--text);
  font-size:13.5px;
  font-weight:600;
  cursor:pointer;
  list-style:none;
}
body.tool-v57 .tk__adv > summary::-webkit-details-marker{display:none}
body.tool-v57 .tk__adv > summary::before{
  content:"+";
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:20px;
  height:20px;
  flex:none;
  border:1px solid var(--line-strong);
  border-radius:50%;
  color:var(--accent-ink);
  font-size:14px;
  line-height:1;
}
body.tool-v57 .tk__adv[open] > summary::before{content:"–"}
body.tool-v57 .tk__adv .tk__label{margin-top:14px}
body.tool-v57 .tk__adv .tk__input{margin-top:2px}

/* ─── 5. Результат: контейнер, шапка, подача ────────────────────────────── */

body.tool-v57 .tk__result{
  display:grid;
  gap:20px;
  max-width:1180px;
  margin-inline:auto;
}
body.tool-v57 .tk__result > *{color:var(--text)}
body.tool-v57 .tk__result :is(h2,h3,h4){color:var(--text)}
body.tool-v57 .tk__result p,
body.tool-v57 .tk__result li,
body.tool-v57 .tk__result dd{color:var(--muted)}
body.tool-v57 .tk__result b,
body.tool-v57 .tk__result strong{color:var(--text)}
body.tool-v57 .tk__result a{
  color:var(--accent-ink);
  text-decoration:underline;
  text-underline-offset:3px;
}
body.tool-v57 .tk__result table{font-variant-numeric:tabular-nums}

/* Форма «пришлю разбор» под результатом разбора текста (появляется после
   прогона, поэтому в статике её не видно). */
body.tool-v57 .lead-form--tool{
  max-width:640px;
  margin:24px auto 0;
  padding:24px;
  border:1px solid var(--line);
  border-left:3px solid var(--accent);
  border-radius:0 16px 16px 0;
  background:var(--surface-warm);
}
body.tool-v57 .lead-form--tool .lead-form__label{font-size:15px;font-weight:600;color:var(--text)}
body.tool-v57 .lead-form--tool .lead-form__alt{color:var(--muted);font-size:13px;line-height:1.55}
body.tool-v57 .lead-form--tool .lead-form__consent{font-size:12px;color:var(--muted)}
body.tool-v57 .lead-form--tool .lead-form__row input{border-radius:10px!important}

/* ─── 6. Карточки, списки, таблицы ──────────────────────────────────────── */

/* Три карточки-роли (аудит ИИ-ботов). */
body.tool-v57 .tk__grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:16px;
  margin:0;
  padding:0;
  list-style:none;
  border:0;
  background:transparent;
}
body.tool-v57 .tk__grid > li{
  display:block;
  padding:24px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--paper);
  box-shadow:0 1px 2px rgba(32,56,47,.05);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
body.tool-v57 .tk__grid > li:hover{
  transform:translateY(-2px);
  border-color:var(--line-strong);
  box-shadow:0 18px 38px -32px rgba(32,56,47,.5);
}
body.tool-v57 .tk__grid h3{
  margin:0 0 8px;
  font-size:19px;
  font-weight:600;
  letter-spacing:-.02em;
  color:var(--text);
}
body.tool-v57 .tk__grid p{
  margin:0;
  color:var(--muted);
  font-size:15px;
  line-height:1.6;
}

/* Группы «что входит в разбор». */
body.tool-v57 .tk__groups{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:16px;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
}
body.tool-v57 .tk__group{
  padding:22px 22px 18px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--paper);
  box-shadow:0 1px 2px rgba(32,56,47,.05);
}
body.tool-v57 .tk__group h3{
  margin:0 0 14px;
  padding-bottom:12px;
  border-bottom:1px solid var(--line);
  font-size:13px;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--muted);
}
body.tool-v57 .tk__group ul{
  list-style:none;
  display:grid;
  gap:12px;
  margin:0;
  padding:0;
}
body.tool-v57 .tk__group li{display:grid;gap:2px}
body.tool-v57 .tk__group b{
  color:var(--text);
  font-size:15px;
  font-weight:600;
}
body.tool-v57 .tk__group span{
  color:var(--muted);
  font-size:13.5px;
  line-height:1.5;
}

/* Врезка «позиция с основанием» и «границы метода» (tool-kit.css). */
body.tool-v57 .tk-take{
  margin-top:22px;
  padding:18px 20px 18px 22px;
  border-left:3px solid var(--accent);
  border-radius:0 12px 12px 0;
  background:var(--surface-warm);
}
body.tool-v57 .tk-take__label{
  display:block;
  margin-bottom:8px;
  font-size:12px;
  font-weight:600;
  letter-spacing:.07em;
  text-transform:uppercase;
  color:var(--accent-ink);
}
body.tool-v57 .tk-take p{color:var(--text);font-size:15px;line-height:1.6}
body.tool-v57 .tk-scope{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:0;
  margin-top:10px;
  padding:0;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--paper);
  overflow:hidden;
}
body.tool-v57 .tk-scope > div{
  display:grid;
  gap:6px;
  padding:20px 22px;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
body.tool-v57 .tk-scope b{
  font-size:13px;
  font-weight:600;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--muted);
}
body.tool-v57 .tk-scope p,
body.tool-v57 .tk-scope span{color:var(--muted);font-size:15px;line-height:1.6}

/* Таблицы: контейнер с радиусом 16 и горизонтальной прокруткой. */
body.tool-v57 .kt-table-wrap{
  margin-top:22px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--paper);
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scrollbar-color:var(--line-strong) transparent;
}
body.tool-v57 .kt-table{
  width:100%;
  min-width:900px;
  border-collapse:collapse;
  font-size:14px;
  line-height:1.55;
  font-variant-numeric:tabular-nums;
}
body.tool-v57 .kt-table caption{
  padding:16px 18px;
  border-bottom:1px solid var(--line);
  color:var(--muted);
  font-size:13px;
  text-align:left;
  caption-side:top;
}
body.tool-v57 .kt-table th{
  padding:12px 16px!important;
  border-bottom:1px solid var(--line-strong);
  background:var(--surface-soft);
  color:var(--muted);
  font-size:12px;
  font-weight:600;
  letter-spacing:.03em;
  text-align:left!important;
  white-space:nowrap;
}
body.tool-v57 .kt-table td{
  padding:13px 16px!important;
  border-bottom:1px solid var(--line);
  color:var(--muted);
  vertical-align:top;
  text-align:left!important;
}
body.tool-v57 .kt-table tbody tr:last-child td{border-bottom:0}
body.tool-v57 .kt-table td:first-child{
  color:var(--text);
  font-weight:600;
  white-space:nowrap;
}
body.tool-v57 .kt-table tbody tr:hover td{background:color-mix(in srgb, var(--surface-soft) 70%, transparent)}
/* site-enhance.js оборачивает таблицу в свою прокручиваемую обёртку. Внутри
   нашего контейнера её внешние отступы лишние: рамку и радиус держит контейнер. */
body.tool-v57 .kt-table-wrap .anatomy-table-scroll{
  margin-block:0;
  max-width:100%;
  border-radius:0;
}
body.tool-v57 .kt-table-wrap .anatomy-table-hint{
  margin:0;
  padding:14px 16px 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}
body.tool-v57 .kt-table th:nth-child(1){width:15%}
body.tool-v57 .kt-table th:nth-child(2),
body.tool-v57 .kt-table th:nth-child(3),
body.tool-v57 .kt-table th:nth-child(4){width:21%}
body.tool-v57 .kt-table th:nth-child(5){width:17%}

/* Навигация по каталогу — чипы. */
body.tool-v57 .kt-nav{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:16px;
}
body.tool-v57 .kt-nav a{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:40px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--paper);
  color:var(--text);
  font-size:13.5px;
  font-weight:550;
  text-decoration:none;
  transition:border-color .16s ease, background .16s ease, color .16s ease;
}
body.tool-v57 .kt-nav a:hover{
  border-color:var(--accent);
  background:var(--surface-warm);
  color:var(--accent-ink);
}
body.tool-v57 .kt-nav a span{color:var(--quiet);font-variant-numeric:tabular-nums}
body.tool-v57 .kt-download{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:14px;
  margin-top:24px;
}
body.tool-v57 .kt-download__note{color:var(--quiet);font-size:13px}

/* Список «куда дальше» и подобные маркированные списки в секциях. */
body.tool-v57 main > .section > .shell > ul:not([class]){
  list-style:none;
  display:grid;
  gap:0;
  margin-top:20px;
  padding:0;
  border-top:1px solid var(--line);
}
body.tool-v57 main > .section > .shell > ul:not([class]) > li{
  padding:14px 0;
  border-bottom:1px solid var(--line);
  color:var(--muted);
  font-size:16px;
  line-height:1.6;
}
body.tool-v57 main > .section > .shell > ul:not([class]) > li > a{
  color:var(--accent-ink);
  font-weight:600;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}

/* Врезки-«спецификации» (llms.txt). */
body.tool-v57 .spec-list{
  margin-top:24px;
  padding:0;
  border-top:1px solid var(--line-strong);
}
body.tool-v57 .spec-list > div{
  display:grid;
  gap:4px 28px;
  padding:18px 0;
  border-bottom:1px solid var(--line);
}
body.tool-v57 .spec-list dt{
  color:var(--text);
  font-size:15px;
  font-weight:600;
}
body.tool-v57 .spec-list dd{
  margin:0;
  color:var(--muted);
  font-size:15px;
  line-height:1.6;
}
@media (min-width:60rem){
  body.tool-v57 .spec-list > div{grid-template-columns:240px minmax(0,1fr)}
}

/* Порядок шагов (llms.txt). */
body.tool-v57 .step-register{
  list-style:none;
  display:grid;
  margin:26px 0 0;
  padding:0;
  border-top:1px solid var(--line-strong);
}
body.tool-v57 .step-register li{
  display:grid;
  grid-template-columns:36px minmax(0,1fr);
  gap:4px 14px;
  padding:18px 0;
  border-bottom:1px solid var(--line);
}
body.tool-v57 .step-register li > span{
  grid-row:1 / 3;
  padding-top:3px;
  color:var(--accent-ink);
  font-size:12px;
  font-weight:600;
  font-variant-numeric:tabular-nums;
}
body.tool-v57 .step-register h3{
  margin:0;
  font-size:18px;
  font-weight:600;
  letter-spacing:-.02em;
}
body.tool-v57 .step-register p{
  margin:0;
  max-width:70ch;
  color:var(--muted);
  font-size:15px;
  line-height:1.6;
}
body.tool-v57 .limits-line{
  display:flex;
  flex-wrap:wrap;
  gap:8px 16px;
  margin-top:24px;
  padding-top:16px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:13px;
}
body.tool-v57 .limits-line strong{color:var(--text);font-weight:600}

/* Ситуации «когда не сработает» (llms.txt). */
body.tool-v57 .situation-grid{
  margin-top:22px;
  padding:0;
  border-top:1px solid var(--line-strong);
}
body.tool-v57 .situation-grid article{
  display:grid;
  grid-template-columns:32px minmax(0,1fr);
  gap:6px 14px;
  padding:20px 0;
  border-bottom:1px solid var(--line);
}
body.tool-v57 .situation-grid article > span{
  grid-row:1 / 3;
  padding-top:3px;
  color:var(--accent-ink);
  font-size:12px;
  font-weight:600;
  font-variant-numeric:tabular-nums;
}
body.tool-v57 .situation-grid h3{
  margin:0;
  font-size:18px;
  font-weight:600;
  letter-spacing:-.02em;
}
body.tool-v57 .situation-grid p{
  margin:0;
  color:var(--muted);
  font-size:15px;
  line-height:1.6;
}
body.tool-v57 .gen-note{
  max-width:74ch;
  margin-top:26px;
  padding:16px 20px;
  border:1px solid var(--line);
  border-left:3px solid var(--accent);
  border-radius:0 12px 12px 0;
  background:var(--surface-warm);
  color:var(--muted);
  font-size:15px;
  line-height:1.6;
}
body.tool-v57 .gen-note strong{color:var(--text)}
body.tool-v57 .article-cta{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:14px 24px;
  margin-top:32px;
  padding-top:22px;
  border-top:1px solid var(--line);
}
body.tool-v57 .article-cta p{max-width:46ch;color:var(--muted);font-size:15px;line-height:1.6}

/* ─── 7. FAQ, автор, «Дальше» ───────────────────────────────────────────── */

body.tool-v57 main > .section.faq,
body.tool-v57 main > .tool-section.faq{
  background:var(--surface-soft);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
body.tool-v57 .faq-layout{
  display:grid;
  gap:clamp(24px,3.4vw,48px);
  align-items:start;
}
body.tool-v57 .faq-layout > header{
  position:sticky;
  top:calc(var(--chrome-header-h, 70px) + 24px);
}
body.tool-v57 .faq-layout > header .eyebrow{
  display:block;
  margin:0 0 12px;
  font-family:var(--font);
  font-size:12px;
  font-weight:600;
  letter-spacing:.07em;
  text-transform:uppercase;
  color:var(--accent-ink);
}
body.tool-v57 .faq-layout > header h2{margin:0;max-width:20ch}
body.tool-v57 .faq-layout > header > p:last-child{
  max-width:40ch;
  margin-top:16px;
  color:var(--muted);
  font-size:15px;
  line-height:1.6;
}
body.tool-v57 .faq-list{
  display:grid;
  gap:10px;
  border:0;
  background:transparent;
}
body.tool-v57 .faq-list details{
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--paper);
  box-shadow:0 1px 2px rgba(32,56,47,.05);
  transition:border-color .16s ease, box-shadow .16s ease;
}
body.tool-v57 .faq-list details[open]{
  border-color:var(--line-strong);
  box-shadow:0 18px 38px -34px rgba(32,56,47,.45);
}
body.tool-v57 .faq-list summary{
  display:grid;
  grid-template-columns:28px minmax(0,1fr) 22px;
  align-items:start;
  gap:12px;
  min-height:64px;
  padding:18px 20px;
  color:var(--text);
  font-size:16px;
  font-weight:550;
  line-height:1.4;
  list-style:none;
  cursor:pointer;
}
body.tool-v57 .faq-list summary::-webkit-details-marker{display:none}
body.tool-v57 .faq-list summary span{
  margin:0;
  color:var(--accent-ink);
  font-size:12px;
  font-weight:600;
  line-height:1.6;
  font-variant-numeric:tabular-nums;
}
body.tool-v57 .faq-list summary i{
  position:relative;
  width:22px;
  height:22px;
  margin-top:1px;
  border:1px solid var(--line-strong);
  border-radius:50%;
  color:var(--accent-ink);
}
body.tool-v57 .faq-list summary i::before,
body.tool-v57 .faq-list summary i::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:9px;
  height:1.5px;
  border-radius:1px;
  background:currentColor;
  transform:translate(-50%,-50%);
}
body.tool-v57 .faq-list summary i::after{transform:translate(-50%,-50%) rotate(90deg)}
body.tool-v57 .faq-list details[open] summary i::after{transform:translate(-50%,-50%) rotate(0)}
body.tool-v57 .faq-list details > div{padding:0 20px 20px 60px}
body.tool-v57 .faq-list details > div p{
  max-width:var(--measure,66rem);
  margin:0;
  color:var(--muted);
  font-size:15px;
  line-height:1.65;
}
body.tool-v57 .faq-list details > div p + p{margin-top:10px}
body.tool-v57 .faq-list details > div a{color:var(--accent-ink)}

/* Автор инструмента — компактная карточка. */
body.tool-v57 main > .section:has(> .shell > .tool-author){padding-block:clamp(32px,4vw,44px)}
body.tool-v57 .tool-author{
  display:flex;
  align-items:center;
  gap:16px;
  margin:0;
  padding:18px 22px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--paper);
  box-shadow:0 1px 2px rgba(32,56,47,.05);
}
body.tool-v57 .tool-author img{
  flex:none;
  width:56px;
  height:56px;
  border-radius:50%;
  object-fit:cover;
}
body.tool-v57 .tool-author strong{display:block;font-size:15px;font-weight:600;color:var(--text)}
body.tool-v57 .tool-author p{margin-top:2px;color:var(--muted);font-size:13px;line-height:1.5}
body.tool-v57 .tool-author p a{color:var(--accent-ink);text-decoration:underline;text-underline-offset:3px}

/* «Дальше» — карточки-переходы. */
body.tool-v57 main > .section.tk__next,
body.tool-v57 main > .tool-section.tk__next{background:var(--surface-warm)}
body.tool-v57 .tk__links{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:14px;
}
body.tool-v57 .tk__link-card{
  display:block;
  padding:22px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--paper);
  text-decoration:none;
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
body.tool-v57 .tk__link-card:hover{
  transform:translateY(-2px);
  border-color:var(--accent);
  box-shadow:0 20px 42px -34px rgba(32,56,47,.5);
}
body.tool-v57 .tk__link-card h3{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin:0 0 8px;
  font-size:17px;
  font-weight:600;
  letter-spacing:-.02em;
  color:var(--text);
}
body.tool-v57 .tk__link-card h3::after{
  content:"→";
  flex:none;
  color:var(--accent);
  font-size:17px;
  line-height:1.3;
  transition:transform .16s ease;
}
body.tool-v57 .tk__link-card:hover h3::after{transform:translateX(4px)}
body.tool-v57 .tk__link-card p{margin:0;color:var(--muted);font-size:14px;line-height:1.55}

/* ─── 8. Генератор промптов (pg-*) ──────────────────────────────────────── */

body.tool-v57 .pg-modes{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin:0 0 24px;
  padding:5px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--paper);
  width:fit-content;
  max-width:100%;
}
body.tool-v57 .pg-mode{
  min-height:44px;
  padding:0 18px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:var(--muted);
  font:inherit;
  font-size:14px;
  font-weight:600;
  line-height:1.2;
  cursor:pointer;
  transition:background .16s ease, color .16s ease;
}
body.tool-v57 .pg-mode:hover{color:var(--text)}
body.tool-v57 .pg-mode[aria-pressed="true"]{
  background:var(--green);
  border-color:var(--green);
  color:#FFFFFF;
}
body.tool-v57 .pg-presets{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-bottom:20px;
}
body.tool-v57 .pg-presets > span{color:var(--quiet);font-size:13px;margin-right:2px}
body.tool-v57 .pg-preset{
  min-height:38px;
  padding:0 14px;
  border:1px solid var(--line-strong);
  border-radius:999px;
  background:var(--paper);
  color:var(--muted);
  font:inherit;
  font-size:13px;
  font-weight:550;
  line-height:1.2;
  cursor:pointer;
  transition:border-color .16s ease, color .16s ease, background .16s ease;
}
body.tool-v57 .pg-preset:hover{
  border-color:var(--accent);
  background:var(--surface-warm);
  color:var(--accent-ink);
}
body.tool-v57 .pg-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:clamp(20px,3vw,36px);
  align-items:start;
}
body.tool-v57 .pg-form-col{
  padding:clamp(18px,2.2vw,26px);
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--paper);
  box-shadow:0 1px 2px rgba(32,56,47,.05);
}
body.tool-v57 .pg-preview-col{
  position:sticky;
  top:calc(var(--chrome-header-h, 70px) + 20px);
  padding:clamp(18px,2.2vw,26px);
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--surface-soft);
}
body.tool-v57 .pg-preview-col > h3{
  margin:0 0 12px;
  font-size:13px;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--muted);
}
body.tool-v57 .pg-field{margin-bottom:16px}
body.tool-v57 .pg-field:last-child{margin-bottom:0}
body.tool-v57 .pg-field > label{
  display:block;
  margin-bottom:6px;
  color:var(--muted);
  font-size:13px;
  font-weight:550;
  line-height:1.45;
}
body.tool-v57 .pg-field > label b{color:var(--text);font-weight:600}
body.tool-v57 .pg-input{background:var(--bg)}
body.tool-v57 textarea.pg-input{min-height:88px;resize:vertical;line-height:1.55}
body.tool-v57 .pg-hint{
  margin:6px 0 0;
  color:var(--quiet);
  font-size:12.5px;
  line-height:1.5;
}
body.tool-v57 .pg-set{
  margin:0 0 16px;
  padding:18px 18px 6px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--bg);
}
body.tool-v57 .pg-set > legend{
  padding:0 8px;
  color:var(--muted);
  font-size:13px;
  font-weight:550;
}
body.tool-v57 .pg-set > legend b{color:var(--text);font-weight:600}
body.tool-v57 .pg-grid2{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
body.tool-v57 .pg-out{
  width:100%;
  min-height:320px;
  margin:0;
  padding:16px;
  border:1px solid var(--line-strong);
  border-radius:12px!important;
  background:var(--paper);
  color:var(--text);
  font-family:var(--font);
  font-size:14px;
  line-height:1.65;
  resize:vertical;
}
body.tool-v57 .pg-out:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(185,71,37,.16)}
body.tool-v57 .pg-map{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:6px 14px;
  margin:12px 0 0;
  padding:0;
}
body.tool-v57 .pg-map li{color:var(--quiet);font-size:12.5px}
body.tool-v57 .pg-map li span{display:inline-block;width:1.2em;color:var(--quiet)}
body.tool-v57 .pg-map li.is-on{color:var(--accent-ink);font-weight:600}
body.tool-v57 .pg-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin-top:16px;
}
body.tool-v57 .pg-actions .is-done{
  border-color:var(--green);
  background:var(--green);
  color:#FFFFFF;
}
body.tool-v57 .pg-saved{color:var(--quiet);font-size:12.5px;opacity:0;transition:opacity .3s ease}
body.tool-v57 .pg-saved.is-on{opacity:1}
body.tool-v57 .pg-next{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid var(--line);
}
body.tool-v57 .pg-clear-row{margin-top:8px}
body.tool-v57 .pg-clear{
  min-height:40px;
  padding:0;
  border:0;
  background:transparent;
  color:var(--quiet);
  font:inherit;
  font-size:13px;
  text-decoration:underline;
  text-underline-offset:3px;
  cursor:pointer;
}
body.tool-v57 .pg-clear:hover{color:var(--accent-ink)}
body.tool-v57 .pg-sum{margin:0 0 6px;line-height:1.6}
body.tool-v57 .pg-sum--ok{color:var(--accent-ink);font-weight:600}
body.tool-v57 .pg-sum--attn{color:var(--accent-ink);font-weight:600}
body.tool-v57 .pg-sum--na{color:var(--quiet)}
body.tool-v57 .pg-group{
  margin:22px 0 10px;
  color:var(--muted);
  font-size:12px;
  font-weight:600;
  letter-spacing:.07em;
  text-transform:uppercase;
}
body.tool-v57 .pg-line{margin:0 0 8px;line-height:1.55}
body.tool-v57 .pg-line span{display:inline-block;width:1.4em;color:var(--accent-ink)}
body.tool-v57 .pg-line--na{color:var(--quiet)}
body.tool-v57 .pg-finding{
  margin-bottom:14px;
  padding:18px 20px;
  border:1px solid var(--line);
  border-top:2px solid var(--accent);
  border-radius:0 0 14px 14px;
  background:var(--paper);
}
body.tool-v57 .pg-finding--block{border-top-color:var(--danger)}
body.tool-v57 .pg-finding--warn{border-top-color:#8A6A18}
body.tool-v57 .pg-finding--note{border-top-color:var(--green)}
body.tool-v57 .pg-finding__title{
  margin:0 0 8px;
  font-size:16px;
  font-weight:600;
  letter-spacing:-.015em;
  color:var(--text);
}
body.tool-v57 .pg-finding__title span{display:inline-block;width:1.2em;color:var(--accent-ink)}
body.tool-v57 .pg-finding__why{margin:0 0 8px;color:var(--muted);font-size:14px;line-height:1.6}
body.tool-v57 .pg-finding__fix{margin:0;color:var(--text);font-size:14px;line-height:1.6}
body.tool-v57 .pg-legend{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:0;
  margin-top:22px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--paper);
  overflow:hidden;
}
body.tool-v57 .pg-legend > div{
  padding:18px 20px;
  border-right:1px solid var(--line);
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
}
body.tool-v57 .pg-legend > div:last-child{border-right:0}
body.tool-v57 .pg-legend b{
  display:flex;
  align-items:center;
  gap:9px;
  margin-bottom:8px;
  color:var(--text);
  font-size:12px;
  font-weight:600;
  letter-spacing:.07em;
  text-transform:uppercase;
}
body.tool-v57 .pg-legend b::before{
  content:"";
  width:8px;
  height:8px;
  flex:none;
  border-radius:50%;
  background:var(--pg-dot,var(--quiet));
}
body.tool-v57 .pg-legend .is-ok{--pg-dot:var(--green)}
body.tool-v57 .pg-legend .is-warn{--pg-dot:#8A6A18}
body.tool-v57 .pg-checks{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:14px;
  margin-top:22px;
}
body.tool-v57 .pg-check-card{
  padding:20px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--paper);
  box-shadow:0 1px 2px rgba(32,56,47,.05);
}
body.tool-v57 .pg-check-card i{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:26px;
  height:26px;
  margin-bottom:10px;
  border:1px solid var(--line-strong);
  border-radius:50%;
  color:var(--accent-ink);
  font-style:normal;
  font-size:12px;
  font-weight:600;
  font-variant-numeric:tabular-nums;
}
body.tool-v57 .pg-check-card b{
  display:block;
  margin-bottom:6px;
  color:var(--text);
  font-size:16px;
  font-weight:600;
  line-height:1.4;
}
body.tool-v57 .pg-check-card p{margin:0;color:var(--muted);font-size:14px;line-height:1.6}
body.tool-v57 .pg-passport{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:0;
  margin:22px 0;
  padding:0;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--paper);
  overflow:hidden;
}
body.tool-v57 .pg-passport > div{
  margin:0;
  padding:16px 18px;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
body.tool-v57 .pg-passport dt{
  margin:0 0 6px;
  color:var(--muted);
  font-size:11.5px;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
}
body.tool-v57 .pg-passport dd{
  margin:0;
  color:var(--text);
  font-size:20px;
  font-weight:600;
  line-height:1.25;
  font-variant-numeric:tabular-nums;
}
body.tool-v57 .pg-passport dd small{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:12px;
  font-weight:400;
}
body.tool-v57 .pg-ba{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:16px;
  margin-top:22px;
}
body.tool-v57 .pg-ba > div{
  padding:20px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--paper);
}
body.tool-v57 .pg-ba h3{
  margin:0 0 10px;
  font-size:13px;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--muted);
}
body.tool-v57 .pg-ba pre{
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  color:var(--text);
  font-family:var(--font);
  font-size:14px;
  line-height:1.65;
  white-space:pre-wrap;
  overflow-x:auto;
}
body.tool-v57 .pg-ba--bad{border-top:2px solid var(--danger)}
body.tool-v57 .pg-ba--good{border-top:2px solid var(--green)}
body.tool-v57 .pg-diff{
  list-style:none;
  display:grid;
  gap:6px;
  margin:22px 0 0;
  padding:0;
}
body.tool-v57 .pg-diff li{line-height:1.55;color:var(--muted);font-size:15px}
body.tool-v57 .pg-diff li span{
  display:inline-block;
  width:1.4em;
  color:var(--accent-ink);
  font-weight:600;
}
body.tool-v57 .pg-diff--add span{color:var(--green)}
body.tool-v57 .pg-diff--del span{color:var(--danger)}

/* ─── 9. Генератор llms.txt (gen-*) ─────────────────────────────────────── */

body.tool-v57 .tool-section--deep{
  background:var(--surface-soft);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
body.tool-v57 .tool-section .eyebrow{
  display:block;
  margin:0 0 12px;
  font-family:var(--font);
  font-size:12px;
  font-weight:600;
  letter-spacing:.07em;
  text-transform:uppercase;
  color:var(--accent-ink);
}
body.tool-v57 .tool-section h2{margin:0;max-width:26ch}
body.tool-v57 .tool-section .section-lead{
  max-width:70ch;
  margin-top:14px;
  color:var(--muted);
  font-size:16px;
  line-height:1.62;
}
body.tool-v57 .gen-field{margin:0}
body.tool-v57 .gen-field > label{display:block;margin-bottom:8px}
body.tool-v57 .gen-field .req{color:var(--accent-ink)}
body.tool-v57 .gen-field .label-note{color:var(--quiet);font-weight:400}
body.tool-v57 .gen-captcha{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px}
body.tool-v57 .gen-captcha__input{width:130px;flex:0 0 auto;min-height:48px}
body.tool-v57 .gen-captcha__refresh{
  min-height:48px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:0 14px;
  border:1px solid var(--line-strong);
  border-radius:12px;
  background:transparent;
  color:var(--muted);
  font:inherit;
  font-size:13px;
  font-weight:550;
  cursor:pointer;
}
body.tool-v57 .gen-captcha__refresh:hover{border-color:var(--accent);color:var(--accent-ink);background:var(--surface-warm)}
body.tool-v57 .gen-panel .button{width:100%}
body.tool-v57 .gen-hint{margin:0}
body.tool-v57 .gen-error{margin-top:0}
body.tool-v57 .gen-progress{
  margin-top:0;
  padding-top:18px;
  border-top:1px solid var(--line);
}
body.tool-v57 .gen-progress__steps{display:grid;gap:10px}
body.tool-v57 .gen-step{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--quiet);
  font-size:14px;
  line-height:1.4;
}
body.tool-v57 .gen-step.is-done{color:var(--text)}
body.tool-v57 .gen-step.is-active{color:var(--accent-ink);font-weight:600}
body.tool-v57 .gen-step__icon{
  width:24px;
  height:24px;
  flex:none;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line-strong);
  border-radius:50%;
  font-size:11px;
  font-weight:600;
  font-variant-numeric:tabular-nums;
}
body.tool-v57 .gen-step.is-done .gen-step__icon{
  background:var(--green);
  border-color:var(--green);
  color:#FFFFFF;
}
body.tool-v57 .gen-step.is-active .gen-step__icon{border-color:var(--accent);color:var(--accent-ink)}
body.tool-v57 .gen-result{
  margin-top:0;
  padding-top:18px;
  border-top:1px solid var(--line);
}
body.tool-v57 .gen-result__header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:10px 14px;
  margin-bottom:12px;
}
body.tool-v57 .gen-result__title{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  color:var(--text);
  font-size:14px;
  font-weight:600;
}
body.tool-v57 .gen-result__badge{
  padding:3px 10px;
  border:1px solid var(--accent);
  border-radius:999px;
  color:var(--accent-ink);
  font-size:12px;
  font-weight:600;
}
body.tool-v57 #gen-pages-found{color:var(--quiet);font-size:12.5px;font-weight:400}
body.tool-v57 .gen-result__actions{display:flex;flex-wrap:wrap;gap:8px}
body.tool-v57 .gen-result__actions .ghost-btn{min-height:44px;font-size:13.5px}
body.tool-v57 .gen-output-wrap{
  border:1px solid var(--line-strong);
  border-radius:14px;
  background:var(--paper);
  overflow:hidden;
}
body.tool-v57 .gen-output-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:6px 12px;
  padding:10px 14px;
  border-bottom:1px solid var(--line);
  background:var(--surface-soft);
  color:var(--quiet);
  font-size:12.5px;
}
body.tool-v57 #gen-filename{color:var(--accent-ink);font-weight:600}
body.tool-v57 .gen-output{
  display:block;
  width:100%;
  min-height:300px;
  max-height:460px;
  padding:16px;
  border:0;
  border-radius:0!important;
  background:transparent;
  color:var(--text);
  font-family:var(--font);
  font-size:13.5px!important;
  line-height:1.7;
  resize:vertical;
  outline:none;
  white-space:pre;
  overflow:auto;
}
body.tool-v57 .gen-output:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
body.tool-v57 .gen-result__disclaimer{
  margin-top:10px;
  color:var(--quiet);
  font-size:12.5px;
  line-height:1.6;
}
body.tool-v57 .tool-page code,
body.tool-v57 .gen-result__disclaimer code{
  padding:1px 6px;
  border:1px solid var(--line);
  border-radius:5px;
  background:var(--surface-soft);
  color:var(--text);
  font-family:var(--font);
  font-size:.95em;
}
body.tool-v57 .gen-manual-toggle{
  margin-top:0;
  padding-top:16px;
  border-top:1px solid var(--line);
}
body.tool-v57 .gen-manual{padding-top:28px;border-top:1px solid var(--line-strong)}
body.tool-v57 .gen-manual h2{font-size:clamp(24px,2.6vw,32px);letter-spacing:-.04em}
body.tool-v57 .gen-manual__lead{margin-top:8px;color:var(--muted);font-size:14px}
body.tool-v57 .gen-sections-head{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:12px;
  margin:26px 0 12px;
}
body.tool-v57 .gen-sections-head span:first-child{font-size:14px;font-weight:600;color:var(--text)}
body.tool-v57 .gen-sections-head span:last-child{color:var(--quiet);font-size:12.5px}
body.tool-v57 .gen-section{
  margin-bottom:12px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--paper);
}
body.tool-v57 .gen-section:focus-within{border-color:var(--line-strong)}
body.tool-v57 .gen-section__header{display:flex;align-items:center;gap:8px;margin-bottom:12px}
body.tool-v57 .gen-item{
  display:grid;
  grid-template-columns:1.1fr 1.6fr auto;
  gap:8px;
  align-items:center;
  margin-bottom:8px;
}
body.tool-v57 .gen-btn-remove{
  min-width:44px;
  min-height:44px;
  flex:none;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid transparent;
  border-radius:10px;
  background:none;
  color:var(--quiet);
  font-size:15px;
  cursor:pointer;
}
body.tool-v57 .gen-btn-remove:hover{color:var(--danger);border-color:var(--danger)}
body.tool-v57 .gen-manual-output-wrap{
  margin-top:28px;
  border:1px solid var(--line-strong);
  border-radius:14px;
  background:var(--paper);
  overflow:hidden;
}
body.tool-v57 .gen-manual-output-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:8px 12px;
  padding:10px 14px;
  border-bottom:1px solid var(--line);
  background:var(--surface-soft);
}
body.tool-v57 .gen-manual-output-filename{color:var(--accent-ink);font-size:13px;font-weight:600}
body.tool-v57 .gen-manual-output-actions{display:flex;flex-wrap:wrap;gap:8px}
body.tool-v57 .gen-manual-output{
  display:block;
  width:100%;
  min-height:300px;
  padding:16px;
  border:0;
  border-radius:0!important;
  background:transparent;
  color:var(--text);
  font-family:var(--font);
  font-size:13.5px!important;
  line-height:1.7;
  resize:vertical;
  outline:none;
  white-space:pre;
  overflow:auto;
}
body.tool-v57 .gen-manual-output-meta{
  padding:8px 14px;
  border-top:1px solid var(--line);
  color:var(--quiet);
  font-size:12.5px;
}
body.tool-v57 .m-add-item{margin-top:4px}
body.tool-v57 .gen-add-row{display:flex;justify-content:flex-start;margin-top:12px}

/* ─── 10. Общие мелочи и доступность ────────────────────────────────────── */

body.tool-v57 .sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
body.tool-v57 :is(a,button,summary,input,textarea,select):focus-visible{
  outline:2px solid var(--accent);
  outline-offset:3px;
  box-shadow:none;
}
body.tool-v57 .ic{fill:currentColor}

/* ─── 11. Тёмная тема ───────────────────────────────────────────────────── */

/* Тёмную палитру задаёт site-tokens.css через data-theme-effective /
   data-color-scheme. Здесь доводим то, что старая тема держала литералами. */
html[data-theme-effective="dark"] body.tool-v57,
html[data-color-scheme="dark"] body.tool-v57{
  --paper:oklch(20.2% .007 95);
  --card:oklch(20.2% .007 95);
  --paper-ink:oklch(92.8% .015 88);
  --paper-body:oklch(92.8% .015 88);
  --paper-meta:oklch(70% .012 88);
  --paper-line:oklch(28.5% .009 92);
  --paper-line-strong:oklch(38% .014 87);
  --soft:oklch(23% .008 95);
  --surface-soft:oklch(22.5% .008 95);
  --surface-deep:oklch(13.8% .005 95);
  --surface-warm:oklch(24% .012 60);
  --surface-sage:oklch(23% .008 140);
  --green:#2C5B49;
  --tk-line:oklch(28.5% .009 92);
  --tk-line-2:oklch(38% .014 87);
}
html[data-theme-effective="dark"] body.tool-v57{
  background:
    radial-gradient(900px 620px at 6% -6%, rgba(185,71,37,.12), transparent 62%),
    radial-gradient(820px 560px at 96% -2%, rgba(37,77,62,.22), transparent 64%),
    var(--bg);
}
html[data-theme-effective="dark"] body.tool-v57 .tool-form,
html[data-color-scheme="dark"] body.tool-v57 .tool-form{
  background:var(--surface);
  border-color:var(--line-strong);
  border-top-color:var(--accent);
  box-shadow:0 2px 6px rgba(0,0,0,.3);
}
html[data-theme-effective="dark"] body.tool-v57 :is(.tk__grid > li,.tk__group,.tk-scope,
  .faq-list details,.tool-author,.tk__link-card,.pg-form-col,.pg-preview-col,.pg-set,
  .pg-legend,.pg-check-card,.pg-ba > div,.kt-table-wrap,.gen-section,
  .gen-output-wrap,.gen-manual-output-wrap,.pg-finding){
  background:var(--surface);
}
html[data-theme-effective="dark"] body.tool-v57 :is(.tk__seg,.gen-output-toolbar,
  .gen-manual-output-toolbar,.kt-table th){
  background:var(--surface-deep);
}
/* Плашки .tk__after-i сюда не входят: у них своё тёмное оформление ниже,
   а :is(.kt-nav a,…) поднимает специфичность и перебивал бы его. */
html[data-theme-effective="dark"] body.tool-v57 :is(.kt-nav a,.pg-preset,.pg-modes,.pg-out){
  background:var(--surface);
}
html[data-theme-effective="dark"] body.tool-v57 .button,
html[data-theme-effective="dark"] body.tool-v57 .ghost-btn--primary,
html[data-theme-effective="dark"] body.tool-v57 .ghost-btn.ghost-btn--primary{
  background:var(--green)!important;
  border-color:var(--green)!important;
  color:#FFFFFF!important;
}
html[data-theme-effective="dark"] body.tool-v57 .button:hover,
html[data-theme-effective="dark"] body.tool-v57 .ghost-btn--primary:hover,
html[data-theme-effective="dark"] body.tool-v57 .ghost-btn.ghost-btn--primary:hover{
  background:color-mix(in oklch,var(--green) 82%,#FFFFFF)!important;
  border-color:color-mix(in oklch,var(--green) 82%,#FFFFFF)!important;
}
html[data-theme-effective="dark"] body.tool-v57 :is(.tk__segbtn.is-active,.pg-mode[aria-pressed="true"]){
  background:var(--green);
  color:#FFFFFF;
}
html[data-theme-effective="dark"] body.tool-v57 main > .section.faq,
html[data-theme-effective="dark"] body.tool-v57 main > .tool-section--deep{
  background:var(--surface-deep);
}
html[data-theme-effective="dark"] body.tool-v57 main > .section.tk__next{background:var(--surface-warm)}
html[data-theme-effective="dark"] body.tool-v57 .tk-take{background:color-mix(in oklch,var(--accent) 14%,var(--surface))}
html[data-theme-effective="dark"] body.tool-v57 .gen-note{background:color-mix(in oklch,var(--accent) 14%,var(--surface))}
html[data-theme-effective="dark"] body.tool-v57 .tool-url,
html[data-theme-effective="dark"] body.tool-v57 :is(.tk__input,.tk__textarea,.pg-input,
  .form-input,.form-textarea,.gen-captcha__input,.tool-cap__input){
  background:var(--surface-deep);
  border-color:var(--line-strong);
  color:var(--text);
}
html[data-theme-effective="dark"] body.tool-v57 .pg-out{background:var(--surface-deep)}
/* В тёмной теме --paper у нас тёмная (фон карточек), а в графиках отчёта
   «бумага» — это светлая заливка точки и штриха. Возвращаем светлую только
   этим трём элементам, иначе маркеры исчезают на тёмном фоне. */
html[data-theme-effective="dark"] body.tool-v57 :is(.tk-dot,.tk-gauge__mark,.tk-scale__dot){
  --paper:oklch(93.7% .015 90);
}

/* Плашки «После анализа вы увидите». База (§3) красит их в --paper, а в
   тёмной теме --paper — светлая «бумага» графиков, поэтому карточки требуют
   явной тёмной поверхности. Дублируем data-color-scheme: ручной выбор темы
   выставляет оба атрибута, а слой читается и без data-theme-effective. */
html[data-theme-effective="dark"] body.tool-v57 .tk__after,
html[data-color-scheme="dark"] body.tool-v57 .tk__after{
  border-top-color:#3A4238;
}
html[data-theme-effective="dark"] body.tool-v57 .tk__after-l,
html[data-color-scheme="dark"] body.tool-v57 .tk__after-l{
  color:#A6B1A8;
}
html[data-theme-effective="dark"] body.tool-v57 .tk__after-i,
html[data-color-scheme="dark"] body.tool-v57 .tk__after-i{
  background:#1D211C;
  border-color:#3A4238;
  color:#E9EEE7;
}
html[data-theme-effective="dark"] body.tool-v57 .tk__after-i::before,
html[data-color-scheme="dark"] body.tool-v57 .tk__after-i::before{
  background:#E3A08A;
  opacity:1;
}
html[data-theme-effective="dark"] body.tool-v57 .tk__after-n,
html[data-color-scheme="dark"] body.tool-v57 .tk__after-n{
  color:#A6B1A8;
}

/* ─── 12. Адаптив ───────────────────────────────────────────────────────── */

@media (max-width:1080px){
  body.tool-v57 .faq-layout > header{position:static}
  body.tool-v57 .pg-preview-col{position:static}
  body.tool-v57 main > .section > .shell > h2{max-width:32ch}
}

@media (max-width:900px){
  body.tool-v57 .pg-layout{grid-template-columns:1fr}
  body.tool-v57 .pg-ba{grid-template-columns:1fr}
}

@media (max-width:760px){
  body.tool-v57{font-size:17px}
  body.tool-v57 main > .section,
  body.tool-v57 main > .tool-section{padding-block:48px}
  body.tool-v57 main > .tool-hero + .section,
  body.tool-v57 main > .tool-hero + .tool-section{padding-top:30px}
  body.tool-v57 .tool-hero .eyebrow{margin-bottom:10px}
  body.tool-v57 .tool-hero__lead{margin-top:14px;font-size:16px;line-height:1.55}

  /* Показатели: два столбца, без вертикальных линий. */
  body.tool-v57 .hero-caps{
    grid-template-columns:1fr 1fr;
    margin-top:24px;
    padding-top:18px;
  }
  body.tool-v57 .hero-caps li{padding:0 14px 0 0}
  body.tool-v57 .hero-caps li + li{padding-left:0;border-left:0}
  body.tool-v57 .hero-caps li:nth-child(n+3){
    margin-top:16px;
    padding-top:16px;
    border-top:1px solid var(--line);
  }
  body.tool-v57 .hero-caps li:nth-child(even){padding-left:14px}
  /* Нечётное число показателей (у трёх страниц их три) — последний занимает
     всю строку, чтобы рядом не оставалось пустой половины. */
  body.tool-v57 .hero-caps li:last-child:nth-child(odd){grid-column:1 / -1}
  body.tool-v57 .hero-caps b{font-size:30px}
  body.tool-v57 .hero-caps span{font-size:12.5px}

  body.tool-v57 .tool-form{padding:20px 16px;border-radius:16px}
  body.tool-v57 .tool-form__submit{min-height:52px}
  body.tool-v57 .tool-launch__copy > p:not(.eyebrow){margin-top:12px;font-size:15px}

  body.tool-v57 .tk__head{margin-bottom:24px}
  body.tool-v57 .tk__head-lead{font-size:15px}
  body.tool-v57 .tk__grid > li,
  body.tool-v57 .tk__group,
  body.tool-v57 .tk-scope{padding:18px;border-radius:16px}
  body.tool-v57 .tk__grid h3{font-size:17px}
  body.tool-v57 .tool-author{padding:16px;border-radius:14px}
  body.tool-v57 .tool-author img{width:48px;height:48px}

  body.tool-v57 .faq-layout{gap:24px}
  body.tool-v57 .faq-layout > header > p:last-child{margin-top:12px;font-size:14px}
  body.tool-v57 .faq-list summary{
    grid-template-columns:22px minmax(0,1fr) 20px;
    gap:10px;
    min-height:56px;
    padding:16px;
    font-size:15px;
  }
  body.tool-v57 .faq-list summary i{width:20px;height:20px}
  body.tool-v57 .faq-list details > div{padding:0 16px 18px 48px}

  body.tool-v57 .tk__links{grid-template-columns:1fr}
  body.tool-v57 .tk__link-card{padding:18px;border-radius:16px}

  body.tool-v57 .pg-modes{width:100%}
  body.tool-v57 .pg-mode{flex:1 1 auto;padding:0 12px}
  body.tool-v57 .pg-grid2{grid-template-columns:1fr}
  body.tool-v57 .pg-form-col,
  body.tool-v57 .pg-preview-col{padding:18px;border-radius:16px}
  body.tool-v57 .pg-out{min-height:260px}
  body.tool-v57 .pg-legend{grid-template-columns:1fr}
  body.tool-v57 .pg-legend > div{border-right:0;border-bottom:1px solid var(--line)}
  body.tool-v57 .pg-legend > div:last-child{border-bottom:0}
  body.tool-v57 .pg-passport{grid-template-columns:1fr 1fr}

  body.tool-v57 .gen-item{grid-template-columns:1fr auto}
  body.tool-v57 .gen-output{min-height:260px}
  body.tool-v57 .gen-manual-output{min-height:260px}

  body.tool-v57 .step-register li{grid-template-columns:28px minmax(0,1fr)}
  body.tool-v57 .situation-grid article{grid-template-columns:26px minmax(0,1fr);gap:4px 12px}
  body.tool-v57 .kt-nav a{min-height:38px;padding:0 12px;font-size:13px}
  body.tool-v57 .kt-table{font-size:13px}
  body.tool-v57 .kt-table th,
  body.tool-v57 .kt-table td{padding:11px 12px}
}

@media (max-width:480px){
  body.tool-v57 .pg-passport{grid-template-columns:1fr}
  body.tool-v57 .pg-passport > div{border-right:0}
  body.tool-v57 .tool-cap__row > .tool-cap__input{width:100%}
  body.tool-v57 .tk__segbtn{font-size:13px;padding:0 8px}
}

@media (prefers-reduced-motion:reduce){
  body.tool-v57 :is(.tk__grid > li,.tk__link-card,.pg-link-card,.faq-list details,
    .tool-url,.button,.ghost-btn){transition:none}
  body.tool-v57 :is(.tk__grid > li:hover,.tk__link-card:hover){transform:none}
}

@media print{
  body.tool-v57{background:#fff;color:#20382F}
  body.tool-v57 .faq-list details{border-color:#D6E0D3}
  body.tool-v57 .tool-form{box-shadow:none}
}

/* ─── Каталог техник: проза не в узкой колонке ─────────────────────────────
   Абзацы были зажаты в 74ch (≈790 px из 1320) и ломались на строки раньше
   времени, справа оставалась пустота. На широком экране текст идёт в две
   колонки: строки остаются читаемой длины (~600 px), лишних переносов нет,
   ширина страницы используется целиком. Узкие экраны — одна колонка. */
@media(min-width:960px){
  /* вводная часть каталога */
  body.katalog-page .tool-hero > .shell{
    column-count:2;
    column-gap:clamp(28px,3vw,48px);
  }
  body.katalog-page .tool-hero .eyebrow,
  body.katalog-page .tool-hero h1,
  body.katalog-page .tool-hero .hero-caps,
  body.katalog-page .tool-hero .kt-download{column-span:all}
  body.katalog-page .tool-hero .tool-hero__lead{
    max-width:none;
    margin:0 0 10px;
    break-inside:avoid;
  }

  /* сплошная проза: «Как читать каталог». Список ссылок «Куда дальше» остаётся
     одной колонкой — в две он распадался на полупустой разворот. */
  body.katalog-page section[aria-labelledby="kt-how-title"] > .shell{
    column-count:2;
    column-gap:clamp(32px,3.4vw,56px);
  }
  body.katalog-page section[aria-labelledby="kt-how-title"] > .shell > h2{
    column-span:all;
    margin-bottom:18px;
  }
  body.katalog-page section[aria-labelledby="kt-how-title"] > .shell p{
    max-width:none;
    break-inside:avoid;
  }
  /* список ссылок — на всю ширину контейнера, без узкой колонки */
  body.katalog-page section[aria-labelledby="kt-next-title"] > .shell > ul,
  body.katalog-page section[aria-labelledby="kt-next-title"] > .shell > ul > li{
    max-width:none;
  }
}
