/* Стили сайта: общая шапка и подвал, справка, 404. Перенесено из эскиза дизайна справки
   (design/artifacts/2026-10-14-help-design/help.css, moneon-site#10, спека C п.1).
   Токены — design/DESIGN.md; шапка и подвал — как у лендинга (concept-final.html).
   Astro встраивает файл в каждую страницу (inlineStylesheets: 'always'), отдельного запроса нет. */

/* Nunito Sans (SIL OFL, лицензия рядом — /_site/fonts/OFL.txt). Один переменный файл на набор
   символов закрывает веса 400–800. Своя копия, а не Google Fonts: внешние ресурсы на сайте
   запрещены (спека C, AC-6). Японский, корейский и китайский идут системным шрифтом. */
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/nunito-sans-cyrillic-ext.6a4ccbd1ae5d.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/nunito-sans-cyrillic.15709f247b76.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/nunito-sans-latin-ext.3a97847bca8b.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/nunito-sans-latin.e31445dff877.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --primary: #21CEB6;          /* бирюза: фон под тёмный текст или графика, не цвет текста */
  --primary-pressed: #40B8A3;
  --on-primary: #1C1C1E;
  --bg: #F6F6F6;
  --surface: #FFFFFF;
  --text: #1C1C1E;
  --text-2: #707070;
  --separator: #DFDFDF;
  --link: #1C1C1E;
  --link-line: #21CEB6;        /* подчёркивание ссылки — бирюзой: графика, а не текст */
  --notice-bg: #FFF6DA;        /* плашка «не переведено» — тёплый жёлтый из приложения */
  --notice-line: #EBCF74;
  --foot-bg: #1C1C1E;
  --foot-text: #FFFFFF;
  --foot-text-2: #A2A2A3;
  --radius: 12px;
  --gutter: 16px;
  --font: "Nunito Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Pagefind UI: свои переменные, разметку поиска не трогаем */
  --pagefind-ui-scale: .9;
  --pagefind-ui-primary: #1C1C1E;
  --pagefind-ui-text: #1C1C1E;
  --pagefind-ui-background: #FFFFFF;
  --pagefind-ui-border: #8E8E93;   /* рамка поля поиска задаёт его форму: от 3:1 (L5) */
  --pagefind-ui-tag: #F6F6F6;
  --pagefind-ui-border-width: 1.5px;
  --pagefind-ui-border-radius: 12px;
  --pagefind-ui-font: var(--font);
}
/* Найденное слово в результатах поиска — жирным, без жёлтого фона Pagefind (спокойнее, и Figma переносит без поломки) */
.pagefind-ui mark { background: none; color: inherit; font-weight: 800; }
/* Тёмная тема — по системной настройке, как на test.moneon.co; переключатель в шапке может выбрать светлую или тёмную
   (data-theme на <html>, решение Дениса 15.10, вариант «в»: как на лендинге). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1C1C1E;
    --surface: #2C2C2E;
    --text: #FFFFFF;
    --text-2: #A2A2A3;
    --separator: #3A3A3C;
    --link: #FFFFFF;
    --notice-bg: #3A3220;
    --notice-line: #8A7535;
    --foot-bg: #111113;
    --pagefind-ui-primary: #FFFFFF;
    --pagefind-ui-text: #FFFFFF;
    --pagefind-ui-background: #2C2C2E;
    --pagefind-ui-border: #7C7C80;
    --pagefind-ui-tag: #3A3A3C;
  }
}
:root[data-theme="dark"] {
    --bg: #1C1C1E;
    --surface: #2C2C2E;
    --text: #FFFFFF;
    --text-2: #A2A2A3;
    --separator: #3A3A3C;
    --link: #FFFFFF;
    --notice-bg: #3A3220;
    --notice-line: #8A7535;
    --foot-bg: #111113;
    --pagefind-ui-primary: #FFFFFF;
    --pagefind-ui-text: #FFFFFF;
    --pagefind-ui-background: #2C2C2E;
    --pagefind-ui-border: #7C7C80;
    --pagefind-ui-tag: #3A3A3C;
}
@media (min-width: 640px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light dark; }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
/* Японский, корейский и китайский: в Nunito Sans иероглифов нет, и без явного списка Windows берёт что попало (у
   китайского — бывает шрифт с засечками). Латиница и цифры остаются в Nunito Sans, знаки — системный шрифт языка. */
