/* Стили SEO-страниц onai.academy (сборщик projects/seo_pages/build.py, концепт «Сделано, а не пересказано»).
   Ночь и золото сайта /saint/: токены, вдавленное стекло (.glass-inset), блок «Было → Стало» (.ba) и кнопка liquid metal (.lm)
   скопированы из projects/saint_landing/src (landing.css, cases.css, components/ui/liquid-metal.css). Из макета mockups/mockup.css, плюс блок «Дополнения сборщика» в конце.
   Одна система вёрстки на гайд, услугу и хаб. Статика: раскрывающиеся строки и меню на <details>, скрипт только у хаба (фильтр тем). */

@font-face {
  font-family: Manrope;
  src: url('fonts/manrope-cyrillic.woff2') format('woff2');
  font-display: block;
  font-weight: 200 800;
  unicode-range: U+0400-052F, U+2DE0-2DFF, U+A640-A69F, U+2116;
}
@font-face {
  font-family: Manrope;
  src: url('fonts/manrope.woff2') format('woff2');
  font-display: block;
  font-weight: 200 800;
}

:root {
  --bg: #090a0b;
  --ink: #f0f0ed;
  --soft: #b4b7b8;
  --line: #303336;
  --gold: #dfbb76;
  --body: #d3d6d4;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --shell: min(1280px, calc(100% - 104px));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 400 18px/1.6 Manrope, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shell { width: var(--shell); margin-inline: auto; }

/* Заголовки по карточке «3 · Manrope» (Александр 14.10.2026): H1 40/44 700, H2 32/36 600, трекинг -0.02em. */
h1 { font-size: 40px; line-height: 44px; letter-spacing: -.02em; font-weight: 700; color: var(--ink); text-wrap: balance; }
h2 { font-size: 32px; line-height: 36px; letter-spacing: -.02em; font-weight: 600; color: var(--ink); text-wrap: balance; }
h3 { font-size: 20px; line-height: 1.35; letter-spacing: -.01em; font-weight: 650; color: var(--ink); text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* ---------- Шапка ---------- */
.top { background: #090a0bf2; border-bottom: 1px solid #222528; }
.top-in { height: 76px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { height: 28px; width: auto; }
.brand.is-saint img { width: 95px; height: auto; }
.nav { display: flex; gap: 30px; margin-left: auto; margin-right: 8px; font-size: 14px; color: #c9cac8; }
.nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.nav a[aria-current] { color: var(--gold); }
.burger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid #34373a; align-items: center; justify-content: center; color: #d8dad8; }

/* ---------- Кнопка liquid metal (статичный вид: тёмное тело, золото-платина по кромке) ---------- */
.lm {
  --lm-radius: 11px;
  --lm-rim-1: #fbf3e4;
  --lm-rim-2: #b8955a;
  --lm-rim-3: #efe6d4;
  --lm-rim-4: #8a7350;
  --lm-ink: #f3eee3;
  --lm-shadow: 0 0 0 1px rgba(0, 0, 0, .45), 0 10px 18px -6px rgba(0, 0, 0, .6), 0 3px 6px rgba(0, 0, 0, .35), 0 14px 34px -16px rgba(227, 200, 150, .42);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(115deg, var(--lm-rim-1), var(--lm-rim-2) 30%, var(--lm-rim-3) 55%, var(--lm-rim-4) 78%, var(--lm-rim-1));
  color: var(--lm-ink);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .7), 0 1px 1px rgba(255, 240, 210, .08);
  box-shadow: var(--lm-shadow);
}
.lm__body {
  position: absolute;
  inset: 2.5px;
  z-index: -1;
  border-radius: calc(var(--lm-radius) - 2.5px);
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0) 52%), linear-gradient(180deg, #2f2a25, #0c0b0a);
  box-shadow: inset 0 1px 0 rgba(255, 244, 222, .18), inset 0 -2px 3px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(0, 0, 0, .55);
}
.lm > .i { color: #e6cf9a; }
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; border-radius: 11px; padding: 17px 22px; min-height: 56px; font-size: 15px; line-height: 1.2; font-weight: 650; white-space: nowrap; }
.btn.sm { --lm-radius: 10px; gap: 12px; border-radius: 10px; padding: 11px 16px; min-height: 44px; font-size: 14px; }

/* ---------- Вдавленное жидкое стекло (landing.css, Александр 09.11.2026): только внутренние тени, свет сверху, без внешней падающей тени ---------- */
.glass-inset {
  position: relative;
  isolation: isolate;
  border: 1px solid;
  border-color: rgba(0, 0, 0, .55) rgba(255, 255, 255, .07) rgba(255, 255, 255, .12);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .012)), rgba(8, 9, 10, .55);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .7), inset 0 12px 30px rgba(0, 0, 0, .45), inset 0 -1px 0 rgba(255, 255, 255, .09), 0 1px 0 rgba(255, 255, 255, .05);
}
.glass-inset::after { content: ''; position: absolute; inset: auto 24px 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(223, 187, 118, .35), transparent); pointer-events: none; }

