/* Публичный сайт — дизайн-система «Современный» и утверждённые макеты главной (13.10.2026).
   Цвета — переменные в одном месте; тёмная тема — по настройке устройства или выбору посетителя
   (data-theme на <html>). Вёрстка — от узкого экрана к широкому (docs/design/adaptivnost.md):
   до 600 — телефон, 600–1024 — планшет, от 1024 — как в макете; содержимое не шире 1180. */

@font-face {
  font-family: "Golos Text";
  src: url("fonts/GolosText.7386dc329eb2.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Oswald";
  src: url("fonts/Oswald.a95eaa395153.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}

:root {
  --bg: #FFFFFF; --surface: #F7F2F4; --text: #2B1C24; --muted: #6A5560; --line: #E8DEE3;
  --accent: #B4532A; --accent-soft: #F6E7DC; --btn-text: #FFFFFF;
  --panel: #3B2733; --panel-text: #FFFFFF; --panel-muted: #E2D3DA; --panel-line: #5A4350;
  --lace: #E8935A; --logo: #3B2733; --portrait-bg: #4A3440;
  --line2: #CFC0C8; --ok: #2F6B45; --ok-soft: #E6F2EA; --danger: #B3261E; --danger-soft: #FBE7E5;
  --warn: #8A5A00; --warn-soft: #FFF3D6;
  --wrap: 1180px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --font-text: "Golos Text", system-ui, sans-serif;
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121014; --surface: #1C171A; --text: #F4F0F2; --muted: #CDBFC5; --line: #33292E;
    --accent: #E8935A; --accent-soft: #3A2A22; --btn-text: #121014;
    --panel: #2A1D24; --panel-text: #F4F0F2; --panel-muted: #CDBFC5; --panel-line: #4A3841;
    --logo: #F4F0F2; --portrait-bg: #33252C;
    --line2: #4A3D44; --ok: #7CC195; --ok-soft: #1B2A21; --danger: #F2948C; --danger-soft: #3A1F1D;
    --warn: #E8C27A; --warn-soft: #33291A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121014; --surface: #1C171A; --text: #F4F0F2; --muted: #CDBFC5; --line: #33292E;
  --accent: #E8935A; --accent-soft: #3A2A22; --btn-text: #121014;
  --panel: #2A1D24; --panel-text: #F4F0F2; --panel-muted: #CDBFC5; --panel-line: #4A3841;
  --logo: #F4F0F2; --portrait-bg: #33252C;
  --line2: #4A3D44; --ok: #7CC195; --ok-soft: #1B2A21; --danger: #F2948C; --danger-soft: #3A1F1D;
  --warn: #E8C27A; --warn-soft: #33291A;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-text); font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem); line-height: 1.55;
  overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
.lace-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 50; min-height: 2.75rem; display: inline-flex; align-items: center; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--bg); padding: 0.75rem 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

/* --- знак и надпись --- */
.znak { display: block; flex: none; }
.znak-frame { stroke: var(--logo); }
.znak-lens { stroke: var(--accent); }
.wordmark { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem); letter-spacing: 0.03em; color: var(--logo); white-space: nowrap; }
.wordmark-accent { font-weight: 500; color: var(--accent); }
.wordmark-lace { font-weight: 500; color: var(--lace); }

/* --- кнопки --- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.5rem; padding: 0 1.875rem; border-radius: 8px; font-weight: 600; font-size: 1.125rem; text-decoration: none; }
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn-accent { background: var(--accent); color: var(--btn-text); }
.btn-outline { border: 2px solid var(--text); }
.icon-btn { width: 2.75rem; height: 2.75rem; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: block; }
  :root:not([data-theme="light"]) .i-moon { display: none; }
}
.text-link { font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; min-height: 2.75rem; display: inline-flex; align-items: center; }

/* --- шапка — отдельная полоса на всю ширину, прилипает сверху (решение владельца 13.10.2026).
   Поля симметричные: знак слева и последняя кнопка справа — 16 точек на телефоне, 48 дальше.
   Знак и кнопки не сжимаются, текст не переносится. Полное меню — пока помещается; не помещается
   (по реальной ширине содержимого — site.js, класс compact) — кнопка меню, а если и «Подать
   заявку» не помещается — она уходит в раскрывающееся меню (compact-apply). Без скрипта меню
   переносится на вторую строку — без наложений. --- */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06); }