html:lang(ja) { --font: "Nunito Sans", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif; }
html:lang(ko) { --font: "Nunito Sans", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; }
html:lang(zh-Hans) { --font: "Nunito Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
/* Перенос строк. Корейский пишется с пробелами, но браузер по умолчанию рвёт слово в любом слоге («그때그 / 때») —
   keep-all переносит только по пробелам. Японский без пробелов: auto-phrase (Chrome 119+) переносит по смысловым
   фразам, а не посреди слова («そ / の場»); где не поддерживается — обычный перенос. Строгие правила японской
   пунктуации — line-break: strict (знак «、» и малые каны не начинают строку). */
html:lang(ko) { word-break: keep-all; }
html:lang(ja) { word-break: auto-phrase; line-break: strict; }

body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 1rem; line-height: 1.6; overflow-wrap: break-word; }
/* подвал прижат к низу и на короткой странице (404, статья в два абзаца) */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
a { color: var(--link); text-decoration-color: var(--link-line); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Шапка (как у лендинга) ---------- */
.top { border-bottom: 1px solid var(--separator); background: var(--bg); position: relative; z-index: 30; }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; text-decoration: none; display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand-mark { width: 26px; height: 19px; flex: none; color: var(--text); }
@media (min-width: 480px) { .brand-mark { width: 30px; height: 22px; } }
.nav { display: none; gap: 24px; margin-left: 24px; }
.nav a { text-decoration: none; color: var(--text-2); font-weight: 600; }
.nav a:hover, .nav a[aria-current] { color: var(--text); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px; white-space: nowrap; border: 1.5px solid var(--text); border-radius: var(--radius); font-weight: 700; text-decoration: none; color: var(--text); }
/* С какой ширины кнопка «Скачать» помещается в шапку, считает сборка по подписи языка (SiteHeader, I3) */

/* Главная кнопка «Скачать»: первый экран лендинга и карточки в статьях блога (перенесена из landing.css, backend#464) */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 12px 28px;
  background: var(--primary); color: var(--on-primary); border-radius: var(--radius);
  font-weight: 800; font-size: 1.0625rem; text-decoration: none; text-align: center; max-width: 100%;
}
.btn-primary:hover { background: var(--primary-pressed); }

/* Переключатель языков: details/summary, без скриптов; список из 15 языков */
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding-inline: 4px; font-weight: 700; color: var(--text-2); }
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover, .langs[open] summary { color: var(--text); }
.langs ul { position: absolute; right: 0; top: calc(100% + 4px); margin: 0; padding: 8px; list-style: none; background: var(--surface); border: 1px solid var(--separator); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.08); display: grid; grid-template-columns: repeat(2, minmax(9.5rem, 1fr)); gap: 0 8px; width: max-content; max-width: calc(100vw - 2 * var(--gutter)); max-height: calc(100dvh - 72px); overflow-y: auto; }
.langs li a { display: flex; align-items: center; min-height: 44px; padding-inline: 8px; border-radius: 8px; text-decoration: none; }
.langs li a:hover { background: var(--bg); }
.langs li a[aria-current] { font-weight: 800; }
@media (max-width: 599px) { .langs ul { position: fixed; left: var(--gutter); right: var(--gutter); top: 64px; width: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius); }
.menu summary::-webkit-details-marker { display: none; }
.menu .ic-close { display: none; }
.menu[open] .ic-open { display: none; }
.menu[open] .ic-close { display: block; }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--separator); padding: 8px var(--gutter) 16px; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.menu-panel a:hover { color: var(--text-2); }
.menu-panel a { display: flex; align-items: center; min-height: 48px; font-weight: 700; font-size: 1.125rem; text-decoration: none; border-bottom: 1px solid var(--separator); }
/* последняя ссылка без линии; без JavaScript кнопки темы нет, и последней ссылкой стоит «Блог» */
.menu-panel a:last-of-type { border-bottom: 0; }
.js .menu-panel a:last-of-type { border-bottom: 1px solid var(--separator); }
@media (min-width: 860px) { .nav { display: flex; } .menu { display: none; } }

