/* The Silicon Ledger - broadsheet newspaper for the technology industry.
   (c) 2026 vii-studio.com. Light theme, ink on paper, one dark-red accent,
   hairline rules as the organizing device, radius 0 everywhere. */

/* ---------- tokens ---------- */

:root {
  --paper: #ffffff;
  --paper-tint: #faf9f7;
  --ink: #191a1c;
  --ink-soft: #43444a;
  --ink-faint: #63646a;
  --accent: #a31621;
  --accent-deep: #7e0f18;
  --rule: #e3e1dc;
  --rule-strong: #191a1c;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: 24px;

  --skel-base: rgba(25, 26, 28, 0.07);
  --skel-sheen: rgba(255, 255, 255, 0.6);
  --skel-radius: 0;

  /* Потолок высоты главной картинки материала. Один токен на герой и на его
     заглушку в скелетоне, чтобы при загрузке страница не дёргалась. */
  --art-hero-max-h: clamp(240px, 40vh, 400px);
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  /* Страховка от горизонтальной прокрутки: именно clip, а не hidden, чтобы не
     ломать липкий mainnav. Полоса прокрутки сужает окно на несколько пикселей,
     и любой расчёт в vw может дать лишний выход за правый край. */
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Длинное неразрывное слово в заголовке (URL, название продукта) распирало
   колонку грида, а соседняя схлопывалась в столбик по одному слову. */
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 700; overflow-wrap: break-word; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
input, button, textarea { border-radius: 0; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection { background: var(--accent); color: #fff; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* headline links: understated, ink to accent with hairline underline */
.hl a { transition: color 0.15s ease; }
.hl a:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hl a:active { color: var(--accent-deep); }

.kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker a:hover { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }

.byline { font-size: 12.5px; letter-spacing: 0.02em; color: var(--ink-faint); }
.byline b { font-weight: 600; color: var(--ink-soft); }

.dek {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 400;
}

/* ---------- route progress ---------- */

#route-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  z-index: 90;
  background: var(--accent);
  opacity: 0;
  transition: width 0.4s ease, opacity 0.2s ease;
  pointer-events: none;
}
#route-progress.is-active { width: 70%; opacity: 1; }

/* ---------- header ---------- */

.topbar {
  border-bottom: 1px solid var(--rule);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}
.topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}
.topbar-date { font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.topbar-tag { font-style: italic; font-family: var(--serif); font-size: 13px; }
/* Ссылки не переносятся внутри себя (nowrap), поэтому при узком окне ряд
   мог распереть шапку: разрешаем перенос между ссылками. */
.topbar-links { display: flex; flex-wrap: wrap; gap: 18px; white-space: nowrap; }
.topbar-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); font-weight: 600; }
.topbar-links a:hover { color: var(--accent); }
.topbar-links .ph { font-size: 14px; }