.header-row { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; min-height: 4rem; padding: 0.5rem 16px; }
.brand { display: flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; flex: none; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.site-header .znak { width: 44px; height: 18px; }
.site-header .wordmark { white-space: nowrap; letter-spacing: 0; font-size: clamp(1rem, 0.6rem + 1.6vw, 1.5rem); }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 1rem; font-weight: 600; margin-left: auto; }
.site-nav a { min-height: 2.75rem; display: inline-flex; align-items: center; white-space: nowrap; flex: none; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
/* пункт «Статьи» с выпадающим списком разделов: список — обычные ссылки в HTML, открывается
   наведением и фокусом (CSS), нажатием на стрелку и закрывается по Esc (site.js) */
.nav-group { position: relative; display: flex; align-items: center; flex: none; }
.nav-sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; min-height: 2.75rem; margin-left: 0.125rem; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.nav-sub-toggle svg { transition: transform 0.15s; }
.nav-group.open .nav-sub-toggle svg { transform: rotate(180deg); }
.nav-sub { position: absolute; top: 100%; left: 0; z-index: 30; min-width: 12rem; margin: 0; padding: 0.5rem 0; list-style: none; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 12px 16px rgba(0, 0, 0, 0.08); visibility: hidden; opacity: 0; }
.nav-sub a { display: flex; padding: 0 1.125rem; }
.nav-group:hover .nav-sub, .nav-group:focus-within .nav-sub, .nav-group.open .nav-sub { visibility: visible; opacity: 1; }
.nav-group.dismissed .nav-sub { visibility: hidden; opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .nav-sub { transition: opacity 0.12s; } }
.header-tools { display: flex; align-items: center; gap: 0.75rem; flex: none; margin-left: auto; }
.site-nav + .header-tools { margin-left: 0; }
.header-tools > * { flex: none; }
.btn-small { min-height: 2.75rem; padding: 0 1.25rem; font-size: 1rem; white-space: nowrap; }
.menu-toggle { display: none; }
.nav-apply { display: none !important; }
@media (min-width: 600px) {
  .header-row { padding: 0.5rem 48px; }
  .site-header .znak { width: 62px; height: 25px; }
  .site-header .wordmark { letter-spacing: 0.03em; }
  .brand { gap: 0.75rem; }
}
@media (min-width: 1024px) { .header-row { min-height: 4.75rem; } }
/* шесть пунктов меню на ноутбуке: поля 32, подпись 20 px, зазор 16 — шапка целиком с ≈1255
   (решение владельца 04.11.2026: помещаться на 1280); на 1440 и шире — просторнее */
@media (min-width: 1024px) and (max-width: 1439.98px) {
  .header-row { padding-inline: 32px; }
  .site-header .wordmark { font-size: 1.25rem; }
  .js .site-header.compact .site-nav.open { padding-inline: 32px; }
}
@media (min-width: 1440px) { .site-nav { gap: 0 1.375rem; } }
/* со скриптом — одна строка; не помещается — вариант с кнопкой меню */
.js .header-row { flex-wrap: nowrap; }
.js .site-nav { flex: none; flex-wrap: nowrap; }
.js .site-header.compact .header-row { gap: 0.5rem 0.75rem; }
.js .site-header.compact .header-tools { margin-left: auto; gap: 0.5rem; }
.js .site-header.compact .site-nav { display: none; }
/* кнопка меню: разделы статей — списком под «Статьи», без стрелки */
.js .site-header.compact .nav-group { display: block; }
.js .site-header.compact .nav-sub-toggle { display: none; }
.js .site-header.compact .nav-sub { position: static; visibility: visible; opacity: 1; min-width: 0; padding: 0 0 0 1rem; border: 0; box-shadow: none; background: none; }
.js .site-header.compact .nav-sub a { padding: 0; }
.js .site-header.compact .menu-toggle { display: inline-flex; }
.js .site-header.compact .site-nav.open {
  display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
  margin: 0; padding: 0.5rem 16px 1rem; background: var(--bg); border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 16px rgba(0, 0, 0, 0.08);
}
@media (min-width: 600px) { .js .site-header.compact .site-nav.open { padding-inline: 48px; } }
.js .site-header.compact-apply .header-apply { display: none; }
/* совсем узкий экран: надпись скрыта, остаётся знак (название — в aria-label ссылки) */
.js .site-header.compact-mark .wordmark { display: none; }
.js .site-header.compact-apply .site-nav .nav-apply { display: inline-flex !important; align-self: flex-start; margin-top: 0.5rem; }

/* --- хлебные крошки --- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.5rem; font-size: 0.875rem; color: var(--muted); padding-top: 1.5rem; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; min-height: 2.75rem; display: inline-flex; align-items: center; }
.crumbs [aria-current] { min-height: 2.75rem; display: inline-flex; align-items: center; }
.crumbs .sep { opacity: 0.6; }

/* --- «Наверх»: появляется после прокрутки примерно на экран --- */
.to-top { position: fixed; right: clamp(1rem, 2.5vw, 2rem); bottom: clamp(1rem, 2.5vw, 2rem); z-index: 40; width: 3rem; height: 3rem; border-radius: 50%; background: var(--accent); color: var(--btn-text); display: none; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22); }
.to-top:hover { text-decoration: none; filter: brightness(1.06); }
.to-top.shown { display: flex; }
/* Пока есть плашка cookie, кнопка стоит над ней; высоту плашки пишет cookies.js (--cookie-h),
   запасное значение — до первого замера и без скрипта. После выбора кнопка плавно опускается. */