/* ---------- Плашка «не переведено» ---------- */
/* полоса во всю ширину, текст — по колонке страницы (H2) */
.fallback-notice { margin: 0; padding: 12px max(var(--gutter), calc((100% - 1200px) / 2 + var(--gutter))); background: var(--notice-bg); border-bottom: 1px solid var(--notice-line); font-size: .9375rem; }
.fallback-notice a { font-weight: 700; margin-left: .5em; }

/* ---------- Общая колонка справки и 404: main.doc (у лендинга полосы секций во всю ширину) ---------- */
main.doc { max-width: 1200px; margin: 0 auto; padding: 32px var(--gutter) 64px; }
h1 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); margin: 0 0 24px; text-wrap: balance; }

/* Главная справки: поиск сверху, разделы строками — заголовок слева, статьи справа */
#faq-search { max-width: 40rem; margin-bottom: 40px; }
main.doc > section { display: grid; gap: 8px 32px; padding-block: 24px; border-top: 1px solid var(--separator); grid-template-columns: minmax(0, 1fr); }
main.doc > section h2 { margin: 0; font-size: 1.25rem; font-weight: 800; line-height: 1.3; scroll-margin-top: 16px; }
main.doc > section ul { margin: 0; padding: 0; list-style: none; }
main.doc > section li a { display: block; padding-block: 8px; font-weight: 600; text-decoration-thickness: 1px; }
main.doc > section li a:hover { text-decoration-thickness: 2px; }
@media (min-width: 860px) { main.doc > section { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); padding-block: 32px; } main.doc > section li a { padding-block: 6px; } main.doc > section h2 { padding-top: 6px; } }
/* пока есть результаты поиска, каталог скрыт — те же заголовки ниже результатов сбивают (H5) */
main.doc:has(.pagefind-ui__result) > section { display: none; }

/* «Не нашли ответ?» — спокойная полоса, письмо в поддержку */
.faq-not-found { margin-top: 48px; padding: 24px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--separator); max-width: 40rem; }
.faq-not-found h2 { margin: 0 0 8px; font-size: 1.25rem; font-weight: 800; }
.faq-not-found p { margin: 0; color: var(--text-2); }
.faq-not-found a { color: var(--text); font-weight: 700; }

