/* Стили портала целиком, рукописные. Tailwind в T08 решили не заводить:
   пять read-only экранов не окупают бинарник в tools/ и шаг сборки перед каждым коммитом. */
:root {
    /* Design tokens 2026-11-16. Один нейтральный тёмный, один основной (teal), один фирменный
       тёплый акцент (signal) — только для «важно, читать первым». Ошибки — отдельный цвет. */
    --ink: #17211f;
    --ink-soft: #2c3a37;
    --muted: #546b78;
    --line: #dce5e2;
    --bg: #f7f9f8;
    --tint: #f2f6f4;
    --cream: #f5f0e8;
    --cream-line: #e8dcc7;
    --teal: #24534f;
    --teal-soft: #5d8f88;
    --teal-tint: #e8f0ee;
    --signal: #b84f31;
    --signal-tint: #fbf1ec;
    --fg: var(--ink);
    --accent: var(--teal);
    --ok: #2f755d;
    --fail: #9b1c1c;
    --warn: #8a5a12;
    --serif: Georgia, "Times New Roman", serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --r-box: 2px;
    --r-control: 4px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font: 15px/1.55 var(--sans);
}

.topbar {
    display: flex;
    align-items: baseline;
    gap: 24px;
    padding: 14px 28px;
    border-bottom: 1px solid var(--line);
}

.brand {
    font-weight: 650;
    letter-spacing: -0.01em;
    text-decoration: none;
    color: var(--fg);
}

main { padding: 28px; max-width: 1180px; }

.site-footer { margin-top: 56px; padding: 24px 28px; border-top: 1px solid var(--line); }
.site-footer-inner { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; max-width: 1124px; }
.site-footer p { margin: 0; }
.site-footer-brand { color: var(--fg); font: 650 16px/1.2 var(--serif); }
.site-footer-brand span { margin-left: 6px; color: var(--muted); font: 600 10px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.site-footer-note { color: var(--muted); font-size: 12px; }

h1 { font-size: 22px; font-weight: 650; letter-spacing: -0.01em; margin: 0 0 6px; }

.muted { color: var(--muted); }

.ok   { color: var(--ok); font-weight: 550; }
.fail { color: var(--fail); font-weight: 550; }

.card {
    border: 1px solid var(--line);
    border-radius: var(--r-control);
    padding: 16px 18px;
    margin-top: 20px;
}

.card h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 10px; }

ul.checklist { margin: 0; padding-left: 18px; }
ul.checklist li { margin: 3px 0; }

.topbar nav { display: flex; gap: 16px; }
.topbar nav a { color: var(--accent); text-decoration: none; }

.account-menu { position: relative; margin-left: auto; }
.account-menu summary { list-style: none; cursor: pointer; color: var(--accent); font-size: 14px; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary::after { content: "⌄"; margin-left: 5px; font-size: 12px; }
.account-menu-panel { position: absolute; z-index: 10; top: calc(100% + 9px); right: 0; display: grid; min-width: 195px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-box); background: #fff; box-shadow: 0 8px 20px rgba(25, 47, 59, .12); }
.account-menu-panel a, .account-menu-panel button { padding: 8px 9px; color: var(--fg); text-align: left; text-decoration: none; font: inherit; font-size: 14px; background: none; border: 0; cursor: pointer; }
.account-menu-panel a:hover, .account-menu-panel button:hover { background: var(--tint); color: var(--accent); }
.account-menu-panel form { margin: 0; }
.account-email { padding: 5px 9px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }

form.form { max-width: 360px; display: grid; gap: 12px; }
form.form label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }

/* Демо-вход состоит из отдельных POST-форм. Grid даёт им явный промежуток,
   чтобы соседние кнопки не выглядели как одна сдвоенная кнопка. */
.demo-sign-in-actions { display: grid; justify-items: start; gap: 8px; }
.demo-sign-in-actions form { margin: 0; }

input[type="email"], input[type="password"], input[type="text"] {
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: var(--r-control);
    font: inherit;
}

button {
    padding: 7px 14px;
    border: 1px solid var(--accent);
    border-radius: var(--r-control);
    background: var(--accent);
    color: #fff;
    font: inherit;
    cursor: pointer;
}


/* ── Feed ─────────────────────────────────────────────────────────────────── */

main { max-width: 1180px; }

.feed-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.summary { margin: 0; font-size: 13px; }

.filters {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin: 18px 0 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.filters label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.filters label span { text-transform: uppercase; letter-spacing: 0.05em; }
.filters .search { flex: 1 1 240px; }

.filters select,
.filters input[type="search"] {
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: var(--r-control);
    background: var(--bg);
    color: var(--fg);
    font: inherit;
    max-width: 100%;
}

/* Слот сброса — только якорь для htmx: в раскладке формы участвует сама ссылка. */
.filters .clear-slot { display: contents; }

/* Сброс стоит рядом с Apply и выглядит как второстепенная кнопка: это ссылка, а не форма. */
.filters .clear {
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: var(--r-control);
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
}

.filters .clear:hover { color: var(--fg); border-color: var(--muted); }

.rowcount { margin: 0 0 8px; font-size: 13px; }

/* [portal-fix 2026-11-13 #3] The table was only ever tuned for a wide desktop monitor:
   below ~1000px, letting cells wrap squeezed Signal into 6-7 lines with no clear reason
   why, and on a phone the hidden columns (Signal included) were clipped with no scrollbar
   and no cue there was anything to the right. Below the min-width, .feed-table-scroll now
   scrolls sideways; `background-attachment: scroll` keeps this edge shadow fixed to the
   container itself rather than its scrolling content, so it stays visible as a constant
   "more this way" cue (simpler and more robust than a shadow that tracks scroll position,
   and the one place this table needs right over exactly correct). */
.feed-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background-image: linear-gradient(to left, rgba(23, 33, 31, .12), rgba(23, 33, 31, 0) 24px);
    background-repeat: no-repeat;
    background-position: 100% 0;
    background-size: 24px 100%;
    background-attachment: scroll;
}

table.feed {
    width: 100%;
    min-width: 990px;
    border-collapse: collapse;
    font-size: 14px;
}

table.feed th,
table.feed td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

table.feed th {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    white-space: nowrap;
}

table.feed th a { color: inherit; text-decoration: none; }
table.feed th a:hover { color: var(--fg); text-decoration: underline; }
table.feed th.sorted a { color: var(--fg); text-decoration: underline; }

table.feed tbody tr:hover { background: var(--tint); }

table.feed .num { text-align: right; font-variant-numeric: tabular-nums; width: 1%; white-space: nowrap; }
table.feed .company { white-space: nowrap; }
table.feed .evidence { white-space: nowrap; font-size: 13px; }
/* [portal-fix 2026-11-13 #3] width:55% alone barely mattered: the nowrap columns
   (num/company/evidence) claim their natural content width first under the default
   table-layout:auto, leaving Signal whatever is left -- as little as 125px, wrapping
   a title across 6-7 lines. A min-width floor keeps it readable; the table then grows
   past the viewport and .feed-table-scroll (above) is what actually handles that. */
table.feed .signal { width: 55%; min-width: 320px; }
.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; }
.research-action { width: 1%; white-space: nowrap; }
.research-action form { margin: 0; }
.research-action button { display: inline-grid; place-items: center; width: 29px; height: 29px; padding: 0; border: 1px solid var(--line); border-radius: var(--r-control); color: var(--fg); background: #fff; cursor: pointer; }
.research-action button:hover, .research-action button:focus-visible { color: var(--accent); border-color: var(--accent); background: var(--tint); }
.research-action button.is-saved { color: var(--teal); border-color: var(--teal); background: var(--teal-tint); }
.research-action svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }

/* Бейджи приоритета: свой набор цветов — в клиентских колонках листа 01 заливки нет.
   Ramp идёт от красного к серому, порядок тот же, что в PriorityBands.All. */
.badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 550;
    white-space: nowrap;
}

/* 2026-11-16: приоритет — одна шкала внимания. Верх шкалы в фирменном тёплом «signal»,
   середина в teal, низ серый. Красный «ошибочный» цвет здесь не используется. */
.badge-critical    { background: var(--signal); border-color: var(--signal); color: #fff; }
.badge-very-high   { background: #f3d9cf; border-color: #e2b2a1; color: #7f3218; }
.badge-high        { background: var(--signal-tint); border-color: #ecc9bb; color: #8c3a20; }
.badge-medium-high { background: var(--teal-tint); border-color: #b9cfca; color: var(--teal); }
.badge-medium      { background: #f2f6f4; border-color: #d3e0dd; color: #2f5f5a; }
/* [portal-fix 2026-11-13 #4] var(--muted) on this background measured at 4.46:1, just under
   the 4.5:1 WCAG AA floor for normal-weight small text -- worth the one-off override since
   Low is the single most common badge (most signals land here). var(--muted) keeps the same hue
   but reads at ~4.9:1. */
.badge-low         { background: #f3f4f6; border-color: var(--line); color: var(--muted); }
/* [very-low 2026-11-17] Below Low: white with a dashed outline, same readable muted text. */
.badge-very-low    { background: #fff; border-color: var(--line); border-style: dashed; color: var(--muted); }
.badge-no-signal   { background: #fff; border-color: var(--line); color: var(--muted); }
.badge-plain       { background: #f3f4f6; border-color: var(--line); color: var(--muted); }

/* 2026-11-16: категория — нейтральная метка с цветной точкой из одной приглушённой гаммы.
   Цвет различает категории, но не спорит с приоритетом и не превращает таблицу в дашборд. */
.category-badge { display: inline-flex; align-items: center; gap: 6px; padding: 1px 7px; border: 1px solid var(--line); border-radius: var(--r-box); background: #fff; color: var(--ink-soft); font: inherit; font-size: 12px; font-weight: 550; letter-spacing: normal; line-height: 1.4; }
.category-badge::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--muted)); }
[class*="category-"] { --category-accent: var(--teal); }
.category-product      { --dot: #24534f; }
.category-customer     { --dot: #5d8f88; }
.category-partnerships { --dot: #6a6f9a; }
.category-market       { --dot: #b84f31; }
.category-strategy     { --dot: #8a5a44; }
.category-leadership   { --dot: #4f6a7f; }
.category-narrative    { --dot: #a3803a; }
.category-trust        { --dot: #3f7a5f; }
.category-regulatory   { --dot: #47718c; }
.category-other        { --dot: #8a979d; }
.category-view.category-product, .category-view.category-customer, .category-view.category-partnerships, .category-view.category-market, .category-view.category-strategy, .category-view.category-leadership, .category-view.category-narrative, .category-view.category-trust, .category-view.category-regulatory, .category-view.category-other { background: transparent; border-color: transparent; color: inherit; }

.pager {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-top: 14px;
    font-size: 13px;
}

.pager a { color: var(--accent); text-decoration: none; }
.pager a:hover { text-decoration: underline; }

.empty {
    margin: 24px 0;
    padding: 18px;
    border: 1px dashed var(--line);
    border-radius: var(--r-box);
    color: var(--muted);
}

.empty a { color: var(--accent); }

/* Пока фрагмент летит, таблица слегка гаснет — иначе непонятно, сработал ли фильтр. */
#rows.htmx-request { opacity: 0.55; transition: opacity 120ms linear; }

/* ── Панель деталей ───────────────────────────────────────────────────────── */

.feed-body { display: flex; align-items: flex-start; gap: 24px; }

/* min-width: 0 — иначе длинные заголовки в таблице не дают ей ужаться под панель. */
.feed-body #rows { flex: 1 1 auto; min-width: 0; overflow-x: auto; }

.detail-slot { max-width: 640px; margin-top: 20px; }
.feed-body .detail-slot { flex: 0 0 390px; position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; scroll-margin-top: 20px; }
@media (max-width: 1000px) {
    .feed-body { flex-direction: column; }
    .feed-body #rows { width: 100%; }
    .feed-body .detail-slot { order: -1; flex: none; position: static; width: 100%; max-width: none; max-height: none; }
}

/* До первого клика слот пуст — тогда его не должно быть видно вовсе. */
.detail-slot:empty { display: none; }

.coverage-summary { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 16px; }
.coverage-summary summary { color: var(--accent); cursor: pointer; font-weight: 600; }
.coverage-table { width: min(100%, 560px); margin-top: 14px; border-collapse: collapse; font-size: 14px; }
.coverage-table th, .coverage-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.coverage-table th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }

.detail {
    border: 1px solid var(--line);
    border-radius: var(--r-box);
    padding: 16px 18px;
}

.detail h2 { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; margin: 2px 0 0; }
.detail h3 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 6px; }

.detail-company { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }

.detail-section { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.detail-section p { margin: 0; }
.save-signal-form { margin: 0 0 16px; }
.note-form { display: grid; gap: 12px; }
.note-form label { display: grid; gap: 5px; color: var(--muted); font-size: 13px; }
.note-form textarea { box-sizing: border-box; width: 100%; resize: vertical; font: inherit; color: var(--fg); }
.optional { font-weight: 400; }
.note-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.note-actions .secondary { background: #fff; color: var(--fg); border-color: var(--line); }

.detail-priority { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.detail-priority .score { font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
.detail-priority .score .muted { font-size: 13px; font-weight: 400; }

.evidence-list { margin: 0; padding-left: 18px; }
.evidence-list li { margin: 3px 0 9px; }
.evidence-list a { color: var(--accent); }

/* Ссылка на источник в стиле научной цитаты: мелко и аккуратно. */
.source-cite { font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.cite-company { font-weight: 650; color: var(--ink-soft); }
.source-cite a.cite-title { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(36, 83, 79, .35); }
.source-cite a.cite-title:hover { text-decoration-color: currentColor; }
.cite-dates { display: block; color: var(--muted); font-size: 12px; }

/* Значок «?» с подсказкой: hover и фокус с клавиатуры, без JS. */
.hint { position: relative; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 4px; border: 1px solid #b9c8c4; border-radius: 50%; color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1; cursor: help; vertical-align: 1px; }
.hint:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hint-text { position: absolute; top: calc(100% + 7px); left: -8px; z-index: 20; width: 260px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-box); background: var(--ink); color: var(--cream); font-size: 12px; font-weight: 400; line-height: 1.45; letter-spacing: normal; text-align: left; text-transform: none; white-space: normal; box-shadow: 0 6px 18px rgba(23, 33, 31, .18); opacity: 0; visibility: hidden; transition: opacity .12s; pointer-events: none; }
.hint:hover .hint-text, .hint:focus .hint-text { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: reduce) { .hint-text { transition: none; } }
/* Research coverage: сводка выпуска и пояснение аналитика. */
.coverage-edition { max-width: 900px; margin: 26px 0 30px; padding: 24px 26px; border: 1px solid var(--cream-line); border-top: 4px solid var(--teal); background: #fffdf9; }
.coverage-edition h2 { margin: 0 0 14px; color: var(--ink); font: 600 24px/1.2 var(--serif); }
.coverage-facts { display: flex; flex-wrap: wrap; gap: 10px 34px; margin: 0 0 16px; }
.coverage-facts dt { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.coverage-facts dd { margin: 2px 0 0; color: var(--teal); font: 600 26px/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.coverage-note p { max-width: 760px; margin: 0 0 10px; color: var(--ink-soft); line-height: 1.6; }
.coverage-quiet { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.coverage-quiet strong { color: var(--ink-soft); }
.coverage-list-title { margin: 6px 0 12px; color: var(--teal); font: 600 20px var(--serif); }
.coverage-status { color: var(--muted); font-size: 13px; font-weight: 650; }
.date-cell { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.date-cell small { display: block; color: var(--muted); font-size: 11px; }

table.feed .signal a { color: var(--fg); text-decoration: none; }
table.feed .signal a:hover { color: var(--accent); text-decoration: underline; }

/* Сигнал, открытый по прямой ссылке: колонки рядом нет, поэтому ширина как у текста. */
.detail-page { max-width: 640px; }
.crumbs { margin: 0 0 14px; font-size: 13px; }
.crumbs a { color: var(--accent); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Узкий экран: панель уезжает под таблицу, а не жмёт её. */

/* ── Patterns ─────────────────────────────────────────────────────────────── */

/* Раскладка та же, что в feed: колонка контента и липкая панель деталей рядом. */
.patterns-body { display: flex; align-items: flex-start; gap: 24px; }
.patterns-body .patterns { flex: 1 1 auto; min-width: 0; }

.period-switch { display: flex; gap: 14px; flex-wrap: wrap; margin: 14px 0 4px; font-size: 13px; }
.period-switch a { color: var(--accent); text-decoration: none; }
.period-switch a:hover { text-decoration: underline; }
.period-switch .current { color: var(--fg); font-weight: 550; }

.pattern {
    border: 1px solid var(--line);
    border-radius: var(--r-box);
    padding: 16px 18px;
    margin-top: 16px;
}

.pattern-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pattern-head h2 { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; margin: 0; }

/* Strength — те же два конца шкалы: подтверждённое заметнее, чем зарождающееся. */
.badge-confirmed { background: var(--teal); border-color: var(--teal); color: #fff; }
.badge-emerging  { background: #fff; border-color: var(--teal-soft); color: var(--teal); }

.pattern-companies { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 0; }

.chip {
    padding: 1px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
}

.pattern-items { margin: 0; padding: 0; list-style: none; }
.pattern-items li { border-top: 1px dashed var(--line); }
.pattern-items li:first-child { border-top: none; }

.pattern-items a {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 5px 0;
    color: var(--fg);
    text-decoration: none;
    font-size: 14px;
}

.pattern-items a:hover { color: var(--accent); }
.pattern-items a:hover .title { text-decoration: underline; }

.pattern-items .num {
    flex: 0 0 auto;
    min-width: 22px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-size: 12px;
    color: var(--muted);
}

.pattern-items .company { flex: 0 0 auto; color: var(--muted); font-size: 13px; white-space: nowrap; }

/* Узкий экран: панель уезжает под карточки, как и под таблицу feed. */
@media (max-width: 900px) {
    .patterns-body { display: block; }
}

/* ── Import ───────────────────────────────────────────────────────────────── */

.warn { color: var(--warn); font-weight: 550; }

.upload {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin: 18px 0 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.upload label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.upload label span { text-transform: uppercase; letter-spacing: 0.05em; }
.upload input[type="file"] { font: inherit; font-size: 13px; }

.import-outcome { margin: 16px 0 0; }

.confirm { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

table.counts,
table.issues {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 14px;
}

table.counts th, table.counts td,
table.issues th, table.issues td {
    text-align: left;
    padding: 6px 10px;
    border-bottom: 1px solid var(--line);
}

table.counts th, table.issues th {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

table.counts .num, table.issues .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    width: 1%;
    white-space: nowrap;
}

table.issues td { vertical-align: top; }
table.issues .row-error { background: #fef2f2; }

/* Public marketing site */
.topbar {
    align-items: center;
    min-height: 68px;
    padding: 12px clamp(20px, 4vw, 64px);
    background: var(--cream);
    border-color: var(--cream-line);
}

.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-family: var(--serif); font-size: 19px; }
.brand img { width: 30px; height: 30px; object-fit: cover; border-radius: 50%; clip-path: circle(50%); }
.brand-lockup { display: grid; gap: 1px; line-height: 1; }
.brand-lockup small { color: var(--muted); font: 600 10px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.topbar nav { margin-left: 42px; gap: 20px; }
.topbar nav a { color: var(--teal); font-size: 14px; }
.topbar nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.marketing-main { max-width: none; padding: 0; }
.marketing { color: var(--ink); font: 16px/1.6 var(--sans); }
.marketing h1, .marketing h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.035em; }
/* 2026-11-17: размер заголовка зависит и от ширины, и от высоты окна — на ноутбуке при 100%
   (масштаб Windows 125%, ~700px по высоте) первый экран целиком с кнопками помещается. */
.marketing h1 { font-size: clamp(40px, min(4.6vw, 8.4vh), 68px); line-height: 1; margin: 14px 0 20px; max-width: 760px; }
.marketing h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.05; margin: 8px 0 16px; max-width: 700px; }
.marketing h3 { font-size: 16px; margin: 0 0 7px; color: var(--teal); }
.marketing p { margin: 0; }
.eyebrow { color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; }

.hero { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(360px, .97fr); align-items: center; gap: clamp(28px, 6vw, 100px); min-height: 560px; padding: clamp(40px, 8vh, 72px) clamp(24px, 7vw, 120px); background: var(--cream); overflow: hidden; }
.hero-intro { max-width: 540px; color: var(--ink-soft); font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; }
.hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; padding: 11px 19px; border-radius: var(--r-control); text-decoration: none; font-size: 15px; font-weight: 650; }
.button-primary { background: var(--teal); border: 1px solid var(--teal); color: #fff; }
.button-primary:hover { background: var(--ink); border-color: var(--ink); }
.text-link { color: var(--teal); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: var(--ink); }
.hero-note { margin-top: 28px !important; color: var(--muted); font-size: 13px; }
.hero-product { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 14px; min-height: 405px; padding: 16px 0; }
.product-window { overflow: hidden; border: 1px solid #cddbd8; border-radius: var(--r-box); background: #fff; box-shadow: 0 24px 48px rgba(36, 83, 79, .14); }
.product-window-primary { position: relative; z-index: 2; width: min(100%, 580px); }
.product-window-secondary { position: relative; z-index: 1; width: min(66%, 300px); margin-left: auto; opacity: .98; }
.product-window-bar { display: flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 11px; border-bottom: 1px solid var(--line); background: var(--tint); color: var(--muted); font: 600 10px/1 var(--sans); letter-spacing: .05em; text-transform: uppercase; }
.product-window-bar span { display: block; width: 5px; height: 5px; border-radius: 50%; background: #c5d1cc; }
.product-window-bar b { margin-left: 4px; font-weight: 650; }
.product-window-content { padding: 25px; }
.product-window-kicker { color: var(--teal); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.product-window h2 { max-width: 470px; margin: 7px 0 20px; color: var(--ink); font: 600 clamp(21px, 2.2vw, 31px)/1.16 var(--serif); letter-spacing: -.025em; }
.product-window-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.product-window-columns p { margin: 0; padding: 13px; border-left: 3px solid var(--teal); background: #f7f9f8; color: var(--ink-soft); font-size: 11px; line-height: 1.45; }
.product-window-columns p:last-child { border-left-color: var(--teal-soft); }
.product-window-columns strong { color: var(--teal); font-size: 11px; }
/* 2026-11-17: невысокий экран (ноутбук при 100%) — превью компактнее, три сигнала вместо четырёх. */
@media (min-width: 1001px) and (max-height: 820px) {
    .hero-product { min-height: 0; }
    .product-window-content { padding: 20px 22px; }
    .product-window h2 { margin-bottom: 14px; font-size: clamp(20px, 1.8vw, 26px); }
    .hero .signal-preview li:nth-child(n+4) { display: none; }
}
.signal-table-preview { padding: 10px 13px 12px; }
.signal-table-preview p { display: grid; grid-template-columns: 7px 1fr 1.2fr 22px; align-items: center; gap: 6px; margin: 0; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 11px; }
.signal-table-preview p:last-child { border-bottom: 0; }
.signal-table-preview i { width: 5px; height: 5px; border-radius: 50%; background: var(--signal); }
.signal-table-preview b { color: var(--signal); font-weight: 650; }
.signal-table-preview span { color: var(--ink-soft); font-weight: 650; }
.signal-table-preview em { color: var(--teal); font-style: normal; font-variant-numeric: tabular-nums; }

.proof-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.proof-strip p { min-height: 155px; padding: 28px clamp(22px, 4vw, 58px); background: #e7ecea; }
.proof-strip strong, .proof-strip span { display: block; }
.proof-strip strong { color: var(--teal); font-family: var(--serif); font-size: 23px; font-weight: 600; }
.proof-strip span { margin-top: 8px; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }

.section { padding: 104px clamp(24px, 7vw, 120px); }
.section-heading > p:last-child { max-width: 650px; color: var(--muted); font-size: 18px; }
.sample-section { background: #fff; }
.product-proof-section { background: #fff; }
.product-proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 44px; border: 1px solid var(--line); background: var(--line); }
.product-proof-grid article { min-height: 210px; padding: 26px; background: #fff; }
.product-proof-grid span { display: block; margin-bottom: 28px; color: var(--signal); font: 650 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.product-proof-grid h3 { margin: 0 0 10px; color: var(--teal); font-family: var(--serif); font-size: 21px; }
.product-proof-grid p { max-width: 270px; color: var(--muted); font-size: 14px; }
.comparison-section { background: var(--tint); }
.comparison-table { margin-top: 42px; overflow-x: auto; border: 1px solid #cfddda; background: #fff; }
.comparison-table table { width: 100%; min-width: 700px; border-collapse: collapse; }
.comparison-table th, .comparison-table td { padding: 18px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison-table thead th { background: var(--teal); color: #fff; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.comparison-table tbody th { width: 22%; color: var(--teal); font-family: var(--serif); font-size: 17px; font-weight: 600; }
.comparison-table td { width: 39%; color: #465a5a; font-size: 14px; line-height: 1.5; }
.comparison-table tbody tr:last-child > * { border-bottom: 0; }
.comparison-table .signalflow-row > * { background: var(--cream); }
.comparison-table .signalflow-row th { color: var(--teal); }
.marketing-qa { background: #fff; }
.marketing-qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 42px; border: 1px solid var(--line); background: var(--line); }
.marketing-qa-grid details { min-height: 150px; padding: 23px 25px; background: #fff; }
.marketing-qa-grid summary { cursor: pointer; color: var(--teal); font: 600 19px/1.25 var(--serif); }
.marketing-qa-grid p { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.qa-method-link { display: inline-block; margin-top: 25px; }
.signal-sample { margin-top: 44px; border: 1px solid var(--line); border-radius: var(--r-box); overflow: hidden; box-shadow: 0 9px 30px rgba(23, 33, 31, .045); }
.signal-sample header { display: flex; justify-content: space-between; gap: 14px; padding: 14px 20px; background: #e7ecea; border-bottom: 1px solid var(--line); }
.sample-kicker { color: var(--muted); font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.sample-label { color: var(--teal); font-size: 13px; font-weight: 650; }
.sample-grid { display: grid; grid-template-columns: 1.12fr 1fr 1fr; }
.sample-grid > div { min-height: 205px; padding: 25px 24px; border-right: 1px solid var(--line); }
.sample-grid > div:last-child { border-right: 0; }
.sample-grid p { font-size: 15px; line-height: 1.55; }
.sample-grid small { display: block; margin-top: 16px; color: var(--muted); font-size: 12px; }

.coverage-section { background: var(--cream); }
.coverage-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: clamp(38px, 7vw, 110px); margin-top: 46px; }
.signal-families { display: grid; gap: 0; padding: 0; margin: 0; list-style: none; border-top: 1px solid #d8cbb2; }
.signal-families li { display: grid; grid-template-columns: 54px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid #d8cbb2; }
.signal-families li > span { color: var(--signal); font: 600 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.signal-families p { color: var(--muted); font-size: 14px; }
.method-note { align-self: start; padding: 27px; border: 1px solid #d8cbb2; border-radius: var(--r-box); background: var(--cream-line); }
.method-note > p:nth-child(2) { margin: 11px 0 20px; color: var(--ink-soft); }

.buyers-section { background: #fff; }
.buyer-list { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 45px; border-top: 1px solid var(--line); }
.buyer-list article { padding: 24px 28px 20px 0; margin-right: 28px; border-right: 1px solid var(--line); }
.buyer-list article:last-child { margin-right: 0; border-right: 0; }
.buyer-list p { color: var(--muted); font-size: 15px; }

.cta-section { position: relative; display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); align-items: center; min-height: 420px; padding: 76px clamp(24px, 7vw, 120px); background: var(--ink-soft); color: #fff; overflow: hidden; }
.cta-section h2 { max-width: 710px; color: #fff; }
.cta-section .eyebrow { color: #d8cbb2; }
.cta-section div > p:not(.eyebrow) { max-width: 580px; margin-bottom: 28px; color: #e7ecea; font-size: 18px; }
.cta-mark { position: absolute; width: 440px; max-width: 40vw; left: 3%; opacity: .28; mix-blend-mode: screen; }
.cta-section > div { position: relative; grid-column: 2; }
.button-light { background: var(--cream); border: 1px solid var(--cream); color: var(--ink); }
.button-light:hover { background: #fff; }

/* Лендинг: схема «много обновлений → короткий бриф», пример находки, стандарты, покрытие. */
.flow-section { background: #fff; }
.flow-figure { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 44px 0 0; border: 1px solid var(--line); background: var(--line); }
.flow-stage { position: relative; padding: 24px 24px 22px; background: #fff; }
.flow-stage + .flow-stage::before { content: "→"; position: absolute; top: 22px; left: -13px; z-index: 1; display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--teal); font-size: 13px; }
.flow-stage h3 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 6px; font-family: var(--serif); font-size: 20px; }
.flow-stage h3 span { color: var(--teal); font: 650 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.flow-stage > p { min-height: 66px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.flow-stream, .flow-sift, .flow-brief { margin: 16px 0 0; padding: 0; list-style: none; font-size: 12.5px; }
.flow-stream li { padding: 6px 0; border-bottom: 1px dashed var(--line); color: var(--muted); }
.flow-stream li:nth-child(even) { color: var(--muted); }
.flow-sift li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0 6px 10px; border-bottom: 1px dashed var(--line); }
.flow-sift .is-kept { border-left: 2px solid var(--teal); color: var(--ink-soft); font-weight: 600; }
.flow-sift .is-out { border-left: 2px solid transparent; color: #6f7d7a; text-decoration: line-through; text-decoration-color: #c5d1cc; }
.flow-sift small { color: var(--muted); font-size: 12px; text-decoration: none; white-space: nowrap; }
.flow-brief li { display: grid; grid-template-columns: 22px 1fr auto; align-items: baseline; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.flow-brief b { color: var(--signal); font-variant-numeric: tabular-nums; }
.flow-src { color: var(--teal); font-size: 11px; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.flow-pattern { margin-top: 14px !important; padding: 11px 13px; border-left: 3px solid var(--teal-soft); background: var(--cream); color: var(--ink-soft); font-size: 13px; line-height: 1.45; }
.flow-pattern strong { display: block; color: var(--teal); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.flow-figure figcaption { grid-column: 1 / -1; padding: 14px 24px; background: #f7f9f8; color: var(--muted); font-size: 13px; }
.flow-figure figcaption b { color: var(--ink); font-variant-numeric: tabular-nums; }

.product-proof-section { background: #f7f9f8; }
.finding-compare { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(20px, 3vw, 40px); margin: 44px 0 0; }
.finding-label { margin-bottom: 14px !important; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.finding-source { padding: 26px; border-left: 3px solid #d8cbb2; background: var(--cream); }
.finding-source blockquote { margin: 0; color: var(--ink-soft); font: 400 21px/1.42 var(--serif); }
.finding-meta { margin-top: 16px !important; color: var(--muted); font-size: 13px; }
.finding-card { padding: 24px 26px 20px; border: 1px solid var(--line); border-top: 3px solid var(--teal); background: #fff; }
.finding-card header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; color: var(--muted); font-size: 12px; }
.finding-company { color: var(--teal); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.finding-card h3 { margin: 12px 0 18px; color: var(--ink); font: 600 22px/1.25 var(--serif); }
.finding-card dl { margin: 0; }
.finding-card dl div { margin-bottom: 14px; }
.finding-card dt { margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.finding-card dd { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.finding-cite { padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.finding-cite a { color: var(--teal); }

.standards-section { background: #fff; }
.standards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 44px; border: 1px solid var(--line); background: var(--line); }
.standards-grid.standards-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.finding-questions { margin: 0; padding-left: 18px; }
.finding-questions li + li { margin-top: 4px; }
.question-list { margin: 0; padding-left: 18px; }
.question-list li + li { margin-top: 6px; }
.question-list .question-idea { list-style: none; margin-left: -18px; padding: 8px 10px; border-left: 3px solid var(--teal-soft); background: var(--teal-tint); }
.question-idea span { margin-right: 6px; color: var(--teal); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.question-note { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.pattern-questions { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.pattern-questions h3 { margin: 0 0 8px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--teal); }
.standards-grid article { padding: 24px 26px; background: #fff; }
.standards-grid h3 { margin: 0 0 8px; color: var(--teal); font-family: var(--serif); font-size: 19px; }
.standards-grid p { color: var(--muted); font-size: 14px; line-height: 1.55; }

.coverage-matrix { overflow-x: auto; }
.coverage-matrix table { width: 100%; min-width: 540px; border-collapse: collapse; border-top: 3px solid var(--teal); background: #fffdf9; }
.coverage-matrix th, .coverage-matrix td { padding: 13px 14px; border-bottom: 1px solid #e3d8c4; text-align: left; vertical-align: top; }
.coverage-matrix thead th { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.coverage-matrix tbody th { color: var(--ink); font-family: var(--serif); font-size: 16px; font-weight: 600; }
.coverage-matrix td { color: var(--muted); font-size: 14px; }
.coverage-matrix .status { white-space: nowrap; font-size: 13px; font-weight: 650; }
.coverage-matrix .status::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; vertical-align: 1px; }
.status-on { color: var(--teal); }
.status-on::before { background: var(--teal); }
.status-planned { color: var(--muted); }
.status-planned::before { border: 1px dashed var(--muted); }
.coverage-matrix tr:has(.status-planned) th { color: #6b6250; font-weight: 500; }
.coverage-scope { margin-top: 14px !important; color: var(--muted); font-size: 13px; }

.category-label, .category-kicker { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.category-view { margin: 34px 0 54px; }
.category-view > h2 { margin: 0 0 16px; }
.presentation-rail { display: flex; gap: 18px; overflow-x: auto; padding: 3px 3px 16px; scroll-snap-type: x mandatory; scrollbar-color: var(--category-accent, var(--teal)) #eef2f3; scrollbar-width: auto; }
.presentation-rail::-webkit-scrollbar { height: 11px; }
.presentation-rail::-webkit-scrollbar-track { background: #eef2f3; border-radius: 999px; }
.presentation-rail::-webkit-scrollbar-thumb { background: var(--category-accent, var(--teal)); border-radius: 999px; }
.presentation-card { flex: 0 0 min(440px, calc(100vw - 66px)); min-height: 455px; padding: 22px; border: 1px solid var(--line); border-top: 6px solid var(--category-accent, var(--teal)); background: #fff; box-shadow: 0 3px 12px rgba(25, 47, 59, .09); scroll-snap-align: start; }
.presentation-card .workflow-label { margin: 0 0 14px; color: var(--category-accent, var(--teal)); font-size: 11px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.presentation-card .company { margin: 0 0 5px; color: var(--muted); font-size: 13px; font-weight: 700; }
.presentation-card h4 { margin: 0 0 16px; font-size: 18px; line-height: 1.28; }
.presentation-card h4 a { color: var(--fg); text-decoration: none; }
.presentation-card h4 a:hover { color: var(--accent); text-decoration: underline; }
.presentation-card p { margin: 14px 0; font-size: 14px; line-height: 1.45; }
.presentation-card p span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.presentation-card .more-context { margin-top: 18px; padding-top: 12px; border-top: 1px solid #e9eeee; color: var(--muted); font-size: 12px; }
.presentation-evidence { margin-top: 16px; border-top: 1px solid #e9eeee; }
.presentation-evidence details { border-bottom: 1px solid #e9eeee; padding: 9px 0; }
.presentation-evidence summary { cursor: pointer; color: #36586c; font-size: 12px; font-weight: 700; }
.presentation-evidence blockquote { margin: 10px 0 3px; padding-left: 10px; border-left: 3px solid var(--category-accent, var(--teal)); color: var(--ink-soft); font-size: 13px; line-height: 1.45; }
.presentation-evidence .muted { margin: 5px 0; font-size: 12px; }
.presentation-evidence .source-list { margin: 8px 0 2px; padding-left: 18px; font-size: 13px; }
.presentation-group { display: flex; flex: 0 0 auto; gap: 18px; scroll-snap-align: start; }
.presentation-group.is-product-workflow-group { padding: 16px; border: 1px solid rgba(37, 99, 235, .22); border-radius: var(--r-box); background: rgba(37, 99, 235, .08); }
.presentation-group.is-product-workflow-group .presentation-card { min-height: 420px; background: rgba(255, 255, 255, .92); }
.presentation-filters { margin-top: 16px; }
.leadership-brief { margin: 28px 0 38px; padding: 32px; border: 1px solid var(--cream-line); border-top: 5px solid var(--teal); background: var(--cream); color: var(--ink); }
.leadership-brief h2 { margin: 4px 0 0; color: var(--teal); font-family: var(--serif); font-size: 31px; font-weight: 600; letter-spacing: -.02em; }
.brief-kicker { display: flex; align-items: center; gap: 8px; color: var(--teal); }
.brief-kicker img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.brief-period { margin: 2px 0 18px; color: var(--muted); font-size: 13px; }
.leadership-brief .brief-headline { max-width: 890px; margin: 0 0 10px; color: var(--ink); font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.28; }
.brief-intro { max-width: 760px; color: var(--muted); }
.brief-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.brief-grid section { padding: 18px; border: 1px solid var(--cream-line); border-left: 4px solid var(--teal); background: #fff; }
.brief-grid section:first-child { border-left-color: var(--teal); }
.brief-grid section:last-child { border-left-color: var(--teal-soft); }
.brief-grid h3, .implementation-ideas h3 { margin: 0 0 10px; color: var(--teal); font-size: 15px; }
.brief-grid ul, .implementation-ideas ul { margin: 0; padding-left: 18px; }
.brief-grid li, .implementation-ideas li { margin: 0 0 8px; line-height: 1.45; }
.brief-evidence { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.brief-evidence-label { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; font-weight: 500; }
.company-chips { display: inline; margin-left: 2px; }
.company-chip { display: inline; color: var(--muted); font-size: 11px; font-weight: 550; line-height: 1.4; text-decoration: none; white-space: nowrap; }
.company-chip i { display: inline-block; width: 4px; height: 4px; margin: 0 5px 2px 8px; border-radius: 50%; background: var(--teal-soft); vertical-align: middle; }
.company-chip:first-child i { margin-left: 0; }
.company-chip:hover { color: var(--teal); text-decoration: none; }
.implementation-ideas { margin: 20px 3px 0; padding: 18px 20px; border-left: 4px solid var(--category-accent, var(--teal)); background: var(--tint); }
.compact { margin-top: 8px; }

/* Unified analytical portal layer: reduced radii, quiet surfaces and stronger hierarchy. */
main:not(.marketing-main) { max-width: 1320px; padding: 34px clamp(18px, 4vw, 64px) 56px; }
main:not(.marketing-main) h1 { color: var(--ink); font-family: var(--serif); font-size: clamp(28px, 3.1vw, 42px); font-weight: 600; letter-spacing: -.028em; }
.page-intro { max-width: 750px; margin: 8px 0 34px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.page-intro > p:last-child { max-width: 680px; color: var(--muted); font-size: 16px; }
.filters { gap: 14px; padding: 17px; border: 1px solid var(--line); border-radius: var(--r-control); background: #fff; }
.filters select, .filters input[type="search"] { border-color: #ccd9d5; border-radius: var(--r-box); background: #fbfcfc; }
.filters button, button { background: var(--teal); border-color: var(--teal); border-radius: var(--r-box); font-weight: 600; }
.filters button:hover, button:hover { background: var(--ink); border-color: var(--ink); }
table.feed { border-top: 3px solid var(--teal); background: #fff; }
table.feed th, table.feed td { padding: 13px 12px; }
table.feed tbody tr:hover { background: #f1f6f4; }
.detail, .pattern { border-color: var(--line); border-radius: var(--r-control); background: #fff; box-shadow: none; }
.pattern { border-left: 4px solid var(--teal); padding: 28px 28px 22px; }
.pattern-head { justify-content: space-between; align-items: center; gap: 14px; }
.pattern-head .pattern-eyebrow { margin: 0; color: var(--teal-soft); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pattern > h2 { max-width: 930px; margin: 8px 0 0; color: var(--ink); font-family: var(--serif); font-size: clamp(23px, 2.2vw, 31px); font-weight: 600; line-height: 1.18; letter-spacing: -.025em; }
.pattern-companies { gap: 0; margin: 17px 0 0; }
.pattern-companies .chip { position: relative; padding: 0 10px; border: 0; border-right: 1px solid #d5dfdc; border-radius: 0; color: var(--muted); font-size: 12px; line-height: 1.2; }
.pattern-companies .chip:first-child { padding-left: 0; }
.pattern-companies .chip:last-child { border-right: 0; }
.pattern-reading { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 25px 0 22px; border: 1px solid var(--line); background: var(--line); }
.pattern-reading section { min-height: 170px; padding: 22px 23px; background: #f7f9f8; }
.pattern-reading section:first-child { border-top: 3px solid var(--teal); }
.pattern-reading section:last-child { border-top: 3px solid var(--teal-soft); }
.pattern-reading h3 { margin: 0 0 12px; color: var(--teal); font-size: 12px; font-weight: 700; letter-spacing: .075em; text-transform: uppercase; }
.pattern-reading p { margin: 0; color: #324440; font-size: 15px; line-height: 1.58; }
.pattern-evidence { padding-top: 20px; border-top: 1px solid var(--line); }
.pattern-evidence-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0; color: var(--teal); cursor: pointer; list-style: none; font-size: 14px; font-weight: 700; }
.pattern-evidence-head::-webkit-details-marker { display: none; }
.pattern-evidence-head::after { order: 3; margin-left: 4px; color: var(--teal-soft); content: "+"; font-size: 18px; font-weight: 400; line-height: .8; }
.pattern-evidence[open] .pattern-evidence-head { margin-bottom: 10px; }
.pattern-evidence[open] .pattern-evidence-head::after { content: "−"; }
.pattern-evidence-head small { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 500; }
.pattern-items li { border-top: 1px solid #e2e9e6; }
.pattern-items a { display: grid; grid-template-columns: 28px minmax(90px, 130px) minmax(0, 1fr); gap: 12px; padding: 10px 0; color: var(--ink-soft); }
.pattern-items .num { min-width: auto; padding-top: 1px; color: var(--signal); font-size: 12px; }
.pattern-items .company { color: var(--muted); font-size: 13px; font-weight: 650; }
.pattern-items .title { line-height: 1.4; }
.cards { display: grid; gap: 14px; }
.cards .card { margin-top: 0; border-color: var(--line); background: #fff; box-shadow: none; }
.cards .card h2 { font-size: 18px; font-weight: 600; line-height: 1.4; text-transform: none; letter-spacing: normal; color: var(--fg); }
.cards .card h2 a,
.cards .card h2 a:visited,
.cards .card h2 a:hover { color: inherit; text-decoration: none; }
.cards .card h2 a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--r-box); }
.coverage-summary { margin-top: 30px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-control); background: var(--tint); }
.coverage-summary summary { color: var(--teal); font-weight: 650; }
.qa-section { max-width: 850px; }
.qa-section > h2 { margin-top: 4px; color: var(--teal); font-family: var(--serif); font-size: 25px; font-weight: 600; }
.qa-section details { margin-top: 10px; padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--teal-soft); background: #fff; }
.qa-section summary { cursor: pointer; color: var(--ink); font-weight: 650; }
.qa-section p { max-width: 720px; margin: 10px 0 0; color: var(--muted); }

@media (max-width: 760px) {
.brief-grid { grid-template-columns: 1fr; }
    .topbar { gap: 12px; flex-wrap: wrap; align-items: center; }
    .topbar nav { order: 3; width: 100%; margin-left: 0; gap: 12px; flex-wrap: wrap; }
    .topbar nav a { display: inline; }
    .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 60px; }
    .hero-product { min-height: 290px; max-width: 560px; margin: 0 auto; }
    .product-window-secondary { width: min(72%, 300px); }
    .product-window-content { padding: 18px; }
    .proof-strip, .sample-grid, .buyer-list, .product-proof-grid, .marketing-qa-grid { grid-template-columns: 1fr; }
    .pattern { padding: 22px 18px 18px; }
    .pattern-reading { grid-template-columns: 1fr; }
    .pattern-reading section { min-height: 0; }
    .pattern-items a { grid-template-columns: 24px minmax(74px, 100px) minmax(0, 1fr); gap: 8px; }
    .proof-strip p { min-height: 0; }
    .sample-grid > div { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .sample-grid > div:last-child { border-bottom: 0; }
    .coverage-layout { grid-template-columns: 1fr; }
    .flow-figure, .finding-compare, .standards-grid, .standards-grid.standards-grid-four { grid-template-columns: 1fr; }
    .flow-stage + .flow-stage::before { content: "↓"; top: -13px; left: 22px; }
    .flow-stage > p { min-height: 0; }
    .finding-source blockquote { font-size: 18px; }
    .buyer-list article { margin-right: 0; padding-right: 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .cta-section { grid-template-columns: 1fr; min-height: 350px; }
    .cta-section > div { grid-column: 1; }
    .cta-mark { right: -24%; left: auto; max-width: 75vw; }
}

/* ---------- Methodology page: visual blocks ---------- */
.mp-block { margin: 0 0 44px; }
.mp-block > h2 { margin: 0 0 6px; color: var(--ink); font-family: var(--serif); font-size: 24px; }
.mp-lead { max-width: 720px; margin: 0 0 18px; color: var(--muted); }
.mp-small { max-width: 760px; margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.mp-label { margin: 0 0 10px; color: var(--teal); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

.mp-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); background: #fff; }
.mp-flow > li { position: relative; padding: 20px 20px 22px; border-right: 1px solid var(--line); }
.mp-flow > li:last-child { border-right: 0; background: var(--tint); }
.mp-flow > li + li::before { content: "→"; position: absolute; top: 20px; left: -9px; width: 18px; height: 18px; line-height: 18px; text-align: center; color: var(--teal); background: #fff; font-size: 13px; }
.mp-step { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 12px; font-weight: 700; }
.mp-flow h3 { margin: 10px 0 6px; color: var(--ink); font-size: 17px; }
.mp-flow p { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.5; }

.mp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mp-tags li { padding: 3px 8px; border: 1px solid #cfdcd8; border-radius: var(--r-box); color: var(--teal); background: #fff; font-size: 12px; }
.mp-tags-large li { padding: 6px 10px; font-size: 13px; }

.mp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.mp-sources { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.mp-sources li { padding: 9px 0 9px 26px; position: relative; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.mp-sources li::before { position: absolute; left: 4px; top: 9px; font-weight: 700; }
.mp-sources .is-on::before { content: "✓"; color: #2e7d5b; }
.mp-sources .is-planned { color: var(--muted); }
.mp-sources .is-planned::before { content: "○"; color: #a0adb4; }
.mp-sources small { margin-left: 6px; color: var(--muted); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }

.mp-compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line); }
.mp-compare > div { padding: 18px 22px; }
.mp-compare h3 { margin: 0 0 10px; font-size: 15px; }
.mp-compare ul { margin: 0; padding: 0; list-style: none; }
.mp-compare li { position: relative; padding: 5px 0 5px 22px; font-size: 14px; color: #34495a; }
.mp-in { background: var(--tint); }
.mp-in h3 { color: var(--teal); }
.mp-in li::before { content: "+"; position: absolute; left: 4px; color: #2e7d5b; font-weight: 700; }
.mp-out { border-left: 1px solid var(--line); background: #fff; }
.mp-out h3 { color: var(--ink-soft); }
.mp-out li { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(122, 75, 58, .35); }
.mp-out li::before { content: "−"; position: absolute; left: 4px; color: var(--muted); font-weight: 700; }

.mp-anatomy { display: grid; gap: 0; border: 1px solid var(--line); background: #fff; }
.mp-layer { display: grid; grid-template-columns: 96px 180px minmax(0, 1fr); align-items: baseline; gap: 16px; padding: 14px 18px; border-left: 4px solid transparent; }
.mp-layer + .mp-layer { border-top: 1px solid var(--line); }
.mp-layer span { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mp-layer h3 { margin: 0; color: var(--ink); font-size: 15px; }
.mp-layer p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.mp-fact { border-left-color: var(--teal); }
.mp-reading { border-left-color: #5d8f88; }
.mp-prompt { border-left-color: var(--teal-soft); background: var(--teal-tint); }
.mp-source { border-left-color: #a0adb4; }

.mp-chain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; counter-reset: chain; }
.mp-chain li { position: relative; padding: 16px 18px; border-top: 3px solid var(--teal); background: #fff; box-shadow: 0 1px 0 var(--line); }
.mp-chain li + li::before { content: "→"; position: absolute; left: -22px; top: 16px; color: var(--teal); font-size: 16px; }
.mp-chain h3 { margin: 0 0 6px; color: var(--ink); font-size: 15px; }
.mp-chain p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.mp-limits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.mp-limits article { padding: 16px 18px; background: #fff; }
.mp-limits h3 { margin: 0 0 6px; color: var(--teal); font-size: 15px; }
.mp-limits p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.mp-roadmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 2px dashed #b9c8c4; }
.mp-roadmap li { position: relative; padding: 22px 22px 0 0; }
.mp-roadmap li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border: 2px solid var(--teal); border-radius: 50%; background: #fff; }
.mp-roadmap span { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mp-roadmap h3 { margin: 4px 0 6px; color: var(--ink); font-size: 15px; }
.mp-roadmap p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

@media (max-width: 760px) {
    .mp-flow, .mp-split, .mp-compare, .mp-chain, .mp-limits, .mp-roadmap { grid-template-columns: 1fr; }
    .mp-flow > li { border-right: 0; border-bottom: 1px solid var(--line); }
    .mp-flow > li + li::before { content: "↓"; top: -9px; left: 20px; }
    .mp-out { border-left: 0; border-top: 1px solid var(--line); }
    .mp-layer { grid-template-columns: 1fr; gap: 4px; }
    .mp-chain { gap: 18px; }
    .mp-chain li + li::before { content: "↓"; left: 18px; top: -18px; }
    .mp-roadmap { border-top: 0; border-left: 2px dashed #b9c8c4; padding-left: 18px; }
    .mp-roadmap li { padding: 0 0 18px; }
    .mp-roadmap li::before { left: -26px; top: 2px; }
}

/* ---------- 2026-11-16: design audit fixes ---------- */
/* Фильтры сигналов: на десктопе всегда открыты, заголовок «Filters» скрыт. */
.filters-panel > summary { display: none; }
@media (max-width: 760px) {
    .filters-panel { margin: 14px 0 10px; border: 1px solid var(--line); border-radius: var(--r-box); background: #fff; }
    .filters-panel > summary { display: block; padding: 11px 14px; color: var(--teal); font-weight: 650; cursor: pointer; }
    .filters-panel[open] > summary { border-bottom: 1px solid var(--line); }
    .filters-panel .filters { margin: 0; padding: 14px; border-bottom: 0; }
}

/* Таблица сигналов: заголовок вторым столбцом, категория и стадия — строкой под ним. */
table.feed { min-width: 860px; }
table.feed .signal { width: auto; min-width: 340px; }
table.feed .signal > a { font-weight: 550; line-height: 1.4; }
.signal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px; }
.signal-meta .workflow-stage { color: var(--muted); font-size: 12px; }
table.feed th { font-size: 12px; }

/* Brief: ссылка на все паттерны. */
.brief-more { margin: 16px 0 0; font-size: 14px; }
.brief-more a { color: var(--teal); font-weight: 650; }

/* Первый экран лендинга на телефоне: заголовок короче по высоте, кнопка ближе. */
@media (max-width: 760px) {
    .site-footer { margin-top: 36px; padding: 22px 18px; }
    .site-footer-inner { display: grid; gap: 8px; }
    .site-footer-brand span { display: block; margin: 4px 0 0; }
    .marketing h1 { font-size: clamp(36px, 10.5vw, 44px); line-height: 1.02; }
    .hero { padding-top: 40px; }
    .hero-intro { font-size: 17px; }
    .hero-actions { margin-top: 24px; }
}

/* Метки заглавными: не мельче 12px и без лишней разрядки — их легче читать. */
.eyebrow, .detail h3, .coverage-table th, table.counts th, table.issues th, .coverage-facts dt { font-size: 12px; letter-spacing: .06em; }
.nowrap { white-space: nowrap; }

/* Таблица сигналов на телефоне: каждая строка — карточка, сигнал во всю ширину. */
@media (max-width: 760px) {
    .feed-table-scroll { overflow-x: visible; background-image: none; }
    table.feed { min-width: 0; }
    table.feed thead { display: none; }
    table.feed tbody tr { display: grid; grid-template-columns: auto 1fr auto auto; grid-template-areas: "rank company priority save" "signal signal signal signal" "date date score sources"; gap: 6px 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
    table.feed td { padding: 0; border: 0; }
    table.feed td:nth-child(1) { grid-area: rank; color: var(--signal); font-weight: 650; }
    table.feed td:nth-child(2) { grid-area: company; font-weight: 650; white-space: normal; }
    table.feed td:nth-child(3) { grid-area: signal; min-width: 0; }
    table.feed td:nth-child(4) { grid-area: date; color: var(--muted); font-size: 13px; }
    table.feed td:nth-child(4) small { display: inline; margin-left: 4px; }
    table.feed td:nth-child(5) { grid-area: priority; }
    table.feed td:nth-child(6) { grid-area: score; font-size: 13px; color: var(--muted); }
    table.feed td:nth-child(6)::after { content: "/100"; }
    table.feed td:nth-child(7) { grid-area: sources; font-size: 13px; }
    table.feed td:nth-child(8) { grid-area: save; }
}
.detail-section p.reading-source { margin: 0 0 8px; color: var(--muted); font-size: 13px; font-style: italic; }

/* 2026-11-16: шапка закреплена при прокрутке. --header-h — её высота, от неё считаются
   отступ липкой панели деталей и якорные переходы (#method и т. п.), чтобы шапка их не закрывала. */
:root { --header-h: 68px; }
.topbar { position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--cream-line); }
html { scroll-padding-top: calc(var(--header-h) + 12px); }
.feed-body .detail-slot { top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); }
@media (max-width: 760px) {
    /* На телефоне меню — одна прокручиваемая строка, чтобы закреплённая шапка была низкой. */
    :root { --header-h: 80px; }
    .topbar { padding-top: 8px; padding-bottom: 6px; min-height: 0; row-gap: 6px; }
    .topbar nav { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
    .topbar nav::-webkit-scrollbar { display: none; }
    .topbar nav a { flex: 0 0 auto; }
}
a.category-filter-link { text-decoration: none; cursor: pointer; }
a.category-filter-link:hover, a.category-filter-link:focus-visible { border-color: var(--dot, var(--teal)); color: var(--ink); }

/* [2026-11-24] Происхождение текста сигнала: выжимка аналитика (сверена) или дословные цитаты источника. */
.origin-tag { display: inline-block; margin: 0 0 8px; padding: 2px 8px; border-radius: 10px; font: 600 11px/1.5 var(--sans); letter-spacing: .02em; cursor: help; }
.origin-tag.origin-analyst { background: var(--teal-tint); color: var(--teal); border: 1px solid var(--teal-soft); }
.origin-tag.origin-source { background: var(--cream); color: var(--ink-soft); border: 1px solid var(--cream-line); }
.origin-line { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin: 0 0 8px; font-size: 13px; }
.origin-line .origin-tag { margin: 0; }
.origin-note { color: var(--muted); font-size: 12.5px; }

/* [2026-11-25] Admin → Requests: заявки на пример брифа и чёрный список доменов. */
.admin-flash { padding: 10px 14px; border-left: 3px solid currentColor; background: rgba(0,0,0,.04); }
.admin-flash.is-error, .flag-warn { color: #a3361a; }
.flag-warn { font-weight: 600; }
.request-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.request-actions form { margin: 0; }
.blocked-add { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 8px 0 12px; }
.blocked-add label { display: flex; flex-direction: column; gap: 4px; }
.blocked-list { list-style: none; padding: 0; }
.blocked-list li { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.blocked-list form { margin: 0; }

/* [2026-11-25] Пробный доступ: размытие заглушек (настоящий текст сервер не отдаёт), полоса доступа, переключатель для админа. */
.locked-text { filter: blur(5px); user-select: none; pointer-events: none; }
.is-locked { position: relative; filter: blur(5px); user-select: none; pointer-events: none; }
.is-locked-card .locked-text { display: block; }
.locked-note { margin: 8px 0 0; font-size: 13px; color: var(--muted, #5d6b67); }
.is-locked-row td.company, .is-locked-row td.signal > .locked-text { color: inherit; }
.access-banner { margin: 0; padding: 10px 24px; background: #f3ead2; border-bottom: 1px solid rgba(0,0,0,.08); font-size: 14px; }
.access-banner p { margin: 0; max-width: 1200px; }
.access-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 0 10px; margin-bottom: 6px; border-bottom: 1px solid rgba(0,0,0,.08); }
.access-switch span { width: 100%; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; opacity: .7; }
.access-switch button { font-size: 13px; padding: 4px 10px; }
.access-switch button.is-active { font-weight: 700; }
.pattern-item-locked { display: flex; gap: 10px; align-items: baseline; }

/* [2026-11-26] Переключатель «Subscribe / Request trial access» в карточке подписки на /pricing. */
.form-switch { display: flex; gap: 4px; margin: 0 0 18px; padding: 4px; border-radius: 999px; background: rgba(0,0,0,.05); width: fit-content; max-width: 100%; flex-wrap: wrap; }
.form-switch a { padding: 8px 16px; border-radius: 999px; text-decoration: none; color: inherit; font-weight: 600; font-size: 15px; }
.form-switch a.is-active { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.invite-link input { width: 100%; max-width: 720px; font-family: monospace; font-size: 13px; margin-top: 6px; }
