/* -------------------------------------------------------------------------
   Шрифты — свои, без Google Fonts
   Сторонний домен получал адрес читателя на каждый заход. Оба семейства
   лежат в public/assets/fonts/ и отдаются с того же сервера, лицензии
   OFL — рядом с файлами. Файлы вариативные: Manrope покрывает веса
   200-800, Source Serif 4 - 200-900, optical sizing работает сам.
   ------------------------------------------------------------------------- */
/* Manrope, cyrillic-ext */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Manrope, cyrillic */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Manrope, latin-ext */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Manrope, latin */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Source Serif 4, cyrillic-ext */
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Source Serif 4, cyrillic */
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Source Serif 4, latin-ext */
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Source Serif 4, latin */
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* =========================================================================
   Верста · Реутов Сегодня — стиль городского портала

   Устройство страницы сверху вниз:

     тёмная инфо-полоса   дата, погода, курсы, город сетки
     белая шапка          знак, название, поиск
     акцентная навигация  рубрики; единственная полоса, которая липнет
     содержимое + колонка  сетка 1fr / 320px
     тёмный подвал        четыре колонки

   Три правила, из которых следует всё остальное:

   1. Акцентный — только для навигации, времени в ленте и акцентов;
      красный остался цветом тревоги (ошибки, предупреждения). Если
      акцентным выделено всё, не выделено ничего.
   2. Границу блока задаёт белая карточка на сером фоне, а не рамка.
      Рамка есть, но она светлее фона карточки и работает как тень.
   3. Плотность выше, чем в журнальной вёрстке: городской портал читают
      «что нового», а не «что почитать». Поэтому мелкий шрифт, узкие
      отступы и лента вместо галереи карточек.
   ========================================================================= */

:root {
  /* Чернила */
  --ink: #17181c;
  --ink-2: #3a3e46;
  --ink-soft: #3a3e46;
  --muted: #7a7f8a;
  --faint: #9aa1ac;

  /* Поверхности */
  --bg: #f3f3f4;
  --paper: #fff;
  --card-bg: #fff;
  --surface: #f3f3f4;
  --surface-2: #e9ebef;
  --dark: #23262b;
  --dark-2: #2b2f36;
  --on-dark: #c9ced6;
  --on-dark-muted: #798089;

  /* Линии */
  --line: #e3e5e9;
  --line-soft: #eef0f3;

  /* Акцент */
  --brand: #3a5faa;
  --brand-dark: #2d4983;
  --brand-soft: #eef2fa;
  --accent: var(--brand);
  /* Тревожный красный — только ошибки и предупреждения, это не акцент */
  --red: #cc0b1d;
  --red-dark: #9d0816;
  --blue: #1f5fd0;
  --green: #157347;

  /* Геометрия */
  --wrap: 1220px;
  --r: 10px;
  --r-lg: 12px;
  --r-md: 8px;
  --r-sm: 6px;
  --pill: 999px;
  --gap: 24px;
  --nav-h: 50px;
  --hero-ratio: 16 / 9;

  /* Шрифты: один гротеск на интерфейс и ленту, антиква — только в теле
     материала. Портал читают быстро, антиква в ленте этому мешает. */
  --ui: Manrope, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --shadow: 0 1px 2px rgba(20, 21, 26, .05), 0 3px 12px rgba(20, 21, 26, .06);
  --shadow-hover: 0 2px 5px rgba(20, 21, 26, .09), 0 8px 24px rgba(20, 21, 26, .12);
}

* { box-sizing: border-box; }

/* Атрибут hidden обязан прятать элемент, даже если у того задан свой
   display: без этого плашка cookie и кнопка «наверх» не умеют исчезать. */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 var(--ui);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.2px; }