/* Статья: узкая колонка для чтения, раздел ссылкой над заголовком */
.crumb { margin: 0 0 4px; font-size: .9375rem; color: var(--text-2); }
.crumb a { color: var(--text-2); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.crumb a:hover { color: var(--text); }
article { max-width: 40rem; }
article p, article li { font-size: 1.0625rem; }
article ul, article ol { padding-left: 1.25em; }
article li + li { margin-top: 4px; }
article h3.platform { margin: 32px 0 8px; font-size: .9375rem; font-weight: 800; display: flex; width: fit-content; color: var(--text-2); }
/* Скриншоты приложения: по 190 px, 2–3 в ряд, на узком экране переносятся */
/* font-size 0: пробелы между картинками не становятся отдельными элементами ряда со своим зазором (H1) */
article p:has(> img) { display: flex; flex-wrap: wrap; gap: 12px; font-size: 0; }
article img { width: min(190px, calc(50% - 6px)); height: auto; border-radius: 16px; border: 1px solid var(--separator); background: var(--surface); }
.article-search { max-width: 40rem; margin-top: 48px; }
.article-search + .faq-not-found { margin-top: 24px; }
/* подсказка поля — вторичным цветом, 4,9:1 (у Pagefind 1,5:1); фокус — обводка сайта (H4) */
.pagefind-ui .pagefind-ui__search-input::placeholder { color: var(--text-2); opacity: 1; }
.pagefind-ui .pagefind-ui__search-input:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.all-articles { margin-top: 24px; font-weight: 700; }
.all-articles a, .not-found li a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- 404 ---------- */
.not-found { max-width: 40rem; padding-block: 48px; }
.not-found .h1-alt { font-size: 1.25rem; font-weight: 800; margin: -12px 0 16px; color: var(--text-2); }
.not-found .lead { font-size: 1.125rem; color: var(--text-2); margin: 0 0 24px; }
.not-found ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.not-found li a { font-weight: 700; }

/* ---------- Подвал (как у лендинга) ---------- */
.foot { background: var(--foot-bg); color: var(--foot-text-2); border-top: 1px solid rgba(255,255,255,.12); padding-block: 32px 40px; font-size: .9375rem; }
.foot .wrap { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot nav a { color: var(--foot-text); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot nav a:hover { text-decoration: underline; }
@media (min-width: 960px) { .foot .wrap { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------- Движение — как на лендинге (motion-spec.md лендинга, пункты 1–6; решение Дениса 15.10) ----------
   Шапка и подвал общие с лендингом, поэтому и поведение то же. Тень у шапки не нужна: нижняя линия уже есть,
   а скрипта в справке нет. */
:root { --t-fast: 150ms; --t-panel: 200ms; --ease-out: cubic-bezier(.2, .7, .2, 1); }
/* шапка на телефоне остаётся наверху при прокрутке длинной статьи */
@media (max-width: 859px) { .top { position: sticky; top: 0; } [id] { scroll-margin-top: 72px; } }
.btn-ghost { transition: background-color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out); }
.btn-ghost:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.btn-ghost:active { transform: scale(.98); }
.nav a, .menu-panel a, .langs summary, .langs li a, .crumb a, main.doc > section li a { transition: color var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out), text-decoration-color var(--t-fast) var(--ease-out); }
.foot nav a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color var(--t-fast) var(--ease-out); }
.foot nav a:hover { text-decoration-color: currentColor; }
:where(a, summary, button):focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }
.foot :where(a, summary, button):focus-visible { outline-color: var(--foot-text); }
@keyframes drop-in { from { opacity: 0; transform: translateY(-8px); } }
.menu[open] .menu-panel, .langs[open] ul { animation: drop-in var(--t-panel) var(--ease-out); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
/* шапка на 320–399: бренд, язык, «Скачать» и меню не помещались (меню уходило за край на 5 px) — уже промежутки, как на лендинге */
@media (max-width: 399px) { .top .wrap { gap: 8px; } .top-right { gap: 6px; } }

/* ---------- Переключатель темы — как на лендинге (motion-spec.md лендинга, «Тёмная тема и переключатель») ----------
   Компьютер — значок в шапке, до 860 px — строка в меню. Без скрипта скрыт, тема следует за системой. */
.theme-toggle { display: none; align-items: center; justify-content: center; gap: 12px; min-width: 44px; min-height: 44px; padding: 0;
                border: 0; border-radius: var(--radius); background: none; color: var(--text-2); font: inherit; cursor: pointer;
                transition: color var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out); }
.theme-toggle:hover { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
.js .top-right > .theme-toggle { display: inline-flex; }
@media (max-width: 859px) { .js .top-right > .theme-toggle { display: none; } }
.js .menu-panel .theme-row { display: flex; justify-content: flex-start; width: 100%; min-height: 48px; color: var(--text);
                             font-weight: 700; font-size: 1.125rem; border-radius: 0; }
.js .menu-panel .theme-row:hover { background: none; }
.ic-sun, .to-light { display: none; }
:root[data-theme="dark"] .ic-moon, :root[data-theme="dark"] .to-dark { display: none; }
:root[data-theme="dark"] .ic-sun, :root[data-theme="dark"] .to-light { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .ic-moon, :root:not([data-theme]) .to-dark { display: none; }
  :root:not([data-theme]) .ic-sun, :root:not([data-theme]) .to-light { display: inline; }
}

/* ---------- Баннер согласия на аналитику (спека C, В1, AC-27) ----------
   В разметке — в начале страницы (первым после «к содержанию» с клавиатуры), на экране — внизу. Пока он открыт, модуль
   ставит странице нижний отступ на его высоту: ничего не закрыто навсегда. Кнопки равного веса — отказаться так же
   просто, как согласиться. Показывает его только /_site/consent.js. */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;   /* ниже шапки (30): открытый список языков поверх баннера */ background: var(--surface); border-top: 1px solid var(--separator);
           box-shadow: 0 -6px 16px rgba(0, 0, 0, .06); padding-block: 12px; }
.consent[hidden] { display: none; }
.consent .wrap { display: grid; gap: 8px 24px; grid-template-columns: minmax(0, 1fr); align-items: center; }
.consent p { margin: 0; font-size: .9375rem; }
.consent-actions { display: flex; gap: 8px; }
.consent-actions .btn-ghost { flex: 1 1 0; font: inherit; font-weight: 700; background: none; cursor: pointer; }
@media (min-width: 640px) {
  .consent .wrap { grid-template-columns: minmax(0, 1fr) auto; }
  .consent-actions .btn-ghost { flex: none; }
}
/* «Настройки аналитики» в подвале — выглядит как ссылки подвала, это кнопка: она возвращает баннер, а не ведёт куда-то */
.consent-settings { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
                    font: inherit; color: var(--foot-text); text-decoration: underline; text-decoration-color: transparent;
                    text-underline-offset: 3px; transition: text-decoration-color var(--t-fast) var(--ease-out); }
.consent-settings[hidden] { display: none; }
.consent-settings:hover { text-decoration-color: currentColor; }

/* ---------- Политика конфиденциальности сайта: /{язык}/privacy/ (MONI-89) ---------- */
article.policy h2 { margin: 32px 0 8px; font-size: 1.25rem; font-weight: 800; line-height: 1.3; }
article.policy .edition { margin-top: 0; color: var(--text-2); font-size: .9375rem; }

/* Стили блога (backend#464, спека specs/2026-10-20-blog-restyle.md). Блог живёт в Django; его оболочку и этот файл
   собирает scripts/blog-shell.mjs: blog-shell/static/blog.css = site.css + этот файл, и переносит в moneon-backend. Сайт этот
   файл не подключает. Здесь только то, чего нет в справке: пост, лента, карточки, «Скачать» внутри текста.
   Цвета, радиусы и шрифт — переменные site.css, светлая и тёмная тема приходят оттуда же. */

/* Язык один — вместо списка просто код языка (у статьи блога обычно ru или en) */
.langs-single { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; font-weight: 700; color: var(--text-2); }

/* ---------- Пост ---------- */
.post-lead { font-size: 1.25rem; line-height: 1.5; color: var(--text-2); margin: -8px 0 16px; max-width: 40rem; }
.post-meta { margin: 0 0 32px; font-size: .9375rem; color: var(--text-2); }
.post-meta a { color: var(--text-2); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.post-meta a:hover { color: var(--text); }

article h2 { margin: 40px 0 12px; font-size: 1.5rem; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; }
article h3 { margin: 32px 0 8px; font-size: 1.25rem; font-weight: 800; line-height: 1.3; }
article blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--primary); color: var(--text); }
article blockquote p { margin: 8px 0; }

