/* ==========================================================
   Сергей Довыдов — стиль сайта (вариант E)
   Редакционная вёрстка + техно-акценты
   ========================================================== */

/* @font-face — в src/fonts.css (подключается, когда файлы шрифтов лежат в public/fonts) */

:root {
  --paper: #F3F3F0;
  --ink: #111317;
  --ink-2: #3F434A;
  --muted: #62656C;
  --rule: #D5D6D2;
  --grid: #E3E4E0;
  --stripe-a: #E4E5E1;
  --stripe-b: #ECECE8;
  --lime: #C4EE62;
  --on-ink: #F3F3F0;
  --on-ink-muted: #A9ACB2;
  --ink-line: #33363C;

  --display: 'Unbounded', 'Arial Black', 'Helvetica Neue', sans-serif;
  --text: 'Golos Text', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace;

  --gutter: 88px;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.6; }
h1, h2, h3, p, figure, blockquote, ul, ol { margin: 0; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { overflow-wrap: break-word; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 5px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; background: var(--lime); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; padding: 8px 12px; background: var(--lime); }

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

/* ---------- Atoms ---------- */
.mono { font-family: var(--mono); }
.chip { display: inline-block; align-self: flex-start; justify-self: start; width: fit-content; font-family: var(--mono); font-size: 13px; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; background: var(--lime); color: var(--ink); padding: 5px 9px; text-decoration: none; }
.chip--dark { background: var(--ink); color: var(--lime); }
.chip--sm { font-size: 12px; }
.label { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--muted); }
.more { font-weight: 600; font-size: 16px; }
.grid-bg { background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 40px 40px; }
.ph { color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 24px; font-size: 16px; font-weight: 600; text-decoration: none; border: 1px solid var(--ink); }
.btn--ink { background: var(--ink); color: var(--lime); }
.btn--line { background: transparent; color: var(--ink); font-weight: 500; }
.btn--lime { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn:hover { text-decoration: none; filter: brightness(1.05); }

.photo { display: block; overflow: hidden; background: var(--rule); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.placeholder { background: repeating-linear-gradient(135deg, var(--stripe-a) 0 14px, var(--stripe-b) 14px 28px); display: flex; align-items: flex-end; padding: 16px; }
.placeholder span { font-family: var(--mono); font-size: 12px; color: var(--muted); background: var(--paper); padding: 6px 10px; }
.video { background: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: var(--on-ink-muted); font-family: var(--mono); font-size: 12px; text-decoration: none; }
.video iframe { width: 100%; height: 100%; border: 0; }

.sec-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; border-bottom: 1px solid var(--ink); padding-bottom: 16px; }
.sec-head h2 { font-family: var(--display); font-weight: 600; font-size: 34px; line-height: 1.15; text-transform: uppercase; }

/* ---------- Header ---------- */
.topline { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--muted); }
.topline nav { display: flex; gap: 24px; align-items: center; }
.topline a { text-decoration: none; }
.masthead { border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 36px 0 28px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.masthead__name { font-family: var(--display); font-weight: 600; font-size: 72px; line-height: 1; text-transform: uppercase; letter-spacing: -0.01em; text-decoration: none; text-align: center; }
.masthead__claim { max-width: 780px; text-align: center; font-size: 21px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; }
.nav a[aria-current="page"], .nav a:hover { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 6px; }

.bar { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; border-bottom: 3px solid var(--ink); }
.bar__name { font-family: var(--display); font-weight: 600; font-size: 20px; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.bar .nav { gap: 12px 30px; justify-content: flex-end; align-items: center; }

.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: flex-end; }
.menu summary::-webkit-details-marker { display: none; }
.menu__panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 3px solid var(--ink); padding: 8px 20px 20px; z-index: 5; display: flex; flex-direction: column; }
.menu__panel a { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 17px; font-weight: 500; text-decoration: none; }