.masthead { text-align: center; padding: 26px 16px 18px; }
.masthead-logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(38px, 6.4vw, 68px);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--ink);
  display: inline-block;
}
.masthead-logo:hover { color: var(--ink); }
.masthead-logo:active { transform: translateY(1px); }
.masthead-sub {
  margin: 10px 0 0;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.masthead-sub::before, .masthead-sub::after { content: ""; display: inline-block; width: 34px; height: 1px; background: var(--rule); vertical-align: middle; margin: 0 12px; }

.mainnav {
  border-top: 2px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 60;
}
.mainnav-in {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  min-height: 48px;
  position: relative;
}
/* Пунктов меню столько, сколько рубрик у сайта. Ряд центрирован, поэтому
   при переполнении он вылезал сразу с двух сторон и давал горизонтальную
   прокрутку — разрешаем перенос на вторую строку. */
.mainnav-links { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; }
.mainnav-links a {
  display: inline-flex;
  align-items: center;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
  border-left: 1px solid var(--rule);
  position: relative;
}
.mainnav-links a:last-child { border-right: 1px solid var(--rule); }
.mainnav-links a::after {
  content: "";
  position: absolute;
  left: 22px; right: 22px; bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}
.mainnav-links a:hover { color: var(--accent); }
.mainnav-links a:hover::after, .mainnav-links a.is-active::after { transform: scaleX(1); }
.mainnav-links a.is-active { color: var(--accent); }

.nav-side {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  display: flex;
  align-items: center;
}
.nav-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 0 18px;
  height: 100%;
  min-width: 44px;
  background: none;
  border: 0;
  border-left: 1px solid var(--rule);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav-search .ph { font-size: 17px; }
.nav-search:hover { color: var(--accent); }

.nav-burger {
  display: none;
  position: absolute;
  left: 0; top: 0; bottom: 0;
  align-items: center;
  gap: 8px;
  min-width: 48px;
  padding: 0 14px;
  background: none;
  border: 0;
  border-right: 1px solid var(--rule);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.nav-burger .ph { font-size: 20px; }
.nav-burger:hover { color: var(--accent); }

/* mobile menu panel */
.mobile-menu {
  display: none;
  border-bottom: 2px solid var(--rule-strong);
  background: var(--paper);
}
.menu-open .mobile-menu { display: block; }
.mobile-menu-in { padding: 10px 0 22px; }
.mobile-menu .mm-cat { border-bottom: 1px solid var(--rule); padding: 12px 0; }
.mobile-menu .mm-cat > a {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  display: block;
  padding: 2px 0;
}
.mobile-menu .mm-subs { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 4px; }
.mobile-menu .mm-subs a { font-size: 13px; color: var(--ink-soft); padding: 12px 0; display: inline-block; }
.mobile-menu .mm-subs a:hover { color: var(--accent); }
.mobile-menu .mm-static { display: flex; flex-wrap: wrap; gap: 2px 22px; padding-top: 14px; }
.mobile-menu .mm-static a { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--ink-faint); padding: 14px 0; display: inline-block; }

/* ---------- section heads ---------- */

.section-head {
  border-top: 2px solid var(--rule-strong);
  padding-top: 9px;
  margin-bottom: 22px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}
.section-head::after {
  content: "";
  position: absolute;
  top: 3px; left: 0; right: 0;
  height: 1px;
  background: var(--rule);
}
.section-head h2, .section-head .sh-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.section-head .sh-more {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.section-head .sh-more:hover { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- home: lead block ---------- */

.home-lead { padding: 26px 0 34px; }
/* minmax(0, ...) обязателен: дорожка fr по умолчанию — это minmax(auto, 1fr),
   она не сжимается уже своего содержимого. В колонках лежат картинки, поэтому
   на широких экранах ведущая колонка распирала себя, а соседние схлопывались
   в столбик по одному слову. min-width: 0 — то же самое для детей грида. */
.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
}
.lead-grid > * { padding: 0 26px; min-width: 0; }
.lead-grid > *:first-child { padding-left: 0; }
.lead-grid > *:last-child { padding-right: 0; }
.lead-grid > * + * { border-left: 1px solid var(--rule); }

.lead-main .kicker { margin-bottom: 10px; display: inline-block; }
.lead-main h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.07;
  letter-spacing: -0.012em;
  font-weight: 700;
  margin: 0 0 12px;
}
.lead-main .dek { margin-bottom: 12px; }
.lead-main .media { margin-bottom: 16px; }
.lead-main figcaption { font-size: 12px; color: var(--ink-faint); padding-top: 8px; border-bottom: 1px solid var(--rule); padding-bottom: 10px; margin-bottom: 14px; }

.lead-item { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.lead-item:first-child { padding-top: 0; }
.lead-item:last-child { border-bottom: 0; }
.lead-item .kicker { margin-bottom: 6px; display: inline-block; }
.lead-item h3 { font-size: 20px; line-height: 1.22; font-weight: 600; margin-bottom: 7px; }
.lead-item p { font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; }
.lead-item .media { margin-bottom: 10px; }

/* latest feed */
.latest-head {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--rule-strong);
  display: flex;
  align-items: center;
  gap: 8px;
}
.latest-head .dot { width: 7px; height: 7px; background: var(--accent); display: inline-block; }
.latest-list li { border-bottom: 1px solid var(--rule); }
.latest-list a { display: block; padding: 13px 0; }
.latest-list time {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.latest-list .t { font-family: var(--serif); font-size: 15.5px; line-height: 1.3; font-weight: 600; display: block; }
.latest-list a:hover .t { color: var(--accent); }
.latest-all { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.latest-all:hover { color: var(--accent); }

/* ---------- home: briefing strip ---------- */

.brief { padding: 8px 0 34px; }
/* Четыре равные колонки только через minmax(0, 1fr): иначе одна длинная
   ссылка или слово в заголовке растягивает свою колонку за счёт остальных. */
.brief-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.brief-grid > * { padding: 2px 22px 6px; min-width: 0; }
.brief-grid > *:first-child { padding-left: 0; }
.brief-grid > *:last-child { padding-right: 0; }
.brief-grid > * + * { border-left: 1px solid var(--rule); }
.brief-item .kicker { margin-bottom: 7px; display: inline-block; }
.brief-item h3 { font-size: 17.5px; line-height: 1.28; font-weight: 600; margin-bottom: 6px; }
.brief-item p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }

/* ---------- home: feature split (Industry) ---------- */

.feature { padding-bottom: 38px; }
/* В левой колонке — материал с картинкой, поэтому дорожки через minmax(0, ...),
   иначе картинка задаёт минимальную ширину колонки и правая колонка сплющивается. */
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 0;
}
.feature-grid > * { padding: 0 28px; min-width: 0; }
.feature-grid > *:first-child { padding-left: 0; }
.feature-grid > *:last-child { padding-right: 0; border-left: 1px solid var(--rule); }

/* Внутренний грид «текст + картинка»: без minmax(0, ...) картинка не даёт
   колонке сжаться, и текст рядом уезжает в узкий столбик. */
.feature-main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.feature-main > * { min-width: 0; }
.feature-main .media { order: 2; }
.feature-main .fm-text { order: 1; }
.feature-main .kicker { margin-bottom: 9px; display: inline-block; }
.feature-main h3 { font-size: clamp(23px, 2.3vw, 30px); line-height: 1.12; font-weight: 700; margin-bottom: 10px; }
.feature-main p { font-size: 15px; color: var(--ink-soft); margin-bottom: 10px; }

.feature-side .fs-item { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.feature-side .fs-item:first-child { padding-top: 2px; }
.feature-side .fs-item:last-child { border-bottom: 0; }
.feature-side h4 { font-size: 18px; line-height: 1.25; font-weight: 600; margin-bottom: 6px; }
.feature-side p { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 6px; }

/* ---------- home: card grid (Software) ---------- */

.cardgrid { padding-bottom: 38px; }
/* В каждой карточке картинка на всю ширину — колонки только minmax(0, 1fr). */
.cardgrid-in {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.cardgrid-in > * { min-width: 0; }
.card .media { margin-bottom: 12px; }
.card .kicker { margin-bottom: 7px; display: inline-block; }
.card h3 { font-size: 20px; line-height: 1.22; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; }

/* ---------- home: policy list + most read ---------- */

.policyblock { padding-bottom: 38px; }
/* Список материалов с миниатюрами слева и «самое читаемое» справа:
   дорожки через minmax(0, ...), чтобы миниатюры не распирали свою колонку. */
.policy-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 0;
}
.policy-grid > * { padding: 0 28px; min-width: 0; }
.policy-grid > *:first-child { padding-left: 0; }
.policy-grid > *:last-child { padding-right: 0; border-left: 1px solid var(--rule); }

/* Миниатюра фиксированные 132px, текст — minmax(0, 1fr): длинный заголовок
   или ссылка иначе распирают строку и вылезают за правый край. */
.rowlist .row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.rowlist .row:first-child { padding-top: 0; }
.rowlist .row:last-child { border-bottom: 0; }
.rowlist .kicker { margin-bottom: 6px; display: inline-block; }
.rowlist h3 { font-size: 20px; line-height: 1.24; font-weight: 600; margin-bottom: 6px; }
.rowlist p { font-size: 14px; color: var(--ink-soft); margin-bottom: 7px; }

.mostread-head {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--rule-strong);
}
.mostread { counter-reset: mr; }
.mostread li { border-bottom: 1px solid var(--rule); counter-increment: mr; }
.mostread li:last-child { border-bottom: 0; }
/* Номер фиксирован, текстовая дорожка — minmax(0, 1fr), чтобы длинный
   заголовок не расширял узкую боковую колонку. */
.mostread a { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 14px 0; align-items: start; }
.mostread a::before {
  content: counter(mr);
  font-family: var(--serif);
  font-size: 34px;
  line-height: 0.9;
  font-weight: 700;
  color: var(--rule);
  transition: color 0.15s ease;
}
.mostread a:hover::before { color: var(--accent); }
.mostread .t { font-family: var(--serif); font-size: 16px; line-height: 1.3; font-weight: 600; }
.mostread a:hover .t { color: var(--accent); }
.mostread .m { display: block; font-family: var(--sans); font-size: 11.5px; color: var(--ink-faint); margin-top: 4px; }

/* ---------- newsletter band ---------- */

.band-news {
  border-top: 2px solid var(--rule-strong);
  border-bottom: 2px solid var(--rule-strong);
  background: var(--paper-tint);
  margin-bottom: 38px;
}
/* Справа форма подписки: без minmax(0, ...) поле ввода задаёт минимальную
   ширину колонки, и текст слева сжимается в столбик. */
.band-news-in {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 34px 0;
}
.band-news .bn-title { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; line-height: 1.1; margin-bottom: 8px; }
.band-news .bn-title em { font-style: italic; color: var(--accent); }
.band-news p { font-size: 14.5px; color: var(--ink-soft); margin: 0; max-width: 46ch; }

.newsletter-form { display: block; }
.newsletter-form label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 7px;
}
.newsletter-row { display: flex; gap: 0; }
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--ink);
  border-right: 0;
  background: var(--paper);
  padding: 13px 14px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
}
.newsletter-form input[type="email"]::placeholder { color: var(--ink-faint); }
.newsletter-form input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.newsletter-form .hint { font-size: 12px; color: var(--ink-faint); margin-top: 8px; }
.newsletter-ok { border-left: 3px solid var(--accent); padding: 6px 0 6px 16px; }
.newsletter-ok b { font-family: var(--serif); font-size: 18px; display: block; margin-bottom: 3px; }
.newsletter-ok span { font-size: 13.5px; color: var(--ink-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 24px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- home: events duo ---------- */

.events-duo { padding-bottom: 46px; }
/* Две равные половины с картинками внутри — только minmax(0, 1fr). */
.events-duo-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
}
.events-duo-in > * { padding: 0 30px; min-width: 0; }
.events-duo-in > *:first-child { padding-left: 0; }
.events-duo-in > *:last-child { padding-right: 0; border-left: 1px solid var(--rule); }
.eventcard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.eventcard > * { min-width: 0; }
.eventcard .kicker { margin-bottom: 8px; display: inline-block; }
.eventcard h3 { font-size: 21px; line-height: 1.18; font-weight: 700; margin-bottom: 8px; }
.eventcard p { font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; }

/* ---------- media / shimmer ---------- */

.media {
  position: relative;
  overflow: hidden;
  background: var(--skel-base);
}
.media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.media > img.loaded { opacity: 1; }
.media::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--skel-sheen), transparent);
  animation: skel-sheen 1.4s ease-in-out infinite;
}
.media.is-done::before { animation: none; content: none; }
.media { aspect-ratio: 16 / 9; }
.media.r43 { aspect-ratio: 4 / 3; }
.media.r32 { aspect-ratio: 3 / 2; }
.media.r11 { aspect-ratio: 1 / 1; }
.media.r219 { aspect-ratio: 21 / 9; }