/* Фото статей — во всю колонку. Правило справки (скриншоты по 190 px рядами, font-size 0 у абзаца с картинкой)
   блогу не подходит: в статьях обычные фото и абзацы «картинка + текст», текст там пропадал бы. */
/* Без :is(): старые встроенные браузеры выбросили бы правило целиком, и фото остались бы по 190 px */
article.post p:has(> img), article.page p:has(> img) { display: block; font-size: 1.0625rem; }
article.post img, article.page img { display: block; width: auto; max-width: 100%; height: auto; margin: 16px 0; border: 0; border-radius: var(--radius); background: none; }
.image-caption { margin: -8px 0 24px; font-size: .9375rem; color: var(--text-2); }

/* «Скачать» внутри текста и в конце статьи — вместо старых плашек App Store / Google Play */
.post-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin: 32px 0; padding: 20px 24px;
            max-width: 40rem; background: var(--surface); border: 1px solid var(--separator); border-radius: var(--radius); }
.post-cta p { margin: 0; flex: 1 1 14rem; font-weight: 800; font-size: 1.125rem; line-height: 1.35; }
@media (max-width: 479px) { .post-cta .btn-primary { width: 100%; } }

/* Об авторе */
.about-author { max-width: 40rem; margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--separator); }
.about-author h2 { margin: 0 0 4px; font-size: .9375rem; font-weight: 700; color: var(--text-2); }
.about-author .name { margin: 0; font-weight: 800; font-size: 1.125rem; }
.about-author .name a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.about-author p { margin: 8px 0 0; color: var(--text-2); }