.to-top { transition: bottom 0.2s ease; }
body:has(.cookie-bar) .to-top { bottom: calc(var(--cookie-h, 9rem) + clamp(1rem, 2.5vw, 2rem)); }
@media (min-width: 720px) { body:has(.cookie-bar) .to-top { bottom: calc(var(--cookie-h, 5rem) + clamp(1rem, 2.5vw, 2rem)); } }
@media (min-width: 1024px) { .to-top { width: 3.25rem; height: 3.25rem; } }

/* --- внешняя ссылка: значок ↗ и подпись для экранных дикторов --- */
.ext-mark { margin-left: 0.25em; font-size: 0.85em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* --- первый экран --- */
.hero-main { padding-inline: var(--gutter); }
.hero-text { display: flex; flex-direction: column; gap: 1.125rem; padding-block: 1.75rem 2rem; }
.badge { align-self: flex-start; padding: 0.375rem 0.875rem; border-radius: 1rem; background: var(--accent-soft); font-size: 0.875rem; font-weight: 600; }
.h1, .h1-page { margin: 0; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.98; overflow-wrap: normal; }
/* уже 350 px размер идёт от ширины экрана: «ПРОЧИТАЮТ» (5,26 em) помещается и на 320 */
.h1 { font-size: max(2rem, min(16vw, clamp(3.5rem, 2.4rem + 4.6vw, 5.75rem))); }
.h1-page { font-size: clamp(2.25rem, 1.8rem + 2vw, 3.5rem); margin-block: 2.5rem 1.5rem; }
.accent { color: var(--accent); }
.lead { margin: 0; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; max-width: 36rem; }
.actions { display: flex; flex-direction: column; gap: 0.75rem; }
.hero-panel { position: relative; overflow: hidden; background: var(--panel); color: var(--panel-text); display: flex; align-items: center; gap: 1rem; padding: 1.25rem var(--gutter); min-height: 11.25rem; }
.panel-lace { position: absolute; inset: 0; width: 100%; height: 100%; }
.panel-rosette { display: none; }
.portrait-figure { position: relative; margin: 0; display: flex; align-items: center; gap: 1rem; }
.portrait { flex: none; display: block; width: 7rem; height: 8.75rem; background: var(--portrait-bg); border: 1px solid var(--panel-line); position: relative; overflow: hidden; }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.portrait-figure figcaption { font-size: 0.9375rem; line-height: 1.5; color: var(--panel-text); }

@media (min-width: 600px) {
  .actions { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 1024px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); min-height: 700px; }
  .hero-main { display: flex; flex-direction: column; padding: 3.5rem 3.5rem 3.5rem max(4rem, calc((100vw - var(--wrap)) / 2 + 3rem)); }
  .hero-text { flex: 1; justify-content: center; gap: 1.75rem; padding-block: 0; max-width: 46rem; }
  .badge { min-height: 2rem; display: inline-flex; align-items: center; }
  .hero-panel { flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 1.625rem 2.5rem 3rem; }
  /* розетка — внизу справа, под портретом и подписью, как в макете (кружево никогда не под текстом) */
  .panel-rosette { display: inline; transform: translate(270px, 520px); }
  .portrait-figure { flex-direction: column; align-items: flex-start; gap: 0.875rem; }
  .hero-panel .portrait { width: 300px; max-width: 100%; height: 380px; }
  .portrait-figure figcaption { color: var(--panel-muted); max-width: 20rem; }
}