@media (prefers-reduced-motion: reduce) {
  .media::before { animation: none; content: none; }
  .media > img { transition: none; opacity: 1; }
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 3px solid var(--rule-strong);
  margin-top: 10px;
  background: var(--paper);
}
.footer-brandrow {
  text-align: center;
  padding: 34px 16px 8px;
}
.footer-logo { font-family: var(--serif); font-size: 34px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.footer-logo:hover { color: var(--accent); }
.footer-tag { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); margin: 8px 0 0; }

/* Колонки подвала — minmax(0, 1fr): длинный пункт меню иначе растягивает
   свою колонку и ломает вертикальные линейки. */
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 28px 0 30px;
}
.footer-cols > * { padding: 0 28px; min-width: 0; }
.footer-cols > *:first-child { padding-left: 0; }
.footer-cols > *:last-child { padding-right: 0; }
.footer-cols > * + * { border-left: 1px solid var(--rule); }
.footer-cols h3 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}
.footer-cols li { padding: 3px 0; }
.footer-cols a { font-size: 14px; color: var(--ink-soft); display: inline-block; padding: 2px 0; }
.footer-cols a:hover { color: var(--accent); }
.footer-about { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }
.footer-about .footer-mini-logo { font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--ink); display: block; margin-bottom: 8px; }