/* ---------- Карточки статей: «Ещё статьи», лента, ссылки [[id]] внутри текста ---------- */
.more-posts { margin: 48px 0 16px; font-size: 1.5rem; font-weight: 800; }
.post-cards { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .post-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .post-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Карточка целиком нажимается через растянутую ссылку заголовка — без onclick, ссылки рубрики и автора поверх неё */
.post-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--surface);
             border: 1px solid var(--separator); border-radius: var(--radius);
             transition: border-color var(--t-fast) var(--ease-out); }
.post-card:hover { border-color: var(--text-2); }
/* Рубрика и автор лежат поверх растянутой ссылки заголовка — им своя зона нажатия 44 px */
.post-card .category, .post-card .author { position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px;
                                           font-size: .875rem; font-weight: 700; color: var(--text-2); text-decoration: none; width: fit-content; }
.post-card .category:hover, .post-card .author:hover { color: var(--text); }
.post-card h3 { margin: 0; font-size: 1.125rem; font-weight: 800; line-height: 1.3; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.post-card p { margin: 0; color: var(--text-2); font-size: .9375rem; }
.post-card .author { margin-top: auto; }
/* Ссылка на другую статью внутри текста — одна карточка в колонке текста */
article .post-card { margin: 24px 0; max-width: 40rem; }

/* ---------- Лента, рубрика, автор ---------- */
.blog-intro { max-width: 40rem; margin: -8px 0 24px; font-size: 1.125rem; color: var(--text-2); }
.blog-categories { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.blog-categories a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--separator);
                     border-radius: 999px; font-weight: 700; text-decoration: none; color: var(--text); }
.blog-categories a:hover { border-color: var(--text); }
.blog-categories a.start { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.blog-categories a[aria-current] { border-color: var(--text); }
.post-cards + .post-cta, .post-cta + .post-cards { margin-top: 16px; }
.author-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 32px; }
.author-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

.pagination { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin: 40px 0 0; }
.pagination a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.pagination .older { margin-left: auto; }
.blog-rss { margin: 32px 0 0; font-size: .9375rem; }
.blog-rss a { color: var(--text-2); display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Страница Page (условия, политика, о нас) ---------- */
article.page h2 { font-size: 1.25rem; }