/* ---------- Home ---------- */
.lead { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); border-bottom: 1px solid var(--ink); }
.lead__story { padding: 56px 56px 64px 0; border-right: 1px solid var(--ink); display: flex; flex-direction: column; gap: 28px; }
.lead__story h1 { font-family: var(--display); font-weight: 500; font-size: 50px; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.lead__story h1 a { text-decoration: none; }
.lead__story .dek { font-size: 21px; line-height: 1.5; color: var(--ink-2); max-width: 760px; text-wrap: pretty; }
.lead__story .placeholder { height: 360px; }
.lead__author { padding: 56px 0 64px 48px; display: flex; flex-direction: column; gap: 24px; }
.lead__author .placeholder, .lead__author .photo { height: 300px; }
.lead__author .big { font-size: 20px; line-height: 1.5; text-wrap: pretty; }
.lead__author .small { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.stack { display: flex; flex-direction: column; gap: 12px; }

.empty { padding: 56px 56px 64px 0; border-right: 1px solid var(--ink); display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.empty h1 { font-family: var(--display); font-weight: 500; font-size: 44px; line-height: 1.15; text-wrap: balance; }

/* Промежуток между карточками задаётся column-gap, а не боковыми паддингами:
   при паддингах крайние карточки получались на 40px шире средней (у них одна
   сторона прижата к краю полосы), и превью в них рисовались крупнее. Разделитель
   поэтому рисуется псевдоэлементом по центру промежутка, а не бордюром колонки. */
.latest { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 80px; border-bottom: 1px solid var(--ink); }
.latest > * { position: relative; padding: 40px 0 48px; display: flex; flex-direction: column; gap: 16px; }
.latest > *:not(:last-child)::after { content: ''; position: absolute; top: 0; bottom: 0; right: -40px; width: 1px; background: var(--rule); }
.card h3 { font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1.3; text-wrap: balance; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-decoration-color: var(--lime); }
.card p { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.card--quote h3 { font-weight: 400; }

.section { padding-top: 80px; display: flex; flex-direction: column; gap: 36px; }
.topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.topic { display: flex; flex-direction: column; gap: 14px; }
.topic h3 { font-family: var(--display); font-weight: 500; font-size: 20px; line-height: 1.3; }
.topic h3 a { text-decoration: none; }
.topic p { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.chanrow { display: flex; flex-wrap: wrap; gap: 10px; }
.chan { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; border: 1px solid var(--ink); padding: 10px 16px; transition: background .15s; }
.chan:hover { background: var(--lime); }
sup { font-size: 75%; line-height: 0; position: relative; top: -0.45em; vertical-align: baseline; }
.footer nav { align-items: baseline; }
.footnote { flex-basis: 100%; font-family: var(--mono); font-size: 11px; line-height: 1.6; color: var(--muted); margin-top: 4px; }

/* Ряд площадок и программ */
/* Те же грабли, что были в .latest: на боковых паддингах крайние карточки
   получались шире средних, и логотипы в них рисовались крупнее. Промежуток
   задаётся column-gap, разделитель — псевдоэлементом по центру промежутка,
   нижняя линия переехала на контейнер, иначе она рвалась бы на промежутках. */
.venues { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 56px;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.venue { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  min-height: 128px; padding: 24px 0; text-decoration: none; }
.venue:not(:last-child)::after { content: ''; position: absolute; top: 0; bottom: 0; right: -28px; width: 1px; background: var(--rule); }
a.venue:hover .venue__name { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.venue__name { font-family: var(--display); font-weight: 500; font-size: 19px; line-height: 1.25; text-wrap: balance; }
/* высота каждого знака задаётся в site.json через --lh: у одно- и трёхстрочных
   логотипов при одинаковой высоте сильно разный оптический размер */
.venue__logo { display: block; max-width: 100%; max-height: var(--lh, 44px); width: auto; height: auto; object-fit: contain; object-position: left center; }
.venue__role { font-family: var(--mono); font-size: 12px; line-height: 1.5; letter-spacing: .04em; color: var(--muted); }

/* Картинка-марка в карточках разборов */
.thumb { display: block; text-decoration: none; }
.thumb .photo { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--rule); }
.thumb .photo img { object-position: 50% 50%; }
.lead__story .thumb .photo { aspect-ratio: 16 / 9; }

.talks-teaser { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 48px; }
.talks-teaser .video { height: 380px; }
.talk-row { padding: 22px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; }
.talk-row:first-child { padding-top: 0; }
.talk-row:last-child { border-bottom: 0; }
.talk-row .t { font-size: 19px; line-height: 1.45; max-width: 900px; }
.talks-list { border-top: 1px solid var(--rule); padding-top: 8px; }

.media-box { margin-top: 96px; border: 1px solid var(--ink); padding: 56px; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 56px; align-items: center; }
.media-box h2 { font-family: var(--display); font-weight: 500; font-size: 30px; line-height: 1.25; text-wrap: balance; }
.media-box--ink { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.kv { display: flex; flex-direction: column; }
.kv > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: 17px; }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.media-box--ink .kv > div { border-color: var(--ink-line); }
.media-box--ink .kv dt { color: var(--on-ink-muted); }
.media-box--ink a { color: var(--lime); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags span { font-family: var(--mono); font-size: 13px; border: 1px solid #4A4D55; color: #C9CBCF; padding: 6px 10px; }

/* ---------- Footer ---------- */
.footer { margin-top: 88px; border-top: 3px solid var(--ink); padding: 24px 0 40px; display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ---------- Article ---------- */
.art-head { display: grid; grid-template-columns: 220px minmax(0, 1fr) 220px; gap: 52px; padding: 56px 0 48px; }
.art-head__main { display: flex; flex-direction: column; gap: 24px; }
.art-head h1 { font-family: var(--display); font-weight: 500; font-size: 52px; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.art-head .dek { font-size: 22px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.art-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.art-meta b { font-weight: 400; color: var(--ink); }
.draft-flag { font-family: var(--mono); font-size: 12px; background: var(--ink); color: var(--lime); padding: 4px 8px; align-self: flex-start; }
.art-cover { height: 520px; }
.art-body { display: grid; grid-template-columns: 220px minmax(0, 1fr) 220px; gap: 52px; padding-top: 64px; align-items: start; }
.rail { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--ink); padding-top: 16px; }
.rail a { font-size: 15px; line-height: 1.4; text-decoration: none; color: var(--muted); }
.rail a:hover { color: var(--ink); }
.rail .label { text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; }

.prose { max-width: 720px; font-size: 20px; line-height: 1.7; display: flex; flex-direction: column; gap: 28px; counter-reset: h2; }
.prose p { text-wrap: pretty; }
.prose h2 { font-family: var(--display); font-weight: 500; font-size: 28px; line-height: 1.3; padding-top: 20px; counter-increment: h2; scroll-margin-top: 24px; text-wrap: balance; }
.prose h2::before { content: counter(h2, decimal-leading-zero); display: inline-block; margin-right: 14px; vertical-align: 0.3em; font-family: var(--mono); font-size: 14px; font-weight: 400; background: var(--lime); padding: 4px 8px; line-height: 1.3; }
.prose h3 { font-family: var(--display); font-weight: 500; font-size: 21px; line-height: 1.3; }
.prose ul, .prose ol { padding-left: 1.2em; display: flex; flex-direction: column; gap: 10px; }
.prose li::marker { color: var(--muted); }
.prose blockquote { border: 1px solid var(--ink); padding: 28px 32px; font-size: 18px; line-height: 1.6; }
.prose blockquote strong:first-child { display: inline-block; font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--ink); color: var(--lime); padding: 5px 9px; margin-right: 8px; }
.prose code { font-family: var(--mono); font-size: 0.85em; background: var(--stripe-a); padding: 1px 5px; }
.prose pre { min-width: 0; max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--stripe-a); border-left: 3px solid var(--lime); padding: 18px 22px; font-size: 16px; line-height: 1.6; }
.prose pre code { background: none; padding: 0; font-size: 0.95em; }
.prose table { border-collapse: collapse; font-size: 16px; width: 100%; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.prose .table { overflow-x: auto; }
.prose hr { border: 0; border-top: 3px solid var(--ink); margin: 0; align-self: stretch; }
.disclaimer { font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--muted); padding-top: 16px; border-top: 1px solid var(--rule); }

/* Ответ на вопрос статьи в двух-трёх предложениях. Стоит первым: его цитируют
   и поисковики, и языковые модели, и читатель, который дальше не пойдёт. */
.tldr { border-left: 4px solid var(--lime); padding: 4px 0 4px 22px; display: flex; flex-direction: column; gap: 10px; }
.tldr__k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tldr p { font-size: 21px; line-height: 1.55; text-wrap: pretty; }

.prose figure { margin: 40px 0; }
.prose figure a { display: block; text-decoration: none; }
.legal .chip, .page-title .chip { white-space: normal; }
.prose figure img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }
.prose figcaption { margin-top: 12px; font-family: var(--mono); font-size: 13px; line-height: 1.5; color: var(--muted); }
.author-box { margin-top: 16px; background: var(--ink); color: var(--on-ink); padding: 32px; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; align-items: start; font-size: 16px; line-height: 1.6; }
.author-box .ph-img { display: block; width: 96px; height: 96px; overflow: hidden; background: repeating-linear-gradient(135deg, #2A2D33 0 8px, #33363C 8px 16px); }
.author-box .ph-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.author-box b { font-family: var(--display); font-weight: 500; font-size: 18px; text-transform: uppercase; display: block; margin-bottom: 8px; }
.author-box p { color: #C9CBCF; }
.author-box .row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.author-box .btn--line { color: var(--on-ink); border-color: #4A4D55; }

.also { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.also > * { padding: 8px 40px 0 0; display: flex; flex-direction: column; gap: 14px; }
.also > * + * { padding: 8px 40px 0 40px; border-left: 1px solid var(--rule); }
.also > *:last-child { padding-right: 0; }

/* ---------- List page ---------- */
.page-title { padding: 64px 0 56px; border-bottom: 1px solid var(--ink); display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px 64px; align-items: end; }
.page-title__main { display: flex; flex-direction: column; gap: 24px; }
.page-title h1 { font-family: var(--display); font-weight: 500; font-size: 56px; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.page-title p { font-size: 20px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.filters a { font-family: var(--mono); font-size: 13px; padding: 7px 12px; border: 1px solid var(--ink); text-decoration: none; }
.filters a[aria-current="page"] { background: var(--lime); border-color: var(--lime); }
.list-row { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; padding: 32px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.list-row--nopic { grid-template-columns: minmax(0, 1fr); }
.list-row > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.list-row h2 { font-family: var(--display); font-weight: 500; font-size: 26px; line-height: 1.25; text-wrap: balance; }
.list-row h2 a { text-decoration: none; }
.list-row p { font-size: 17px; color: var(--ink-2); }
.list-empty { padding: 56px 0; font-size: 20px; color: var(--ink-2); }

/* ---------- About ---------- */
.about-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border-bottom: 1px solid var(--ink); }
.about-hero__text { padding: 72px 64px 72px 0; border-right: 1px solid var(--ink); display: flex; flex-direction: column; gap: 28px; justify-content: center; }
.about-hero h1 { font-family: var(--display); font-weight: 500; font-size: 54px; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.about-hero p { font-size: 22px; line-height: 1.5; color: var(--ink-2); max-width: 640px; text-wrap: pretty; }
.about-hero__photo { padding: 48px 0 48px 48px; display: flex; flex-direction: column; justify-content: center; }
.about-hero__photo .placeholder, .about-hero__photo .photo { height: 560px; }
.row-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.path-row { display: grid; grid-template-columns: 120px 320px minmax(0, 1fr); gap: 40px; padding: 28px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.path-row:last-child { border-bottom-color: var(--ink); }
.path-row h3 { font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1.3; }
.path-row p { font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.path-row .chip { justify-self: start; font-size: 14px; letter-spacing: 0; text-transform: none; }
.creds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.creds > div { background: var(--paper); padding: 28px; display: flex; flex-direction: column; gap: 12px; min-height: 180px; }
.creds .kind { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; }
.creds .t { font-family: var(--display); font-weight: 500; font-size: 20px; line-height: 1.3; }
.creds .n { margin-top: auto; font-size: 15px; color: var(--ink-2); }
.creds .chip { margin-top: auto; align-self: flex-start; font-size: 12px; }

/* ---------- Talks ---------- */
.talk { display: grid; grid-template-columns: 560px minmax(0, 1fr); gap: 56px; padding: 48px 0; border-bottom: 1px solid var(--rule); }
.talk:last-child { border-bottom-color: var(--ink); }
.vidbox { position: relative; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.vidbox iframe, .vidbox video { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.vidbox__play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; padding: 0; background: rgba(17, 19, 23, 0.28); cursor: pointer; transition: background .15s; }
.vidbox__play:hover { background: rgba(17, 19, 23, 0.12); }
.vidbox__play svg { filter: drop-shadow(0 2px 14px rgba(0, 0, 0, .65)); }
.vidbox__title { margin-top: 18px; font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1.3; max-width: 760px; }
.vids { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; margin-top: 28px; align-items: start; }
.vidlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.vidlist__item { width: 100%; display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 14px; align-items: start; text-align: left; background: transparent; border: 1px solid var(--rule); border-radius: 14px; padding: 10px; cursor: pointer; color: inherit; font: inherit; transition: border-color .15s, background .15s; }
.vidlist__item:hover { border-color: var(--ink); }
.vidlist__item[aria-current="true"] { border-color: var(--ink); background: var(--paper-2, rgba(17, 19, 23, .04)); }
.vidlist__thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--ink); }
.vidlist__dur { position: absolute; right: 6px; bottom: 6px; background: rgba(17, 19, 23, .82); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 6px; border-radius: 4px; }
.vidlist__text { display: flex; flex-direction: column; gap: 6px; }
.vidlist__title { font-weight: 600; font-size: 15px; line-height: 1.35; }
@media (max-width: 900px) { .vids { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .vidlist__item { grid-template-columns: 116px minmax(0, 1fr); } }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.shot { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.shot .photo { aspect-ratio: 16 / 9; }
.shot figcaption { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.talks-teaser .photo { height: 380px; }
.talk .video, .talk .placeholder, .talk .photo { height: 315px; }
.talk__body { display: flex; flex-direction: column; gap: 16px; padding-top: 4px; }
.talk__body h2 { font-family: var(--display); font-weight: 500; font-size: 32px; line-height: 1.2; }
.talk__body p { font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.talk__links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: auto; }

/* ---------- Media page ---------- */
.bio-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.bio-row h3 { font-family: var(--display); font-weight: 500; font-size: 20px; }
.bio-row p { font-size: 18px; line-height: 1.65; max-width: 820px; }
.photos2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.press-photos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: dense; gap: 24px; }
.press-photo { grid-column: span 2; }
.press-photo { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.press-photo--wide { grid-column: span 3; }
.press-photo--full { grid-column: 1 / -1; }
.press-photo figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; }
.press-photo figcaption a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .press-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .press-photo { grid-column: span 1; }
  .press-photo--wide, .press-photo--full { grid-column: span 2; }
  .press-photo .photo { height: 220px !important; }
  .press-photo:first-child { grid-column: span 2; }
  .press-photo figcaption { font-size: 13px; }
  .press-photo figcaption a { white-space: nowrap; }
}
.topic-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.topic-list ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.topic-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); font-size: 16px; line-height: 1.5; }
.topic-list li::before { content: ""; width: 9px; height: 9px; background: var(--lime); outline: 1px solid var(--ink); margin-top: 7px; }

.legal { max-width: 820px; padding: 56px 0 0; font-size: 18px; line-height: 1.7; display: flex; flex-direction: column; gap: 20px; }
.legal h1 { font-family: var(--display); font-weight: 500; font-size: 40px; line-height: 1.15; }
.legal h2 { font-family: var(--display); font-weight: 500; font-size: 22px; padding-top: 12px; }

.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-left: auto; background: var(--ink); color: var(--on-ink); padding: 18px 20px; display: flex; gap: 16px; align-items: center; font-size: 14px; line-height: 1.5; z-index: 20; }
/* важно: без этой строки атрибут hidden не работает — display: flex выше его перебивает,
   и баннер не скрывается ни по кнопке, ни при повторном заходе */
.cookie[hidden] { display: none; }
.cookie a { color: var(--lime); }
.cookie button { font: inherit; font-weight: 600; background: var(--lime); color: var(--ink); border: 0; padding: 10px 16px; min-height: 44px; cursor: pointer; }

/* ==========================================================
   Адаптив
   ========================================================== */
@media (max-width: 1180px) {
  :root { --gutter: 40px; }
  .masthead__name { font-size: 56px; }
  .bar .nav { display: none; }
  .menu { display: block; }
  .bar { position: relative; }
  .art-head, .art-body { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .art-head > .label:first-child, .art-head > div:last-child:empty, .rail--right { display: none; }
  .rail { position: static; }
  .prose { max-width: none; }
  .prose figure { margin: 28px 0; }
  .talk { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .path-row { grid-template-columns: 90px 220px minmax(0, 1fr); gap: 24px; }
  .creds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .topline { font-size: 11px; }
  .topline nav { display: none; }
  .masthead { padding: 20px 0 16px; align-items: flex-start; }
  .masthead__name { font-size: 26px; text-align: left; }
  .masthead .nav { display: none; }
  .home-head { position: relative; }
  /* меню на главной: сама кнопка прижата к правому краю, а выпадающая панель
     считает ширину от шапки целиком, а не от кнопки (иначе схлопывается в столбик) */
  .home-head .menu { display: block; position: static; }
  .home-head .menu > summary { position: absolute; right: 0; top: 52px; }
  .home-head .menu__panel { position: absolute; left: 0; right: 0; top: 100%; }

  .lead, .latest, .topics, .photos2, .talks-teaser, .media-box, .also, .page-title, .about-hero, .talk, .topic-list { grid-template-columns: minmax(0, 1fr); }
  .lead__story, .empty { padding: 28px 0 32px; border-right: 0; border-bottom: 1px solid var(--ink); gap: 16px; }
  .lead__story h1 { font-size: 27px; line-height: 1.2; }
  .empty h1 { font-size: 26px; }
  .lead__story .dek { font-size: 17px; }
  .lead__story .placeholder { height: 200px; }
  .lead__author { padding: 28px 0 32px; gap: 16px; }
  .lead__author .placeholder, .lead__author .photo { height: 260px; }
  .lead__author .btn { width: 100%; }
  .latest { column-gap: 0; }
  .latest > *, .latest > *:first-child, .latest > *:last-child { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .latest > *:not(:last-child)::after { display: none; }
  .latest > *:last-child { border-bottom: 0; }
  .card h3 { font-size: 19px; }
  .section { padding-top: 48px; gap: 20px; }
  .sec-head h2 { font-size: 22px; }
  .topics { gap: 24px; }
  .talks-teaser { gap: 16px; }
  .talks-teaser .video { height: 200px; }
  .media-box { margin-top: 48px; padding: 24px; gap: 20px; }
  .media-box h2 { font-size: 20px; }
  .kv > div { grid-template-columns: 96px minmax(0, 1fr); padding: 12px 0; font-size: 15px; }
  .footer { flex-direction: column; margin-top: 48px; }

  .art-head { padding: 28px 0 24px; gap: 16px; }
  .art-head h1 { font-size: 28px; line-height: 1.2; }
  .art-head .dek { font-size: 18px; }
  .art-cover { height: 220px; }
  .art-body { padding-top: 32px; }
  .prose { font-size: 17px; gap: 20px; }
  .tldr { padding-left: 16px; }
  .tldr p { font-size: 18px; }
  .prose h2 { font-size: 21px; }
  .prose h2::before { margin-right: 10px; }
  .prose blockquote { padding: 20px; font-size: 16px; }
  .author-box { grid-template-columns: 1fr; padding: 24px; }
  .author-box .btn { width: 100%; }
  .also > *, .also > * + * { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--rule); }

  .page-title { padding: 32px 0; gap: 16px; }
  .page-title h1 { font-size: 30px; }
  .page-title p { font-size: 17px; }
  .list-row, .list-row--nopic { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 24px 0; }
  /* на телефоне два столбца: правому нужен отступ от разделительной линии,
     иначе текст прилипает к ней вплотную */
  .venues { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 0; }
  .venue, .venue:first-child, .venue:last-child { min-height: 0; padding: 20px 0; border-right: 0;
    border-bottom: 1px solid var(--rule); }
  .venue:not(:last-child)::after { display: none; }
  .venue:nth-child(odd) { padding-right: 22px; border-right: 1px solid var(--rule); }
  .venue:nth-child(even) { padding-left: 22px; }
  .venue__name { font-size: 18px; }
  .venue__logo { max-height: calc(var(--lh, 44px) * 0.85); }
  .masthead__claim { font-size: 16px; line-height: 1.5; text-align: left; }
  .list-row h2 { font-size: 20px; }

  .about-hero__text { padding: 32px 0; border-right: 0; border-bottom: 1px solid var(--ink); gap: 20px; }
  .about-hero h1 { font-size: 30px; }
  .about-hero p { font-size: 18px; }
  .about-hero__photo { padding: 24px 0; }
  .about-hero__photo .placeholder, .about-hero__photo .photo { height: 380px; }
  .path-row { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 22px 0; }
  .path-row h3 { font-size: 19px; }
  .path-row p { font-size: 16px; }
  .creds { grid-template-columns: minmax(0, 1fr); }
  .creds > div { min-height: 0; }

  .talk { gap: 16px; padding: 28px 0; }
  .talk .video, .talk .placeholder, .talk .photo { height: 200px; }
  /* на телефоне фото идут лентой с горизонтальной прокруткой: три кадра
     столбиком заняли бы почти весь экран */
  .gallery { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .gallery .shot { flex: 0 0 76%; scroll-snap-align: start; }
  .gallery .shot figcaption { font-size: 14px; }
  .venue { justify-content: flex-start; }
  .shot .photo { aspect-ratio: 16 / 9; }
  .talks-teaser .photo { height: 200px; }
  .talk__body h2 { font-size: 22px; }
  .talk__body p { font-size: 16px; }

  .bio-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .bio-row p { font-size: 16px; }
  .topic-list { gap: 28px; }
  .legal h1 { font-size: 24px; }
  .cookie { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media print { .topline, .masthead .nav, .bar .nav, .menu, .footer nav, .author-box .row, .cookie { display: none !important; } }

/* Переход на индекс карт в разделе «Карты и платежи». Лайм здесь подложка чипа
   и цвет текста на чёрной кнопке, но никогда не текст на светлом фоне. */
.index-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px;
  align-items: center; padding: 32px 0; border-bottom: 1px solid var(--ink); }
.index-cta__text { display: flex; flex-direction: column; gap: 12px; }
.index-cta h2 { font-family: var(--display); font-weight: 500; font-size: 32px; line-height: 1.15; }
.index-cta p { font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
@media (max-width: 720px) {
  .index-cta { grid-template-columns: 1fr; }
  .index-cta .btn { width: 100%; }
}

/* Вариант внутри статьи: рамка вместо линии снизу, заголовок абзацем. */
/* Карточка-превью другого разбора внутри текста: {{card:slug}} */
.link-card a { display: grid; grid-template-columns: 240px minmax(0, 1fr); border: 1px solid var(--rule); background: #fff; text-decoration: none; color: var(--ink); transition: border-color .15s; }
.link-card a:hover { border-color: var(--ink); }
/* Марка целиком, без обрезки: object-fit contain, а поля сливаются с фоном — у марок он того же цвета */
.link-card__img { position: relative; display: block; width: 100%; min-height: 146px; background: #111317; overflow: hidden; }
.link-card__img picture { background: transparent !important; }
.link-card__img picture, .link-card__img img { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; object-fit: contain !important; }
.link-card__b { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px; min-width: 0; }
.link-card__k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.link-card__t { font-family: var(--display); font-weight: 500; font-size: 17px; line-height: 1.3; }
.link-card__d { font-size: 15px; line-height: 1.45; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.link-card__u { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: auto; }
@media (max-width: 720px) {
  .link-card a { grid-template-columns: 1fr; }
  .link-card__img { aspect-ratio: 16 / 9; min-height: 0; }
  .link-card__b { padding: 14px 16px; }
  .link-card__d { font-size: 14px; }
}
.index-cta--inline { border: 1px solid var(--ink); padding: 28px 32px; grid-template-columns: 1fr; justify-items: start; gap: 24px; }
.index-cta .index-cta__title { font-family: var(--display); font-weight: 500; font-size: 26px; line-height: 1.2; color: var(--ink); }
@media (max-width: 720px) { .index-cta--inline { padding: 24px 20px; } }

/* ==========================================================
   Тёмная тема — по выбору читателя, кнопкой в шапке.
   Выбор хранится в localStorage под ключом site-theme, атрибут data-theme="dark"
   ставит скрипт в <head> до отрисовки, поэтому вспышки светлой страницы нет.
   Почти всё перекрашивается через переменные. Ниже — места, где в светлой теме
   «чернилами» закрашен фон (кнопки, плашка автора, медиа-блок): в тёмной они
   становятся панелью, а текст на лайме всегда остаётся тёмным.
   ========================================================== */
.theme-btn { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; background: transparent; color: inherit;
  border: 1px solid var(--rule); padding: 6px 10px; cursor: pointer; white-space: nowrap; }
.theme-btn:hover { border-color: var(--lime); }
.menu__panel .theme-btn { margin-top: 16px; align-self: flex-start; font-size: 14px; padding: 10px 14px; }

:root[data-theme="dark"] {
  --paper: #111317;
  --ink: #EDF1F5;
  --ink-2: #B4BBC6;
  --muted: #7C8694;
  --rule: #2A303A;
  --grid: #1A1E25;
  --stripe-a: #1C2027;
  --stripe-b: #171A20;
  --lime: #C8F135;
  --on-ink: #EDF1F5;
  --on-ink-muted: #9AA3AF;
  --ink-line: #2A303A;
  --panel: #1A1E25;
  color-scheme: dark;
}
:root[data-theme="dark"] .chip,
:root[data-theme="dark"] .btn--lime,
:root[data-theme="dark"] .cookie button,
:root[data-theme="dark"] .filters a[aria-current="page"],
:root[data-theme="dark"] .chan:hover,
:root[data-theme="dark"] .prose h2::before,
:root[data-theme="dark"] :focus-visible { color: #111317; }
:root[data-theme="dark"] .chip--dark,
:root[data-theme="dark"] .draft-flag,
:root[data-theme="dark"] .prose blockquote strong:first-child { background: var(--panel); color: var(--lime); }
:root[data-theme="dark"] .btn--ink { background: var(--lime); color: #111317; border-color: var(--lime); }
:root[data-theme="dark"] .author-box,
:root[data-theme="dark"] .media-box--ink,
:root[data-theme="dark"] .cookie { background: var(--panel); color: var(--ink); border: 1px solid var(--rule); }
:root[data-theme="dark"] .video,
:root[data-theme="dark"] .vidbox { background: #0B0D10; }
:root[data-theme="dark"] .author-box .btn--line { color: var(--ink); border-color: var(--rule); }
:root[data-theme="dark"] .link-card a { background: var(--panel); color: var(--ink); border-color: var(--rule); }
:root[data-theme="dark"] .link-card a:hover { border-color: var(--lime); }
:root[data-theme="dark"] .placeholder span { background: var(--panel); }
:root[data-theme="dark"] .topic-list li::before { outline-color: var(--paper); }
/* Логотипы площадок нарисованы под светлый фон: в тёмной теме — на светлой плашке */
:root[data-theme="dark"] .venue__logo { background: #F3F3F0; padding: 8px 12px; box-sizing: content-box; }
/* Инфографика и картинки в тексте светлые: рамка отделяет их от тёмного фона */
:root[data-theme="dark"] .prose figure img { border-color: var(--rule); }
:root[data-theme="dark"] .prose code { background: var(--panel); }
:root[data-theme="dark"] .prose pre { background: var(--panel); }
:root[data-theme="dark"] .prose pre code { background: none; }

/* Пошаговые инструкции на поддомене — блок {{guides:...}} в статье */
.guides { display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--ink); padding: 28px 32px; }
.guides .guides__title { font-family: var(--display); font-weight: 500; font-size: 26px; line-height: 1.2; color: var(--ink); }
.prose .guides ul { list-style: none; padding: 0; gap: 0; }
.guides li { border-top: 1px solid var(--rule); }
.guides li:last-child { border-bottom: 1px solid var(--rule); }
.guides a { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; text-decoration: none; color: var(--ink); border: 0; }
.guides a b { font-weight: 600; }
.guides a span { font-size: 15px; color: var(--ink-2); }
.guides a:hover b { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; }
@media (max-width: 720px) { .guides { padding: 24px 20px; } }

/* Значок темы в строке разделов: квадрат в высоту плашки «Для СМИ», внутри круг, закрашенный наполовину */
.theme-btn--icon { width: 30px; height: 30px; padding: 0; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.theme-btn--icon span { width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 50%;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%); }

/* Строка разделов: значок темы стоит отдельно от меню, справа, по центру строки.
   Пока разделы не помещаются в одну строку, вместо них показывается бургер — там своя кнопка темы. */
/* С рубрикой «Инструменты» (31.10.2026) пунктов стало восемь: шрифт и отступы чуть меньше, бургер включается раньше */
.bar .nav { gap: 12px 14px; font-size: 14px; }
@media (min-width: 1400px) and (max-width: 1499px) { .bar .nav { font-size: 13.5px; } }
@media (max-width: 1399px) {
  .bar .nav, .bar > .theme-btn--icon { display: none; }
  .bar .menu { display: block; }
  .bar { position: relative; }
}

/* Короткое видео к разбору */
.reel { margin: 28px 0 8px; max-width: 360px; }
.reel video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; background: #111317; border-radius: 10px; }
.reel figcaption { display: flex; gap: 10px; align-items: baseline; margin-top: 10px; font-size: 15px; color: var(--muted); }

/* «Я в СМИ»: плитка с логотипом издания и заголовок материала */
.press-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.press-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; }
.press-card__tile { display: flex; align-items: center; justify-content: center; height: 150px; padding: 20px;
  background: #fff; border: 1px solid var(--rule); transition: border-color .15s; }
.press-card:hover .press-card__tile { border-color: var(--ink); }
.press-card__logo { display: block; max-width: 100%; max-height: var(--lh, 56px); width: auto; height: auto; object-fit: contain; }
.press-card__name { font-family: var(--display); font-weight: 600; font-size: 22px; }
.press-card__title { font-size: 17px; line-height: 1.4; text-wrap: pretty; }
a.press-card:hover .press-card__title { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.press-card__meta { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--muted); }
@media (max-width: 1180px) { .press-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .press-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; } .press-card__tile { height: 120px; } }
@media (max-width: 480px) { .press-grid { grid-template-columns: minmax(0, 1fr); } }
:root[data-theme="dark"] .press-card__tile { background: #F3F3F0; border-color: transparent; }

/* «Моя экспертиза»: карточки 2×2 по рубрикам */
.exp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.exp-card { position: relative; display: flex; flex-direction: column; gap: 16px; min-height: 260px; padding: 40px 44px;
  border-radius: 28px; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--rule); transition: transform .15s; }
.exp-card:hover { transform: translateY(-3px); }
.exp-card--lime { background: var(--lime); border-color: var(--lime); }
.exp-card--ink { background: #111317; border-color: #111317; color: #F3F3F0; }
.exp-card.exp-card--ink p { color: #C9CBC6; }
.exp-card__n { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; opacity: .7; }
.exp-card h3 { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.2; text-wrap: balance; }
.exp-card p { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 46ch; }
.exp-card.exp-card--lime p { color: #2A2F22; }
.exp-card__more { margin-top: auto; font-family: var(--mono); font-size: 13px; letter-spacing: .04em; }
@media (max-width: 860px) { .exp-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; } .exp-card { min-height: 0; padding: 28px 24px; border-radius: 22px; } .exp-card h3 { font-size: 22px; } }
:root[data-theme="dark"] .exp-card--paper { background: #1A1D23; border-color: var(--rule); color: var(--ink); }
:root[data-theme="dark"] .exp-card--lime { color: #111317; }
:root[data-theme="dark"] .exp-card--ink { background: #F3F3F0; border-color: #F3F3F0; color: #111317; }
:root[data-theme="dark"] .exp-card.exp-card--ink p { color: #3A3F47; }

/* ==========================================================
   Редизайн C «Бенто» — 16.11.2026
   Общий каркас для всех рубрик: светло-серый фон, белые плитки со скруглением,
   шапка-«таблетка». У каждой рубрики свой акцент (--acc), «Инструменты» —
   фиолетовые. Лайм остаётся цветом индекса карт и главных кнопок.
   ========================================================== */
:root { --paper: #EDECE8; --tile: #FFFFFF; --tile-2: #F5F4F0; --r-tile: 28px;
  --violet: #4A31C7; --violet-soft: #EDE8FF; --violet-ink: #E7E2FF; --violet-text: #3A23B0; }
:root[data-theme="dark"] { --tile: #1A1E25; --tile-2: #222730; --violet: #5B44D9; --violet-soft: #2B2556; --violet-ink: #D9D2FF; --violet-text: #D9D2FF; }

.rub-regulation { --acc: #C4EE62; --acc-soft: #EAF7CC; }
.rub-aml        { --acc: #FF8A3D; --acc-soft: #FFE4D1; }
.rub-identity   { --acc: #6F97F5; --acc-soft: #DCE7FF; }
.rub-cards      { --acc: #2FB57A; --acc-soft: #D3F1E2; }
.rub-tools      { --acc: #4A31C7; --acc-soft: var(--violet-soft); }

.rub-chip { display: inline-flex; align-self: flex-start; width: fit-content; font-family: var(--mono); font-size: 12px; line-height: 1.3;
  letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--acc-soft, var(--tile-2));
  color: #111317; text-decoration: none; }
.rub-chip.rub-tools { color: var(--violet-text); }
:root[data-theme="dark"] .rub-chip:not(.rub-tools) { color: #111317; }

/* Кнопки-таблетки */
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; border: 1px solid transparent; white-space: nowrap; }
.pill:hover { text-decoration: none; filter: brightness(1.06); }
.pill--lg { min-height: 54px; padding: 14px 26px; font-size: 16px; }
.pill--ink { background: #16171A; color: #FFFFFF; }
.pill--lime { background: var(--lime); color: #111317; }
.pill--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.pill--line-light { border-color: #F3F3F0; color: #F3F3F0; }
:root[data-theme="dark"] .pill--ink { background: var(--lime); color: #111317; }

/* Шапка */
.bar { border-bottom: 0; padding: 18px 0; gap: 16px; }
.bar__name { text-transform: none; font-size: 19px; }
.bar .nav--pill { display: flex; background: var(--tile); border-radius: 999px; padding: 5px; gap: 2px; font-size: 15px; flex-wrap: nowrap; }
.nav--pill a { padding: 10px 16px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.nav--pill a:hover { background: var(--tile-2); text-decoration: none; }
.nav--pill a[aria-current="page"] { background: #16171A; color: #FFFFFF; text-decoration: none; }
:root[data-theme="dark"] .nav--pill a[aria-current="page"] { background: var(--lime); color: #111317; }
.bar__end { display: flex; gap: 10px; align-items: center; }
.bar__end .pill { min-height: 44px; padding: 10px 18px; }
.bar__end .theme-btn--icon { width: 44px; height: 44px; border-radius: 50%; background: var(--tile); border-color: transparent; }
@media (max-width: 1399px) { .bar .nav--pill { display: flex; } .bar .menu { display: none; } }
@media (max-width: 1100px) { .bar .nav--pill, .bar__end { display: none; } .bar .menu { display: block; } .bar { position: relative; } }

/* Бенто-сетка главной */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.b3 { grid-column: span 3; } .b4 { grid-column: span 4; } .b5 { grid-column: span 5; }
.b6 { grid-column: span 6; } .b7 { grid-column: span 7; } .b12 { grid-column: 1 / -1; }
.b3 > .tile, .b4 > .tile, .b6 > .tile { height: 100%; }
.bento--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bento--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tile { position: relative; display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 28px; overflow: hidden;
  background: var(--tile); border-radius: var(--r-tile); color: var(--ink); text-decoration: none; }
a.tile { transition: transform .15s; }
a.tile:hover { transform: translateY(-2px); text-decoration: none; }
.tile--hero { padding: 44px; gap: 24px; justify-content: space-between; min-height: 480px; }
.tile--hero h1 { font-family: var(--display); font-weight: 600; font-size: 46px; line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
.tile__lead { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 640px; text-wrap: pretty; }
.tile__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.tags-row { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-mini { display: none; }
.tile--photo { padding: 0; min-height: 480px; background: #2A2B2E; }
.tile--photo .photo { background: transparent; }
.tile--photo figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.tile--photo figcaption span { background: #FFFFFF; color: #111317; border-radius: 999px; padding: 8px 14px; font-size: 13px; line-height: 1.3; }
.tile--lime { background: var(--lime); color: #111317; }
.tile__k { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.tile__h { font-family: var(--display); font-weight: 600; font-size: 21px; line-height: 1.2; text-wrap: balance; }
.tile__big { margin-top: auto; font-family: var(--display); font-weight: 700; font-size: 56px; line-height: 1; }
.tile__s { font-size: 14px; line-height: 1.45; }
.tile--index .pill { align-self: flex-start; margin-top: 4px; }
.tile--story { padding: 0; gap: 0; }
.tile__img { display: block; aspect-ratio: 16 / 8; background: #111317; overflow: hidden; }
.tile__img .photo { height: 100%; background: transparent; }
.tile__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 22px 24px; }
.tile__t { font-family: var(--display); font-weight: 500; font-size: 18px; line-height: 1.3; text-wrap: balance; }
.tile--violet { background: var(--violet); color: #FFFFFF; }
.tile--violet .tile__k { color: var(--violet-ink); }
.tile--violet .tile__t { color: #FFFFFF; }
.tile--row .tile__img { aspect-ratio: 16 / 9; }
.bento-sec { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; }
.bento-sec__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bento-sec__head h2 { font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1.2; }
.tile__h2 { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.25; }
.list-pill { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--tile-2);
  text-decoration: none; font-size: 15px; line-height: 1.4; }
.list-pill:hover { text-decoration: none; outline: 1px solid var(--ink); }
.list-pill__src { color: var(--muted); font-size: 13px; white-space: nowrap; }
.venue-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.venue-cell { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; padding: 12px; border-radius: 16px; background: var(--tile-2); min-height: 92px; }
.venue-cell img { max-height: var(--lh, 36px); max-width: 100%; width: auto; height: auto; object-fit: contain; object-position: left center; }
.venue-cell b { font-family: var(--display); font-weight: 500; font-size: 15px; }
.venue-cell span { font-family: var(--mono); font-size: 11px; line-height: 1.4; color: var(--muted); }
:root[data-theme="dark"] .venue-cell { background: #F3F3F0; }
:root[data-theme="dark"] .venue-cell span { color: #4A4D55; }
.tile--ink { background: #16171A; color: #F3F3F0; }
.tile--ink p { color: #C9CBC4; font-size: 15px; line-height: 1.5; }
.tile--ink .tile__btns { margin-top: auto; }
:root[data-theme="dark"] .tile--ink { background: var(--tile); border: 1px solid var(--rule); }
.tile--rub { padding: 22px; gap: 10px; }
.rub-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--acc); }
.tile__p { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.tile--rub.rub-tools { background: var(--violet); color: #FFFFFF; }
.tile--rub.rub-tools .tile__p { color: var(--violet-ink); }
.tile--rub.rub-tools .rub-dot { background: #FFFFFF; }
main > .bento:first-child { padding-top: 4px; }

@media (max-width: 1100px) {
  .b3, .b4 { grid-column: span 6; } .b5, .b7 { grid-column: 1 / -1; }
  .bento--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile--photo { min-height: 440px; }
}
@media (max-width: 760px) {
  .bento { gap: 12px; }
  .b3, .b4, .b5, .b6, .b7 { grid-column: 1 / -1; }
  .bento--3, .bento--5 { grid-template-columns: minmax(0, 1fr); }
  .tile { padding: 22px; border-radius: 22px; }
  .tile--story { padding: 0; }
  .tile--hero { padding: 22px; min-height: 0; gap: 16px; }
  .tile--hero h1 { font-size: 26px; line-height: 1.15; }
  .tile__lead { font-size: 16px; }
  .tile--hero .tags-row { display: none; }
  .hero-mini { display: flex; gap: 12px; align-items: center; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
  .hero-mini .photo { border-radius: 18px; flex: none; }
  .tile--photo { display: none; }
  .tile__big { font-size: 44px; }
  .bento-sec { padding-top: 16px; }
  .bento-sec__head h2 { font-size: 22px; }
  .pill--lg { width: 100%; }
  .list-pill { flex-direction: column; gap: 2px; }
}

/* Статья */
.art-head--c { display: block; margin-top: 4px; padding: 40px 44px; background: var(--tile); border-radius: var(--r-tile); }
.art-head--c .art-head__main { max-width: 920px; gap: 20px; }
.art-head--c h1 { font-size: 46px; }
.crumbs { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-top: 4px; }
.byline__pic { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; display: block; flex: none; background: var(--rule); }
.byline__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.byline__who { display: flex; flex-direction: column; line-height: 1.35; font-size: 15px; }
.byline__who a { text-decoration: none; }
.byline__who span { color: var(--muted); font-size: 14px; }
.byline .art-meta { margin-left: auto; }
main.rub-tools .art-head--c { background: var(--violet); color: #FFFFFF; }
main.rub-tools .art-head--c h1 { color: #FFFFFF; }
main.rub-tools .art-head--c .dek, main.rub-tools .art-head--c .crumbs, main.rub-tools .art-head--c .byline__who span,
main.rub-tools .art-head--c .art-meta { color: var(--violet-ink); }
main.rub-tools .art-head--c .rub-chip { background: #FFFFFF; color: #3A23B0; }
main.rub-tools .art-head--c .byline__pic { outline: 2px solid #FFFFFF; }
main > article > .photo { margin-top: 16px; border-radius: var(--r-tile); }
.art-body { margin-top: 16px; padding: 44px; background: var(--tile); border-radius: var(--r-tile); }
.rail { border-top-color: var(--rule); }
main.rub-tools .prose h2::before { background: var(--violet-soft); color: var(--violet-text); }
.author-box { border-radius: 22px; }
.tldr { border-left-color: var(--acc, var(--lime)); }
.also--c { gap: 16px; }
.also--c > *, .also--c > * + * { background: var(--tile); border-radius: 22px; padding: 0 0 22px; border: 0; overflow: hidden; gap: 12px; }
.also--c .thumb .photo { border: 0; }
.also--c .rub-chip, .also--c h3 { margin: 0 20px; }
.also--c > *:first-child .rub-chip:first-child, .also--c > * > .rub-chip:first-child { margin-top: 20px; }
@media (max-width: 1180px) { .art-body { padding: 32px; } }
@media (max-width: 860px) {
  .art-head--c { padding: 24px 22px; border-radius: 22px; }
  .art-head--c h1 { font-size: 27px; }
  .art-body { padding: 24px 20px; border-radius: 22px; }
  .byline .art-meta { margin-left: 0; flex-basis: 100%; }
  .also--c > *, .also--c > * + * { padding: 0 0 20px; border-bottom: 0; }
}

/* Плашка индекса карт в статьях */
.index-plaque { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  padding: 22px 24px; border-radius: 22px; background: var(--lime); color: #111317; }
.index-plaque__b { display: flex; flex-direction: column; gap: 6px; flex: 1 1 340px; min-width: 0; }
.index-plaque__k { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.prose .index-plaque__t { font-size: 17px; line-height: 1.5; }
.index-plaque .pill { flex: none; }
:root[data-theme="dark"] .index-plaque .pill--ink { background: #111317; color: var(--lime); }

/* Списки разборов и страницы рубрик */
.page-title { margin-top: 4px; padding: 44px; background: var(--tile); background-image: none; border-radius: var(--r-tile); border-bottom: 0; }
main.rub-tools .page-title { background: var(--violet); color: #FFFFFF; }
main.rub-tools .page-title p { color: var(--violet-ink); }
main.rub-tools .page-title .chip { background: #FFFFFF; color: #3A23B0; }
.rub-page .page-title { box-shadow: inset 0 8px 0 var(--acc); }
main.rub-tools.rub-page .page-title { box-shadow: none; }
.filters { border-bottom: 0; padding: 20px 0 8px; }
.filters a { border-radius: 999px; padding: 9px 16px; background: var(--tile); border-color: transparent; }
.filters a[aria-current="page"] { background: #16171A; color: #FFFFFF; border-color: #16171A; }
:root[data-theme="dark"] .filters a[aria-current="page"] { background: var(--lime); color: #111317; }
.list-row { margin-top: 12px; padding: 20px; gap: 28px; grid-template-columns: 240px minmax(0, 1fr); background: var(--tile); border-radius: 22px; border-bottom: 0; }
.list-row--nopic { grid-template-columns: minmax(0, 1fr); }
.list-row .thumb .photo { border: 0; border-radius: 14px; }
.index-cta { margin-top: 12px; padding: 28px 32px; background: var(--lime); color: #111317; border-radius: 22px; border-bottom: 0; }
.index-cta p, .index-cta h2 { color: #111317; }
.index-cta--inline { background: var(--tile-2); border: 0; }
.index-cta--inline p, .index-cta .index-cta__title { color: var(--ink); }
@media (max-width: 860px) {
  .page-title { padding: 24px 22px; border-radius: 22px; }
  .list-row, .list-row--nopic { padding: 16px; gap: 14px; grid-template-columns: minmax(0, 1fr); }
}

/* Прочие страницы: блоки и плитки в общем стиле */
.media-box { border: 0; background: var(--tile); border-radius: var(--r-tile); }
.media-box--ink { background: #16171A; }
.about-hero { border-bottom: 0; background: var(--tile); border-radius: var(--r-tile); margin-top: 4px; overflow: hidden; }
.about-hero__text { padding-left: 44px; border-right: 0; background-image: none; }
.about-hero__photo { padding-right: 32px; }
.exp-card { border: 0; }
.guides, .link-card a { border-radius: 18px; overflow: hidden; }
.guides { border: 0; background: var(--tile-2); }
.footer { border-top: 1px solid var(--rule); }
@media (max-width: 860px) { .about-hero__text { padding-left: 22px; padding-right: 22px; } .about-hero__photo { padding: 0 22px 22px; } }
.sec-head { border-bottom: 0; padding-bottom: 0; }
.sec-head h2 { text-transform: none; font-size: 30px; }
@media (max-width: 860px) { .sec-head h2 { font-size: 22px; } }
@media (max-width: 760px) {
  .bento--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--rub { padding: 16px; gap: 8px; }
  .tile--rub .tile__p { display: none; }
  .tile--rub .tile__t { font-size: 15px; }
  .bento--3 .tile--row { flex-direction: row; align-items: stretch; }
  .bento--3 .tile--row .tile__img { flex: 0 0 120px; aspect-ratio: auto; }
  .bento--3 .tile--row .tile__body { padding: 14px 16px; gap: 8px; }
  .bento--3 .tile--row .tile__t { font-size: 15px; }
  .bento--3 .tile--row .rub-chip { font-size: 10px; padding: 4px 8px; }
}
.chan { border: 0; border-radius: 999px; background: var(--tile); padding: 12px 18px; }
.chan:hover { background: var(--lime); color: #111317; }
.btn { border-radius: 999px; }
.chip:not(.chip--sm) { border-radius: 999px; padding: 6px 12px; }

/* «Комментирую сейчас» на странице для СМИ */
.hot__note { font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 820px; }
.hot__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hot__card { margin: 0; display: flex; flex-direction: column; gap: 14px; padding: 26px; background: var(--tile); border-radius: 22px; }
.hot__k { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hot__card blockquote { margin: 0; font-size: 17px; line-height: 1.6; }
.hot__card figcaption { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.hot__copy { cursor: pointer; min-height: 44px; font: inherit; font-weight: 600; font-size: 14px; border: 0; }
.hot__src { font-size: 14px; line-height: 1.4; color: var(--ink-2); }
@media (max-width: 860px) { .hot__grid { grid-template-columns: minmax(0, 1fr); } .hot__card { padding: 20px; } .hot__copy { width: 100%; } }

/* ==========================================================
   Акцент бренда — фиолетовый (16.11.2026). Салатовый остаётся
   только за индексом карт: плитка и плашка индекса, переход на индекс.
   ========================================================== */
:root { --brand: #4A31C7; --brand-soft: #ECE8FF; --brand-ink: #3A23B0; --brand-line: #B9AEF2; }
:root[data-theme="dark"] { --brand: #6F5BEA; --brand-soft: #2B2556; --brand-ink: #D9D2FF; --brand-line: #6F5BEA; }
a { text-decoration-color: var(--brand-line); }
a:hover { text-decoration-color: var(--brand); }
:focus-visible { outline-color: var(--brand); background: var(--brand-soft); }
.chip { background: var(--brand-soft); color: var(--brand-ink); }
.chip--dark { background: #16171A; color: #FFFFFF; }
.btn--ink { background: #16171A; color: #FFFFFF; }
.btn--lime, .pill--lime { background: var(--brand); color: #FFFFFF; border-color: var(--brand); }
.prose h2::before { background: var(--brand-soft); color: var(--brand-ink); }
.tldr { border-left-color: var(--brand); }
.prose blockquote strong:first-child { background: #16171A; color: #FFFFFF; }
.prose pre { border-left-color: var(--brand); }
.chan:hover { background: var(--brand); color: #FFFFFF; }
.cookie a, .media-box--ink a { color: var(--brand-line); }
.cookie button { background: var(--brand); color: #FFFFFF; }
.topic-list li::before { background: var(--brand); outline: 0; border-radius: 50%; }
.theme-btn:hover { border-color: var(--brand); }
.rub-regulation { --acc: #1FA39C; --acc-soft: #D3F0EE; }
:root[data-theme="dark"] .chip, :root[data-theme="dark"] .btn--lime, :root[data-theme="dark"] .pill--lime,
:root[data-theme="dark"] .cookie button, :root[data-theme="dark"] .prose h2::before { color: #FFFFFF; }
:root[data-theme="dark"] .chip { color: var(--brand-ink); }
:root[data-theme="dark"] .btn--ink, :root[data-theme="dark"] .pill--ink { background: var(--brand); color: #FFFFFF; border-color: var(--brand); }
/* Индекс карт остаётся салатовым */
.tile--lime, .index-plaque, .index-cta:not(.index-cta--inline) { background: #C6F05A; color: #111317; }
.index-cta--inline { border-left: 6px solid #C6F05A; }
.index-cta .chip, .index-plaque .chip { background: #111317; color: #C6F05A; }
:root[data-theme="dark"] .tile--lime .pill--ink, :root[data-theme="dark"] .index-plaque .pill--ink,
:root[data-theme="dark"] .index-cta .btn--ink { background: #111317; color: #C6F05A; border-color: #111317; }

/* ==========================================================
   «Разборы»: поиск и страницы (17.11.2026)
   ========================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.list-hero { gap: 22px; min-height: 0; }
.list-hero__top { display: flex; align-items: center; gap: 14px; }
.list-hero__main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.list-hero__main h1 { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -0.02em; }
.list-hero__main p { font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 560px; }
main.rub-tools .list-hero__main p { color: rgba(255,255,255,.82); }
.search { position: relative; display: flex; align-items: center; }
.search input { width: 100%; font: inherit; font-size: 17px; padding: 16px 130px 16px 52px; border-radius: 999px;
  border: 1.5px solid var(--rule); background: var(--tile-2); color: var(--ink); outline: none; -webkit-appearance: none; }
.search::before { content: ''; position: absolute; left: 20px; width: 18px; height: 18px; border: 2px solid var(--ink-2); border-radius: 50%; box-sizing: border-box; }
.search::after { content: ''; position: absolute; left: 35px; top: calc(50% + 6px); width: 7px; height: 2px; background: var(--ink-2); transform: rotate(45deg); }
.search input:focus { border-color: var(--brand); background: var(--tile); }
.search__n { position: absolute; right: 22px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3, #8A8D94); }
main.rub-tools .search input { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); color: #FFFFFF; }
main.rub-tools .search input::placeholder { color: rgba(255,255,255,.65); }
main.rub-tools .search::before { border-color: rgba(255,255,255,.7); }
main.rub-tools .search::after { background: rgba(255,255,255,.7); }
main.rub-tools .search__n { color: rgba(255,255,255,.7); }
.filters--c { gap: 8px; }
.filters--c .rub-chip span { opacity: .55; margin-left: 2px; }
.filters--c .rub-chip[aria-current="page"] { background: var(--ink); color: var(--paper); }
main.rub-tools .filters--c .rub-chip { background: rgba(255,255,255,.14); color: #FFFFFF; }
main.rub-tools .filters--c .rub-chip[aria-current="page"] { background: #FFFFFF; color: var(--violet); }
.list-grid { margin-top: 16px; }
.list-grid .tile__t { font-size: 19px; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 32px 0 8px; }
.pager[hidden] { display: none; }
.pager__n { display: inline-grid; place-items: center; min-width: 44px; height: 44px; border-radius: 999px; background: var(--tile);
  font-family: var(--mono); font-size: 14px; color: var(--ink); text-decoration: none; }
.pager__n[aria-current="page"] { background: var(--ink); color: var(--paper); }
.pager__n:hover { background: var(--brand-soft); }
:root[data-theme="dark"] .filters--c .rub-chip[aria-current="page"], :root[data-theme="dark"] .pager__n[aria-current="page"] { background: var(--brand); color: #FFFFFF; }
@media (max-width: 860px) {
  .list-hero__main { grid-template-columns: 1fr; gap: 12px; }
  .search input { font-size: 16px; padding: 14px 16px 14px 48px; }
  .search__n { display: none; }
  .search input:not(:placeholder-shown) ~ .search__n { display: block; position: static; margin-left: 10px; }
  .filters--c { flex-wrap: nowrap; overflow-x: auto; margin: 0 -22px; padding: 0 22px 4px; scrollbar-width: none; }
  .filters--c .rub-chip { flex: none; }
}
main.rub-tools .list-hero { background: var(--violet); color: #FFFFFF; }
main.rub-tools .list-hero .chip { background: #FFFFFF; color: var(--violet); }
.list-hero.tile--hero .tags-row { display: flex; }
@media (max-width: 760px) { .list-hero__main h1 { font-size: 32px; } }

/* «Обо мне» и «Выступления» в бенто (17.11.2026) */
.b8 { grid-column: span 8; }
.tile--stat { justify-content: space-between; min-height: 150px; }
.tile--stat .tile__big { font-size: clamp(36px, 3.6vw, 52px); }
.tile--stat .tile__s { color: var(--ink-2); }
.tile--violet.tile--stat .tile__s { color: rgba(255,255,255,.82); }
.tile--step { gap: 12px; }
.tile--step .rub-chip { align-self: flex-start; background: var(--brand-soft); color: var(--brand-ink); }
.tile--step .tile__t { font-size: 22px; }
.tile__p { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.tile--ink .tile__p { color: rgba(255,255,255,.75); }
.tile--ink.tile--step .rub-chip { background: var(--brand); color: #FFFFFF; }
.tile--cred { gap: 8px; }
.tile--cred .tile__t { font-size: 20px; }
.tile--help { gap: 12px; }
.tile--help .tile__t { font-size: 21px; }
.tile--help .pill { align-self: flex-start; margin-top: auto; }
.tile--help.tile--lime .tile__p { color: #2A2F22; }
.tile--talk .tile__img { aspect-ratio: 16 / 9; }
.tile--talk .tile__t { font-size: 26px; font-weight: 600; }
.tile--talk .tile__btns { margin-top: 6px; }
.tile--shot .tile__img { aspect-ratio: 4 / 3; }
.tile--topics { gap: 16px; }
.tile--topics .rub-chip { font-size: 12px; }
.tile--ink > p { color: rgba(255,255,255,.78); line-height: 1.55; }
@media (max-width: 1100px) { .b8 { grid-column: 1 / -1; } .tile--stat.b4 { grid-column: 1 / -1; min-height: 0; } }
@media (max-width: 760px) {
  .b8 { grid-column: 1 / -1; }
  .tile--stat.b3 { grid-column: span 6; min-height: 0; padding: 18px; }
  .tile--stat .tile__big { font-size: 32px; }
  .tile--stat .tile__s { font-size: 13px; }
  .tile--talk .tile__t { font-size: 22px; }
}
.bento-sec__head { flex-wrap: wrap; }
@media (max-width: 760px) { .tile--photo.tile--photo-keep { display: block; aspect-ratio: 4 / 5; min-height: 0; } }
/* Тёмная тема после перехода на фиолетовый (17.11.2026) */
:root[data-theme="dark"] .nav--pill a[aria-current="page"] { background: var(--brand); color: #FFFFFF; }
:root[data-theme="dark"] .tile--step .rub-chip { background: var(--brand); color: #FFFFFF; }
:root[data-theme="dark"] .filters--c .rub-chip:not([aria-current]) { opacity: .92; }
:root[data-theme="dark"] .search input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
:root[data-theme="dark"] .pager__n { background: var(--tile); color: var(--ink); }
:root[data-theme="dark"] .tile--stat .tile__s { color: var(--ink-2); }

/* Кадр статьи в шапке (17.11.2026) */
.art-head--vis { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: stretch; }
.art-vis { position: relative; margin: 0; border-radius: 24px; overflow: hidden; background: #111317; min-height: 360px; }
.art-vis__photo, .art-vis__photo img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.art-vis__photo img { object-fit: cover; object-position: 50% 62%; }
.art-vis__shot { position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: center; padding: 28px 18px; background: #1B1342; }
.art-vis__shotimg img { display: block; width: 100%; height: auto; border-radius: 12px; transform: rotate(-2deg); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.art-vis__shotimg { width: 100%; }
.art-vis__stk { position: absolute; left: 14px; right: 14px; bottom: 14px; background: rgba(10,11,14,.88); border: 2px solid var(--acc, var(--brand)); border-radius: 16px; padding: 12px 14px 10px; transform: rotate(-1.2deg); }
.art-vis__stk b { display: block; font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 1.2; color: var(--acc, #FFFFFF); }
.art-vis__stk i { display: block; font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #C9CBC4; margin-top: 5px; }
main.rub-regulation .art-vis__stk b { color: #2EC4B6; } main.rub-regulation .art-vis__stk { border-color: #2EC4B6; }
main.rub-aml .art-vis__stk b { color: #FF8A3D; } main.rub-aml .art-vis__stk { border-color: #FF8A3D; }
main.rub-identity .art-vis__stk b { color: #7EA4FF; } main.rub-identity .art-vis__stk { border-color: #7EA4FF; }
main.rub-tools .art-vis__stk b { color: #B4A8FF; } main.rub-tools .art-vis__stk { border-color: #B4A8FF; }
@media (max-width: 860px) {
  .art-head--vis { grid-template-columns: 1fr; gap: 20px; }
  .art-vis { min-height: 0; aspect-ratio: 16 / 9; }
  .art-vis__stk b { font-size: 15px; }
}

/* Главная, 20.11: «Колонки и комментарии в СМИ» плитками с логотипами на всю ширину,
   под ними «Программы и площадки» в одну строку и «Нужен комментарий?» */
.b8 { grid-column: span 8; } .b8 > .tile { height: 100%; }
.press-card__tile { border-radius: 18px; }
.press-card__name { color: #16171A; }
.press-card--all .press-card__tile { background: transparent !important; border: 1px dashed var(--rule) !important; }
.press-card--all .press-card__name { color: var(--violet); }
.tile--press .press-grid { margin-top: 8px; }
.venue-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .b8, .b4--contact { grid-column: 1 / -1; } }
@media (max-width: 760px) {
  .venue-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--press .press-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .tile--press .press-card__tile { height: 96px; padding: 14px; }
  .tile--press .press-card__title { font-size: 14px; }
  .press-card--all .press-card__name { font-size: 15px; line-height: 1.25; text-align: center; }
}

/* Статья «ChatGPT, Claude и Grok: независимые замеры» (20.11): диаграммы, метки источников, карточки */
.prose .zm-note { border: 1px solid var(--rule); border-left: 4px solid var(--violet); padding: 18px 22px; font-size: 17px; line-height: 1.6; display: flex; flex-direction: column; gap: 10px; }
.prose .zm-tag { display: inline-block; font-family: var(--mono); font-size: 12px; line-height: 1.4; padding: 2px 8px; border-radius: 10px; white-space: nowrap; vertical-align: 0.1em; }
.zm-ind { background: #E3F3E6; color: #17601F; } .zm-sec { background: #FDF0D2; color: #7A5200; } .zm-ven { background: #FBE4DC; color: #8A2F12; }
:root[data-theme="dark"] .zm-ind { background: #16351B; color: #9AD8A2; }
:root[data-theme="dark"] .zm-sec { background: #3D2F0C; color: #F0CD7C; }
:root[data-theme="dark"] .zm-ven { background: #432014; color: #F2B09A; }
.prose sup a { text-decoration: none; font-family: var(--mono); font-size: 0.72em; padding: 0 1px; }
.prose .zm-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.zm-card { border: 1px solid var(--rule); padding: 18px; font-size: 16px; line-height: 1.5; display: flex; flex-direction: column; gap: 8px; }
.zm-h { font-family: var(--display); font-weight: 500; font-size: 18px; line-height: 1.3; display: flex; align-items: center; gap: 8px; }
.zm-h i, .zm-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; flex: none; }
.zm-plus { color: #17601F; font-weight: 600; } .zm-minus { color: #8A2F12; font-weight: 600; }
:root[data-theme="dark"] .zm-plus { color: #9AD8A2; } :root[data-theme="dark"] .zm-minus { color: #F2B09A; }
.prose .zm-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.prose figure.zm-chart { margin: 0; border: 1px solid var(--rule); padding: 18px; }
.zm-sub { font-size: 14px; line-height: 1.45; color: var(--muted); margin-top: 4px; }
.zm-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
.zm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.zm-grp { margin-top: 12px; } .zm-gt { font-size: 14px; font-weight: 600; line-height: 1.35; margin-bottom: 4px; }
.zm-row { display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: center; gap: 8px; margin: 3px 0; }
.zm-nm { font-size: 13px; color: var(--muted); }
.zm-tr { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; line-height: 1; }
.zm-bar { display: block; height: 16px; border-radius: 0 4px 4px 0; max-width: calc(100% - 92px); flex: none; }
.zm-tr b { font-weight: 600; white-space: nowrap; } .zm-tr em { font-style: normal; color: var(--muted); white-space: nowrap; }
.prose .zm-chart figcaption { margin-top: 14px; }
.zm-scroll { overflow-x: auto; } .zm-scroll svg { min-width: 520px; display: block; } .zm-scroll svg text { font-family: var(--body, inherit); }
.prose .zm-table { border: 1px solid var(--rule); } .prose .zm-table table { font-size: 15px; min-width: 620px; } .prose .zm-table td, .prose .zm-table th { vertical-align: top; }
.prose .zm-table thead th { font-family: var(--display); font-weight: 500; font-size: 14px; color: var(--muted); }
.zm-srcg { font-family: var(--display); font-weight: 500; font-size: 18px; }
.prose ol.zm-src { font-size: 15px; gap: 6px; } .prose ol.zm-src li { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .prose .zm-cards, .prose .zm-pair { grid-template-columns: minmax(0, 1fr); }
  .prose figure.zm-chart { padding: 14px; }
}
.prose figure.zm-chart a { display: inline; text-decoration: none; }

/* Статья, 20.11.2026: «Поделиться» под содержанием, текущий раздел подсвечивается при прокрутке */
.rail__share { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); }
.rail a.is-on { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* Гайд «Ответы нейросетей» (26.11.2026): фиолетовый блок в «Инструментах» и врезка в статье */
.index-cta.gid-cta:not(.index-cta--inline) { background: #4A31C7; color: #FFFFFF; }
.gid-cta:not(.index-cta--inline) p, .gid-cta:not(.index-cta--inline) h2 { color: #FFFFFF; }
.gid-cta:not(.index-cta--inline) .chip { background: #FFFFFF; color: #4A31C7; }
.gid-cta .btn--ink, :root[data-theme="dark"] .gid-cta .btn--ink { background: #111317; color: #FFFFFF; border-color: #111317; }
.index-cta--inline.gid-cta { border-left: 6px solid #4A31C7; }
.index-cta--inline.gid-cta .chip { background: #4A31C7; color: #FFFFFF; }
:root[data-theme="dark"] .index-cta--inline.gid-cta .btn--ink { background: #4A31C7; border-color: #4A31C7; color: #FFFFFF; }