.footer-bottom {
  border-top: 1px solid var(--rule);
  padding: 16px 0 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-faint);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-bottom a { color: var(--ink-faint); padding: 4px 0; }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- listing pages ---------- */

.crumbs { font-size: 12px; color: var(--ink-faint); padding: 18px 0 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li { display: flex; align-items: center; gap: 4px; }
.crumbs li + li::before { content: "/"; color: var(--rule); padding: 0 4px; }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--ink-faint); }

.listing-head { padding: 18px 0 0; margin-bottom: 26px; }
.listing-head h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.listing-head .dek { margin-top: 10px; max-width: 62ch; }
.listing-subs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 18px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.listing-subs a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 20px 12px 0;
  margin-right: 20px;
  color: var(--ink-soft);
  border-right: 1px solid var(--rule);
  display: inline-flex;
  align-items: center;
}
.listing-subs a:last-child { border-right: 0; margin-right: 0; }
.listing-subs a:hover { color: var(--accent); }
.listing-subs a.is-here { color: var(--accent); }
.listing-subs .subs-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); padding: 12px 20px 12px 0; margin-right: 20px; border-right: 1px solid var(--rule); font-weight: 600; }

/* Лента рубрики + сайдбар: в ленте крупная картинка, поэтому дорожки
   через minmax(0, ...), иначе на широких экранах сайдбар схлопывается. */