/* --- блоки --- */
.block { display: flex; flex-direction: column; gap: clamp(1.25rem, 1rem + 1.5vw, 2.5rem); padding-block: clamp(2.5rem, 1.5rem + 5vw, 6rem) clamp(2rem, 1.2rem + 3.5vw, 4.5rem); }
.block-head { display: flex; flex-direction: column; gap: 0.75rem; }
.block-head.row { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 1.5rem; }
.label { margin: 0; font-family: var(--font-head); font-weight: 500; font-size: 0.875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.label.on-panel { color: var(--panel-muted); }
.h2 { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(2.125rem, 1.8rem + 1.4vw, 3rem); line-height: 1.05; text-transform: uppercase; overflow-wrap: normal; }

.steps, .benefits, .stages, .nominations, .partner-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.125rem; }
.steps li, .benefits li { display: flex; flex-direction: column; gap: 0.375rem; border-top: 2px solid var(--accent); padding-top: 0.875rem; }
.step-num { font-family: var(--font-head); font-weight: 700; font-size: 3rem; line-height: 0.95; color: transparent; -webkit-text-stroke: 2px var(--accent); }
.step-title { font-weight: 600; font-size: 1.0625rem; }
.step-text, .stage-text, .nomination-facts { font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }
@media (min-width: 600px) { .steps, .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; } }
@media (min-width: 1024px) {
  .steps, .benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps li, .benefits li { gap: 0.625rem; padding-top: 1.125rem; }
  .step-num { font-size: 3.5rem; }
  .step-title { font-size: 1.1875rem; }
  .step-text { font-size: 1rem; line-height: 1.55; }
}