.container, .wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }
.app-root { padding-top: 20px; padding-bottom: 44px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  padding: 12px 18px; background: var(--ink); color: #fff; border-radius: 0 0 var(--r) 0;
}
.skip-link:focus { left: 0; color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* =========================================================================
   Инфо-полоса
   ========================================================================= */

.topbar { background: var(--dark); color: var(--on-dark); font-size: 13px; }
.topbar__in {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; min-height: 34px; flex-wrap: wrap;
}
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar__item {
  color: var(--on-dark); display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 0; font-size: 13px;
}
.topbar__item:hover { color: #fff; }
.topbar__date { color: #fff; font-weight: 600; }
.topbar__city { font-weight: 700; color: #fff; }
.topbar__city svg { opacity: .7; }
.topbar__city[aria-expanded="true"] svg { transform: rotate(180deg); }

@media (max-width: 700px) {
  /* На телефоне из полосы остаётся только то, ради чего на неё смотрят. */
  .topbar__in { min-height: 32px; }
  .topbar__date, .topbar__right .topbar__item:not(.topbar__city) { display: none; }
}

/* =========================================================================
   Шапка
   ========================================================================= */

.masthead { background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead__in { display: flex; align-items: center; gap: 26px; padding-top: 14px; padding-bottom: 14px; }

.logo { display: inline-flex; align-items: center; gap: 13px; flex-shrink: 0; }
.logo:hover { color: inherit; }
.logo__mark { width: 44px; height: 44px; }
.logo__text { display: flex; flex-direction: column; gap: 4px; }
.logo__word {
  display: inline-flex; align-items: center;
  font: 800 27px/1 var(--ui); letter-spacing: -.02em; color: var(--ink);
  /* Manrope жирнее 800 не бывает: чуть добираем вес тонкой обводкой */
  -webkit-text-stroke: .4px currentColor;
}
/* Квадрат-разделитель повторяет знак: та же форма, тот же синий. */
.logo__sq { width: 10px; height: 10px; background: #3a5faa; margin: 0 6px 1px; flex-shrink: 0; }
.logo__sub {
  font: 700 10px/1 var(--ui); letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}

/* Поиск занимает всю строку шапки справа от логотипа — от знака до края
   контейнера, как у больших порталов. */
.search {
  display: flex; flex: 1; position: relative;
  border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--bg);
}
.search:focus-within { border-color: var(--brand); background: #fff; }
.search input { flex: 1; border: 0; outline: 0; background: transparent; padding: 9px 13px; min-width: 0; }
.search button { border: 0; background: transparent; padding: 0 13px; color: var(--muted); display: grid; place-items: center; }
.search button:hover { color: var(--brand); }

/* Живой плейсхолдер: на месте подсказки крутятся топ-новости (app.js).
   Слой повторяет плейсхолдер один в один — цвет, шрифт, отбивка; правый
   отступ 43px отводит место кнопке «Найти», троеточие ставит CSS. */
.search input::placeholder { color: var(--muted); opacity: 1; }
.search__ph {
  position: absolute; top: 0; bottom: 0; left: 0; right: 43px;
  display: flex; align-items: center; padding: 0 13px;
  color: var(--muted); font: 400 15px/1.55 var(--ui);
  pointer-events: none;
}
.search__ph-line { display: block; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Мигающий курсор на конце печатаемой подсказки — как в поле ввода. */
.search__ph-line::after { content: ''; display: inline-block; width: 1px; height: 1em; background: currentColor; margin-left: 2px; vertical-align: -0.15em; animation: ph-caret 1.1s steps(1) infinite; }
@keyframes ph-caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .search__ph-line::after { animation: none; }
}

.search__hints {
  position: absolute; top: calc(100% + 6px); left: -1.5px; right: -1.5px; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-hover); overflow: hidden;
}
.search__hints a { display: block; padding: 9px 14px; font-size: 14px; border-bottom: 1px solid var(--line-soft); }
.search__hints a:last-child { border-bottom: 0; }
.search__hints a:hover, .search__hints a.is-active { background: var(--brand-soft); color: var(--brand-dark); }
.search__hints b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 700; }

/* Поиск, подсвеченный из подвала: поле вспыхивает акцентом на пару секунд. */
.search.is-highlighted { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-soft); transition: box-shadow .3s; }

/* Иконка личного кабинета справа от поиска: синий полукруг с круглой
   «головой». Для вошедшего скрипт меняет значок на первую букву логина. */
.user-btn {
  flex-shrink: 0; align-self: center; position: relative;
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  transition: background .15s, color .15s;
}
.user-btn:hover { background: var(--brand); color: #fff; }
.user-btn__letter { font: 800 16px var(--ui); color: inherit; }
.user-btn.is-logged { background: var(--brand); color: #fff; }

/* Колокольчик уведомлений — слева от кабинета, в той же гамме. */
.bell-btn {
  flex-shrink: 0; align-self: center; position: relative;
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.bell-btn:hover, .bell-btn[aria-expanded="true"] { background: var(--brand); color: #fff; }
.bell-btn__dot {
  position: absolute; top: 8px; right: 9px; width: 8px; height: 8px;
  border-radius: 50%; background: #d64545; border: 2px solid var(--paper);
}

/* Окно уведомлений: белая карточка под колокольчиком, у правого края
   контейнера. Лежит над липкой навигацией (z-60 против z-50), на телефоне
   не вылезает за экран. */
.masthead__in { position: relative; }
.notif-pop {
  position: absolute; top: calc(100% + 8px); right: 18px; z-index: 60;
  width: min(370px, calc(100vw - 24px));
  background: #fff; border-radius: 14px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, .22);
  overflow: hidden;
}
.notif-pop__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px 11px; border-bottom: 1px solid var(--line-soft);
}
.notif-pop__head b { font: 800 16px var(--ui); }
.notif-pop__close {
  display: grid; place-items: center; width: 28px; height: 28px;
  border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer;
}
.notif-pop__close:hover { background: var(--bg); }
.notif-pop__list { max-height: min(52vh, 420px); overflow-y: auto; }
.notif-pop__empty { padding: 22px 16px 24px; font: 500 13.5px/1.5 var(--ui); color: var(--muted); }
.notif-pop__foot {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 16px; border-top: 1px solid var(--line-soft); background: var(--bg);
  font: 700 13.5px var(--ui); color: var(--brand); cursor: pointer;
}
.notif-pop__foot span { flex: 1; }
/* Тумблер в духе системного: пилюля с бегунком. */
.notif-pop__switch {
  appearance: none; -webkit-appearance: none; margin: 0; flex-shrink: 0;
  width: 40px; height: 24px; border-radius: 999px; background: #cdd3db;
  position: relative; cursor: pointer; transition: background .2s;
}
.notif-pop__switch::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s;
}
.notif-pop__switch:checked { background: var(--brand); }
.notif-pop__switch:checked::after { transform: translateX(16px); }

@media (max-width: 560px) {
  .user-btn { width: 36px; height: 36px; }
  .bell-btn { width: 36px; height: 36px; }
  .masthead__in .user-btn, .masthead__in .bell-btn { order: 6; }
  .notif-pop { right: 12px; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  border-radius: var(--r-md); padding: 9px 16px; font: 600 14px var(--ui); transition: all .15s;
}
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn--dark { background: var(--dark); border-color: var(--dark); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }
.btn--sm { padding: 6px 11px; font-size: 13px; border-radius: var(--r-sm); }

@media (max-width: 860px) {
  .masthead__in { flex-wrap: wrap; gap: 12px; padding-top: 11px; padding-bottom: 11px; }
  .logo__mark { width: 36px; height: 36px; }
  .logo__word { font-size: 22px; }
  .logo__sub { font-size: 9px; letter-spacing: 1.6px; }
  .search { order: 5; width: 100%; }
}

@media (max-width: 560px) {
  /* На телефоне шапка остаётся компактной: логотип и поиск. */
  .logo__mark { width: 32px; height: 32px; }
  .logo__word { font-size: 19px; }
  .mainnav a { padding: 11px 12px; font-size: 14px; }
  .section-head { flex-wrap: wrap; }
  .date-chip { font-size: 11px; padding: 2px 8px; }
  .featured, .featured__overlay { min-height: 300px; }
  .featured__overlay { padding: 18px; }
  .feed__item { grid-template-columns: 46px 1fr; gap: 10px; padding: 10px 14px; }
  .feed__day { padding-left: 14px; }
  .app-root { padding-top: 14px; }
}

/* =========================================================================
   Красная навигация

   Липнет к верху и едет за читателем. Это единственный липкий элемент на
   странице: переход в другой раздел нужен в любой момент, всё остальное —
   нет.
   ========================================================================= */

.mainnav {
  background: var(--brand); position: sticky; top: 0; z-index: 50;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
}
.mainnav__in { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.mainnav__in::-webkit-scrollbar { display: none; }
.mainnav a {
  padding: 12px 14px; font: 600 14.5px var(--ui); color: #fff; white-space: nowrap;
  border-bottom: 3px solid transparent; text-shadow: 0 1px 0 rgba(0, 0, 0, .15);
}
.mainnav a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.mainnav a.active { background: var(--brand-dark); border-bottom-color: #fff; color: #fff; }
/* Текст первого пункта — ровно по левому краю контейнера, как логотип над ним */
.mainnav__in a:first-child { margin-left: -14px; }
@media (max-width: 560px) { .mainnav__in a:first-child { margin-left: -12px; } }
/* Прокрутили страницу — полоса отрывается от шапки и получает тень погуще. */
.mainnav.is-stuck { box-shadow: 0 4px 16px rgba(0, 0, 0, .26); }

/* Подсказка прокрутки: пока за краем полосы прячутся пункты, край тонируется
   в тёмный оттенок полосы — на телефоне это читается как «листай дальше»,
   а доехав до конца, затемнение исчезает и последний пункт виден целиком.
   Классы has-left/has-right ставит app.js по scrollLeft самой ленты. */
.mainnav::before,
.mainnav::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 84px;
  z-index: 1; pointer-events: none; opacity: 0; transition: opacity .25s;
}
.mainnav::before {
  left: 0;
  background: linear-gradient(90deg, var(--brand-dark) 30%, rgba(45, 73, 131, 0));
}
.mainnav::after {
  right: 0;
  background: linear-gradient(270deg, var(--brand-dark) 30%, rgba(45, 73, 131, 0));
}
.mainnav.has-left::before,
.mainnav.has-right::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .mainnav::before, .mainnav::after { transition: none; }
}

/* Полоса дочитывания: тонкая линия у самой верхней кромки экрана, поверх
   липкой навигации. fixed, потому что её место не в потоке страницы, а на
   экране. Видна всегда — при заходе стоит на нуле; светлые трек и заполнение,
   потому что лежит полоса на тёмной инфо-полосе и синей навигации. */
.read-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  height: 3px; background: rgba(255, 255, 255, .22);
  pointer-events: none;
}
.read-progress span { display: block; height: 100%; width: 0; background: #fff; transition: width .1s linear; }

/* =========================================================================
   Выбор города сетки
   ========================================================================= */

.city-menu {
  background: var(--paper); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow); position: relative; z-index: 45;
}
.city-menu__inner { padding-top: 18px; padding-bottom: 20px; }
.city-menu__head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.city-menu__head .kicker { margin: 0; font: 700 12px var(--ui); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.city-menu__all { margin-left: auto; font: 700 13px var(--ui); color: var(--brand); }
.city-menu__close { border: 0; background: none; color: var(--muted); font-size: 15px; padding: 4px 8px; }
.city-menu__close:hover { color: var(--brand); }
.city-menu__field input {
  width: 100%; max-width: 420px; padding: 9px 13px; border: 1.5px solid var(--line);
  border-radius: var(--r-md); background: var(--bg); outline: none;
}
.city-menu__field input:focus { border-color: var(--brand); background: #fff; }
.city-menu__groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px 22px; margin-top: 14px; }
.city-menu__group strong { display: block; font: 700 11px var(--ui); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.city-menu__items { display: flex; flex-direction: column; gap: 3px; }
.city-menu__item { font-size: 13.5px; color: var(--ink-2); display: flex; gap: 7px; align-items: baseline; }
.city-menu__item span { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.city-menu__item--live { font-weight: 700; color: var(--ink); }
.city-menu__item--live span { color: var(--green); }
.city-menu__item--current { font-weight: 700; color: var(--brand-dark); }
.city-menu__item--current span { background: var(--brand); color: #fff; padding: 1px 6px; border-radius: var(--r-sm); }
.city-menu__empty { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }

/* =========================================================================
   Сетка страницы
   ========================================================================= */

.grid { display: grid; gap: var(--gap); }
/* minmax(0, 1fr), а не 1fr: колонка с минимальной шириной «по содержимому»
   не может сжаться ниже самого широкого ребёнка, и длинная почасовая лента
   или окно осадков распирают всю страницу горизонтально (поймано на
   /pogoda/ на телефоне). */
.layout-main { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--gap); align-items: start; }
.layout-main > div { min-width: 0; }
@media (max-width: 1000px) { .layout-main { grid-template-columns: minmax(0, 1fr); } }

.section { margin-bottom: 26px; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 24px 0 14px; border-bottom: 2px solid var(--ink); padding-bottom: 7px;
}
.section-head:first-child { margin-top: 0; }
.section-head__title, .section-head h1, .section-head h2 { font-size: 21px; margin: 0; }
.section-head__hint { margin: 0; color: var(--muted); font-size: 12.5px; }
.section-head__link, .section-head a { font: 600 13.5px var(--ui); color: var(--brand); }
.section-head__link i { font-style: normal; }

.date-chip {
  background: var(--brand); color: #fff; font: 700 12px var(--ui); text-transform: uppercase;
  letter-spacing: .6px; padding: 3px 10px; border-radius: var(--r-sm); white-space: nowrap;
}

/* =========================================================================
   Карточки и лента
   ========================================================================= */

.card { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--r); transition: box-shadow .18s, transform .18s; }
a.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); color: inherit; }

.media { position: relative; aspect-ratio: var(--ratio, 16 / 9); overflow: hidden; background: var(--surface-2); }
.media .pic { position: absolute; inset: 0; }
.pic { width: 100%; height: 100%; object-fit: cover; background: var(--surface-2) center/cover no-repeat; }

.kicker { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin: 0; font-size: 12px; color: var(--muted); }
.kicker .dot { color: var(--line); }
/* Метка тэга на карточках: единственное деление материалов — тэги. */
.tag-mark {
  display: inline-flex; align-items: center; gap: 5px; font: 700 10.5px var(--ui);
  text-transform: uppercase; letter-spacing: .5px; color: var(--brand);
}
.tag-mark::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: currentColor; }
.tag-mark--light { color: #fff; }

.metrics { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin-top: auto; padding-top: 6px; }
.metrics--light { color: rgba(255, 255, 255, .8); }
.metric { display: inline-flex; align-items: center; gap: 4px; }

.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 12px; }
.meta b { color: var(--ink-2); font-weight: 600; }

/* --- Главная новость --- */

.featured {
  position: relative; display: block; border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow); min-height: 380px; background: var(--dark);
}
.featured:hover .featured__title a { color: #fff; }
.featured__media, .featured .pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.featured:hover .pic { transform: scale(1.03); }
.featured__overlay {
  position: relative; z-index: 1; min-height: 380px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 24px;
  /* Затемнение начинается раньше и набирает силу плавно: заголовок и лид
     ложатся на светлую фотографию и без этого не читаются. */
  background: linear-gradient(180deg, rgba(12, 13, 17, 0) 8%, rgba(12, 13, 17, .5) 45%, rgba(12, 13, 17, .93) 100%);
  color: #fff;
}
.featured__title { font-size: clamp(21px, 2.5vw, 29px); margin: 0; color: #fff; }
.featured__lead {
  margin: 0; font-size: 14.5px; color: #dfe2e7;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.featured .meta { color: #b9bfca; }
.featured .meta b { color: #fff; }
.featured__title a { color: #fff; }

/* Ссылка тэга лежит внутри карточки со «растянутой» ссылкой заголовка,
   поэтому её нужно поднять над невидимым слоем — иначе клик по метке
   уводил бы в материал, а не в тэг. */
.card .tag-mark, .featured .tag-mark, .row .tag-mark, .news-row .tag-mark { position: relative; z-index: 1; }

/* --- Лента с таймкодами --- */

.feed { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 0; }
.feed__day {
  padding: 11px 18px 5px; font: 800 12.5px var(--ui); text-transform: uppercase;
  letter-spacing: .8px; color: var(--muted);
}
.feed__item {
  display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 11px 18px;
  border-left: 3px solid transparent; align-items: start;
}
.feed__item:hover { background: #fafafb; border-left-color: var(--brand); color: inherit; }
.feed__time { font: 800 15px var(--ui); color: var(--brand); padding-top: 1px; font-variant-numeric: tabular-nums; }
.feed__main { display: block; }
.feed__title { display: block; font: 600 16px/1.35 var(--ui); }
.feed__item:hover .feed__title { color: var(--brand); }
.feed__lead { display: block; margin-top: 3px; color: var(--ink-2); font-size: 13.5px; }
.feed__sub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 3px; color: var(--muted); font-size: 12px; }
.feed__sub .metric { display: inline-flex; align-items: center; gap: 4px; }
.feed__sub svg { opacity: .55; }
.feed__cat { font: 700 10.5px var(--ui); text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
/* Метка «правлено …» на странице правок — цвет тревоги: правка после
   публикации это то, о чём читатель должен заметить. */
.edit-flag { font: 700 10.5px var(--ui); text-transform: uppercase; letter-spacing: .4px; color: var(--red); }
.vazhnye__end { text-align: center; color: var(--muted); padding: 14px 0 4px; }
.feed__flag { background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; font-size: 10.5px; text-transform: uppercase; letter-spacing: .4px; padding: 1px 6px; border-radius: var(--r-sm); }

/* --- Карточки в сетке --- */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.cards--4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.card--md, .card--lg, .card--sm { display: flex; flex-direction: column; overflow: hidden; position: relative; }
.card__media { aspect-ratio: 16 / 9; width: 100%; }
.card__media .pic { width: 100%; height: 100%; }
.card__body { padding: 12px 15px 15px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card__title { font: 700 16.5px/1.3 var(--ui); margin: 0; }
.card__lead { color: var(--ink-2); font-size: 13.5px; margin: 0; }
.u-stretch::after { content: ''; position: absolute; inset: 0; }

/* --- Строка рубрики --- */

.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-row { position: relative; display: grid; grid-template-columns: 190px 1fr; gap: 16px; padding: 14px; }
.news-row:hover { box-shadow: var(--shadow-hover); }
.news-row:hover .news-row__title { color: var(--brand); }
.news-row__media { aspect-ratio: 16 / 10; border-radius: var(--r-md); overflow: hidden; }
.news-row__body { display: flex; flex-direction: column; gap: 6px; }
.news-row__title { font: 700 16.5px/1.3 var(--ui); margin: 0; }
.news-row__lead { color: var(--ink-2); font-size: 13.5px; margin: 0; }
@media (max-width: 620px) {
  .news-row { grid-template-columns: 1fr; }
  .news-row__media { display: none; }
}

/* --- Строки и линии (старые списки, «Читают сейчас») --- */

.rows { display: flex; flex-direction: column; gap: 10px; }
.row {
  position: relative; display: grid; grid-template-columns: auto 120px 1fr; gap: 14px;
  align-items: center; background: var(--card-bg); border: 1px solid var(--line);
  border-radius: var(--r); padding: 12px 14px;
}
.row:hover { box-shadow: var(--shadow-hover); }
.row__num { font: 800 22px var(--ui); color: var(--brand); min-width: 26px; }
.row__media { aspect-ratio: 16 / 10; border-radius: var(--r-sm); overflow: hidden; }
.row__body { display: flex; flex-direction: column; gap: 5px; }
.row__title { font: 700 15.5px/1.3 var(--ui); margin: 0; }
@media (max-width: 620px) {
  .row { grid-template-columns: auto 1fr; }
  .row__media { display: none; }
}

.line { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.line:last-child { border-bottom: 0; }
.line__title { font: 600 14px/1.35 var(--ui); margin: 3px 0 0; }
.line__title a:hover { color: var(--brand); }

/* =========================================================================
   Сайдбар и виджеты
   ========================================================================= */

.sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--nav-h) + 14px); }
@media (max-width: 1000px) { .sidebar { position: static; } }

.widget { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--r); padding: 15px 17px; }
.widget h3 {
  font: 700 14px var(--ui); text-transform: uppercase; letter-spacing: .7px;
  margin: 0 0 12px; padding-bottom: 7px; border-bottom: 2px solid var(--brand);
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
}
.widget h3 a { text-transform: none; letter-spacing: 0; font: 600 12px var(--ui); color: var(--brand); white-space: nowrap; }

/* «Главное» — крупные акцентные номера */
.main-list { list-style: none; margin: 0; padding: 0; counter-reset: main; }
.main-list li { display: grid; grid-template-columns: 28px 1fr; gap: 9px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.main-list li:last-child { border-bottom: 0; }
.main-list li::before { counter-increment: main; content: counter(main); font: 800 20px/1.1 var(--ui); color: var(--brand); }
.main-list a { font: 600 13.5px/1.35 var(--ui); }

/* «Все новости» в сайдбаре: время акцентом, заголовок рядом, без картинок. */
.latest-list { list-style: none; margin: 0; padding: 0; }
.latest-list li {
  display: grid; grid-template-columns: 34px 1fr; gap: 9px;
  align-items: baseline; padding: 7px 0; border-bottom: 1px dashed var(--line);
}
.latest-list li:last-child { border-bottom: 0; }
.latest-list time { font: 700 11.5px/1.3 var(--ui); color: var(--brand); font-variant-numeric: tabular-nums; }
.latest-list a { font: 600 13px/1.35 var(--ui); }

.pop-list { list-style: none; margin: 0; padding: 0; }
.pop-list li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.pop-list li:last-child { border-bottom: 0; }
.pop-list a { display: block; font: 600 13.5px/1.35 var(--ui); }
.pop-list .meta { margin-top: 3px; font-size: 11.5px; }

/* Погода */
.weather__now { display: flex; align-items: center; gap: 14px; }
.weather__icon { font-size: 38px; line-height: 1; }
.weather__t { font: 800 34px/1 var(--ui); letter-spacing: -1px; }
.weather__desc { color: var(--ink-2); font-size: 13px; margin-top: 3px; }
.weather__days { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--line); }
.weather__day { text-align: center; font-size: 12px; color: var(--muted); }
.weather__day b { display: block; color: var(--ink); font-size: 13.5px; }
.weather__note { margin: 9px 0 0; font-size: 11px; color: var(--muted); }

/* Пробки: живая карта Яндекса со слоем пробок. Высота как у короткой
   заметки — карта здесь для взгляда, а не для изучения. */
/* Балл пробок: цифра по центру кольца в цвет обстановки, под ней слово
   («свободно», «плотно», «пробки») и единица. */
.traffic-ball {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  margin: 2px 0 12px; text-align: center;
}
.traffic-ball__ring {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  border: 5px solid var(--surface-2); background: var(--bg);
  font: 800 21px/1 var(--ui); color: var(--ink);
}
.traffic-ball__word { font: 800 14px var(--ui); color: var(--ink); text-transform: lowercase; }
.traffic-ball__unit { font: 600 11.5px var(--ui); color: var(--muted); }
.traffic-ball--green .traffic-ball__ring { border-color: #3fae52; box-shadow: 0 0 0 3px rgba(63, 174, 82, .14); }
.traffic-ball--green .traffic-ball__word { color: var(--green); }
.traffic-ball--yellow .traffic-ball__ring { border-color: #e3b52a; box-shadow: 0 0 0 3px rgba(227, 181, 42, .16); }
.traffic-ball--yellow .traffic-ball__word { color: #8a6d00; }
.traffic-ball--red .traffic-ball__ring { border-color: var(--red); box-shadow: 0 0 0 3px rgba(204, 11, 29, .12); }
.traffic-ball--red .traffic-ball__word { color: var(--red); }
/* Страница пробок: кольцо крупнее — там балл главный герой, а не подпись. */
.traffic-ball--big { margin: 0 0 12px; }
.traffic-ball--big .traffic-ball__ring { width: 84px; height: 84px; border-width: 7px; font-size: 30px; }
.traffic-ball--big .traffic-ball__word { font-size: 17px; }
.traffic-ball--big .traffic-ball__unit { font-size: 12.5px; }
.traffic__map { display: block; width: 100%; height: 170px; border: 0; border-radius: var(--r-sm); }
.traffic__map + .weather__note a { color: var(--brand); }

/* Внешние карты под нажатием: iframe лежит без src, поверх — заглушка
   с кнопкой. После нажатия app.js проставляет src и снимает заглушку. */
.embed-lazy { position: relative; }
.embed-lazy__veil {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-items: center;
  background: var(--surface-2); border-radius: var(--r-sm);
}
.embed-lazy__go {
  display: grid; gap: 5px; justify-items: center;
  padding: 12px 18px; max-width: 90%;
  font: 600 14px/1.2 var(--ui); color: var(--ink);
  background: var(--paper); border: 0; border-radius: var(--r-md);
  box-shadow: var(--shadow); cursor: pointer;
}
.embed-lazy__go:hover { color: var(--brand-dark); box-shadow: var(--shadow-hover); }
.embed-lazy__go small { font: 400 11.5px/1.35 var(--ui); color: var(--muted); }
.embed-lazy__veil noscript { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 12px; }

/* Страница пробок: карта большим окном, справа — блок «Пробки» с баллом */
.probki-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--gap); align-items: start;
}
@media (max-width: 1000px) { .probki-layout { grid-template-columns: 1fr; } }
.probki-map {
  display: block; width: 100%; height: min(72vh, 720px); min-height: 380px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff;
}
.probki-note { margin: 10px 2px 0; font-size: 12.5px; color: var(--muted); }
.probki__nolevel { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.probki__legend { list-style: none; margin: 12px 0 0; padding: 0; font-size: 12.5px; color: var(--ink-2); }
.probki__legend li { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.probki__legend i { width: 18px; height: 8px; border-radius: 4px; flex-shrink: 0; }

/* Курсы */
.rates { display: flex; gap: 18px; margin-top: 4px; font-size: 13px; }
.rates div { display: inline-flex; align-items: baseline; gap: 5px; }
.rates span { color: var(--muted); }
.rates b { font-size: 15px; font-variant-numeric: tabular-nums; }
.rates i { font-style: normal; font-size: 10px; }
.rates__up { color: var(--green); }
.rates__down { color: var(--red); }
.rates__flat { color: var(--faint); }

/* Опрос */
.poll__q { font: 700 14px var(--ui); margin: 0 0 10px; }
.poll__opt {
  display: block; width: 100%; text-align: left; background: #fff; font-size: 13px;
  padding: 8px 11px; border: 1.5px solid var(--line); border-radius: var(--r-md); margin-bottom: 8px;
}
.poll__opt:hover { border-color: var(--brand); color: var(--brand); }
.poll__opt[disabled] { opacity: .6; cursor: default; }
.poll__result { margin-bottom: 10px; }
.poll__row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 3px; }
.poll__row i { font-style: normal; font-size: 11px; color: var(--brand); }
.poll__bar { height: 8px; border-radius: var(--pill); background: #eef0f2; overflow: hidden; }
.poll__bar i { display: block; height: 100%; background: var(--brand); transition: width .3s; }
.poll__result.is-mine .poll__bar i { background: var(--brand-dark); }
.poll__total { color: var(--muted); font-size: 12px; margin: 8px 0 0; }

/* Афиша */
.aff-list { list-style: none; margin: 0; padding: 0; }
.aff-list li { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.aff-list li:last-child { border-bottom: 0; }
.aff-date { display: inline-block; background: var(--brand-soft); color: var(--brand-dark); font: 700 11.5px var(--ui); border-radius: var(--r-sm); padding: 2px 8px; margin-bottom: 4px; }
.aff-title { display: block; font: 600 13px/1.35 var(--ui); }
.aff-place { display: block; color: var(--muted); font-size: 12px; }

/* Телефоны */
.phones { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.phones li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.phones li:last-child { border-bottom: 0; }
.phones b { color: var(--brand-dark); font-size: 13.5px; white-space: nowrap; }
.phones span { color: var(--muted); text-align: right; }

/* =========================================================================
   Баннер push-уведомлений, гороскоп, телепрограмма, курсы
   ========================================================================= */

/* Попап просьбы о разрешении на уведомления: при первом заходе выезжает
   сверху, как системная плашка, а не стоит блоком в теле страницы. Пока
   закрыт (hidden), держится над экраном — transform анимирует выезд. */
.push-pop {
  position: fixed; top: 14px; left: 50%; z-index: 110;
  transform: translate(-50%, calc(-100% - 26px));
  width: min(420px, calc(100vw - 24px));
  padding: 20px 20px 16px;
  background: var(--dark); color: #dfe2e7; border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
  text-align: center;
  transition: transform .4s cubic-bezier(.2, .9, .3, 1.1);
}
.push-pop.is-open { transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .push-pop { transition: none; } }
.push-pop__mark { width: 44px; height: 44px; margin-bottom: 8px; }
.push-pop__title { margin: 0; font: 800 16.5px var(--ui); color: #fff; }
.push-pop__text { margin: 6px 0 14px; font: 500 13.5px/1.5 var(--ui); color: #b9bfc9; }
.push-pop__actions { display: flex; gap: 10px; justify-content: center; }
.push-pop .btn { background: transparent; border: 1.5px solid var(--dark-2); color: #dfe2e7; }
.push-pop .btn:hover { border-color: var(--muted); color: #fff; }
.push-pop .btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.push-pop .btn--primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.push-pop__close {
  position: absolute; top: 10px; right: 12px;
  padding: 4px; border: 0; background: none; cursor: pointer;
  font: 400 14px/1 var(--ui); color: var(--muted);
}
.push-pop__close:hover { color: #fff; }

/* Гороскоп: двенадцать карточек в два-три столбца, у знака свой глиф. */
/* Гороскоп: знак — широкая карточка на всю колонку, а не мелкая плитка.
   У знака свой акцент стихии (--sign-accent): цвет глифа и полосы. */
.horo-list { display: flex; flex-direction: column; gap: 12px; }
.horo-row {
  display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center;
  background: var(--card-bg); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 16px 18px; border-left: 3px solid transparent;
}
.horo-row__mark { font-size: 32px; line-height: 1; color: var(--sign-accent, var(--brand)); text-align: center; }
.horo-row h2 { font-size: 17px; margin: 0 0 5px; }
.horo-row h2 a:hover { color: var(--sign-accent, var(--brand)); }
.horo-row p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.horo-row__more {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  border: 1.5px solid var(--line); border-radius: var(--pill);
  padding: 7px 14px; font: 600 13px var(--ui); color: var(--sign-accent, var(--brand));
  transition: all .15s;
}
.horo-row__more:hover { border-color: var(--sign-accent, var(--brand)); background: var(--brand-soft); }
@media (max-width: 640px) {
  .horo-row { grid-template-columns: 42px 1fr; }
  .horo-row__mark { font-size: 26px; }
  .horo-row__more { grid-column: 2; justify-self: start; }
}

/* Страница знака: глиф на цветной плашке стихии, рядом созвездие-подпись */
.horo-full { background: var(--card-bg); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px 24px; overflow: hidden; position: relative; }
.horo-full__sign {
  display: flex; align-items: center; gap: 16px;
  background: color-mix(in srgb, var(--sign-accent, var(--brand)) 10%, #fff);
  border-radius: var(--r-md); padding: 14px 18px; margin-bottom: 16px;
}
.horo-full__mark {
  display: grid; place-items: center; width: 64px; height: 64px; flex-shrink: 0;
  border-radius: 50%; background: var(--sign-accent, var(--brand)); color: #fff;
  font-size: 34px; line-height: 1;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--sign-accent, var(--brand)) 45%, transparent);
}
.horo-full__stars { font-size: 13px; letter-spacing: 6px; color: var(--sign-accent, var(--brand)); }
/* Водяной знак-глиф в правом нижнем углу карточки */
.horo-full::after {
  content: '✦'; position: absolute; right: -22px; bottom: -46px;
  font-size: 170px; line-height: 1; pointer-events: none;
  color: color-mix(in srgb, var(--sign-accent, var(--brand)) 7%, transparent);
}
.horo-full__head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.horo-full__head h2 { margin: 0 0 3px; font-size: 23px; }
.horo-full__date { font-size: 13px; color: var(--muted); }
.horo-full__text { margin: 0; font: 400 17px/1.65 var(--serif); color: #21252c; position: relative; z-index: 1; }
.horo-full__more { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); position: relative; z-index: 1; }
.horo-full__more a { font: 600 13px var(--ui); color: var(--sign-accent, var(--brand)); }
/* «Остальные знаки» — заметный отступ сверху: сначала читают прогноз. */
.horo-others { margin-top: 34px; }
.horo-neighbours { display: flex; gap: 10px; flex-wrap: wrap; }
.horo-neighbour {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--card-bg); border-radius: var(--pill); box-shadow: var(--shadow);
  padding: 8px 16px; font: 600 14px var(--ui);
}
.horo-neighbour:hover { color: var(--sign-accent, var(--brand)); }
.horo-neighbour__mark { font-size: 18px; color: var(--sign-accent, var(--brand)); }

/* Телепрограмма: канал — карточка, передача — строка «время / название». */
.tv-ch {
  background: var(--card-bg); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 15px 17px; margin-bottom: 14px;
}
.tv-ch h2 { display: flex; align-items: center; gap: 10px; }
/* Дата выбранного дня справа от названия канала */
.tv-ch__day { margin-left: auto; font: 600 12.5px var(--ui); color: var(--muted); white-space: nowrap; }
/* Кнопка «Посмотреть больше» под сеткой канала: <details> без скрипта.
   В открытом состоянии кнопка прячется — список читается как цельный. */
.tv-ch__rest summary {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 11px;
  padding: 7px 14px; border: 1.5px solid var(--line); border-radius: var(--pill);
  font: 600 13px var(--ui); color: var(--brand); transition: all .15s; cursor: pointer; list-style: none;
}
.tv-ch__rest summary::-webkit-details-marker { display: none; }
.tv-ch__rest summary:hover { border-color: var(--brand); background: var(--brand-soft); }
.tv-ch__rest summary i { font-style: normal; }
.tv-ch__rest[open] summary { display: none; }
.tv-ch__rest .tv-list { padding-top: 2px; }
/* Логотип канала: наш прокси поверх буквы — картинка не успела, видна буква */
.tv-ch__logo {
  position: relative; display: grid; place-items: center;
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: var(--r-sm); background: var(--brand-soft);
  font: 800 15px var(--ui); color: var(--brand-dark);
}
.tv-ch__logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: var(--r-sm); background: #fff; }
.tv-ch h2 { font-size: 15.5px; margin: 0 0 8px; }
.tv-list { list-style: none; margin: 0; padding: 0; }
.tv-item { display: flex; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.tv-item:last-child { border-bottom: 0; }
.tv-item__time { font-variant-numeric: tabular-nums; color: var(--muted); min-width: 42px; }
.tv-item.is-now { background: var(--brand-soft); margin: 0 -10px; padding: 5px 10px; border-radius: var(--r-sm); border-bottom-color: transparent; }
.tv-item.is-now .tv-item__time { color: var(--brand-dark); font-weight: 700; }
.tv-item.is-now .tv-item__title { font-weight: 700; }
/* Передача — ссылка на свою страницу */
a.tv-item__title { font-weight: 600; color: var(--ink); }
.tv-item:hover a.tv-item__title, a.tv-item__title:hover { color: var(--brand); }
.tv-prog__desc h2, .tv-prog__times h2 { display: block; }
.tv-prog__text { margin: 0; font: 400 16px/1.6 var(--serif); color: #21252c; }
.tv-prog__text--muted { color: var(--muted); font: 400 14px/1.55 var(--ui); }
.tv-prog__source { margin: 8px 0 0; font-size: 12px; color: var(--faint); }

/* Полоса выбора дня: число + день недели снизу (тв, гороскоп) */
.day-chips {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin: 0 0 18px; padding-bottom: 2px;
}
.day-chips::-webkit-scrollbar { display: none; }
.day-chip {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  min-width: 54px; padding: 7px 8px 6px;
  background: var(--card-bg); border-radius: var(--r-md); box-shadow: var(--shadow);
  text-align: center; flex-shrink: 0;
}
.day-chip i { min-height: 13px; font: 700 10px var(--ui); font-style: normal; text-transform: uppercase; letter-spacing: .5px; color: var(--brand); }
.day-chip b { font: 800 19px/1.1 var(--ui); color: var(--ink); }
.day-chip span { font: 600 11.5px var(--ui); color: var(--muted); }
.day-chip:hover b { color: var(--brand); }
.day-chip.is-active { background: var(--brand); }
.day-chip.is-active b, .day-chip.is-active span { color: #fff; }
.day-chip.is-active i { color: rgba(255, 255, 255, .85); }

/* Дни, растянутые на всю ширину блока: каждый чип равен соседям, и полоса
   доходит ровно до края колонки, без «хвоста» справа. */
.day-chips--fill { overflow-x: visible; flex-wrap: nowrap; }
.day-chips--fill .day-chip { flex: 1 1 0; min-width: 0; padding-left: 4px; padding-right: 4px; }
/* Сроки «неделя / месяц / год» отдельной полосой под днями — те же чипы,
   но пошире и без дня недели: ниже на ступеньку, чтобы не спорили с датами. */
.period-chips { margin: -8px 0 18px; }
.period-chips .day-chip { flex: 0 0 auto; min-width: 108px; }
@media (max-width: 900px) {
  /* На узком экране возвращаем прокрутку: растягивать некуда. */
  .day-chips--fill { overflow-x: auto; }
  .day-chips--fill .day-chip { flex: 0 0 auto; min-width: 54px; padding-left: 8px; padding-right: 8px; }
  .period-chips .day-chip { flex: 1 1 0; min-width: 0; }
}

/* Погода: страница раздела */
.pogoda-now {
  display: grid; grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.1fr); gap: 18px;
  background: var(--card-bg); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 22px 24px;
}
.pogoda-now__main { display: flex; align-items: center; gap: 18px; }
.pogoda-now__icon { font-size: 64px; line-height: 1; }
.pogoda-now__temp { font: 800 58px/1 var(--ui); letter-spacing: -2px; }
.pogoda-now__desc { font: 600 16px/1.4 var(--ui); color: var(--ink-2); }
.pogoda-now__desc small { font-weight: 500; font-size: 13px; color: var(--muted); }
.pogoda-now__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px;
  margin: 0; align-self: center;
}
.pogoda-now__grid div { background: var(--bg); border-radius: var(--r-md); padding: 9px 11px; }
.pogoda-now__grid dt { font: 600 10.5px var(--ui); text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 0 0 2px; }
.pogoda-now__grid dd { margin: 0; font: 700 15px var(--ui); }
@media (max-width: 760px) {
  .pogoda-now { grid-template-columns: 1fr; }
  .pogoda-now__temp { font-size: 44px; }
}
.pogoda-hours {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  background: var(--card-bg); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 13px 15px;
}
.pogoda-hours::-webkit-scrollbar { display: none; }
.pogoda-hours__cell {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  min-width: 58px; padding: 6px 4px; border-radius: var(--r-md);
}
.pogoda-hours__cell span { font: 600 11.5px var(--ui); color: var(--muted); }
.pogoda-hours__cell i { font-style: normal; font-size: 20px; line-height: 1.2; }
.pogoda-hours__cell b { font: 700 14px var(--ui); }
.pogoda-week { background: var(--card-bg); border-radius: var(--r); box-shadow: var(--shadow); padding: 6px 15px; }
.pogoda-week__row { border-bottom: 1px dashed var(--line); }
.pogoda-week__row:last-child { border-bottom: 0; }
/* Строка дня кликабельна: клик раскрывает почасовую линию своих суток. */
.pogoda-week__row summary {
  display: grid; grid-template-columns: 110px 34px 1fr auto; gap: 12px; align-items: center;
  padding: 9px 0; cursor: pointer; list-style: none;
}
.pogoda-week__row summary::-webkit-details-marker { display: none; }
.pogoda-week__row summary::after {
  content: ''; justify-self: end; width: 8px; height: 8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .15s;
}
.pogoda-week__row[open] summary::after { transform: rotate(-135deg); }
.pogoda-week__row summary:hover .pogoda-week__day { color: var(--brand); }
.pogoda-week__day { display: flex; flex-direction: column; font: 700 14px var(--ui); }
.pogoda-week__day small { font-weight: 500; font-size: 11.5px; color: var(--muted); }
.pogoda-week__icon { font-size: 22px; line-height: 1; text-align: center; }
.pogoda-week__desc { font-size: 13.5px; color: var(--ink-2); }
.pogoda-week__t { text-align: right; font: 700 15px var(--ui); }
.pogoda-week__t small { display: block; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.pogoda-hours--day {
  box-shadow: none; border-top: 1px dashed var(--line); border-radius: 0;
  background: transparent; padding: 10px 2px 12px; margin: 0 0 8px;
  flex-wrap: wrap; overflow-x: auto;
}
@media (max-width: 560px) {
  .pogoda-week__row summary { grid-template-columns: 84px 30px 1fr auto; gap: 8px; }
  .pogoda-week__desc { display: none; }
}

/* Радар осадков: большое окно по центру страницы, как карта пробок,
   только шире — дождь смотрят внимательно, а не мельком. */
.pogoda-rain__map {
  display: block; width: 100%; max-width: 100%; height: min(58vh, 520px); min-height: 320px;
  border: 0; border-radius: var(--r-lg); background: #fff;
  box-shadow: var(--shadow);
}
.pogoda-rain .weather__note { margin: 9px 2px 0; }

/* Витрины городов: неработающая лента помечается «скоро» */
.geo-tile--soon { cursor: default; }
.geo-tile--soon .geo-tile__num i { font-style: normal; font-weight: 700; color: var(--brand); }
.tv-item__live {
  font-style: normal; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .4px; color: #fff; background: var(--brand);
  border-radius: var(--r-sm); padding: 1px 6px; margin-left: 8px; white-space: nowrap;
}

/* Курсы: карточка валюты с лучшими предложениями и таблица банков. */
.kur-card {
  background: var(--card-bg); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 15px 17px; margin-bottom: 14px;
}
.kur-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.kur-card h2 { font-size: 15.5px; margin: 0 0 4px; }
.kur-card h2 span { color: var(--brand); }
.kur-card__cbr { margin: 0; font-size: 13px; color: var(--muted); }
.kur-card__cbr b { color: var(--ink); }
.kur-card__best { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 10px; }
.kur-card__best > div { display: flex; flex-direction: column; gap: 1px; }
.kur-card__best span { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.kur-card__best b { font-size: 21px; letter-spacing: -.02em; }
.kur-card__best a { font-size: 12.5px; color: var(--brand-dark); font-weight: 600; }
.kur-card__all { margin-top: 12px; }
.kur-card__all summary { cursor: pointer; font: 600 13px var(--ui); color: var(--brand); }
.kur-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
.kur-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 5px 6px; border-bottom: 1px solid var(--line); }
.kur-table td { padding: 5px 6px; border-bottom: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
.kur-table tr.is-best td { background: var(--brand-soft); font-weight: 700; }
.kur__star { font-style: normal; color: var(--brand); margin-right: 4px; }
/* Широкая таблица посадочных страниц: шапка и строки чуть крупнее. */
.kur-table--wide th { font-size: 12px; padding: 8px 10px; }
.kur-table--wide td { padding: 9px 10px; font-size: 14px; }
.kur-table--wide small { color: var(--muted); font-size: 12px; }

/* Официальный курс ЦБ РФ: главная карточка страницы, крупнее банковских. */
.kur-cbr {
  padding: 20px 22px 17px;
  border-top: 3px solid var(--brand);
}
.kur-cbr h2 { font-size: 18px; }
.kur-cbr__row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.kur-cbr__item {
  flex: 1 1 140px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  background: var(--bg); border-radius: var(--r-md); padding: 13px 16px;
}
.kur-cbr__sign { font: 700 13px var(--ui); color: var(--muted); }
.kur-cbr__item b { font: 800 32px/1.15 var(--ui); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.kur-cbr__item b + i { font-style: normal; font-size: 12px; }
.kur-cbr__note { font-size: 11.5px; color: var(--muted); }

/* Конвертер: «Меняю» сверху, «Получаю» снизу — обмен читается сверху вниз. */
.kur-conv h2 { font-size: 15.5px; margin: 0 0 10px; }
.kur-conv__grid { display: flex; flex-direction: column; gap: 10px; }
.kur-conv__field { display: grid; grid-template-columns: 1fr 130px; gap: 8px; align-items: center; }
.kur-conv__field span { grid-column: 1 / -1; font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.kur-conv__arrow { text-align: center; font-size: 18px; color: var(--brand); line-height: 1; }
.kur-conv__field input, .kur-conv__field select {
  padding: 9px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font: 600 15px var(--ui); background: var(--bg); color: var(--ink); width: 100%;
}
.kur-conv__field output {
  font: 800 20px/1.3 var(--ui); letter-spacing: -.02em; color: var(--brand-dark);
  padding: 4px 12px; min-height: 40px; display: flex; align-items: center;
  background: var(--brand-soft); border-radius: var(--r-sm);
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.kur-conv__note { margin: 10px 0 0; font-size: 11.5px; color: var(--muted); }

/* =========================================================================
   Страницы разделов
   ========================================================================= */

.page-head { margin-bottom: 16px; }
.page-head__title { font-size: 25px; margin: 4px 0 6px; }
.page-head__lead { color: var(--ink-2); font-size: 14.5px; margin: 0 0 8px; max-width: 70ch; }
.page-head__stats { display: flex; gap: 16px; flex-wrap: wrap; margin: 0; color: var(--muted); font-size: 12.5px; }
.page-head__stats b { color: var(--ink); }

.crumbs { color: var(--muted); font-size: 12.5px; margin-bottom: 10px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }

.pager { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.pager a, .pager__link {
  min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 12px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: #fff;
  font: 600 14px var(--ui);
}
.pager a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager a:hover:not(.active) { border-color: var(--brand); color: var(--brand); }
.pager__gap { display: inline-flex; align-items: center; padding: 0 4px; color: var(--muted); }
.pager__state { display: inline-flex; align-items: center; padding: 0 12px; color: var(--muted); font-size: 13px; }

.empty {
  text-align: center; color: var(--muted); padding: 44px 20px;
  background: #fff; border: 1px dashed var(--line); border-radius: var(--r);
}
.empty h2 { font-size: 18px; color: var(--ink); }
.empty p { margin: 0 0 14px; }
.more { font-weight: 700; color: var(--brand); }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex; align-items: baseline; gap: 6px; background: #eef0f2; color: var(--ink-2);
  border-radius: var(--pill); padding: 5px 12px; font: 600 12.5px var(--ui);
}
.chip span { color: var(--muted); font-size: 11px; }
.chip:hover, .chip--active { background: var(--brand-soft); color: var(--brand-dark); }

/* Разделы городской жизни: блок на главной — компактная белая карточка,
   витрина /razdely/ — крупные плитки с числом материалов. */
.sections-block {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 16px 16px; margin: 18px 0;
}
.sections-block .section-head { margin: 0 0 12px; border-bottom: 1px solid var(--line-soft); }
.sections-block__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.section-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.section-card {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  border-left: 3px solid var(--brand);
}
.section-card:hover { box-shadow: var(--shadow-hover); color: inherit; }
.section-card strong { font: 700 16px var(--ui); }
.section-card span { color: var(--muted); font-size: 12.5px; }

.more-row { display: flex; justify-content: center; margin-top: 16px; }
.more-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: var(--dark); color: #fff; border-radius: var(--r-md); font: 700 14px var(--ui); }
.more-btn:hover { background: var(--brand); color: #fff; }
.more-btn.is-loading { opacity: .55; pointer-events: none; }
.more-btn--ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.more-btn--ghost:hover { background: var(--brand-soft); color: var(--brand-dark); }
/* Акцентная широкая кнопка «Все новости» под блоками главной — это чистая
   навигация, акцентный здесь уместен. */
.more-btn--brand { background: var(--brand); }
.more-btn--brand:hover { background: var(--brand-dark); color: #fff; }
.more-btn--wide { display: flex; width: 100%; justify-content: center; padding: 15px 20px; border-radius: var(--r-lg); font-size: 15.5px; }
.more-btn--wide i { font-style: normal; transition: transform .15s; }
.more-btn--wide:hover i { transform: translateX(3px); }

/* =========================================================================
   Популярное сейчас — вкладки с заголовками на главной
   ========================================================================= */

.popnow {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px 12px 4px; margin: 0 0 16px;
}
.popnow__tabs {
  display: flex; gap: 4px; background: var(--surface); border-radius: var(--pill);
  padding: 4px; overflow-x: auto; scrollbar-width: none;
}
.popnow__tabs::-webkit-scrollbar { display: none; }
.popnow__tab {
  flex: 0 0 auto; border: 0; background: transparent; border-radius: var(--pill);
  padding: 7px 14px; font: 700 13.5px var(--ui); color: var(--ink-2);
  white-space: nowrap; transition: background .15s, color .15s;
}
.popnow__tab:hover { color: var(--brand); }
.popnow__tab.is-active { background: var(--brand); color: #fff; }
.popnow__pane { padding: 2px 8px 6px; }
.popnow__item {
  display: block; padding: 12px 4px; font: 600 15.5px/1.4 var(--ui);
  border-bottom: 1px solid var(--line-soft);
}
.popnow__pane .popnow__item:last-child { border-bottom: 0; }
.popnow__item:hover { color: var(--brand); }

/* =========================================================================
   Блоки новостей на главной — мозаика под главной новостью
   ========================================================================= */

.news-mosaic { display: grid; gap: 14px; margin: 16px 0 16px; }
.mosaic-row { display: grid; gap: 14px; align-items: stretch; }
.mosaic-row--top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mosaic-row--mid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.mosaic-row--last { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) {
  .mosaic-row--top, .mosaic-row--mid, .mosaic-row--last { grid-template-columns: minmax(0, 1fr); }
}

/* Горизонтальная карточка: заголовок слева, миниатюра справа. */
.wcard {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 150px;
  gap: 14px; align-items: start;
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px; transition: box-shadow .18s, transform .18s;
}
.wcard:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.wcard__body { display: flex; flex-direction: column; min-height: 118px; }
.wcard__title { font-size: 16.5px; margin: 0; }
.wcard__media { border-radius: var(--r-md); overflow: hidden; }
/* У новости не нашлось фотографии — вместо миниатюры градиентная заглушка:
   карточка сохраняет форму, ряд не выглядит дырявым. */
.wcard__ph, .pcard__ph {
  display: block; background: linear-gradient(140deg, #8db4f5 0%, var(--brand) 48%, var(--brand-dark) 100%);
}
.wcard__ph { border-radius: var(--r-md); aspect-ratio: 3 / 2; width: 100%; align-self: start; }
.pcard__ph { aspect-ratio: 16 / 10; width: 100%; }

/* Тёмная карточка-цитата. */
.qcard {
  position: relative; display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 9px; padding: 20px 20px 16px;
  background: var(--dark); color: #fff; border-radius: var(--r-lg);
}
.qcard__flag {
  margin: 0; background: var(--brand); color: #fff; font: 800 11px var(--ui);
  text-transform: uppercase; letter-spacing: .8px; padding: 4px 13px; border-radius: var(--pill);
}
.qcard__text { margin: 0; font: 700 16.5px/1.45 var(--ui); }
.qcard__text a { color: #fff; }
.qcard__text a:hover { color: #fff; }
.qcard__marks { font: 700 44px/0.6 Georgia, serif; color: #6d8fd8; }
.qcard__author { margin: 0; font: 700 13.5px var(--ui); color: #dfe2e7; }
.qcard__meta { margin-top: auto; display: flex; gap: 12px; padding-top: 8px; color: var(--on-dark-muted); font-size: 12px; }

/* Вертикальная карточка: фото сверху, метка тэга и заголовок под ним. */
.pcard {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: box-shadow .18s, transform .18s;
}
.pcard:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.pcard__media { border-radius: 0; }
.pcard__body { display: flex; flex-direction: column; gap: 7px; padding: 13px 15px 14px; flex: 1; }
.pcard__body .tag-mark, .wcard__body .tag-mark, .qcard .tag-mark { position: relative; z-index: 1; }
.pcard__title { font-size: 16px; margin: 0; }
.pcard__body .metrics { margin-top: auto; }

.feed-note { margin: 0 0 12px; padding: 10px 14px; background: var(--brand-soft); border-radius: var(--r-md); font-size: 13px; color: var(--brand-dark); }

/* =========================================================================
   Афиша
   ========================================================================= */

.aff-day { margin-bottom: 22px; }
/* «Сегодня в кино»: по кинотеатрам, сеансы-плашки кликабельны */
.aff-cinema .aff-cinema__place { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.aff-cinema .aff-cinema__place:last-of-type { border-bottom: 0; }
.aff-cinema__place h3 { margin: 0 0 9px; font-size: 15px; }
.aff-cinema__times { display: flex; flex-wrap: wrap; gap: 7px; }
.aff-cinema__time {
  display: inline-block; padding: 5px 11px;
  background: var(--bg); border-radius: var(--r-sm);
  font: 700 13px var(--ui); font-variant-numeric: tabular-nums;
}
.aff-cinema__time:hover { background: var(--brand); color: #fff; }
.aff-cinema .weather__note { margin: 10px 0 0; }
.aff-day__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 7px; }
.aff-day__head h2 { font-size: 19px; margin: 0; }
.aff-day__head span { color: var(--muted); font-size: 12.5px; }
.aff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.aff-empty { margin: 0; padding: 18px 20px; background: #fff; border: 1px dashed var(--line); border-radius: var(--r); color: var(--ink-2); font-size: 14px; }
.aff-empty a { color: var(--brand); font-weight: 600; }
.aff-card { display: flex; flex-direction: column; gap: 7px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
/* Карточка фильма: постер слева небольшой плашкой, текст справа. */
.aff-card--film { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 14px; }
.aff-card__poster {
  display: block; width: 92px; aspect-ratio: 3 / 4; border-radius: var(--r-md);
  background: var(--surface-2) center/cover no-repeat; overflow: hidden;
}
.aff-card__poster img { width: 100%; height: 100%; object-fit: cover; }
.aff-card__main { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.aff-card__links { display: flex; align-items: center; gap: 12px; margin-top: 2px; flex-wrap: wrap; }
.aff-card__discuss { font: 700 13px var(--ui); color: var(--brand); white-space: nowrap; }
.aff-card__discuss i { font-style: normal; }
.aff-card__discuss:hover { color: var(--brand-dark); }
.aff-card__tickets {
  font: 600 12.5px var(--ui); color: var(--ink-2); white-space: nowrap;
  border: 1.5px solid var(--line); border-radius: var(--pill); padding: 3px 11px;
}
.aff-card__tickets:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 640px) {
  .aff-card--film { grid-template-columns: 72px 1fr; gap: 12px; }
  .aff-card__poster { width: 72px; }
}
.aff-card__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.aff-card__kind { font: 700 11px var(--ui); text-transform: uppercase; letter-spacing: .5px; color: var(--brand); }
.aff-card__price { font: 700 13px var(--ui); color: var(--green); }
.aff-card h3 { font-size: 16.5px; margin: 2px 0 0; }
.aff-card p { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.aff-card__where { color: var(--muted); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 4px 12px; }

/* «Популярное»: плитки-постеры, обложка цельной картинкой. */
.aff-popular__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.aff-pop-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r); background: var(--card-bg); border: 1px solid var(--line);
  aspect-ratio: 3 / 4; transition: box-shadow .18s, transform .18s;
}
.aff-pop-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); color: inherit; }
.aff-pop-card__poster {
  flex: 1; display: block; background: var(--surface-2) center/cover no-repeat;
}
/* Заглушка только для фильма без постера — и только на ней: иначе она
   накрывает фоновую картинку у всех остальных. */
.aff-pop-card__poster--empty::before {
  content: ''; display: block; height: 100%;
  background: linear-gradient(150deg, var(--surface-2), var(--brand-soft));
}
.aff-pop-card__body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: flex; flex-direction: column; gap: 2px; padding: 26px 12px 10px;
  background: linear-gradient(180deg, rgba(12, 13, 17, 0), rgba(12, 13, 17, .82) 55%);
  color: #fff;
}
.aff-pop-card__body b { font: 700 13.5px/1.3 var(--ui); }
.aff-pop-card__body i { font: 600 11px var(--ui); font-style: normal; color: rgba(255, 255, 255, .75); }

/* Страница фильма: постер-баннер слева, расписание справа. */
.aff-film { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start; }
.aff-film__poster {
  display: block; width: 100%; aspect-ratio: 3 / 4; border-radius: var(--r-md);
  background: var(--surface-2) center/cover no-repeat;
}
.aff-film__poster img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-md); }
.aff-film__schedule .aff-day__head { align-items: center; }
@media (max-width: 640px) {
  .aff-film { grid-template-columns: 1fr; }
  .aff-film__poster { width: 150px; }
}

/* =========================================================================
   Сториз: топ недели плитками и полноэкранный просмотр
   ========================================================================= */

/* Плитки: маленький квадрат (вдвое ниже прежнего — это не витрина, а
   намёк «здесь истории») с заметно скруглёнными углами и градиентной синей
   окантовкой. Никаких подписей — окантовка и фото сами говорят «нажми». */
.stories-block { margin: 0 0 14px; }
.stories-strip { display: flex; gap: 10px; }
.story {
  position: relative; flex: 1 1 0; max-width: 76px; aspect-ratio: 1 / 1;
  padding: 0; border: 0; border-radius: 13px; background: var(--surface-2);
  overflow: hidden; cursor: pointer;
}
.story::before {
  content: ''; position: absolute; inset: 0; z-index: 2; border-radius: 13px;
  padding: 2.5px; pointer-events: none;
  background: linear-gradient(140deg, #8db4f5 0%, var(--brand) 48%, var(--brand-dark) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  transition: filter .18s;
}
.story:hover::before { filter: brightness(1.18) saturate(1.1); }
.story:hover { box-shadow: 0 6px 18px rgba(58, 95, 170, .28); }
.story:focus-visible { outline: 2px solid var(--brand-dark); outline-offset: 3px; }
.story__media { position: absolute; inset: 0; display: block; }
.story__media .pic { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.story:hover .pic { transform: scale(1.05); }
/* У истории не нашлось фотографии — плитка остаётся градиентной. */
.story--empty .story__media {
  background: linear-gradient(140deg, #8db4f5 0%, var(--brand) 48%, var(--brand-dark) 100%);
}
.story--empty .story__media::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .25), transparent 55%);
}
@media (max-width: 560px) {
  .stories-strip { gap: 7px; }
  .story { max-width: 64px; border-radius: 11px; }
  .story::before { border-radius: 11px; padding: 2px; }
}

/* Просмотрщик: затемнённый фон, карточка во весь экран с фото сверху. */
body.has-viewer { overflow: hidden; }
.stories-viewer {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
}
.stories-viewer__backdrop { position: absolute; inset: 0; background: rgba(9, 11, 15, .8); }
.stories-viewer__card {
  position: relative; z-index: 1;
  width: min(540px, 100%); height: min(94vh, 900px);
  display: flex; flex-direction: column;
  background: var(--paper); border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.stories-viewer__segments {
  position: absolute; top: 10px; left: 12px; right: 56px; z-index: 4;
  display: flex; gap: 5px;
}
.stories-viewer__segment {
  flex: 1; height: 3px; padding: 0; border: 0; border-radius: 2px;
  background: rgba(255, 255, 255, .38); cursor: pointer;
}
.stories-viewer__segment.is-active { background: #fff; }
.stories-viewer__close {
  position: absolute; top: 12px; right: 10px; z-index: 5;
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(16, 18, 22, .5); color: #fff; cursor: pointer;
}
.stories-viewer__close:hover { background: var(--brand); }
.stories-viewer__scroll {
  overflow-y: auto; height: 100%;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  scrollbar-width: none;
}
.stories-viewer__scroll::-webkit-scrollbar { display: none; }
.stories-viewer__figure {
  position: relative; margin: 0; aspect-ratio: 16 / 10;
  background: var(--surface-2);
}
.stories-viewer__figure img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.stories-viewer__body { padding: 18px 20px 30px; }
.stories-viewer__title { font: 700 21px/1.3 var(--ui); letter-spacing: -.3px; margin: 0 0 8px; }
.stories-viewer__title a:hover { color: var(--brand); }
.stories-viewer__lead { font: 500 15.5px/1.5 var(--ui); color: var(--ink-2); margin: 0 0 14px; }
.stories-viewer__text { font: 400 16.5px/1.65 var(--serif); color: #21252c; }
.stories-viewer__text p { margin: 0 0 14px; }
.stories-viewer__text h2, .stories-viewer__text h3 { font-family: var(--ui); margin: 20px 0 10px; }
.stories-viewer__text a { color: var(--blue); text-decoration: underline; }
.stories-viewer__arrow {
  position: absolute; z-index: 4; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(16, 18, 22, .5); color: #fff; cursor: pointer;
  transition: background .15s;
}
.stories-viewer__arrow:hover { background: var(--brand); }
.stories-viewer__arrow--prev { left: 10px; }
.stories-viewer__arrow--next { right: 10px; }
.stories-viewer__arrow[hidden] { display: none; }
@media (max-width: 640px) {
  .stories-viewer { align-items: stretch; }
  .stories-viewer__card { width: 100%; height: 100%; border-radius: 0; }
  .stories-viewer__arrow { width: 40px; height: 40px; }
}

/* =========================================================================
   Реклама
   ========================================================================= */

/* =========================================================================
   Подвал
   ========================================================================= */

.site-footer { background: var(--dark); color: #aeb4bf; margin-top: 34px; font-size: 14px; }
.site-footer__in {
  display: grid; grid-template-columns: 1.7fr repeat(4, 1fr) 1.1fr; gap: 26px;
  padding-top: 40px; padding-bottom: 30px;
  /* Все колонки, включая длинную «Читателям», начинаются от верхней кромки —
     иначе длинная съезжает вверх относительно коротких соседей. */
  align-items: start;
}
.site-footer h4 { color: #fff; font: 700 12.5px var(--ui); text-transform: uppercase; letter-spacing: .8px; margin: 0 0 13px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: #aeb4bf; }
.site-footer a:hover { color: #fff; }
.site-footer__phones b { color: #fff; }
.site-footer__bottom {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding-top: 15px; padding-bottom: 22px; border-top: 1px solid var(--dark-2);
  font-size: 12.5px; color: var(--on-dark-muted);
}
.site-footer .logo__word { color: #fff; }
.site-footer .logo__sub { color: var(--on-dark-muted); }
.logo--footer .logo__mark { width: 36px; height: 36px; }
.logo--footer .logo__word { font-size: 21px; }

@media (max-width: 1100px) { .site-footer__in { grid-template-columns: 1fr 1fr 1fr; align-items: start; } }
@media (max-width: 700px) { .site-footer__in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .site-footer__in { grid-template-columns: 1fr; } }

/* =========================================================================
   Плашка cookie и кнопка «наверх»
   ========================================================================= */

.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  max-width: 720px; margin: 0 auto; padding: 13px 17px;
  background: var(--dark); color: #dfe2e7; border-radius: var(--r);
  box-shadow: var(--shadow-hover); font-size: 13px;
}
.cookie-bar__text { margin: 0; flex: 1; min-width: 220px; }
.cookie-bar a { color: #fff; text-decoration: underline; }
.cookie-bar__ok { border: 0; background: var(--brand); color: #fff; padding: 8px 18px; border-radius: var(--r-md); font: 700 13px var(--ui); }
.cookie-bar__ok:hover { background: var(--brand-dark); }

.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 70;
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--dark); color: #fff; box-shadow: var(--shadow-hover);
}
.to-top:hover { background: var(--brand); }

.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--dark); color: #fff; padding: 11px 20px; border-radius: var(--r-md);
  font-size: 14px; opacity: 0; transition: all .25s; z-index: 100; pointer-events: none;
  box-shadow: var(--shadow-hover);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =========================================================================
   Материал
   ========================================================================= */

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--gap); align-items: start; }
.article-layout > * { min-width: 0; }
@media (max-width: 1000px) { .article-layout { grid-template-columns: minmax(0, 1fr); } }

.article { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(16px, 3.5vw, 38px); }
.article__head .kicker { margin-bottom: 10px; }
.article__title { font-size: clamp(23px, 3vw, 32px); margin: 0 0 14px; letter-spacing: -.5px; }
.article__lead { font: 500 17px/1.55 var(--ui); color: var(--ink-2); margin: 0 0 18px; }
.article__figure { margin: 0 0 20px; }
.article__figure .pic { border-radius: var(--r-md); }
.article__caption { margin: 7px 0 0; color: var(--muted); font-size: 12.5px; }
.article__figure--inline { margin: 22px 0; }

.article__meta {
  display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap;
  padding: 11px 0; margin-bottom: 20px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 12.5px;
}
.article__meta b { color: var(--ink-2); }
/* Сохранить и поделиться — иконки; у «поделиться» при наведении или
   нажатии раскрывается полоса вариантов (ссылка, соцсети, мессенджеры). */
.article-actions { display: inline-flex; gap: 8px; margin-left: auto; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border: 0; border-radius: var(--r-md); background: var(--surface);
  color: var(--ink-2); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--brand); }
.icon-btn.is-on { color: var(--brand); background: var(--brand-soft); }
.share-wrap { position: relative; display: inline-flex; }
.share-pop {
  position: absolute; right: 0; bottom: calc(100% + 10px); z-index: 30;
  display: none; gap: 6px; padding: 9px;
  background: var(--paper); border-radius: var(--pill); box-shadow: var(--shadow-hover);
  white-space: nowrap;
}
.share-pop__btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  border: 0; border-radius: 50%; background: var(--surface);
  color: var(--ink-2); font: 700 11.5px var(--ui); text-decoration: none; cursor: pointer;
}
.share-pop__btn:hover { background: var(--brand); color: #fff; }
.share-wrap.is-open .share-pop { display: flex; }
@media (hover: hover) {
  .share-wrap:hover .share-pop { display: flex; }
}

/* «По теме» после текста материала: ссылка и дата под ней. */
.related { margin: 26px 0 4px; }
.related__head {
  margin: 0 0 12px; font: 800 15px var(--ui); letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink);
}
.related__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.related__list li { display: grid; gap: 3px; }
.related__list a {
  font: 600 15px/1.4 var(--ui); color: var(--brand); text-decoration: none;
}
.related__list a:hover { text-decoration: underline; }
.related__list time { font-size: 12.5px; color: var(--muted); }

.article__body { font-family: var(--serif); font-size: 17.5px; line-height: 1.7; color: #21252c; }
.article__body p { margin: 0 0 16px; }
.article__body h2 { font-family: var(--ui); font-size: 21px; margin: 28px 0 12px; }
.article__body h3 { font-family: var(--ui); font-size: 18px; margin: 24px 0 10px; }
.article__body ul, .article__body ol { margin: 0 0 18px; padding-left: 22px; }
.article__body li { margin-bottom: 8px; }
.article__body a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.article__body a:hover { color: var(--brand); }
.article__body blockquote {
  margin: 22px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brand);
  font: 600 19px/1.5 var(--ui); color: var(--ink);
}
.article__body blockquote footer { margin-top: 10px; font: 700 12.5px var(--ui); color: var(--muted); }

.article__source { margin: 22px 0 0; padding: 12px 15px; background: var(--bg); border-radius: var(--r-md); font-size: 13px; color: var(--ink-2); }
.article__source a { color: var(--brand-dark); font-weight: 600; }
.article__tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 22px; }
.article__tags > span { color: var(--muted); font-size: 12.5px; }

.aside-rail { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--nav-h) + 14px); }
@media (max-width: 1000px) { .aside-rail { position: static; } }
.aside-box { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--r); padding: 15px 17px; }
.aside-box__head { font: 700 14px var(--ui); text-transform: uppercase; letter-spacing: .7px; margin: 0 0 12px; padding-bottom: 7px; border-bottom: 2px solid var(--brand); }

/* Реакции */
.reactions { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.reactions__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.reactions__title { font-size: 17px; margin: 0; }
.reactions__total { color: var(--muted); font-size: 12.5px; }
.reactions__bar { display: flex; gap: 8px; flex-wrap: wrap; }
.react {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px;
  border: 1.5px solid var(--line); background: #fff; border-radius: var(--pill); font: 700 13px var(--ui);
}
.react:hover { border-color: var(--brand); }
.react.is-mine { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); }
.react__emoji { font-size: 15px; }

/* Комментарии — по мотивам крупных порталов: серые карточки, бейдж со
   счётом, лайки-пилюли, форма одной коробкой. */
.comments { margin-top: 30px; }
.comments__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.comments__title { display: inline-flex; align-items: center; gap: 10px; margin: 0; font: 800 17px var(--ui); letter-spacing: .05em; text-transform: uppercase; }
.comments__badge {
  display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 8px;
  border-radius: var(--pill); background: var(--brand); color: #fff; font: 700 12.5px var(--ui);
}
.comments__arrow { color: var(--muted); font: 700 24px/1 var(--ui); }
.comments__note { color: var(--muted); font-size: 12.5px; margin: 0 0 8px; }

.comment-list { display: grid; gap: 10px; }
.comment {
  display: grid; grid-template-columns: 38px 1fr; gap: 10px;
  padding: 13px 15px; border-radius: var(--r-md); background: var(--surface);
  align-items: start;
}
.comment__avatar {
  width: 38px; height: 38px; border-radius: 50%; background: #dde1e8; color: var(--ink-2);
  display: grid; place-items: center; font: 700 15px var(--ui);
}
.comment__avatar--sm { width: 34px; height: 34px; font-size: 13px; }
.comment__main { min-width: 0; }
.comment__head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.comment__name { font: 700 13.5px var(--ui); color: var(--ink); }
.comment__time { color: var(--muted); font-size: 12px; }
.comment__badge { background: var(--brand-soft); color: var(--brand-dark); font: 700 11px var(--ui); padding: 1px 7px; border-radius: var(--pill); }
.comment__text { margin: 4px 0 0; white-space: pre-wrap; line-height: 1.5; }
.comment__text.is-clamped {
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
  cursor: pointer;
}
.comment__actions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; margin-top: 8px; }
.comment__like {
  border: 1px solid var(--line); background: var(--paper); border-radius: var(--pill);
  padding: 3px 12px; font: 700 12.5px var(--ui); color: var(--muted); cursor: pointer;
}
.comment__like:hover { border-color: var(--brand); color: var(--brand); }
.comment__like.is-active { color: var(--green); border-color: var(--green); background: #e7f4ec; }
.comment__action { border: 0; background: none; padding: 0; color: var(--muted); font-size: 12.5px; cursor: pointer; }
.comment__action:hover { color: var(--brand); }
.comment__replies {
  grid-column: 1 / -1; display: grid; gap: 10px; margin-top: 4px;
  padding-left: 14px; border-left: 2px solid var(--line);
}
.comment__replies:empty { display: none; }
.comment.is-extra { display: none; }

.comments__more {
  width: 100%; margin-top: 12px; padding: 12px; border: 0; border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--brand); color: #fff; font: 700 14px var(--ui); cursor: pointer;
}
.comments__more:hover { background: var(--brand-dark); }

/* Форма одной коробкой: поле сверху, под ним — кто пишет и кнопки. */
.comment-form {
  margin-top: 14px; padding: 4px 14px 12px;
  border: 1.5px solid var(--line); border-radius: var(--r); background: var(--paper);
}
.comment-form textarea {
  width: 100%; border: 0; padding: 12px 2px 8px; min-height: 42px; resize: vertical;
  outline: none; font: 15px/1.5 var(--ui); background: transparent; color: var(--ink);
}
.comment-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.comment-form__id { display: inline-flex; align-items: center; gap: 9px; }
.comment-form__who { display: grid; line-height: 1.3; }
.comment-form__who b { font: 700 13px var(--ui); color: var(--ink); }
.comment-form__who a { font-size: 12px; color: var(--brand-dark); text-decoration: none; }
.comment-form__who a:hover { text-decoration: underline; }
.comment-form__tools { display: inline-flex; align-items: center; gap: 12px; margin-left: auto; }
.comment-form__info {
  display: grid; place-items: center; width: 26px; height: 26px;
  border: 1.5px solid var(--line); border-radius: 50%;
  font: 700 13px var(--ui); font-style: normal; color: var(--muted); text-decoration: none;
}
.comment-form__info:hover { color: var(--brand); border-color: var(--brand); }
.comment-form__send { background: var(--brand); color: #fff; border: 0; border-radius: var(--pill); padding: 8px 18px; font: 700 13.5px var(--ui); cursor: pointer; }
.comment-form__send:hover { background: var(--brand-dark); }
.form-error { color: var(--red-dark); font-size: 13px; margin: 8px 0 0; }
.comments__empty { color: var(--muted); }

/* Личный кабинет: две карточки — вход и регистрация, у вошедшего профиль. */
.kabinet-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.kabinet-card {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 22px; box-shadow: var(--shadow);
}
.kabinet-card h2 { font-size: 19px; margin: 0 0 12px; }
.kabinet-card form { display: flex; flex-direction: column; gap: 11px; align-items: flex-start; }
.kabinet-card label { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.kabinet-card label span { font: 600 12.5px var(--ui); color: var(--ink-soft); }
.kabinet-card input {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: 10px 13px; outline: none; background: #fff;
}
.kabinet-card input:focus { border-color: var(--brand); }
.kabinet-note { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.kabinet__error { margin-top: 14px; }
.kabinet-card--profile { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.kabinet-card--profile form { margin-left: auto; }
.kabinet-avatar {
  display: grid; place-items: center; width: 64px; height: 64px; flex-shrink: 0;
  border-radius: 50%; background: var(--brand); color: #fff; font: 800 28px var(--ui);
}
.kabinet-profile__body { flex: 1; min-width: 220px; }
.kabinet-profile__body .kabinet-note b { color: var(--ink); }

/* =========================================================================
   Инфостраницы (/info/…): документы редакции, «Город в цифрах», администрация
   ========================================================================= */

.doc { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 3vw, 34px); }
.doc h2 { font-size: 21px; margin: 26px 0 12px; }
.doc h2:first-child { margin-top: 0; }
.doc p { margin: 0 0 14px; line-height: 1.65; }
.doc ul, .doc ol { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin-bottom: 7px; line-height: 1.6; }
.doc a { color: var(--brand); }
.doc a:hover { color: var(--brand-dark); }

/* Карточки-врезки: принципы, сравнение городов */
.doc__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 0 0 16px; }
.doc__cards > div { background: var(--bg); border-radius: var(--r-md); padding: 14px 16px; }
.doc__cards strong { display: block; font: 700 15px var(--ui); margin-bottom: 5px; }
.doc__cards p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }

/* Примечание-методология */
.doc__note { background: var(--brand-soft); border-radius: var(--r-md); padding: 13px 16px; margin: 0 0 16px; }
.doc__note h3 { font: 700 12px var(--ui); text-transform: uppercase; letter-spacing: .6px; color: var(--brand-dark); margin: 0 0 4px; }
.doc__note p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.55; }

/* Крупные цифры: главные показатели города одной плиткой */
.doc__stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin: 0 0 16px; }
.doc__stat {
  display: flex; flex-direction: column; gap: 3px;
  background: var(--dark); color: #fff; border-radius: var(--r-md); padding: 15px 17px;
}
.doc__stat b { font: 800 27px/1.1 var(--ui); letter-spacing: -.02em; }
.doc__stat span { font: 600 13px var(--ui); color: #dfe2e7; }
.doc__stat small { font-size: 11px; color: var(--on-dark-muted); line-height: 1.4; }

/* Контакты: адрес, телефон, сайт — каждая запись своей карточкой */
.doc__contacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 0 0 16px; }
.doc__contacts > div { background: var(--bg); border-radius: var(--r-md); padding: 14px 16px; }
.doc__contacts .kicker { margin: 0 0 5px; }
.doc__contacts a { font: 700 15.5px var(--ui); color: var(--brand-dark); }
.doc__contacts strong { font: 700 15px/1.45 var(--ui); }
.doc__contacts p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* Таблица данных: тёмная шапка, зебра, горизонтальная прокрутка */
.doc__scroll { overflow-x: auto; border-radius: var(--r-md); margin: 0 0 16px; border: 1px solid var(--line); }
.doc__table { width: 100%; border-collapse: collapse; font: 14.5px var(--ui); background: #fff; }
.doc__table th {
  background: var(--dark); color: #fff; font-weight: 700; font-size: 12.5px;
  text-transform: uppercase; letter-spacing: .5px; text-align: left;
  padding: 11px 15px; white-space: nowrap;
}
.doc__table td { padding: 10px 15px; border-top: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
.doc__table tbody tr:nth-child(even) td { background: #fafafb; }
.doc__table tbody tr:hover td { background: var(--brand-soft); }
.doc__table td:first-child { font-weight: 700; }

/* =========================================================================
   Печать
   ========================================================================= */

@media print {
  .topbar, .mainnav, .search, .site-footer, .sidebar, .aside-rail,
  .to-top, .cookie-bar, .reactions, .comment-form, .city-menu, .read-progress { display: none !important; }
  body { background: #fff; }
  .article { border: 0; padding: 0; }
  .layout-main, .article-layout { grid-template-columns: 1fr; }
}
/* =========================================================================
   Содержание и интерактивные блоки внутри материала

   Правило то же, что и во всём оформлении: границу задаёт форма и подложка,
   а не линейка. Плашка — скруглённый прямоугольник со светлым фоном и
   цветной полосой слева; цвет полосы и есть вся разница между видами.
   ========================================================================= */

/* --- Содержание справа от текста --- */

.toc {
  padding: 18px 20px; background: var(--surface); border-radius: var(--r);
}
.toc__head {
  margin: 0 0 12px; font: 800 12px var(--ui); letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted);
}
.toc__list { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc__item { margin: 0; }
.toc__item a {
  display: block; padding: 6px 0 6px 14px; font: 600 14px/1.4 var(--ui);
  color: var(--ink-soft); text-decoration: none; border-left: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.toc__item a:hover { color: var(--brand); }
.toc__item--h3 a { padding-left: 26px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.toc__item.is-current a { color: var(--brand); border-left-color: var(--brand); }

/* Содержание живёт в плавающей панели: кнопка справа снизу всегда под
   рукой, список раскрывается над ней — на любой ширине экрана. */
.toc-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; display: inline-flex;
  align-items: center; gap: 8px; padding: 11px 16px; border: 0;
  border-radius: var(--pill); background: var(--ink); color: #fff;
  font: 800 13px var(--ui); box-shadow: 0 10px 30px rgba(0, 0, 0, .22); cursor: pointer;
}
.toc-fab:hover { background: var(--brand); }
.toc-sheet {
  display: none; position: fixed; right: 18px; bottom: 66px; z-index: 40;
  width: min(360px, calc(100vw - 36px)); max-height: min(62vh, 520px); overflow: auto;
  padding: 10px 6px; background: var(--paper); border-radius: var(--r);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}
.toc-sheet .toc { background: transparent; }

/* --- Общее для интерактивных блоков --- */

.ib {
  margin: 28px 0; padding: 20px 22px; border-radius: var(--r);
  background: var(--surface); font-family: var(--ui); font-size: 16px; line-height: 1.6;
}
.ib__head {
  display: flex; align-items: center; gap: 9px; margin: 0 0 10px;
  font: 800 15px var(--ui); letter-spacing: -.01em; color: var(--ink);
}
.ib__icon { display: inline-flex; flex: 0 0 auto; }
.ib__body > p { margin: 0 0 10px; }
.ib__body > p:last-child { margin-bottom: 0; }
.ib a { color: var(--brand); }

/* --- Плашка: важно / инфо / совет / внимание --- */

.ib--note { border-left: 4px solid var(--accent-tone, var(--muted)); }
.ib--note .ib__head { color: var(--accent-tone, var(--ink)); }
.ib--info { --accent-tone: #2563eb; background: #eef3ff; }
.ib--warn { --accent-tone: #b45309; background: #fdf5e7; }
.ib--tip { --accent-tone: #15803d; background: #edf8f0; }
.ib--alert { --accent-tone: var(--red); background: #fdeced; }

/* --- Крупная цифра --- */

.ib--fact {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 20px;
  background: var(--dark); color: var(--on-dark);
}
.ib__value {
  margin: 0; font: 800 clamp(30px, 6vw, 44px)/1 var(--ui);
  letter-spacing: -.03em; color: #fff; white-space: nowrap;
}
.ib--fact .ib__body { font-size: 15px; color: var(--on-dark-muted); }
.ib--fact a { color: #fff; }

/* --- Коротко о главном --- */

.ib--summary { border-left: 4px solid var(--brand); }
.ib__list { margin: 0; padding-left: 20px; }
.ib__list li { margin-bottom: 8px; }
.ib__list li:last-child { margin-bottom: 0; }

/* --- Шаги --- */

.ib__steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.ib__steps li {
  display: grid; grid-template-columns: 26px 1fr; gap: 12px;
  margin-bottom: 12px; counter-increment: step;
}
.ib__steps li:last-child { margin-bottom: 0; }
.ib__steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: #fff; font: 800 13px var(--ui);
}

/* --- Вопрос-ответ: работает без единой строки скрипта --- */

.ib--faq { padding: 8px 22px; }
.ib__q { border-bottom: 1px solid var(--line); }
.ib__q:last-child { border-bottom: 0; }
.ib__q summary {
  padding: 14px 26px 14px 0; font: 700 15.5px var(--ui); color: var(--ink);
  cursor: pointer; list-style: none; position: relative;
}
.ib__q summary::-webkit-details-marker { display: none; }
.ib__q summary::after {
  content: ''; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px;
  margin-top: -6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .18s;
}
.ib__q[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.ib__q summary:hover { color: var(--brand); }
.ib__a { padding: 0 0 14px; font-size: 15.5px; color: var(--ink-soft); }
.ib__a p { margin: 0 0 8px; }

/* --- Таблица: едет вбок сама, не утаскивая страницу --- */

.ib--table { margin: 28px 0; padding: 0; background: transparent; }
.ib--table .ib__head { margin: 0 0 10px; }
.ib__scroll { overflow-x: auto; border-radius: var(--r); background: var(--surface); }
.ib--table table { width: 100%; border-collapse: collapse; font: 15px var(--ui); }
.ib--table th, .ib--table td { padding: 12px 16px; text-align: left; white-space: nowrap; }
.ib--table th { background: var(--dark); color: #fff; font-weight: 800; font-size: 13px; }
.ib--table tbody tr + tr td { border-top: 1px solid var(--line); }

/* --- Хронология --- */

.ib__line { margin: 0; padding: 0 0 0 22px; list-style: none; border-left: 2px solid var(--line); }
.ib__point { position: relative; padding: 0 0 18px 6px; }
.ib__point:last-child { padding-bottom: 0; }
.ib__point::before {
  content: ''; position: absolute; left: -29px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--surface);
}
.ib__when { display: block; font: 800 12.5px var(--ui); letter-spacing: .04em; color: var(--brand); }
.ib__what { display: block; margin-top: 2px; }

/* --- Врезка: на широком экране уходит на поля --- */

.ib--aside {
  background: transparent; border-left: 3px solid var(--brand); border-radius: 0;
  padding: 4px 0 4px 20px; font: 600 19px/1.45 var(--ui); letter-spacing: -.015em;
}
.ib--aside .ib__head { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* --- Галерея --- */

.ib--gallery { padding: 0; background: transparent; }
.ib__shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.ib__shot { margin: 0; }
.ib__shot img { width: 100%; border-radius: var(--r-md); }
.ib__shot figcaption { margin-top: 6px; font: 13px var(--ui); color: var(--muted); }

/* --- Оформление внутри строки --- */

.article__body mark { padding: 0 3px; background: #fff2a8; border-radius: 3px; }
.article__body code {
  padding: 1px 6px; border-radius: 5px; background: var(--surface-2);
  font: 15px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.article__body h3 { margin: 28px 0 12px; font-family: var(--ui); font-size: 19px; line-height: 1.3; letter-spacing: -.02em; }
.note-inline { font-size: .86em; color: var(--muted); }

@media (max-width: 720px) {
  .ib { padding: 16px 18px; }
  .ib--fact { grid-template-columns: 1fr; gap: 8px; }
  .ib--aside { font-size: 17px; }
}

@media print {
  .toc, .toc-fab, .toc-sheet { display: none !important; }
  .ib { break-inside: avoid; }
}

/* =========================================================================
   Сетка городов и регионов

   Плиток на странице — до трёхсот. Значит: никакой тени на каждой, никакой
   картинки, один цвет фона и одна граница на всю сетку. Живые города (те, у
   которых уже есть материалы) отличаются только акцентом слева — этого
   достаточно, чтобы взгляд цеплялся за них первым.
   ========================================================================= */

.geo-grid {
  display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.geo-tile {
  display: grid; gap: 2px; padding: 12px 14px;
  background: var(--surface); border-radius: var(--r-md);
  border-left: 3px solid transparent;
  color: var(--ink); text-decoration: none;
  transition: background .15s, border-color .15s;
}
.geo-tile:hover { background: var(--surface-2); border-left-color: var(--ink); }
.geo-tile--live { border-left-color: var(--brand); }
.geo-tile__name { font: 700 15px var(--ui); letter-spacing: -.015em; }
.geo-tile__meta { font: 13px var(--ui); color: var(--muted); }
.geo-tile__num { font: 600 12.5px var(--ui); color: var(--faint); }
.geo-tile--live .geo-tile__num { color: var(--brand); }

.geo-alphabet { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; }
.geo-alphabet__item {
  min-width: 32px; padding: 6px 9px; text-align: center;
  background: var(--surface); border-radius: var(--r-sm);
  font: 700 13px var(--ui); color: var(--ink-soft); text-decoration: none;
}
.geo-alphabet__item:hover { background: var(--surface-2); }
.geo-alphabet__item.is-on { background: var(--ink); color: #fff; }

@media (max-width: 640px) {
  .geo-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .geo-tile { padding: 10px 12px; }
  .geo-tile__name { font-size: 14px; }
}

/* =========================================================================
   Экран загрузки
   ========================================================================= */

/* Ложится поверх страницы в момент, когда содержимого ещё не видно, и гаснет
   из app.js. Всё внутри — только фон, градиент и transform: анимация не
   трогает компоновку и не мешает первой отрисовке настоящей страницы. */
.boot { position: fixed; inset: 0; z-index: 300; background: var(--bg); }
/* Страховка: клиентский скрипт не дошёл (сбой сети, старый браузер) — экран
   гаснет сам через семь секунд, страница никогда не остаётся закрытой. */
.boot:not([hidden]) { animation: boot-autoclear 1ms linear 7s forwards; }
@keyframes boot-autoclear { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.boot.is-done { opacity: 0; transition: opacity .28s ease; pointer-events: none; }
.boot__frame { position: absolute; inset: 0; overflow: hidden; padding-top: 20px; }
.boot__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
.boot__col { display: grid; gap: 12px; align-content: start; }
.boot__col--side { gap: 16px; }
.boot__line { height: 22px; width: 38%; }
.boot__hero { height: 280px; }
.boot__row { height: 62px; }
.boot__widget { height: 150px; }
.skel {
  display: block; border-radius: var(--r-lg);
  background: linear-gradient(100deg, #e7e9ee 40%, #f4f5f7 50%, #e7e9ee 60%);
  background-size: 200% 100%;
  animation: boot-shimmer 1.3s linear infinite;
}
@keyframes boot-shimmer { to { background-position: -200% 0; } }
.boot__spinner {
  position: absolute; top: 50%; left: 50%; margin: -23px 0 0 -23px;
  width: 46px; height: 46px; border-radius: 50%;
  border: 3px solid #d8dce2; border-top-color: var(--brand);
  animation: boot-spin .75s linear infinite;
}
@keyframes boot-spin { to { transform: rotate(360deg); } }
@media (max-width: 1000px) {
  .boot__grid { grid-template-columns: minmax(0, 1fr); }
  .boot__col--side { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .skel { animation: none; }
  .boot.is-done { transition: none; }
}