.listing-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  gap: 0;
  padding-bottom: 40px;
}
.listing-grid > * { padding: 0 30px; min-width: 0; }
.listing-grid > *:first-child { padding-left: 0; }
.listing-grid > *:last-child { padding-right: 0; border-left: 1px solid var(--rule); }

.listing-featured { padding-bottom: 24px; border-bottom: 1px solid var(--rule); margin-bottom: 6px; }
.listing-featured .media { margin-bottom: 14px; }
.listing-featured .kicker { margin-bottom: 8px; display: inline-block; }
.listing-featured h2 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; margin-bottom: 10px; }
.listing-featured .dek { margin-bottom: 10px; }

/* Текст — minmax(0, 1fr), миниатюра фиксированная: длинный заголовок
   иначе выталкивает строку за пределы колонки. */
.listing-rows .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.listing-rows .row:last-child { border-bottom: 0; }
.listing-rows .kicker { margin-bottom: 6px; display: inline-block; }
.listing-rows h3 { font-size: 21px; line-height: 1.22; font-weight: 600; margin-bottom: 7px; }
.listing-rows p { font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; }

.side-block { margin-bottom: 34px; }
.side-block .side-head {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-bottom: 9px;
  border-bottom: 2px solid var(--rule-strong);
  margin-bottom: 2px;
}
.side-news {
  background: var(--paper-tint);
  border: 1px solid var(--rule);
  padding: 20px;
}
.side-news b { font-family: var(--serif); font-size: 19px; display: block; margin-bottom: 6px; }
.side-news p { font-size: 13px; color: var(--ink-soft); }
.side-links li { border-bottom: 1px solid var(--rule); }
.side-links li:last-child { border-bottom: 0; }
.side-links a { display: block; padding: 11px 0; font-size: 13.5px; color: var(--ink-soft); }
.side-links a:hover { color: var(--accent); }

/* pagination */
.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0 46px;
}
.pagination .pg-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin-right: 10px; font-weight: 600; }
.pagination a, .pagination span.pg {
  min-width: 44px; min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  font-size: 14px;
  font-weight: 600;
}
.pagination a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination span.pg.is-disabled { color: var(--ink-faint); opacity: 0.55; cursor: not-allowed; }

/* ---------- article page ---------- */

.art-head { max-width: 780px; margin: 0 auto; padding: 26px 0 0; }
.art-head .kicker { display: inline-block; margin-bottom: 12px; }
.art-head h1 {
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.014em;
  margin-bottom: 14px;
}
.art-head .dek { font-size: 19px; margin-bottom: 18px; max-width: 60ch; }

.art-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  align-items: baseline;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 12px 0;
  margin-bottom: 26px;
  font-size: 12.5px;
  color: var(--ink-faint);
}
.art-meta .a { font-weight: 700; color: var(--ink); letter-spacing: 0.02em; }
.art-meta .a span { color: var(--ink-faint); font-weight: 400; }

.art-hero { max-width: 980px; margin: 0 auto 8px; }
/* На ноутбуке 16:9 от 980px давало 551px, герой съедал экран, и до текста
   приходилось скроллить. Ограничиваем высоту, картинка внутри обрезается по
   центру: у .media уже есть overflow: hidden, а у img есть height: 100% и cover. */
/* width: 100% обязателен. При ширине auto браузер переносит потолок высоты
   обратно в ширину через пропорцию, и блок ужимался до 640px вместо 980px:
   картинка не обрезалась, а уменьшалась и уезжала из колонки. */