/* ---------- Мягкий свет за первым экраном: стеклу есть что размывать ---------- */
.stage { position: relative; isolation: isolate; }
.stage::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 980px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42% 34% at 8% 14%, #dfbb7638, transparent 70%),
    radial-gradient(36% 32% at 92% 24%, #63b7d326, transparent 70%),
    radial-gradient(44% 30% at 40% 70%, #e4e4df14, transparent 70%);
}
.glow { position: relative; isolation: isolate; }
.glow::before { content: ''; position: absolute; inset: -80px 0; z-index: -1; pointer-events: none; background: radial-gradient(closest-side at 26% 50%, #dfbb7626, transparent), radial-gradient(closest-side at 78% 40%, #63b7d21c, transparent); }

/* ---------- Первый экран ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 580px); gap: 72px; align-items: start; padding-block: 36px 96px; }
.hero-fig { align-self: center; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin: -8px 0 10px; font-size: 14px; line-height: 1.5; color: var(--soft); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs span[aria-hidden] { color: #6f7476; }
.crumbs [aria-current] { color: #d9dbd8; }
.eyebrow { font-size: 14px; line-height: 1.4; font-weight: 650; color: var(--gold); }
.byline { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 14px; line-height: 1.45; color: var(--soft); }
.byline strong { display: block; font-size: 14px; font-weight: 650; color: var(--ink); }
.ph { --s: 96px; flex: none; width: var(--s); height: var(--s); border-radius: 50%; overflow: hidden; border: 2px solid var(--gold); background: #15171a; }
.ph img { width: calc(var(--s) * 4.96); max-width: none; height: auto; margin: calc(var(--s) * -.27) 0 0 calc(var(--s) * -2.5); }
.byline .ph { --s: 40px; border-width: 1.5px; }
.hero h1 { max-width: 620px; margin-top: 10px; }
.nb { white-space: normal; }
@media (min-width: 601px) { .nb { white-space: nowrap; } }
.crumbs [aria-current] { min-width: 0; overflow-wrap: anywhere; }
.lead { margin-top: 18px; max-width: 560px; font-size: 18px; line-height: 1.6; color: #c5c8c6; }

/* Блок «Коротко»: ответ на запрос, первый экран на телефоне */
.short { margin-top: 32px; padding: 28px 32px 30px; }
.label { font-size: 12px; line-height: 1.4; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.short p { margin-top: 10px; font-size: 19px; line-height: 1.55; font-weight: 500; color: #f2f3f5; }
.short ul { display: grid; gap: 9px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .09); }
.short li, .dots li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.55; color: #d4d7d5; }
.short li::before, .dots li::before { content: ''; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* Блок «Как это выглядит»: настоящий экран из проекта */
.fig-label { margin-bottom: 14px; }
.fig-frame { overflow: hidden; border-radius: 16px; background: #111312; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.fig-frame img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; transform: scale(var(--zoom, 1)); transform-origin: var(--fx, 50%) var(--fy, 0%); }
/* Вырез экрана по механизму focus сайта: переменные --zoom, --fx, --fy на рамке (из поля screen.focus), на телефоне --zoom-m, --fx-m, --fy-m, --ar-m, --pos-m. */
.hero-fig figcaption { margin-top: 12px; font-size: 14px; line-height: 1.55; color: var(--soft); }

/* ---------- Основная часть ---------- */
.sec { padding-bottom: 96px; }
.sec > h2 { margin-bottom: 28px; }
.article { display: grid; grid-template-columns: minmax(0, 720px) 320px; justify-content: space-between; gap: 80px; padding-bottom: 96px; }
.prose h2 { margin-top: 64px; margin-bottom: 18px; scroll-margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose p { max-width: 720px; color: var(--body); }
.prose p + p { margin-top: 16px; }
.prose a:not(.btn), .text-link { color: var(--gold); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.toc { position: sticky; top: 24px; align-self: start; padding: 4px 0 4px 22px; border-left: 1px solid var(--line); }
.toc .label { margin-bottom: 14px; }
.toc ol { display: grid; gap: 4px; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: flex; gap: 12px; align-items: baseline; min-height: 44px; padding-block: 8px; font-size: 15px; line-height: 1.4; color: #c9cccb; }
.toc a::before { content: counter(t, decimal-leading-zero); font-size: 12px; font-weight: 650; color: var(--gold); font-variant-numeric: tabular-nums; }
.toc li:first-child a { color: var(--ink); }

/* Таблица сравнения */
.cmp-wrap { margin-top: 26px; border: 1px solid #2a2d30; border-radius: 16px; overflow: hidden; }
.cmp { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.cmp th, .cmp td { padding: 16px 20px; text-align: left; vertical-align: top; border-top: 1px solid #25282b; }
.cmp thead th { border-top: 0; font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); background: #0f1112; }
.cmp thead th.is-agent { color: var(--gold); }
.cmp tbody th { width: 26%; font-weight: 650; color: var(--ink); }
.cmp td { color: #c5c8c6; }
.cmp td.is-agent { color: #f2f3f5; background: rgba(223, 187, 118, .06); }

/* Шаги с номерами */
.steps { counter-reset: s; margin-top: 30px; }
.steps li { counter-increment: s; position: relative; padding: 0 0 30px 66px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #5a5040; background: #14110c; font-size: 17px; font-weight: 700; color: var(--gold); }
.steps li:not(:last-child)::after { content: ''; position: absolute; left: 22.5px; top: 54px; bottom: 8px; width: 1px; background: linear-gradient(#5a5040, #5a504000); }
.steps h3 { font-size: 20px; margin: 8px 0 6px; }
.steps p { font-size: 17px; line-height: 1.6; color: #c9ccca; }
.chip { display: inline-block; padding: 1px 10px; border-radius: 8px; background: #15181a; border: 1px solid #2c3033; font-size: .88em; font-weight: 650; color: #e6cf9a; white-space: nowrap; }

/* «Было → Стало»: как на страницах кейсов (cases.css, .case-ba) */
.ba { padding: 30px 32px 14px; }
.ba > h2 { font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -.02em; color: #f2f3f5; }
.ba > ul { margin-top: 14px; }
.ba > ul > li { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1.15fr); gap: 20px; align-items: start; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .09); }
.ba > ul > li:first-child { border-top: 0; padding-top: 8px; }
.ba p { font-size: 15px; line-height: 1.65; }
.ba p > span { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.ba-was { color: #aeb4b5; }
.ba-was > span { color: #9aa2a3; }
.ba-now { color: #f2f3f5; }
.ba-now > span { color: var(--gold); }
.ba-arrow { margin-top: 28px; color: var(--gold); }

/* Врезка-цитата автора: как .about-quote на /saint/ */
.quote { margin: 0; padding: 6px 0 6px 28px; border-left: 2px solid var(--gold); max-width: 880px; }
.quote p { font-size: 30px; line-height: 1.38; letter-spacing: -.02em; font-weight: 500; color: #ecece8; text-wrap: balance; }
.quote footer { margin-top: 16px; font-size: 14px; line-height: 1.4; font-weight: 600; letter-spacing: .02em; color: var(--soft); }

/* Блок цели: одна кнопка */
.goal { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: center; padding: 48px 56px; border-radius: 28px; border: 1px solid #3b3425; background: linear-gradient(120deg, #dfbb7629, #dfbb760a 45%, #ffffff08), #0e0f10; }
.goal .eyebrow { margin-bottom: 12px; }
.goal h2 { max-width: 560px; }
.goal p { margin-top: 14px; max-width: 520px; color: #cfd2d0; }
.goal .dots { margin-top: 18px; display: grid; gap: 8px; }
.goal .btn { margin-top: 30px; }
.goal-steps { display: grid; gap: 12px; }
.goal-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid #3b3425; background: #ffffff08; font-size: 16px; line-height: 1.45; color: #e4e6e4; }
.goal-steps b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #14110c; border: 1px solid #5a5040; font-size: 15px; color: var(--gold); }
.goal-art { display: flex; justify-content: center; }
.goal-art img { width: 100%; max-width: 300px; height: auto; }

/* Вопросы по теме: раскрывающиеся строки, первая открыта */
.faq { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 80px; }
.faq > div > p { margin-top: 14px; font-size: 16px; color: var(--soft); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding-block: 16px; font-size: 19px; line-height: 1.4; font-weight: 600; color: var(--ink); cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--gold); transition: transform .25s var(--ease); }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details > p { padding: 0 44px 22px 0; font-size: 17px; line-height: 1.65; color: #c5c8c6; }

/* Карточка автора */
.author-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 28px 32px; border-radius: 24px; border: 1px solid #2b2e31; background: #0e1011; }
.author-card .name { font-size: 22px; line-height: 1.3; font-weight: 650; letter-spacing: -.01em; color: var(--ink); }
.author-card .role { margin-top: 6px; font-size: 16px; line-height: 1.55; color: var(--soft); max-width: 640px; }
.text-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 650; color: var(--ink); }
.text-cta .i { color: var(--gold); }

/* Читать дальше: три карточки близких страниц */
.more > h2 { margin-bottom: 28px; }
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { position: relative; display: flex; flex-direction: column; border-radius: 22px; border: 1px solid #25282b; background: #0f1112; overflow: hidden; }
.cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0d0f10; border-bottom: 1px solid #25282b; }
.cover img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.cover.is-obj { background: radial-gradient(70% 80% at 50% 45%, #dfbb7633, transparent 72%), #0b0c0d; }
.cover.is-obj img { object-fit: contain; object-position: center; padding: 10px; }
.card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 22px 22px; }
.tag { align-self: flex-start; padding: 4px 11px; border-radius: 999px; border: 1px solid #ffffff21; background: #ffffff12; font-size: 12px; line-height: 1.4; font-weight: 600; color: #dcdfdc; }
.card h3 { font-size: 20px; line-height: 1.3; }
.card .meta { margin-top: auto; padding-top: 4px; font-size: 14px; line-height: 1.5; color: var(--soft); }
.card p.sub { font-size: 15px; line-height: 1.55; color: #c3c7c5; }
.card a.stretch::after { content: ''; position: absolute; inset: 0; z-index: 2; }

/* ---------- Подвал, как на /saint/ ---------- */
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; min-height: 120px; border-top: 1px solid var(--line); font-size: 14px; color: #a7acad; }
.foot img { width: 88px; height: auto; }
.foot a { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.foot a:first-child { margin-right: auto; }
.foot .onai img { width: auto; height: 24px; }

/* ====================== Страница услуги ====================== */
.inc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 56px; }
.inc li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 20px; align-items: start; }
.inc li:last-child { grid-column: 1 / -1; }
.inc .ic { grid-row: span 2; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; border: 1px solid #3a3629; background: #13120d; color: var(--gold); }
.inc strong { font-size: 19px; line-height: 1.4; font-weight: 650; color: var(--ink); }
.inc p { font-size: 16px; line-height: 1.6; color: #c3c7c5; }

.price { padding: 8px 36px 10px; }
.price > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 32px; align-items: baseline; padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .09); }
.price > li:first-child { border-top: 0; }
.price .n { font-size: 20px; font-weight: 650; color: var(--ink); }
.price .v { grid-row: span 2; grid-column: 2; font-size: 30px; line-height: 1.2; font-weight: 650; letter-spacing: -.02em; color: var(--gold); text-align: right; }
.price .d { font-size: 15px; line-height: 1.6; color: #c3c7c5; max-width: 520px; }

.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: f; }
.flow li { counter-increment: f; position: relative; padding: 34px 28px 0 0; }
.flow li::before { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: #3a3629; }
.flow li::after { content: ''; position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px #090a0b; }
.flow .k { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 650; letter-spacing: .06em; color: var(--gold); }
.flow .k::before { content: '0' counter(f); }
.flow h3 { font-size: 20px; margin-bottom: 8px; }
.flow p { font-size: 16px; line-height: 1.6; color: #c3c7c5; }

.cases-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.case .cover { aspect-ratio: 16 / 9.4; margin: 14px 14px 0; border: 1px solid #ffffff17; border-radius: 15px; }
.case-head { display: flex; align-items: center; min-height: 36px; }
.case-head img { height: 30px; width: auto; }
.case-head img.is-one { height: 46px; margin-block: -6px; }
.case h3 { font-size: 22px; line-height: 1.25; letter-spacing: -.02em; font-weight: 600; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: auto; padding-top: 16px; border-top: 1px solid #ffffff1a; }
.metrics strong { display: block; white-space: nowrap; font-size: 19px; line-height: 1.15; font-weight: 650; letter-spacing: -.02em; color: #f4f4f1; font-variant-numeric: tabular-nums; }
.metrics span { display: block; margin-top: 6px; min-height: calc(12.5px * 1.45 * 3); font-size: 12.5px; line-height: 1.45; color: #a9adab; }
.case .text-cta { margin-top: 4px; }

/* ====================== Хаб «Гайды» ====================== */
.hub-head { padding-block: 36px 40px; }
.hub-head h1 { margin-top: 10px; }
.hub-head .lead { max-width: 640px; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.filter button { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid #ffffff24; background: #ffffff0f; color: #dcdeda; font-size: 14px; font-weight: 600; box-shadow: inset 0 1px 0 #ffffff26; }
.filter button > b { font-size: 12px; font-weight: 500; color: #a9adab; font-variant-numeric: tabular-nums; }
.filter button.on { background: #f0f0ed; border-color: transparent; color: #141617; }
.filter button.on > b { color: #5a605c; }
.feat { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); margin-bottom: 24px; }
.feat .cover { aspect-ratio: auto; min-height: 380px; border-bottom: 0; border-right: 1px solid #25282b; }
.feat .cover img { object-position: top left; }
.feat .card-body { justify-content: center; gap: 16px; padding: 40px 44px; }
.feat h2 { font-size: 32px; }
.feat .sub { font-size: 17px; }
.feat .meta { margin-top: 0; }
.hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-bottom: 96px; }

/* ====================== Телефон и планшет ====================== */
@media (max-width: 1100px) {
  .nav { gap: 22px; }
  .article { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .faq { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 850px) {
  :root { --shell: calc(100% - 32px); }
  .top-in { height: 64px; gap: 12px; }
  .nav { display: none; }
  .top .btn.sm { margin-left: auto; padding: 9px 14px; }
  .burger { display: inline-flex; }
  .brand img { height: 24px; }
  .brand.is-saint img { width: 88px; height: auto; }
  .hero { padding-block: 22px 44px; }
  .sec > h2 { margin-bottom: 20px; }
  .sec, .article { padding-bottom: 48px; }
  .goal { grid-template-columns: 1fr; padding: 28px 22px; gap: 24px; }
  .goal-art { order: -1; justify-content: flex-start; }
  .goal-art img { max-width: 150px; }
  .cases-grid, .more-grid, .hub-grid { grid-template-columns: 1fr; gap: 16px; }
  .feat { grid-template-columns: 1fr; }
  .feat .cover { aspect-ratio: 16 / 10; min-height: 0; border-right: 0; border-bottom: 1px solid #25282b; }
  .feat .card-body { padding: 22px; }
}
@media (max-width: 700px) {
  .inc { grid-template-columns: 1fr; gap: 18px; }
  .flow { grid-template-columns: 1fr; }
  .flow li { padding: 0 0 20px 36px; }
  .flow li:last-child { padding-bottom: 0; }
  .flow li::before { left: 7px; right: auto; top: 18px; bottom: 0; width: 1px; height: auto; }
  .flow li:last-child::before { display: none; }
  .flow li::after { top: 3px; }
  .author-card { grid-template-columns: auto minmax(0, 1fr); gap: 16px 18px; padding: 22px 20px; }
  .author-card .text-cta { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  h1 { font-size: 30px; line-height: 34px; }
  h2 { font-size: 24px; line-height: 30px; }
  .glass-inset { border-radius: 20px; }
  .glass-inset::after { inset: auto 20px 0; }
  .lead { margin-top: 14px; font-size: 17px; }
  .crumbs { margin-bottom: 6px; font-size: 13px; }
  .fig-frame img { aspect-ratio: var(--ar-m, 16 / 10); object-position: var(--pos-m, top center); transform: scale(var(--zoom-m, var(--zoom, 1))); transform-origin: var(--fx-m, var(--fx, 50%)) var(--fy-m, var(--fy, 0%)); }
  .byline { margin-bottom: 12px; }
  .short { margin-top: 24px; padding: 20px 20px 22px; }
  .short p { font-size: 17px; }
  .short ul { margin-top: 14px; padding-top: 14px; }
  .short li, .dots li { font-size: 15px; }
  .hero-fig { margin-top: 8px; }
  .prose h2 { margin-top: 44px; margin-bottom: 14px; }
  .ba { padding: 20px 20px 6px; }
  .ba > ul > li { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-block: 18px; }
  .ba p { font-size: 16px; }
  .ba-arrow { margin-top: 0; transform: rotate(90deg); justify-self: start; }
  .quote { padding-left: 18px; }
  .quote p { font-size: 22px; }
  .faq summary { font-size: 17px; }
  .faq details > p { padding-right: 0; font-size: 16px; }
  .price { padding: 4px 20px 6px; }
  .price > li { grid-template-columns: 1fr; padding-block: 18px; }
  .price .v { grid-row: auto; grid-column: 1; text-align: left; font-size: 26px; }
  .steps li { padding-left: 58px; padding-bottom: 24px; }
  .steps li::before { width: 42px; height: 42px; }
  .steps li:not(:last-child)::after { left: 20.5px; top: 50px; }
  .more h2 { margin-bottom: 20px; }
  .more-grid .card { flex-direction: row; }
  .more-grid .cover { width: 112px; flex: none; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid #25282b; }
  .more-grid .card-body { padding: 14px 16px; gap: 8px; }
  .more-grid .card h3 { font-size: 17px; line-height: 1.3; }
  .more-grid .card p.sub { display: none; }
  .case .cover { aspect-ratio: 16 / 7; }
  .goal-steps { display: none; }
  .metrics { gap: 8px; }
  .metrics strong { font-size: 17px; }
  .metrics span { min-height: 0; font-size: 12px; }
  .feat h2 { font-size: 24px; }
  .foot { display: grid; grid-template-columns: 1fr; gap: 6px; padding-block: 26px 40px; min-height: 0; }
  .foot a:first-child { margin-right: 0; }
  /* Таблица сравнения на телефоне: каждая строка карточкой */
  .cmp thead { display: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: 100%; }
  .cmp tr { padding: 16px 18px; border-top: 1px solid #25282b; }
  .cmp tr:first-child { border-top: 0; }
  .cmp th, .cmp td { padding: 0; border: 0; background: none; }
  .cmp tbody th { width: auto; margin-bottom: 8px; }
  .cmp td { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 3px 0; font-size: 16px; }
  .cmp td::before { content: attr(data-label); font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; line-height: 24px; color: var(--soft); }
  .cmp td.is-agent { background: none; }
  .cmp td.is-agent::before { color: var(--gold); }
}

/* ====================== Дополнения сборщика (SEO-5) ====================== */
/* Мягкая точка заявки сразу после «Коротко» */
.soft-cta { margin-top: 16px; font-size: 15px; line-height: 1.55; color: var(--soft); }
.soft-cta a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 650; color: var(--gold); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.soft-cta .i { width: 18px; height: 18px; }

/* Точка заявки в середине статьи */
.mid-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin-top: 30px; padding: 22px 24px; border-radius: 18px; border: 1px solid #3b3425; background: linear-gradient(120deg, #dfbb7621, #dfbb760a 55%, #ffffff06), #0e0f10; }
.mid-cta p { flex: 1 1 300px; margin: 0; font-size: 17px; line-height: 1.55; color: #e4e6e4; }
.mid-cta .btn { flex: none; }

/* Списки, картинки и цитаты внутри текста */
.plist { display: grid; gap: 9px; margin-top: 16px; }
.plist li { position: relative; padding-left: 22px; font-size: 17px; line-height: 1.6; color: var(--body); }
.plist li::before { content: ''; position: absolute; left: 0; top: .66em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.prose .fig { margin-top: 28px; }
.prose .fig figcaption { margin-top: 12px; font-size: 14px; line-height: 1.55; color: var(--soft); }
.prose .fig .fig-frame img { aspect-ratio: 16 / 10; }
.prose .quote { margin-top: 30px; }
.prose .quote p { font-size: 24px; line-height: 1.4; }
.prose strong { font-weight: 650; color: var(--ink); }
.prose h3 { margin-top: 26px; margin-bottom: 8px; }

/* Меню на телефоне без скрипта: details/summary */
.burger-menu { display: none; position: relative; }
.burger-menu summary { list-style: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid #34373a; color: #d8dad8; cursor: pointer; }
.burger-menu summary::-webkit-details-marker { display: none; }
.burger-menu nav { position: absolute; right: 0; top: 52px; z-index: 20; min-width: 230px; display: grid; padding: 8px; border-radius: 16px; border: 1px solid #2b2e31; background: #0e1011; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); }
.burger-menu nav a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; font-size: 15px; color: #d8dad8; }
.burger-menu nav a[aria-current] { color: var(--gold); }

/* Фильтр хаба показывается только со скриптом */
.filter[hidden] { display: none; }
.hub-grid .card[hidden], .feat[hidden] { display: none; }

/* Кнопка «Обсудить задачу» и «Смотреть обучение» внутри блока цели не растягиваются на всю ширину карточки */

@media (max-width: 850px) {
  .burger-menu { display: block; }
}
@media (max-width: 600px) {
  .mid-cta { padding: 18px 18px; }
  .mid-cta .btn { width: 100%; }
  .prose .quote p { font-size: 20px; }
  .cmp td { grid-template-columns: 96px minmax(0, 1fr); }
  .cmp td::before { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Для скринридеров */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.case-head .case-name { font-size: 17px; font-weight: 650; color: var(--ink); }

/* Длинные слова, команды и адреса в тексте переносятся и не раздвигают страницу на телефоне */
.prose, .short, .faq, .ba, .goal, .mid-cta, .steps, .plist, .cmp, .soft-cta, .hero-copy, .card-body, .author-card, .inc, .flow, .price { overflow-wrap: anywhere; }

/* ====================== SEO-5b: код, подписка, отступы, крошки ====================== */
/* Код: моноширинный системный шрифт без лигатур, знак | читается вертикальной чертой */
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
code { padding: 1px 7px; border-radius: 7px; background: #15181a; border: 1px solid #2c3033; font-size: .88em; font-weight: 500; color: #e6cf9a; overflow-wrap: anywhere; word-break: break-word; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.prose .code { margin-top: 22px; max-width: 100%; min-width: 0; }
.code pre { margin: 0; padding: 18px 22px; max-width: 100%; overflow-x: auto; border-radius: 14px; border: 1px solid #2b2e31; background: #0b0c0d; font-size: 15px; line-height: 1.7; color: #e8e8e4; white-space: pre; tab-size: 2; -webkit-overflow-scrolling: touch; }
.code pre:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.code pre code { padding: 0; border: 0; border-radius: 0; background: none; font-size: inherit; font-weight: 400; color: inherit; white-space: pre; overflow-wrap: normal; word-break: normal; }
.prose .code figcaption { margin-top: 10px; font-size: 14px; line-height: 1.55; color: var(--soft); }

/* Отступ после картинки, кода, цитаты, таблицы, шагов и точки заявки: следующий абзац, список или картинка не прилипают */
.prose :is(.fig, .code, .quote, .cmp-wrap, .steps, .mid-cta, .plist) + :is(p, ul, ol, figure) { margin-top: 26px; }
.prose .plist + .plist, .prose p + .plist { margin-top: 16px; }

/* Подписка на блог в Telegram: тише главной цели, вторичная кнопка в стиле фильтра хаба */
.btn-2 { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 20px; border-radius: 999px; border: 1px solid #ffffff24; background: #ffffff0f; box-shadow: inset 0 1px 0 #ffffff26; color: #dcdeda; font-size: 15px; font-weight: 650; line-height: 1.2; white-space: nowrap; }
.btn-2 .i { color: var(--gold); }
.subscribe { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; padding: 26px 32px; border-radius: 24px; border: 1px solid #2b2e31; background: #0e1011; }
.subscribe h2 { margin-top: 4px; font-size: 26px; line-height: 32px; }
.subscribe.is-compact { padding: 18px 24px; border-radius: 20px; }
.subscribe.is-compact h2 { font-size: 20px; line-height: 26px; }
.sec:has(> .subscribe.is-compact) { padding-bottom: 40px; }

@media (max-width: 600px) {
  .subscribe { padding: 20px 20px; }
  .subscribe h2 { font-size: 22px; line-height: 28px; }
  .subscribe .btn-2 { width: 100%; }
  /* Хлебные крошки на телефоне: остаётся «Главная / Гайды» (или раздел), текущая страница и черта перед ней скрыты. В разметке и JSON-LD она есть. */
  .hero .crumbs > [aria-current], .hero .crumbs > span[aria-hidden]:nth-last-child(2) { display: none; }
}

/* ====================== SEO-21: кадр обучения в блоке заявки гайда ====================== */
/* Вместо декоративной картинки: кадр AI-наставника или урока с подписью. Рамка в стиле обложек серии: скругление 18 px, светлая граница, тень. */
.goal-shot { margin: 0; min-width: 0; }
.goal-shot img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .16); background: #111312; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(223, 187, 118, .1); }
.goal-shot figcaption { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--soft); }
@media (min-width: 851px) {
  .goal--shot { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); }
}
@media (min-width: 1024px) {
  /* Лёгкий наклон только на широком экране: на телефоне кадр ровный */
  .goal-shot img { transform: perspective(1400px) rotateY(-7deg) rotateZ(-.8deg); transform-origin: 0 50%; }
  .goal-shot figcaption { padding-left: 6px; }
}
@media (min-width: 1100px) {
  .goal--shot { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
}
