/* Geans: стили всех страниц и главной. Стили отчёта — report.css. В сохранённый HTML-отчёт встраиваются блок report-base
   (токены, база, печать) и report.css (tools/build_web.py → report_css.js). Дизайн, часть 3 (2026-10-18): черновики Superdesign
   (лендинг 360, шаблон руководства, верх отчёта) перенесены дословно — значения Tailwind переведены в px; пиктограммы — свои двухтонные (часть 4, как в main). */
/* report-base:begin */
:root {
  /* палитра A «Clinical clean», только светлая тема (владелец 2026-10-18; docs/palette-options-2026-10-18.md); акцент и кнопки — синий спирали
     #1854d2 (вариант A, владелец 2026-10-20): тёмной темы нет,
     color-scheme: light — браузер не затемняет поля форм. --dna-* — только рисунки и полосы, не текст; контраст пар считает
     tools/web_pages_check.mjs. Производные: --accent-text = --cta-text, --accent-2 = --err, --cta-line = --cta; --err-line темнее --err (#a8201a: рамка ошибки отличима от декоративного красного ≥ 1,8:1) */
  color-scheme: light;
  --bg: #f6f8fb; --card: #ffffff; --text: #18202e; --muted: #525e70; --line: #d9e0ea; --ink: #0e2c4f;
  --accent: #1854d2; --accent-text: #ffffff; --accent-2: #b3261e; --focus: #1854d2;
  --dna-red: #ef4136; --dna-blue: #29a0dc; --dna-green: #47b25a; --dna-yellow: #f8c630;
  --warn: #8a5300; --warn-bg: #fff4d6; --warn-line: #b99866;
  --err: #b3261e; --err-bg: #fdecea; --err-line: #a8201a; --ok: #2a7230; --th: #eef2f7; --tint: #e7f0f8;
  --cta-bg: #eef3fd; --cta: #1854d2; --cta-hover: #1243a8; --cta-text: #ffffff; --cta-line: #1854d2;
  --shadow: rgba(18, 32, 46, 0.22);   /* тень у края прокрутки таблицы */
  --shadow-sm: rgba(18, 32, 46, 0.06); /* shadow-sm черновика: карточка файла, кнопка «наверх» */
  /* шкала (аудит P2 #14): шрифт 1 — подписи, 2 — второстепенный текст и таблицы, 3 — основной, 4 — h3, 5 — h2, 6 — h1 (≥ 1000 px 4–6 крупнее:
     h2 одного размера на главной, в отчёте и руководствах); отступы 4 / 8 / 12 / 16 / 24 / 32. Вне шкалы — h1 героя на компьютере и мелочи шапки */
  --fs-1: 13px; --fs-2: 14px; --fs-3: 16px; --fs-4: 18px; --fs-5: 20px; --fs-6: 24px;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px;
}
@media screen and (min-width: 1000px) { :root { --fs-4: 20px; --fs-5: 24px; --fs-6: 32px; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: var(--fs-3)/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
main { max-width: 1120px; margin: 0 auto; padding: 0 var(--sp-4) var(--sp-6); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }   /* заголовок отчёта и текст ошибки получают фокус из app.js (аудит P2 #9) — без рамки */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.licence { color: var(--muted); font-size: 12px; }
.licence a { color: var(--accent); }
@media print {
  :root { --bg: #fff; --card: #fff; --text: #000; --muted: #333; --line: #999; --th: #eee; --accent: #000; --ink: #000; }
  body { font-size: 11pt; background: #fff; }
  .no-print, .top, .foot { display: none !important; }
}
/* report-base:end */

/* --- шапка всех страниц (черновики 1 и 3): белая полоса во всю ширину с нижней границей; знак-спираль (вращается, часть 6) + greatgenes;
   на служебных страницах справа кнопка «Analyse your file» (verify.css); липкая; колонка 1088 px */
.top { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 48px;
  padding: 2px max(16px, calc(50% - 544px)); background: var(--card); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; margin-right: auto; font-weight: 700; font-size: 20px; letter-spacing: 0.025em;
  color: var(--ink); text-decoration: none; }
.top-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.top-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; border-radius: 8px; color: var(--accent);
  font-size: 15px; font-weight: 500; text-decoration: none; }
.top-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lang-btn { border: 1px solid var(--line); background: var(--card); color: var(--text); padding: 4px 10px; cursor: pointer; font: inherit; }
.lang-btn:first-child { border-radius: 6px 0 0 6px; }
.lang-btn:last-child { border-radius: 0 6px 6px 0; border-left: 0; }
.lang-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
/* S10: в выпуске только EN (LANGS в app.js); правило прячет RU/EN на служебных страницах без JS (docs/web-client.md, «Языки») */
.lang, .lang-ru { display: none; }
/* пиктограммы — свои двухтонные рисунки (как в main, часть 4): контур цветом текста (2 px на сетке 24, 1,7 на сетке 32 у карточек);
   adv-fill — полупрозрачная заливка с контуром, adv-full/adv-solid — сплошная (solid — без контура), adv-cut/adv-hole — вырез цветом
   карточки, adv-acc — акцентная линия; цвет заливки — --ico (у карточек — цвета спирали по очереди), иначе акцент */
.i { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.adv-fill { fill: var(--accent); fill: var(--ico, var(--accent)); fill-opacity: .3; }
.adv-full { fill: var(--accent); fill: var(--ico, var(--accent)); }
.adv-solid { fill: var(--accent); fill: var(--ico, var(--accent)); stroke: none; }
.adv-cut { stroke: var(--card); stroke-width: 5; }
.adv-hole { fill: var(--card); }
.adv-acc { stroke: var(--ink); stroke-width: 2.2; }
.drop-btn, .warn { --ico: currentColor; }

/* --- знак в шапке всех страниц (часть 6, владелец 2026-10-18): вертикальная спираль слева от «greatgenes», вращается вокруг своей
   длинной оси; горизонтальной ленты нет. tools/make_helix.mjs — столбец стержней-пар на месте, поворот в 3D, только CSS (приём части 4).
   Стержень <i>: фон — перекладина (цвета пары — блок генератора), ::before / ::after — бусины красной и синей цепи на концах.
   perspective() у каждого стержня своя (от его центра): y не меняется; .logo — общий 3D-контекст (сортировка по глубине); бусины
   поворачиваются обратно и всегда смотрят на зрителя. Размеры — em от высоты знака (font-size); 17 стержней по 2 px при 34 px. */
.logo { flex: none; display: flex; flex-direction: column; justify-content: center; width: .5em; height: 1em; font-size: 34px;
  transform-style: preserve-3d;
  /* цвета как у спирали первого экрана (владелец 2026-10-20): цепи — рубиновая и кобальтовая, перекладины — светлее (половины пары) */
  --logo-red: #c81428; --logo-blue: #1854d2; --logo-rr: #d84755; --logo-rb: #4a7be0; }
.logo i { flex: none; position: relative; width: .4em; height: calc(1em / 17); margin: 0 auto; transform-style: preserve-3d;
  background: no-repeat center / 100% 100%; animation: logo-spin 7s linear infinite; }
.logo i::before, .logo i::after { content: ""; position: absolute; top: 50%; width: .065em; height: .2em; margin: -.1em 0 0 -.0325em;
  border-radius: .0325em; animation: logo-fa 7s linear infinite; animation-delay: inherit; }
.logo i::before { left: 0; background: var(--logo-red); }
.logo i::after { left: 100%; background: var(--logo-blue); animation-name: logo-fb; }
@keyframes logo-spin { from { transform: perspective(1.4em) rotateY(0deg); } to { transform: perspective(1.4em) rotateY(360deg); } }
/* logo:css:begin */
.logo i:nth-child(16n+2){animation-delay:-.44s}.logo i:nth-child(16n+3){animation-delay:-.87s}.logo i:nth-child(16n+4){animation-delay:-1.31s}.logo i:nth-child(16n+5){animation-delay:-1.75s}.logo i:nth-child(16n+6){animation-delay:-2.19s}.logo i:nth-child(16n+7){animation-delay:-2.62s}.logo i:nth-child(16n+8){animation-delay:-3.06s}.logo i:nth-child(16n+9){animation-delay:-3.5s}.logo i:nth-child(16n+10){animation-delay:-3.94s}.logo i:nth-child(16n+11){animation-delay:-4.37s}.logo i:nth-child(16n+12){animation-delay:-4.81s}.logo i:nth-child(16n+13){animation-delay:-5.25s}.logo i:nth-child(16n+14){animation-delay:-5.69s}.logo i:nth-child(16n+15){animation-delay:-6.12s}.logo i:nth-child(16n+16){animation-delay:-6.56s}
.logo i:nth-child(16n+1),.logo i:nth-child(16n+11){background-image:linear-gradient(90deg,var(--logo-rr) 50%,var(--logo-rb) 0)}.logo i:nth-child(16n+3),.logo i:nth-child(16n+9){background-image:linear-gradient(90deg,var(--logo-rr) 50%,var(--logo-rb) 0)}.logo i:nth-child(16n+5),.logo i:nth-child(16n+15){background-image:linear-gradient(90deg,var(--logo-rb) 50%,var(--logo-rr) 0)}.logo i:nth-child(16n+7),.logo i:nth-child(16n+13){background-image:linear-gradient(90deg,var(--logo-rb) 50%,var(--logo-rr) 0)}
@keyframes logo-fa{0%{transform:rotateY(0deg) rotateZ(0deg)}6.25%{transform:rotateY(-22.5deg) rotateZ(-27.1deg)}12.5%{transform:rotateY(-45deg) rotateZ(-43.4deg)}18.75%{transform:rotateY(-67.5deg) rotateZ(-51deg)}25%{transform:rotateY(-90deg) rotateZ(-53.2deg)}31.25%{transform:rotateY(-112.5deg) rotateZ(-51deg)}37.5%{transform:rotateY(-135deg) rotateZ(-43.4deg)}43.75%{transform:rotateY(-157.5deg) rotateZ(-27.1deg)}50%{transform:rotateY(-180deg) rotateZ(0deg)}56.25%{transform:rotateY(-202.5deg) rotateZ(27.1deg)}62.5%{transform:rotateY(-225deg) rotateZ(43.4deg)}68.75%{transform:rotateY(-247.5deg) rotateZ(51deg)}75%{transform:rotateY(-270deg) rotateZ(53.2deg)}81.25%{transform:rotateY(-292.5deg) rotateZ(51deg)}87.5%{transform:rotateY(-315deg) rotateZ(43.4deg)}93.75%{transform:rotateY(-337.5deg) rotateZ(27.1deg)}100%{transform:rotateY(-360deg) rotateZ(0deg)}}@keyframes logo-fb{0%{transform:rotateY(0deg) rotateZ(0deg)}6.25%{transform:rotateY(-22.5deg) rotateZ(27.1deg)}12.5%{transform:rotateY(-45deg) rotateZ(43.4deg)}18.75%{transform:rotateY(-67.5deg) rotateZ(51deg)}25%{transform:rotateY(-90deg) rotateZ(53.2deg)}31.25%{transform:rotateY(-112.5deg) rotateZ(51deg)}37.5%{transform:rotateY(-135deg) rotateZ(43.4deg)}43.75%{transform:rotateY(-157.5deg) rotateZ(27.1deg)}50%{transform:rotateY(-180deg) rotateZ(0deg)}56.25%{transform:rotateY(-202.5deg) rotateZ(-27.1deg)}62.5%{transform:rotateY(-225deg) rotateZ(-43.4deg)}68.75%{transform:rotateY(-247.5deg) rotateZ(-51deg)}75%{transform:rotateY(-270deg) rotateZ(-53.2deg)}81.25%{transform:rotateY(-292.5deg) rotateZ(-51deg)}87.5%{transform:rotateY(-315deg) rotateZ(-43.4deg)}93.75%{transform:rotateY(-337.5deg) rotateZ(-27.1deg)}100%{transform:rotateY(-360deg) rotateZ(0deg)}}
/* logo:css:end */
@media (prefers-reduced-motion: reduce) { .logo i, .logo i::before, .logo i::after { animation-play-state: paused; } }

/* --- герой (черновик 1): h1 24 px, лид в строку (значков-«таблеток» нет с части 5: то же — в карточке 2) */
.hero { padding: var(--sp-4) 0 20px; }
.hero h1 { font-size: var(--fs-6); line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); max-width: 24em; margin: 0 0 var(--sp-2); }
@media (max-width: 400px) { .hero h1 { font-size: 22px; } }
.lead { font-size: 15px; color: var(--muted); max-width: 46em; margin: 0 0 var(--sp-4); }

/* --- фон первого экрана главной (владелец 2026-10-20; картинки рисует tools/make_hero_art.mjs — не править вручную): полоса во всю
   ширину от низа шапки до 60 px ниже блока файла — светлая бело-голубая дымка, боке и бледные дальние спирали; верх и низ уходят
   в --bg без видимого края; главную (вращающуюся) спираль рисует web/hero.js (.hero-art ниже). Текст героя — обычных цветов.
   Картинка — только background-image внутри медиазапроса: браузер загружает одну из двух (web_pages_check).
   Ширина полосы — 100cqi (body — контейнер запросов): без лишней горизонтальной прокрутки от полосы системного скроллбара.
   Компьютер (≥ 1000 px): ::before у main.home — элемент сетки в строке 1 (герой и блок файла), картинка без масштабирования
   (2560 px по центру, сдвиг −110 px), шире 2560 — цвет --bg. Телефон и планшет: ::before у блока файла — низом на 60 px ниже блока,
   верх уходит под шапку; картинка низом к низу полосы. Пока идёт анализ или показан отчёт, полосы нет. */
body { container-type: inline-size; }
.home { isolation: isolate; }          /* своя стопка: полоса (z-index −1) — над фоном body (body — контейнер, фон не переносится на холст) */
@media screen and (max-width: 999.98px) {
  .home > .pick { position: relative; }
  .home > .pick::before { content: ""; position: absolute; z-index: -1; top: -1000px; bottom: -63px; left: calc(50% - 50vw); width: 100vw;
    left: calc(50% - 50cqi); width: 100cqi;
    background: linear-gradient(to top, var(--bg), rgba(246, 248, 251, 0) 120px),
      url(hero-mobile.jpg) center bottom / max(100%, 625px) auto no-repeat, var(--bg); }
  #intro h1, #intro .lead { text-wrap: balance; }      /* строки примерно равной длины (выравнивание по ширине на 2–3 словах в строке дало бы дыры) */
}
@media screen and (min-width: 1000px) {
  .home > #intro, .home > #pick { grid-row: 1; }
  .home::before { content: ""; grid-row: 1; grid-column: 1 / -1; align-self: stretch; z-index: -1;
    margin: 0 calc(50% - 50vw) -28px; margin-inline: calc(50% - 50cqi);
    background: linear-gradient(to top, var(--bg), rgba(246, 248, 251, 0) 64px),
      url(hero-desktop.jpg) center -110px / 2560px auto no-repeat, var(--bg); }
  #intro h1, #intro .lead { text-wrap: balance; }
}
/* владелец 2026-10-20: строки h1 и лида одной ширины — вариант A: общая колонка 512 px (лид ложится в 2 строки почти равной длины,
   h1 — в 3), выравнивание по ширине, включая последнюю строку (пробелы растягиваются). Уже 1040 px колонка героя < 512 px и h1
   ломается на 4 строки с одиноким словом — там вариант B (balance). Вариант B на компьютере целиком:
   #intro h1, #intro .lead { text-align: start; text-align-last: auto; text-wrap: balance; } */
@media screen and (min-width: 1040px) {
  #intro h1, #intro .lead { max-width: 512px; text-align: justify; text-align-last: justify; text-wrap: wrap; }
  #intro h1, #intro .lead { text-align-last: start; }  /* последние строки заголовка и лида — без растяжки (владелец 2026-10-20) */
}
/* два варианта (владелец 2026-10-20): D — приглушённая тёмно-сине-серая полоса, по умолчанию (<main class="home hero-d">); L — светлая,
   включается адресом ?hero=light (web/hero-var.js в <head> ставит класс hero-l у <html> до первой отрисовки — правила D выключаются).
   Картинки D подставляются только правилами .hero-d — при варианте L они не загружаются, при D не загружаются картинки L.
   L: тёмный текст с мягким светлым ореолом (спираль под текстом видна на 40 %); D: белый текст с тенью. */
#intro h1, #intro .lead { text-shadow: 0 0 1px var(--bg), 0 0 1px var(--bg), 0 0 2px var(--bg), 0 0 2px var(--bg), 0 0 3px var(--bg), 0 0 6px var(--bg), 0 0 10px var(--bg); }
:root:not(.hero-l) .hero-d #intro h1, :root:not(.hero-l) .hero-d #intro .lead { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .45), 0 0 16px rgba(4, 12, 36, .55); }
@media screen and (max-width: 999.98px) {
  :root:not(.hero-l) .home.hero-d > .pick::before { background: linear-gradient(to top, var(--bg), rgba(24, 32, 55, 0) 120px),
      url(hero-dark-mobile.jpg) center bottom / max(100%, 625px) auto no-repeat, #182037; }
}
@media screen and (min-width: 1000px) {
  :root:not(.hero-l) .home.hero-d::before { background: linear-gradient(to top, var(--bg), rgba(26, 35, 60, 0) 64px),
      url(hero-dark-desktop.jpg) center -110px / 2560px auto no-repeat, #1a233c; }
}
.home:has(#progress:not([hidden])) #intro :is(h1, .lead), .home:has(#report:not([hidden])) #intro :is(h1, .lead) { text-shadow: none; }
:root:not(.hero-l) .hero-d:has(#progress:not([hidden])) #intro h1, :root:not(.hero-l) .hero-d:has(#report:not([hidden])) #intro h1 { color: var(--ink); }
:root:not(.hero-l) .hero-d:has(#progress:not([hidden])) #intro .lead, :root:not(.hero-l) .hero-d:has(#report:not([hidden])) #intro .lead { color: var(--muted); }
.home:has(#progress:not([hidden]))::before, .home:has(#report:not([hidden]))::before,
.home:has(#progress:not([hidden])) > .pick::before, .home:has(#report:not([hidden])) > .pick::before { display: none; }
/* главная спираль поверх полосы — живой рисунок web/hero.js (вращается): .hero-art создаёт скрипт — в main.home на компьютере
   (элемент сетки той же строки, что и полоса) или в блоке файла на телефоне (как .pick::before); без скрипта и вне этих мест не видна */
.hero-art { display: none; pointer-events: none; }
.hero-art canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
@media screen and (max-width: 999.98px) {
  /* телефон: холст от верха полосы до низа блока файла, спираль — под h1 и лидом (hero.js, MOB) */
  .home > .pick > .hero-art { display: block; position: absolute; z-index: -1; bottom: 0; left: calc(50% - 50vw); width: 100vw;
    left: calc(50% - 50cqi); width: 100cqi; height: calc(100% + 440px); }
}
@media screen and (min-width: 1000px) {
  .home > .hero-art { display: block; position: relative; z-index: -1; grid-row: 1; grid-column: 1 / -1; align-self: stretch;
    margin: 0 calc(50% - 50vw) -28px; margin-inline: calc(50% - 50cqi); }
}
.hero-art[hidden], .home:has(#progress:not([hidden])) .hero-art, .home:has(#report:not([hidden])) .hero-art { display: none; }
@media print { .home::before, .hero-art { display: none !important; } }

/* --- блок файла (черновик 1): --cta-bg, рамка и верхняя граница 3 px акцентом, скругление 10, лёгкая тень; кнопки 48 px во всю ширину */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: var(--sp-4) 20px; margin: var(--sp-4) 0; }
.pick { margin: 0 0 var(--sp-5); padding: var(--sp-4); background: var(--cta-bg); border-color: var(--accent); border-width: 3px;
  box-shadow: 0 1px 2px var(--shadow-sm); }
.drop { position: relative; display: block; text-align: center; cursor: pointer; border-radius: 10px; }
.drop.over { outline: 2px dashed var(--accent); outline-offset: 4px; }
/* поле файла скрыто визуально, но в порядке фокуса; фокус виден на кнопке */
.drop input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.drop-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; padding: 10px 16px;
  border: 1px solid var(--cta-line); border-radius: 8px; background: var(--cta); color: var(--cta-text); font-size: var(--fs-3); font-weight: 600; }
.drop:not(:has(> input:disabled)):hover .drop-btn, #file:focus-visible + .drop-btn { background: var(--cta-hover); }
/* идёт анализ (поле выключено): кнопка и строка образца приглушены */
.drop:has(> input:disabled) { cursor: default; }
.drop:has(> input:disabled) .drop-btn, .drop:has(> input:disabled) ~ .sample { opacity: .45; }
.drop-btn.pulse { animation: pick-pulse 0.8s ease-in-out 3; }
@keyframes pick-pulse { 50% { box-shadow: 0 0 0 6px var(--focus, var(--accent)); } }
@media (prefers-reduced-motion: reduce) { .drop-btn.pulse { animation: none; box-shadow: 0 0 0 4px var(--focus, var(--accent)); } }
#file:focus-visible + .drop-btn { outline: 3px solid var(--ink); outline-offset: 3px; }
#file:focus-visible { outline: none; }
.drop-or { display: none; color: var(--muted); font-size: var(--fs-1); margin-top: var(--sp-2); }
.drop-file { display: block; margin-top: var(--sp-2); font-weight: 600; word-break: break-all; }
.drop-file:empty { display: none; }
@media (pointer: fine) { .drop-or { display: block; } }
.note { color: var(--muted); font-size: var(--fs-2); }
.pick .note:empty { display: none; }
/* согласие выбором файла (владелец 2026-10-24): фраза под кнопкой — обычный цвет текста, не мельче .note */
.consent-note { margin: var(--sp-3) 0 0; color: var(--text); font-size: var(--fs-2); line-height: 1.4; text-align: center; }
.consent-note a, .note a { color: var(--accent); text-underline-offset: 2px; }
.sample { margin: var(--sp-3) 0 0; text-align: center; font-size: var(--fs-1); }

/* --- преимущества (черновик 1): сетка 2 (телефон) / 4 (≥ 1000 px) белых карточек; пиктограмма 32 px (36 на ≥ 1000 px) по центру, короткий заголовок */
.adv { margin: 0 0 var(--sp-6); }
.adv-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); grid-template-columns: repeat(2, 1fr); }
.adv-list li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; padding: var(--sp-3); }
.adv-list li:nth-child(4n+1) { --ico: var(--dna-blue); }
.adv-list li:nth-child(4n+2) { --ico: var(--dna-red); }
.adv-list li:nth-child(4n+3) { --ico: var(--dna-green); }
.adv-list li:nth-child(4n+4) { --ico: var(--dna-yellow); }
.adv-ico { width: 32px; height: 32px; color: var(--ink); stroke-width: 1.7; }
/* заголовок — не длиннее 3 строк; текст карточки (с 600 px) — целиком, без обрезки многоточием (часть 4) */
.adv-t { margin: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
.adv-t { font-size: 13px; line-height: 1.25; max-height: calc(3 * 1.25em); font-weight: 500; color: var(--text); }
.adv-b { margin: 0; font-size: var(--fs-1); line-height: 1.4; color: var(--muted); }
main:has(#progress:not([hidden])) #adv, main:has(#report:not([hidden])) #adv { display: none; }

/* --- руководства (часть 5, на месте «How it works»): белые карточки как у #adv — ссылка-заголовок и одна строка описания; вся карточка
   кликабельна (a::after), шеврон справа; 1 колонка (телефон) / 2 (≥ 600 px) / 3 (≥ 1000 px), первая (проверка файла) — во всю ширину */
.gd { margin: 0 0 var(--sp-6); }
.gd h2, .faq h2 { font-size: var(--fs-5); line-height: 1.3; margin: 0 0 var(--sp-3); color: var(--ink); }
.gd-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.gd-list li { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: var(--sp-3) 40px var(--sp-3) var(--sp-4); }
.gd-list li:hover { border-color: var(--accent); }
.gd-list li::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border: solid var(--muted);
  border-width: 2px 2px 0 0; transform: translateY(-50%) rotate(45deg); pointer-events: none; }
.gd-list a { display: block; color: var(--accent); font-size: 15px; font-weight: 600; line-height: 1.35; text-decoration: none; }
.gd-list a::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
.gd-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.gd-list a:focus-visible { outline: none; }
.gd-list a:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 2px; }
.gd-list p { margin: var(--sp-1) 0 0; color: var(--muted); font-size: var(--fs-1); line-height: 1.4; }
#progress:not([hidden]) ~ #guides, #report:not([hidden]) ~ #guides { display: none; }

/* --- частые вопросы (черновик 1): аккордеон, строка 48 px, шеврон (CSS) поворачивается при раскрытии */
.faq { margin: 0 0 var(--sp-6); border-top: 1px solid var(--line); }
.faq h2 { margin: var(--sp-4) 0; }
.faq-item { border-bottom: 1px solid var(--line); max-width: 800px; }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 8px 8px 8px 0;
  cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 8px; height: 8px; border: solid var(--muted); border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.faq-item[open] summary::after { transform: translateY(2px) rotate(225deg); }
.faq-item h3 { font-size: 15px; font-weight: 500; line-height: 1.35; margin: 0; color: var(--text); }
.faq-item p { margin: 0; padding: 0 0 var(--sp-4); color: var(--muted); font-size: var(--fs-2); max-width: 72ch; }
#progress:not([hidden]) ~ #faq, #report:not([hidden]) ~ #faq { display: none; }
.faq-all { margin: var(--sp-4) 0 0; } .faq-all a { color: var(--accent); }

/* --- подвал всех страниц (черновики 1 и 3): белая полоса; группы ссылок — строки 44 px (телефон), колонки на ≥ 1000 px.
   Разделители «·» между ссылками в разметке остаются для чтения без стилей; здесь их скрывает font-size: 0 у абзаца-группы */
.foot { padding: 24px max(16px, calc(50% - 544px)) calc(24px + env(safe-area-inset-bottom)); background: var(--card);
  border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-1); line-height: 1.6; }
.foot p { margin: 0 0 var(--sp-5); max-width: 60ch; }
.foot a { color: var(--accent); }
.foot :is(.guides p, p.legal-links, .legal-links p, p.links) { font-size: 0; margin: 0 0 var(--sp-5); max-width: none; }
.foot :is(.guides, .legal-links, .links) a { display: flex; align-items: center; min-height: 44px; font-size: var(--fs-2); line-height: 1.3; text-decoration: none; }
.foot :is(.guides, .legal-links, .links) a:hover { text-decoration: underline; }
.foot :is(.guides, .legal-links, .links) strong { display: block; margin: 0 0 4px; font-size: 15px; color: var(--ink); }
.foot .licence { max-width: none; margin: 4px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }

/* --- кнопки, ход анализа, ошибка */
button { font: inherit; }
.primary, .secondary { min-height: 44px; border-radius: 8px; padding: 10px 18px; cursor: pointer; border: 1px solid var(--accent); font-weight: 600; }
.primary { background: var(--accent); color: var(--accent-text); }
.secondary { background: transparent; color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-2) 0 var(--sp-4); }
/* ход анализа и ошибка — до загрузки report.css (её подключает app.js в начале анализа); ширина — как у отчёта (report.css #done, .report) */
#progress, #error { width: 100%; max-width: 900px; margin-left: auto; margin-right: auto; }
/* владелец 2026-10-18, d4: ширина блока хода анализа постоянна (width: 100%, в сетке main иначе — по содержимому); подсказок под шагами нет */
#progress { max-width: 600px; }
.cancel { display: block; margin: var(--sp-3) auto 0; }
.error { background: var(--err-bg); border-color: var(--err-line); }
/* аудит P1 #5: действия в ошибке — «Try again» (тот же файл) и «Choose another file» */
.error .actions { margin: 8px 0 0; }
.loader { display: flex; justify-content: center; margin: 0 0 var(--sp-3); }
.loader[hidden] { display: none; }
/* загрузчик (владелец 2026-10-18, d4) — тот же знак, что в шапке (tools/make_helix.mjs, правила .logo в em), крупнее; reduced motion —
   неподвижный кадр (правило .logo выше) */
.loader .logo { font-size: 72px; }
@media (prefers-reduced-motion: reduce) {
  .faq-item summary::after { transition: none; }
}
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { padding: 4px 0 4px 28px; position: relative; color: var(--muted); }
/* аудит P2 #7: значки — без озвучивания (альтернативный текст "" у content); состояние словом — скрытый .st-s и aria-current (app.js step) */
.steps li::before { content: "○"; content: "○" / ""; position: absolute; left: 4px; }
.steps li.active { color: var(--text); font-weight: 600; }
.steps li.active::before { content: "◔"; content: "◔" / ""; }
.steps li.done { color: var(--text); }
.steps li.done::before { content: "✓"; content: "✓" / ""; color: var(--ok); }
.steps li.failed::before { content: "✕"; content: "✕" / ""; color: var(--err-line); }

@media (max-width: 600px) {
  .card { padding: var(--sp-3) 14px; }
  .lead { font-size: 14px; }
}
@media (min-width: 600px) {
  .adv-list { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
  .adv-b { margin-top: -2px; }
  .gd-list { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
}
@media (max-width: 599.98px) {   /* телефон: в карточках только заголовок (черновик), подробности — в FAQ, руководствах и отчёте */
  .adv-b { display: none; }
}
/* компьютер: та же система, крупнее; герой слева, блок файла справа (пока блок виден) */
@media (min-width: 1000px) {
  .top { min-height: 64px; }
  main { display: grid; grid-template-columns: minmax(0, 1fr) 440px; column-gap: 56px; align-items: start; }
  main > * { grid-column: 1 / -1; }
  main > #intro { grid-column: 1; padding: 48px 0 32px; }
  main > #pick { grid-column: 2; margin: 32px 0; }
  main:has(> #pick[hidden]) > #intro { grid-column: 1 / -1; }
  .hero h1 { font-size: 36px; line-height: 1.2; margin-bottom: 12px; }
  .lead { font-size: 17px; margin-bottom: 20px; }
  .adv-list { grid-template-columns: repeat(4, 1fr); }
  .adv-list li { padding: var(--sp-4); }
  .adv-ico { width: 36px; height: 36px; }
  .adv-t { font-size: 15px; }
  .adv-b { font-size: var(--fs-2); }
  .gd-list { grid-template-columns: repeat(3, 1fr); }
  .faq-item h3 { font-size: var(--fs-3); }
  .foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; column-gap: 32px; align-items: start; padding-top: 48px; padding-bottom: 32px; }
  .foot:has(> .links):has(> .guides) { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .foot > * { grid-column: 1; }
  .foot > .links { grid-column: 2; grid-row: 1 / span 3; }
  .foot > .guides { grid-column: -3; grid-row: 1 / span 3; }
  .foot > .legal-links { grid-column: -2; grid-row: 1 / span 3; }
  .foot > .licence { grid-column: 1 / -1; margin-top: 24px; }
  .foot :is(.guides, .legal-links, .links) a { min-height: 0; padding: 6px 0; font-size: 15px; }
}