.art-hero .media { width: 100%; max-height: var(--art-hero-max-h); }
.art-hero figcaption {
  font-size: 12.5px;
  color: var(--ink-faint);
  padding: 9px 0 12px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.art-hero .credit { white-space: nowrap; letter-spacing: 0.04em; text-transform: uppercase; font-size: 10.5px; }

.art-body {
  max-width: 700px;
  margin: 26px auto 0;
  font-family: var(--serif);
  font-size: 18.5px;
  line-height: 1.68;
  color: var(--ink);
  /* Тело материала приходит из редактора: длинная ссылка без пробелов
     распирала колонку и давала горизонтальную прокрутку всей страницы. */
  overflow-wrap: break-word;
}
/* Таблицы и код из редактора могут быть шире колонки материала —
   прокручиваем их внутри себя, а не всю страницу. */
.art-body table { display: block; width: 100%; overflow-x: auto; }
.art-body pre { overflow-x: auto; }
.art-body p { margin: 0 0 1.25em; }
.art-body > p:first-of-type::first-letter {
  font-size: 3.4em;
  line-height: 0.82;
  font-weight: 700;
  float: left;
  padding: 6px 10px 0 0;
  color: var(--ink);
}
.art-body h2 {
  font-size: 25px;
  line-height: 1.2;
  margin: 1.5em 0 0.6em;
  padding-top: 0.9em;
  border-top: 1px solid var(--rule);
}
.art-body blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 26px;
  border-left: 3px solid var(--accent);
}
.art-body blockquote p {
  font-size: 22px;
  line-height: 1.42;
  font-style: italic;
  margin-bottom: 0.5em;
}
.art-body blockquote cite {
  font-family: var(--sans);
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.readalso {
  margin: 1.8em 0;
  border-top: 2px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule);
  padding: 14px 0 16px;
}
.readalso .ra-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.readalso li { padding: 5px 0; }
.readalso a {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}
.readalso a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.art-source {
  max-width: 700px;
  margin: 34px auto 0;
  border-top: 1px solid var(--rule);
  padding: 14px 0 0;
  font-size: 13px;
  color: var(--ink-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
}
.art-source .s-label {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--ink-soft);
}
.art-source a { color: var(--accent); font-weight: 600; }
.art-source a:hover { text-decoration: underline; text-underline-offset: 3px; }

.art-tags { max-width: 700px; margin: 18px auto 0; display: flex; flex-wrap: wrap; gap: 8px; }
.art-tags a {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  padding: 9px 14px;
  color: var(--ink-soft);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.art-tags a:hover { border-color: var(--accent); color: var(--accent); }

.art-related { padding: 40px 0 46px; margin-top: 44px; }
/* Три равные колонки — minmax(0, 1fr), иначе длинный заголовок материала
   растягивает свою колонку за счёт соседних. */
.art-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.art-related-grid > * { padding: 0 26px; min-width: 0; }
.art-related-grid > *:first-child { padding-left: 0; }
.art-related-grid > *:last-child { padding-right: 0; }
.art-related-grid > * + * { border-left: 1px solid var(--rule); }
.art-related-grid .kicker { margin-bottom: 7px; display: inline-block; }
.art-related-grid h3 { font-size: 18px; line-height: 1.26; font-weight: 600; margin-bottom: 6px; }
.art-related-grid .byline { display: block; }

/* ---------- static pages / prose ---------- */

.static-head { max-width: 760px; margin: 0 auto; padding: 30px 0 0; }
.static-head h1 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.04; letter-spacing: -0.014em; }
.static-head .dek { margin-top: 12px; }

.prose {
  max-width: 700px;
  margin: 26px auto 56px;
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 1.7;
  /* Текст статических страниц редактируемый: длинный адрес или e-mail
     без переноса вылезал за правый край. */
  overflow-wrap: break-word;
}
.prose table { display: block; width: 100%; overflow-x: auto; }
.prose pre { overflow-x: auto; }
.prose h2 { font-size: 23px; margin: 1.5em 0 0.6em; padding-top: 0.9em; border-top: 1px solid var(--rule); }
.prose ul { list-style: none; margin: 0 0 1.25em; }
.prose ul li { padding: 4px 0 4px 22px; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 15px; width: 10px; height: 1px; background: var(--accent); }
.prose a { color: var(--accent); font-weight: 600; }
.prose a:hover { text-decoration: underline; text-underline-offset: 3px; }
.prose .note { font-family: var(--sans); font-size: 13.5px; color: var(--ink-faint); border-top: 1px solid var(--rule); padding-top: 14px; }

.contact-card {
  border: 1px solid var(--rule);
  background: var(--paper-tint);
  padding: 22px 24px;
  margin: 1.4em 0;
  font-family: var(--sans);
  font-size: 15px;
}
.contact-card b { font-family: var(--serif); font-size: 18px; display: block; margin-bottom: 6px; }
.contact-card a { color: var(--accent); font-weight: 600; }

/* 404 */
.notfound { text-align: center; padding: 64px 0 40px; }
.notfound .nf-code {
  font-family: var(--serif);
  font-size: clamp(90px, 16vw, 180px);
  font-weight: 700;
  line-height: 0.9;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.notfound .nf-rule { width: 72px; height: 3px; background: var(--accent); margin: 26px auto; }
.notfound h1 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 12px; }
.notfound p { color: var(--ink-soft); max-width: 52ch; margin: 0 auto 26px; }
.notfound-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; padding-bottom: 30px; }

/* ---------- search page ---------- */

.search-page { max-width: 820px; margin: 0 auto; padding: 30px 0 60px; }
.search-page h1 { font-size: clamp(32px, 4.4vw, 50px); letter-spacing: -0.014em; margin-bottom: 10px; }
.search-page .dek { margin-bottom: 26px; }