.band { background: var(--surface); }
.nowrap { white-space: nowrap; }
/* кружевная лента между секциями главной (только как разделитель, под текстом не ложится) */
.lace-rule { height: 14px; opacity: 0.55; }
.nominations li { background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: clamp(1.125rem, 1rem + 0.5vw, 1.5rem); display: flex; flex-direction: column; gap: 0.375rem; }
.nomination-title { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.25rem, 1.1rem + 0.4vw, 1.5rem); line-height: 1.2; }
@media (min-width: 600px) { .nominations { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; } }
@media (min-width: 1024px) { .nominations { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* «Как читают тексты»: телефон — линия слева, компьютер — пять колонок с кружками */
.stages { border-left: 2px solid var(--accent); padding-left: 0.25rem; gap: 1rem; }
.stages li { padding-left: 1rem; display: flex; flex-direction: column; }
.stage-num { display: none; }
.stage-title { font-weight: 600; font-size: 1.0625rem; }
@media (min-width: 1024px) {
  .stages { border-left: 0; padding-left: 0; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .stages li { padding-left: 0; gap: 0.5rem; }
  .stage-num { display: flex; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--accent); color: var(--btn-text); align-items: center; justify-content: center; font-weight: 600; }
  .stage-title { font-size: 1.125rem; }
}

.stages-note { margin: 1.25rem 0 0; font-size: 0.9375rem; color: var(--muted); }

/* Финальная полоса «Подать заявку» после «Как читают тексты» */
.cta-band { background: var(--surface); }
.cta-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 0.875rem; padding-block: clamp(2rem, 1.5rem + 3vw, 4rem); }
.cta-inner .h2 { margin: 0; }
.cta-note { margin: 0; font-size: 1.0625rem; color: var(--muted); }
@media (min-width: 1024px) { .cta-inner { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.5rem 2rem; } .cta-note { flex-basis: 100%; order: 3; } }

.levitov { position: relative; overflow: hidden; background: var(--panel); color: var(--panel-text); }
.levitov-grid { position: relative; display: flex; flex-direction: column; gap: 1.5rem; padding-block: clamp(2.25rem, 1.5rem + 4vw, 5.5rem); }
.levitov .portrait { display: none; }
.levitov-text { display: flex; flex-direction: column; gap: 0.875rem; }
.levitov-more { align-self: flex-start; min-height: 2.75rem; display: inline-flex; align-items: center; font-weight: 600; color: var(--panel-text); text-decoration: underline; text-underline-offset: 0.25em; }
.levitov-text p { margin: 0; font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem); line-height: 1.65; max-width: 42.5rem; }
.muted-panel { color: var(--panel-muted); }
@media (min-width: 1024px) {
  .levitov-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 3.5rem; align-items: center; }
  .levitov .portrait { display: block; width: 300px; height: 380px; }
  .levitov-text { gap: 1.25rem; }
}