.search-form label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 7px;
}
.search-row { display: flex; }
.search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--ink);
  border-right: 0;
  background: var(--paper);
  padding: 14px 16px;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
}
.search-form input[type="search"]::placeholder { color: var(--ink-faint); font-family: var(--sans); font-size: 15px; }
.search-form input[type="search"]:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.search-form .hint { font-size: 12.5px; color: var(--ink-faint); margin-top: 9px; }

.search-results { margin-top: 34px; }
.search-count {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 2px solid var(--rule-strong);
  padding-bottom: 9px;
  margin-bottom: 4px;
}
/* Текст результата — minmax(0, 1fr), миниатюра фиксированная. */
.search-hit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.search-hit .kicker { margin-bottom: 5px; display: inline-block; }
.search-hit h3 { font-size: 20px; line-height: 1.24; font-weight: 600; margin-bottom: 6px; }
.search-hit p { font-size: 14px; color: var(--ink-soft); margin-bottom: 6px; }
.search-empty { font-family: var(--serif); font-size: 17px; color: var(--ink-soft); border-top: 1px solid var(--rule); padding-top: 18px; }

/* ---------- cookie bar ---------- */

.cookie-bar {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 95;
  max-width: 360px;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 6px 6px 0 rgba(25, 26, 28, 0.12);
  padding: 18px 20px;
}
.cookie-bar p { font-size: 13px; color: var(--ink-soft); margin-bottom: 12px; }
.cookie-bar p a { color: var(--accent); font-weight: 600; }
.cookie-bar p a:hover { text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { min-height: 44px; padding: 10px 18px; font-size: 11.5px; }

/* ---------- skeleton system ---------- */

.skel {
  position: relative;
  overflow: hidden;
  background: var(--skel-base);
  border-radius: var(--skel-radius);
}
.skel::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--skel-sheen), transparent);
  animation: skel-sheen 1.4s ease-in-out infinite;
}
@keyframes skel-sheen {
  100% { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .skel::after { animation: none; display: none; }
}

.skel-line { height: 0.85em; margin-bottom: 0.55em; }
.skel-line.w-30 { width: 30%; }
.skel-line.w-40 { width: 40%; }
.skel-line.w-50 { width: 50%; }
.skel-line.w-60 { width: 60%; }
.skel-line.w-80 { width: 80%; }
.skel-line.w-90 { width: 90%; }
.skel-title { height: 1.6em; width: 70%; margin-bottom: 0.6em; }
.skel-title.w-90 { width: 90%; }
.skel-title.w-50 { width: 50%; }
.skel-kicker { height: 0.75em; width: 18%; margin-bottom: 0.8em; }
.skel-media { aspect-ratio: 16 / 9; width: 100%; border-radius: var(--skel-radius); margin-bottom: 1em; }
.skel-media.r11 { aspect-ratio: 1 / 1; }
.skel-avatar { width: 40px; height: 40px; border-radius: 50%; }

/* skeleton page layouts: mirror the real silhouettes of this site */
.sk-pad { padding: 30px 0 60px; }
/* Скелетоны повторяют реальные сетки, значит и дорожки те же: minmax(0, ...),
   иначе заглушка картинки (width: 100%) распирает свою колонку. */
.sk-home-lead { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding-bottom: 34px; }
.sk-home-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; border-top: 1px solid var(--rule); padding-top: 22px; }
.sk-group { padding-bottom: 18px; border-bottom: 1px solid var(--rule); margin-bottom: 18px; }
.sk-group:last-child { border-bottom: 0; }

.sk-listing-head { max-width: 640px; padding-bottom: 26px; }
.sk-listing { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 30px; }
.sk-row { display: grid; grid-template-columns: minmax(0, 1fr) 148px; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.sk-thumb { aspect-ratio: 1 / 1; width: 100%; }

.sk-article { max-width: 780px; margin: 0 auto; }
.sk-article-body { max-width: 700px; margin: 26px auto 0; }
/* Заглушка обложки живёт по тому же потолку, что и настоящий герой,
   иначе при загрузке сначала виден высокий серый прямоугольник. */
.sk-article .skel-media { max-height: var(--art-hero-max-h); }

/* while router swaps */
#app.is-loading { min-height: 60vh; }

/* ---------- reveal on scroll ---------- */

.rv { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.rv-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */

/* Ниже — те же дорожки в переопределениях. Даже одиночная колонка 1fr
   не сжимается уже картинки или длинного слова, поэтому везде minmax(0, ...). */
@media (max-width: 1080px) {
  .lead-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
  .lead-grid > .lead-latest { grid-column: 1 / -1; border-left: 0; border-top: 2px solid var(--rule-strong); margin-top: 26px; padding: 22px 0 0; }
  .lead-latest .latest-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 26px; }
  .brief-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; }
  .brief-grid > * { padding: 0 22px; }
  .brief-grid > *:nth-child(odd) { padding-left: 0; border-left: 0; }
  .brief-grid > *:nth-child(even) { padding-right: 0; }
  .cardgrid-in { gap: 24px; }
  .footer-cols { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); }
  .footer-cols > .fc-legal { display: none; }
}

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-grid > *:last-child { border-left: 0; border-top: 1px solid var(--rule); margin-top: 22px; padding: 18px 0 0; }
  .feature-grid > * { padding: 0; }
  .feature-main { grid-template-columns: minmax(0, 1fr); }
  .feature-main .media { order: 1; }
  .feature-main .fm-text { order: 2; }
  .policy-grid { grid-template-columns: minmax(0, 1fr); }
  .policy-grid > * { padding: 0; }
  .policy-grid > *:last-child { border-left: 0; border-top: 2px solid var(--rule-strong); margin-top: 28px; padding-top: 20px; }
  .events-duo-in { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .events-duo-in > * { padding: 0; }
  .events-duo-in > *:last-child { border-left: 0; border-top: 1px solid var(--rule); padding-top: 24px; }
  .cardgrid-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .listing-grid { grid-template-columns: minmax(0, 1fr); }
  .listing-grid > * { padding: 0; }
  .listing-grid > *:last-child { border-left: 0; border-top: 2px solid var(--rule-strong); margin-top: 30px; padding-top: 22px; }
  .band-news-in { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .sk-listing { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
  .topbar-tag, .topbar-links .tb-newsletter { display: none; }
  .masthead { padding: 20px 16px 14px; }
  .mainnav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .mainnav-in { justify-content: flex-start; min-height: 48px; }
  .lead-grid { grid-template-columns: minmax(0, 1fr); }
  .lead-grid > * { padding: 0; border-left: 0 !important; }
  .lead-grid > .lead-col { border-top: 1px solid var(--rule); margin-top: 22px; padding-top: 20px; }
  .lead-latest .latest-list { grid-template-columns: minmax(0, 1fr); }
  .brief-grid { grid-template-columns: minmax(0, 1fr); }
  .brief-grid > * { padding: 14px 0 !important; border-left: 0 !important; border-top: 1px solid var(--rule); }
  .brief-grid > *:first-child { border-top: 0; padding-top: 0 !important; }
  .cardgrid-in { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .eventcard { grid-template-columns: minmax(0, 1fr); }
  .rowlist .row { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
  .listing-rows .row { grid-template-columns: minmax(0, 1fr) 96px; gap: 16px; }
  .art-related-grid { grid-template-columns: minmax(0, 1fr); }
  .art-related-grid > * { padding: 14px 0 !important; border-left: 0 !important; border-top: 1px solid var(--rule); }
  .art-related-grid > *:first-child { border-top: 0; padding-top: 0 !important; }
  .footer-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 0; }
  .footer-cols > * { padding: 0 18px; }
  .footer-cols > *:nth-child(odd) { padding-left: 0; border-left: 0; }
  .footer-cols > .fc-brand { grid-column: 1 / -1; padding: 0; border-left: 0; }
  .search-hit { grid-template-columns: minmax(0, 1fr) 84px; gap: 14px; }
  .cookie-bar { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .sk-home-lead, .sk-home-strip { grid-template-columns: minmax(0, 1fr); }
  .art-body { font-size: 17.5px; }
  /* На телефоне 16:9 от ширины окна и так невысоко (около 400px максимум),
     поэтому потолок поднимаем: жёсткий десктопный лимит в альбомной
     ориентации превратил бы обложку в узкую полосу. */
  .art-hero .media,
  .sk-article .skel-media { max-height: 70vh; }
  .art-hero figcaption { flex-direction: column; gap: 2px; }
  /* comfortable tap targets on touch layouts */
  .footer-cols a { padding: 12px 0; }
  .side-links a { padding: 13px 0; }
  .crumbs a { padding: 10px 0; display: inline-block; }
  .topbar-links a { padding: 10px 0; }
  .footer-bottom a { padding: 12px 0; }
}

@media (max-width: 560px) {
  .topbar-in { justify-content: space-between; }
  .newsletter-row { flex-direction: column; }
  .newsletter-form input[type="email"] { border-right: 1px solid var(--ink); }
  .search-row { flex-direction: column; }
  .search-form input[type="search"] { border-right: 1px solid var(--ink); }
  .search-row .btn { align-self: flex-start; }
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .footer-cols > * { padding: 0; border-left: 0; }
}