/* --- заглушка (решение владельца 12.10.2026: красивые заглушки) --- */
.placeholder { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; padding: clamp(2rem, 1.5rem + 3vw, 4rem) 1rem; border: 1.5px dashed var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); }
.placeholder p { margin: 0; max-width: 32rem; font-size: 1.0625rem; }
.placeholder-rosette { opacity: 0.8; }
.page { padding-bottom: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.prose { max-width: 46rem; }
.prose h2, .prose h3 { font-family: var(--font-head); line-height: 1.15; }
.prose a { color: var(--accent); text-decoration: underline; }
/* Ритм текста (решение владельца 03.11.2026, только для текста страниц и тела статьи — класс `prose-flow`; «Источники» и блоки авторов ритма не получают): абзацы различимы — отступ
   0,6 строки (0,93 em при межстрочном 1,55); перед подзаголовком — заметно больше, после —
   меньше; списки и цитаты отделены от соседних абзацев. */
.prose-flow p { margin: 0 0 0.93em; }
.prose-flow h2 { margin: 1.75em 0 0.45em; }
.prose-flow h3 { margin: 1.5em 0 0.4em; }
.prose-flow > :first-child { margin-top: 0; }
.prose-flow ul, .prose-flow ol { margin: 1.1em 0; padding-left: 1.5rem; }
.prose-flow li { margin-block: 0.25rem; }
.prose-flow blockquote { margin: 1.2em 0; padding: 0.25rem 0 0.25rem 1.25rem; border-left: 4px solid var(--accent); font-style: italic; }
.prose-flow p:has(+ blockquote) { margin-bottom: 0.6em; }  /* «Из очерка…» — к цитате под ним */
.prose-flow blockquote p:last-child { margin-bottom: 0; }

.prose pre { white-space: pre-wrap; overflow-wrap: break-word; max-width: 100%; }  /* стихи не раздвигают страницу */
/* таблицы из вкладки «Таблицы» (статьи и страницы) */
.art-table { margin: 1.5rem 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.art-table table { border-collapse: collapse; min-width: 100%; font-size: 0.9375rem; }
.art-table caption { caption-side: top; text-align: left; padding-bottom: 0.5rem; font-size: 0.875rem; color: var(--muted); }
.art-table th, .art-table td { padding: 0.5rem 0.75rem; border: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: break-word; }  /* слова не рвём: широкая таблица прокручивается */
.art-table th { background: var(--surface); font-weight: 600; }

/* --- места рекламы РСЯ (рамка — только вошедшим организаторам, пока нет номера блока) --- */
.ad { display: flex; flex-direction: column; gap: 0.5rem; padding-bottom: clamp(2rem, 1.2rem + 3.5vw, 4.5rem); }
.ad-label { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ad-slot { min-height: 15.625rem; }
.ad-placeholder { border: 1.5px dashed var(--line); border-radius: 12px; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; padding: 1rem; }
.ad-inline { padding-bottom: 0; }
.ad-inline .ad-slot { min-height: 0; }
.ad-inline .ad-placeholder { min-height: 2.5rem; padding: 0.25rem 1rem; }
.ad-placeholder span { font-size: 0.8125rem; }

/* --- партнёры --- */
.partners { display: flex; flex-direction: column; gap: 0.875rem; padding-block: clamp(2.25rem, 1.5rem + 4vw, 5.5rem) clamp(1.5rem, 1rem + 2.5vw, 4rem); }
.partner-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.partner { height: 4.5rem; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 0.75rem; color: var(--muted); font-size: 0.875rem; text-align: center; }
.partner img { max-height: 100%; width: auto; object-fit: contain; }
@media (min-width: 1024px) { .partner-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } .partner { height: 6rem; } }

/* --- подвал --- */
.site-footer { background: var(--panel); color: var(--panel-text); }
.lace-edge { display: block; background: var(--bg); }
.lace-edge-fill { fill: var(--panel); }
.footer-grid { display: grid; gap: 1.5rem; padding-block: 2rem 1.5rem; }
.footer-about { display: flex; flex-direction: column; gap: 0.875rem; }
.footer-about .wordmark { color: var(--panel-text); white-space: normal; }
.footer-about p { margin: 0; font-size: 0.9375rem; line-height: 1.5; color: var(--panel-muted); max-width: 22.5rem; }
.footer-about p a { text-decoration: underline; }
.main-site a { min-height: 2.75rem; display: inline-flex; align-items: center; }
.footer-about .main-site { margin-top: -0.75rem; }
.footer-nav, .footer-contacts { display: flex; flex-direction: column; }
.footer-sub { list-style: none; margin: 0; padding: 0 0 0 1rem; }
.footer-nav a, .footer-contacts a, .footer-legal a, .admin-link { min-height: 2.75rem; display: inline-flex; align-items: center; gap: 0.375rem; }
.footer-bottom { display: flex; flex-direction: column; gap: 0.5rem; padding-bottom: 2rem; font-size: 0.875rem; color: var(--panel-muted); }
.footer-legal, .footer-meta { display: flex; flex-direction: column; }
.footer-meta span { min-height: 2.75rem; display: inline-flex; align-items: center; }
.footer-meta span.main-site { display: inline-block; line-height: 2.75rem; }
@media (max-width: 599px) {
  .footer-nav, .footer-contacts, .footer-legal { gap: 0.5rem; }
}
@media (min-width: 600px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
  .footer-bottom, .footer-legal, .footer-meta { flex-direction: row; flex-wrap: wrap; justify-content: space-between; column-gap: 1.5rem; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 2.5rem; padding-block: 3rem 2.5rem; }
  .footer-about { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Плашка о cookie: две кнопки одного вида, внизу окна; пока она есть, низ страницы не прячется */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--bg); border-top: 1px solid var(--line2); box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.1); }
.cookie-inner { display: flex; flex-direction: column; gap: 0.75rem; padding-block: 0.875rem; }
.cookie-text { margin: 0; font-size: 0.9375rem; line-height: 1.5; }
.cookie-text a { text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.75rem; }
.cookie-btn { flex: 1 1 0; cursor: pointer; background: transparent; color: var(--text); font-family: inherit; }
body:has(.cookie-bar) { padding-bottom: 9rem; }
@media (min-width: 720px) {
  .cookie-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 1.5rem; }
  .cookie-actions { flex: none; }
  .cookie-btn { flex: none; min-width: 9rem; }
  body:has(.cookie-bar) { padding-bottom: 5rem; }
}
