/* =====================================================================
   NewsAsia.kz — дизайн-система и стили шаблонов
   ---------------------------------------------------------------------
   01. Токены (цвета, шрифты, радиусы) + тёмная тема
   02. База и типографика
   03. Сетки и утилиты
   04. Иконки, кнопки, чипы, бейджи, аватары
   05. Шапка: топбар, хедер, навигация, мегаменю, бегущая строка
   06. Плейсхолдеры изображений и карточки материалов
   07. Лента, виджеты, вкладки, рекламные места
   08. Заголовки страниц, хлебные крошки, пагинация
   09. Статья: шапка, текст, врезки, теги, автор, комментарии
   10. Главная
   11. Колонка, лонгрид, онлайн-трансляция
   12. Фото, видео, сюжет, регион, автор
   13. Поиск, архив, формы
   14. О редакции, реклама, подписка, документы, 404
   15. Подвал
   16. Оверлеи: поиск, cookie, тост, «наверх», панель шаблонов
   ===================================================================== */

/* ---------- 01. Токены ---------- */
:root {
  --c-bg: #ffffff;
  --c-bg-soft: #f3f6f9;
  --c-bg-muted: #e6ebf0;
  --c-surface: #ffffff;
  --c-ink: #0f1d2c;
  --c-ink-2: #3b4a5b;
  --c-ink-3: #66768a;
  --c-line: #e1e7ed;

  --c-brand: #00a6c8;        /* бирюза флага РК — декоративные акценты */
  --c-brand-600: #007c99;    /* фон кнопок (контраст с белым ≥ 4.5) */
  --c-brand-ink: #006d87;    /* ссылки и акцентный текст */
  --c-brand-soft: #e3f6fa;
  --c-gold: #f5b800;         /* золото солнца — CTA и выделения */
  --c-gold-soft: #fff6d9;
  --c-red: #d62839;          /* срочно / live */
  --c-green: #15803d;

  --c-head: #0a2540;         /* хедер */
  --c-top: #071a2e;          /* топбар и подвал */

  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-text: "Literata", Georgia, "Times New Roman", serif;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(15 29 44 / .06), 0 8px 24px rgb(15 29 44 / .08);
  --container: 1280px;
  --sticky-top: 64px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --c-bg: #0b131d;
  --c-bg-soft: #121d2a;
  --c-bg-muted: #1a2838;
  --c-surface: #101a26;
  --c-ink: #e6edf4;
  --c-ink-2: #b4c1ce;
  --c-ink-3: #8a9aab;
  --c-line: #213042;
  --c-brand-ink: #4fd3ec;
  --c-brand-soft: #0e2f3a;
  --c-gold-soft: #2f2610;
  --c-head: #08192b;
  --c-top: #050f1a;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .35);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-bg: #0b131d;
    --c-bg-soft: #121d2a;
    --c-bg-muted: #1a2838;
    --c-surface: #101a26;
    --c-ink: #e6edf4;
    --c-ink-2: #b4c1ce;
    --c-ink-3: #8a9aab;
    --c-line: #213042;
    --c-brand-ink: #4fd3ec;
    --c-brand-soft: #0e2f3a;
    --c-gold-soft: #2f2610;
    --c-head: #08192b;
    --c-top: #050f1a;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .35);
    color-scheme: dark;
  }
}

/* ---------- 02. База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--c-brand-ink); }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.2; font-weight: 800; letter-spacing: -.015em; text-wrap: balance; }
p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--c-line); margin: 32px 0; }
:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgb(0 166 200 / .25); }
mark { background: rgb(245 184 0 / .35); color: inherit; padding: 0 2px; border-radius: 2px; }
time { font-variant-numeric: tabular-nums; }

.skip-link { position: absolute; left: 16px; top: -48px; z-index: 300; background: var(--c-gold); color: #1a1300; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 03. Сетки и утилиты ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }
.container--narrow { max-width: 820px; }

.main { padding-bottom: 24px; min-height: 50vh; }
.section { margin-top: 48px; }
.section--tight { margin-top: 32px; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 24px; }
@media (min-width: 1024px) {
  .layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
  .layout--wide-aside { grid-template-columns: minmax(0, 1fr) 360px; }
}
.aside { display: grid; gap: 24px; align-content: start; }
.sticky { position: sticky; top: var(--sticky-top); }

.grid { display: grid; gap: 24px; }
@media (min-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.stack > * { padding: 20px 0; border-bottom: 1px solid var(--c-line); }
.stack > :first-child { padding-top: 0; }
.stack--compact > * { padding: 14px 0; }
.scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr);
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
  scrollbar-width: thin;
}
.scroller > * { scroll-snap-align: start; }
.scroller--shorts { grid-auto-columns: minmax(170px, 1fr); }

.muted { color: var(--c-ink-3); }
.small { font-size: 14px; }
.center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.bg-soft { background: var(--c-bg-soft); }
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: initial; } .hide-desktop { display: none; } }

/* ---------- 04. Иконки, кнопки, чипы, бейджи, аватары ---------- */
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.i--fill { fill: currentColor; stroke: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 650; font-size: 14px; line-height: 1; white-space: nowrap; text-decoration: none;
  background: var(--c-bg-soft); color: var(--c-ink); transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:hover { color: inherit; background: var(--c-bg-muted); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c-brand-600); color: #fff; }
.btn--primary:hover { background: #006a83; color: #fff; }
.btn--gold { background: var(--c-gold); color: #1a1300; }
.btn--gold:hover { background: #ffc61a; color: #1a1300; }
.btn--dark { background: var(--c-ink); color: var(--c-bg); }
.btn--dark:hover { background: var(--c-ink-2); color: var(--c-bg); }
.btn--ghost { background: var(--c-surface); border-color: var(--c-line); }
.btn--ghost:hover { border-color: var(--c-ink-3); background: var(--c-surface); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgb(255 255 255 / .28); }
.btn--outline-light:hover { background: rgb(255 255 255 / .08); color: #fff; }
.btn--tg { background: #229ed9; color: #fff; }
.btn--tg:hover { background: #1b8bc0; color: #fff; }
.btn--wa { background: #1fa855; color: #fff; }
.btn--wa:hover { background: #198f48; color: #fff; }
.btn--lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn--block { width: 100%; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: inherit;
  display: inline-grid; place-items: center; flex: none;
}
.icon-btn:hover { background: rgb(127 140 160 / .16); }
.icon-btn .i { width: 20px; height: 20px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
  border-radius: 999px; background: var(--c-bg-soft); border: 1px solid var(--c-line);
  font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--c-ink);
}
.chip:hover { background: var(--c-bg-muted); color: var(--c-ink); }
.chip.is-active, .chip[aria-current] { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-bg); }
.chip__count { font-weight: 500; color: var(--c-ink-3); font-size: 12px; }
.chip.is-active .chip__count { color: inherit; opacity: .7; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips--scroll::-webkit-scrollbar { display: none; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 4px;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; line-height: 1;
  background: var(--c-ink); color: var(--c-bg); white-space: nowrap; vertical-align: middle;
}
.badge .i { width: 12px; height: 12px; }
.badge--red { background: var(--c-red); color: #fff; }
.badge--brand { background: var(--c-brand-600); color: #fff; }
.badge--gold { background: var(--c-gold); color: #1a1300; }
.badge--muted { background: var(--c-bg-muted); color: var(--c-ink-2); }
.badge--glass { background: rgb(0 0 0 / .55); color: #fff; backdrop-filter: blur(4px); }
.badge--live { background: var(--c-red); color: #fff; }

.avatar {
  --av: linear-gradient(135deg, #00a6c8, #0a2540);
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: inline-grid; place-items: center; overflow: hidden;
  background: var(--av); color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .02em;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { width: 32px; height: 32px; font-size: 12px; }
.avatar--md { width: 56px; height: 56px; font-size: 18px; }
.avatar--lg { width: 96px; height: 96px; font-size: 30px; }
.avatar--xl { width: 160px; height: 160px; font-size: 48px; }
.av1 { --av: linear-gradient(135deg, #00a6c8, #0a2540); }
.av2 { --av: linear-gradient(135deg, #f5b800, #e0611f); }
.av3 { --av: linear-gradient(135deg, #7c5cff, #2c2a6b); }
.av4 { --av: linear-gradient(135deg, #1fa855, #0d4f3b); }
.av5 { --av: linear-gradient(135deg, #ff6b81, #8c2346); }
.av6 { --av: linear-gradient(135deg, #64748b, #1e293b); }

/* ---------- 05. Шапка ---------- */
.topbar { background: var(--c-top); color: #b9c8d8; font-size: 13px; }
.topbar__inner { display: flex; align-items: center; gap: 20px; height: 36px; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar__item .i { opacity: .7; }
.topbar a:hover { color: #fff; }
.topbar__weather { display: none; }
.topbar__rates { display: none; gap: 18px; }
.rate { display: inline-flex; gap: 5px; align-items: baseline; white-space: nowrap; }
.rate b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.rate .i { width: 9px; height: 9px; align-self: center; }
.rate .up { color: #4ade80; }
.rate .down { color: #f87171; }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { display: flex; gap: 2px; }
.lang a { padding: 3px 7px; border-radius: 4px; font-weight: 700; font-size: 12px; letter-spacing: .03em; }
.lang a[aria-current] { background: rgb(255 255 255 / .14); color: #fff; }
@media (min-width: 560px) { .topbar__weather { display: inline-flex; } }
@media (min-width: 1024px) { .topbar__rates { display: flex; } }

.header { background: var(--c-head); color: #fff; }
.header__inner { display: flex; align-items: center; gap: 8px; height: 64px; }
@media (min-width: 960px) { .header__inner { height: 76px; gap: 16px; } }
.logo {
  display: inline-flex; align-items: baseline; gap: 0; color: #fff;
  font-weight: 900; font-size: 24px; letter-spacing: -.035em; line-height: 1;
}
.logo:hover { color: #fff; }
.logo span { color: var(--c-brand); }
.logo small { font-size: .52em; color: var(--c-gold); font-weight: 800; margin-left: 1px; letter-spacing: 0; }
.logo__mark { width: 30px; height: 30px; margin-right: 8px; align-self: center; flex: none; }
@media (min-width: 960px) { .logo { font-size: 30px; } .logo__mark { width: 36px; height: 36px; } }
.header__tagline { display: none; color: #93a8be; font-size: 12.5px; line-height: 1.35; border-left: 1px solid rgb(255 255 255 / .16); padding-left: 16px; margin-left: 8px; }
@media (min-width: 1200px) { .header__tagline { display: block; } }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.header__send, .header__subscribe { display: none; }
@media (min-width: 768px) { .header__subscribe { display: inline-flex; margin-left: 8px; } }
@media (min-width: 1100px) { .header__send { display: inline-flex; margin-right: 8px; } }
/* самые узкие телефоны (320–370 px): прячем дату и ужимаем шапку, чтобы не было горизонтальной прокрутки */
@media (max-width: 370px) {
  .topbar__inner > .topbar__item:first-child { display: none; }
  .header__inner { gap: 4px; }
  .header .icon-btn { width: 36px; height: 36px; }
  .logo { font-size: 18px; }
  .logo__mark { width: 24px; height: 24px; margin-right: 6px; }
}

.theme-icon--sun { display: none; }
:root[data-theme="dark"] .theme-icon--sun { display: block; }
:root[data-theme="dark"] .theme-icon--moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon--sun { display: block; }
  :root:not([data-theme="light"]) .theme-icon--moon { display: none; }
}

.nav { position: sticky; top: 0; z-index: 80; background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.nav__wrap { position: relative; display: flex; align-items: center; }
.nav__inner {
  display: flex; align-items: stretch; gap: 2px; height: 50px; overflow-x: auto; scrollbar-width: none;
  flex: 1; min-width: 0;
}
.nav__inner::-webkit-scrollbar { display: none; }
@media (max-width: 1199px) {
  .nav__inner { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
}
.nav__inner a, .nav__more {
  display: inline-flex; align-items: center; padding: 0 11px; white-space: nowrap;
  font-weight: 650; font-size: 14.5px; border-bottom: 3px solid transparent; margin-bottom: -1px;
  background: none; border-top: 0; border-left: 0; border-right: 0;
}
.nav__inner a:first-child { padding-left: 0; }
.nav__inner a[aria-current="page"] { border-bottom-color: var(--c-brand); color: var(--c-brand-ink); }
.nav__more { gap: 4px; color: var(--c-ink-2); flex: none; height: 50px; }
.nav__more .i { transition: transform .2s; }
.nav__more[aria-expanded="true"] .i { transform: rotate(180deg); }

.megamenu {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 90;
  background: var(--c-surface); border-bottom: 1px solid var(--c-line); box-shadow: var(--shadow);
  max-height: calc(100vh - 50px); overflow-y: auto;
}
.megamenu[hidden] { display: none; }
.megamenu__search { display: flex; gap: 8px; padding-top: 20px; }
.megamenu__search .input { flex: 1; }
@media (min-width: 960px) { .megamenu__search { display: none; } }
.megamenu__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; padding: 24px 0 32px; }
@media (min-width: 960px) { .megamenu__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.megamenu h3 { font-size: 14px; color: var(--c-ink-3); margin-bottom: 12px; font-weight: 700; letter-spacing: 0; }
.megamenu ul { list-style: none; display: grid; gap: 9px; }
.megamenu li a { font-weight: 600; font-size: 15px; }
.megamenu__more { color: var(--c-brand-ink); }
body.menu-open { overflow: hidden; }
@media (min-width: 960px) { body.menu-open { overflow: auto; } }

.ticker { background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.ticker__inner { display: flex; align-items: center; gap: 14px; height: 42px; }
.ticker__label {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  background: var(--c-red); color: #fff; font-weight: 800; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em;
  padding: 5px 10px; border-radius: 4px;
}
.ticker__label .i { width: 13px; height: 13px; }
.ticker__viewport { overflow: hidden; flex: 1; min-width: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 40px), transparent); }
.ticker__track { display: flex; gap: 44px; width: max-content; animation: ticker 70s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { white-space: nowrap; font-size: 14px; font-weight: 600; }
.ticker__item time { color: var(--c-red); font-weight: 800; margin-right: 8px; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .ticker__viewport { overflow-x: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

.topics { display: flex; align-items: center; gap: 12px; padding-top: 14px; }
.topics__label { flex: none; font-size: 14px; font-weight: 750; color: var(--c-ink-3); }
.topics .chips { min-width: 0; }

/* ---------- 06. Плейсхолдеры и карточки ---------- */
.thumb {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius-sm);
  aspect-ratio: 16 / 10; background: var(--c-bg-muted); isolation: isolate;
}
.thumb > img, .thumb > video { width: 100%; height: 100%; object-fit: cover; }
.thumb--169 { aspect-ratio: 16 / 9; }
.thumb--43 { aspect-ratio: 4 / 3; }
.thumb--32 { aspect-ratio: 3 / 2; }
.thumb--sq { aspect-ratio: 1; }
.thumb--portrait { aspect-ratio: 9 / 16; }
.thumb--wide { aspect-ratio: 21 / 9; }
.thumb--round { border-radius: var(--radius); }

/* Плейсхолдеры вместо фото: в продакшене заменяются на <img> внутри .thumb */
.ph::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .13;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64' fill='none' stroke='white' stroke-width='1.6'%3E%3Cpath d='M32 6 58 32 32 58 6 32Z'/%3E%3Cpath d='M32 20c-5 0-8 3.5-8 7.5 0 3 2.2 4.5 4.5 4.5M32 20c5 0 8 3.5 8 7.5 0 3-2.2 4.5-4.5 4.5M32 44c-5 0-8-3.5-8-7.5 0-3 2.2-4.5 4.5-4.5M32 44c5 0 8-3.5 8-7.5 0-3-2.2-4.5-4.5-4.5'/%3E%3Ccircle cx='0' cy='0' r='3'/%3E%3Ccircle cx='64' cy='0' r='3'/%3E%3Ccircle cx='0' cy='64' r='3'/%3E%3Ccircle cx='64' cy='64' r='3'/%3E%3C/svg%3E");
  background-size: 64px;
}
.ph::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 75% 20%, rgb(255 255 255 / .35), transparent 55%); }
.ph { z-index: 0; }
.ph1 { background: linear-gradient(135deg, #f6d365 0%, #f39a5b 100%); }      /* степь */
.ph2 { background: linear-gradient(135deg, #4fd3ec 0%, #1d6fa8 100%); }      /* небо */
.ph3 { background: linear-gradient(160deg, #9bbcf0 0%, #4d6f99 55%, #24384f 100%); } /* горы */
.ph4 { background: linear-gradient(135deg, #1a2a44 0%, #3b4f7a 100%); }      /* ночной город */
.ph5 { background: linear-gradient(135deg, #ff9a8b 0%, #9b59b6 100%); }      /* закат */
.ph6 { background: linear-gradient(135deg, #9ad46b 0%, #2f7f56 100%); }      /* зелень */
.ph7 { background: linear-gradient(135deg, #12a594 0%, #1d4e89 100%); }      /* Каспий */
.ph8 { background: linear-gradient(135deg, #e6c79c 0%, #a8733f 100%); }      /* пустыня */
.ph9 { background: linear-gradient(135deg, #7b88a8 0%, #36425c 100%); }      /* графит */

.thumb__play {
  position: absolute; left: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: rgb(0 0 0 / .55); color: #fff; backdrop-filter: blur(4px);
}
.thumb__play .i { width: 18px; height: 18px; margin-left: 2px; }
.thumb__play--center { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); width: 64px; height: 64px; }
.thumb__play--center .i { width: 24px; height: 24px; }
.thumb__tag { position: absolute; right: 10px; bottom: 10px; display: inline-flex; gap: 5px; align-items: center; background: rgb(0 0 0 / .62); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.thumb__tag .i { width: 13px; height: 13px; }
.thumb > .badge { position: absolute; left: 12px; top: 12px; }

.card { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card__title { font-size: 17px; font-weight: 750; line-height: 1.3; letter-spacing: -.01em; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card__title a { color: var(--c-brand-ink); }
.card__lead { color: var(--c-ink-2); font-size: 15px; line-height: 1.5; }
.card .rubric, .card .meta a, .card .badge-link { position: relative; z-index: 2; }

.card--sm .card__title { font-size: 15px; }
.card--md .card__title { font-size: 20px; }
.card--lg .card__title { font-size: 24px; line-height: 1.2; }
@media (min-width: 768px) { .card--lg .card__title { font-size: 30px; } }

.card--h { flex-direction: row; gap: 14px; align-items: flex-start; }
.card--h .thumb { width: 112px; aspect-ratio: 4 / 3; flex: none; }
@media (min-width: 640px) {
  .card--h { gap: 20px; }
  .card--h .thumb { width: 240px; aspect-ratio: 16 / 10; }
  .card--h.card--h-sm .thumb { width: 140px; }
}
.card--h .card__lead { display: none; }
@media (min-width: 640px) { .card--h .card__lead { display: block; } }

.card--overlay { justify-content: flex-end; min-height: 380px; border-radius: var(--radius); overflow: hidden; isolation: isolate; color: #fff; }
.card--overlay > .thumb { position: absolute; inset: 0; z-index: -1; border-radius: 0; aspect-ratio: auto; }
.card--overlay .card__body { padding: 96px 20px 20px; background: linear-gradient(to top, rgb(4 12 22 / .94) 0%, rgb(4 12 22 / .72) 45%, transparent 100%); }
.card--overlay .card__title a, .card--overlay:hover .card__title a { color: #fff; }
.card--overlay:hover .card__title a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.card--overlay .card__lead { color: rgb(255 255 255 / .85); }
.card--overlay .rubric { color: #fff; }
.card--overlay .meta { color: rgb(255 255 255 / .72); }
@media (min-width: 768px) {
  .card--overlay { min-height: 520px; }
  .card--overlay .card__body { padding: 120px 32px 28px; }
}

.card--text { padding-top: 14px; border-top: 1px solid var(--c-line); gap: 6px; }
.card--boxed { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 14px; }
.card--partner { background: var(--c-gold-soft); border-radius: var(--radius); padding: 14px; }

/* Рубрика выводится в строке мета-данных ПОД заголовком, а не надписью над ним */
.rubric { font-weight: 650; color: var(--c-brand-ink); }
.rubric:hover { text-decoration: underline; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 13px; color: var(--c-ink-3); line-height: 1.4; }
.meta__item { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.meta__item .i { width: 14px; height: 14px; }
.meta__important { color: var(--c-red); font-weight: 700; }

/* ---------- 07. Лента, виджеты, вкладки, реклама ---------- */
.section-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--c-ink);
}
.section-head h2 { font-size: 22px; }
.section-head h2 a:hover { color: var(--c-brand-ink); }
@media (min-width: 768px) { .section-head h2 { font-size: 26px; } }
.section-head__more { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 650; color: var(--c-brand-ink); white-space: nowrap; }
.section-head__more .i { width: 16px; height: 16px; }
@media (max-width: 370px) { .section-head { flex-wrap: wrap; row-gap: 6px; } }
.section-head__more:hover { text-decoration: underline; }

.widget { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 20px; }
.widget--soft { background: var(--c-bg-soft); border-color: transparent; }
.widget__title { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.widget__title a { font-size: 13px; font-weight: 650; color: var(--c-brand-ink); }
.widget__foot { margin-top: 12px; font-size: 12px; color: var(--c-ink-3); }

.feed { list-style: none; }
.feed__item { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-top: 1px solid var(--c-line); }
.feed__item:first-child { border-top: 0; }
.feed__time { font-size: 13px; font-weight: 750; color: var(--c-ink-3); padding-top: 1px; }
.feed__title { font-size: 15px; font-weight: 600; line-height: 1.38; }
.feed__title .i { width: 14px; height: 14px; color: var(--c-ink-3); margin-left: 4px; }
.feed__item--important .feed__time { color: var(--c-red); }
.feed__item--important .feed__title { font-weight: 800; }
.feed__date { font-size: 15px; font-weight: 800; color: var(--c-ink); padding: 28px 0 8px; border-bottom: 2px solid var(--c-ink); }
.feed__date + .feed__item { border-top: 0; }
.feed--scroll { max-height: 640px; overflow-y: auto; margin-right: -12px; padding-right: 12px; scrollbar-width: thin; }
.feed--short { max-height: 460px; }
.feed--important-only .feed__item:not(.feed__item--important) { display: none; }

.feed--big .feed__item { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 18px 0; }
.feed--big .feed__time { font-size: 15px; }
.feed--big .feed__title { font-size: 18px; font-weight: 700; }
.feed--big .feed__meta { margin-top: 6px; }
.feed--big .feed__body { display: flex; gap: 16px; justify-content: space-between; }
.feed--big .feed__thumb { width: 120px; flex: none; display: none; }
@media (min-width: 640px) { .feed--big .feed__thumb { display: block; } }

.popular { list-style: none; counter-reset: pop; }
.popular li { counter-increment: pop; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 6px; padding: 12px 0; border-top: 1px solid var(--c-line); }
.popular li:first-child { border-top: 0; }
.popular li::before { content: counter(pop); font-size: 26px; font-weight: 900; line-height: 1; color: var(--c-brand); font-variant-numeric: tabular-nums; }
.popular a { font-size: 15px; font-weight: 650; line-height: 1.38; }
.popular .meta { margin-top: 4px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--c-line); margin-bottom: 8px; }
.tabs [role="tab"] { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 6px 10px 10px; font-weight: 750; font-size: 15px; color: var(--c-ink-3); }
.tabs [role="tab"]:first-child { padding-left: 0; }
.tabs [role="tab"][aria-selected="true"] { color: var(--c-ink); border-bottom-color: var(--c-brand); }
[role="tabpanel"][hidden] { display: none; }

.rates-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rates-table th { text-align: left; font-size: 13px; color: var(--c-ink-3); font-weight: 650; padding: 0 0 8px; }
.rates-table th:not(:first-child), .rates-table td:not(:first-child) { text-align: right; }
.rates-table td { padding: 9px 0; border-top: 1px solid var(--c-line); font-variant-numeric: tabular-nums; }
.rates-table td:first-child { font-weight: 700; }
.rates-table .cur { display: inline-flex; align-items: center; gap: 8px; }
.flag { width: 22px; height: 16px; border-radius: 3px; display: inline-block; flex: none; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); }
.flag--us { background: linear-gradient(#b22234 0 14%, #fff 14% 28%, #b22234 28% 42%, #fff 42% 56%, #b22234 56% 70%, #fff 70% 84%, #b22234 84%); position: relative; }
.flag--eu { background: radial-gradient(circle, #ffcc00 18%, transparent 20%) center / 8px 8px, #003399; }
.flag--ru { background: linear-gradient(#fff 0 33%, #0039a6 33% 66%, #d52b1e 66%); }
.flag--cn { background: radial-gradient(circle at 28% 35%, #ffde00 14%, transparent 16%), #de2910; }
.flag--kz { background: radial-gradient(circle at 55% 45%, #fec50c 20%, transparent 22%), #00afca; }
.up { color: var(--c-green); }
.down { color: var(--c-red); }
.delta { font-size: 12px; font-weight: 700; }

.weather { display: flex; align-items: center; gap: 16px; }
.weather__temp { font-size: 44px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.weather__icon { width: 52px; height: 52px; color: var(--c-brand); }
.weather__list { list-style: none; display: grid; gap: 0; margin-top: 14px; }
.weather__list li { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid var(--c-line); font-size: 14px; }
.weather__list b { font-variant-numeric: tabular-nums; }
.select-inline { border: 0; background: transparent; font-weight: 700; font-size: 15px; padding: 0; cursor: pointer; }

.promo-box { border-radius: var(--radius); padding: 22px; color: #fff; background: radial-gradient(circle at 100% 0, rgb(0 166 200 / .5), transparent 55%), var(--c-head); }
.promo-box h3 { font-size: 20px; margin-bottom: 8px; }
.promo-box p { color: #b9c8d8; font-size: 14px; margin-bottom: 16px; }
.promo-box form { display: grid; gap: 8px; }
.promo-box .input { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .2); color: #fff; }
.promo-box .input::placeholder { color: #93a8be; }
.promo-box--tg { background: #1b7fb0; }
.promo-box h3 .i { vertical-align: -.15em; }
.btn--light { background: #fff; color: #0f5f8a; }
.btn--light:hover { background: #e9f4fa; color: #0f5f8a; }
.promo-box--tg p { color: rgb(255 255 255 / .85); }
.promo-box small { display: block; margin-top: 10px; color: #93a8be; font-size: 12px; }

.pl-demo {
  position: relative; display: grid; place-items: center; text-align: center;
  background: repeating-linear-gradient(-45deg, var(--c-bg-soft) 0 12px, var(--c-bg-muted) 12px 24px);
  border-radius: var(--radius-sm); color: var(--c-ink-3); font-size: 13px; font-weight: 600;
  border: 1px dashed var(--c-line);
}
.pl-demo::before { content: "Реклама"; position: absolute; top: 6px; right: 8px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.pl-demo small { display: block; font-weight: 500; font-size: 12px; margin-top: 2px; }
.pl-demo--top { height: 100px; width: 100%; max-width: 970px; margin: 0 auto; }
@media (min-width: 768px) { .pl-demo--top { height: 90px; max-width: 728px; } .pl-demo--wide { max-width: 970px; height: 250px; } }
.pl-demo--box { width: 100%; aspect-ratio: 300 / 250; }
.pl-demo--tall { width: 100%; aspect-ratio: 300 / 600; }
.pl-demo--inline { height: 250px; margin: 2em 0; font-family: var(--font-ui); }
.pl-band { padding: 20px 0; background: var(--c-bg-soft); margin-top: 32px; }

/* ---------- 08. Заголовки страниц, крошки, пагинация ---------- */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: 13px; color: var(--c-ink-3); padding-top: 20px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.breadcrumbs a:hover { text-decoration: underline; }

.page-head { padding: 12px 0 8px; }
.page-head h1 { font-size: 32px; letter-spacing: -.025em; }
@media (min-width: 768px) { .page-head h1 { font-size: 44px; } }
.page-head__desc { color: var(--c-ink-2); max-width: 760px; margin-top: 10px; font-size: 17px; }
.page-head__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-head .chips { margin-top: 18px; }

.load-more { display: flex; justify-content: center; margin-top: 32px; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 24px; list-style: none; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center;
  border-radius: 8px; border: 1px solid var(--c-line); font-weight: 650; font-size: 14px; background: var(--c-surface);
}
.pagination a:hover { border-color: var(--c-ink-3); color: var(--c-ink); }
.pagination [aria-current] { background: var(--c-ink); color: var(--c-bg); border-color: var(--c-ink); }
.pagination .gap { border: 0; background: none; }

/* ---------- 09. Статья ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--c-brand); z-index: 120; transition: width .1s linear; }

.article { min-width: 0; }
.article__head { max-width: 820px; padding-top: 16px; }
.article__title { font-size: 30px; line-height: 1.12; letter-spacing: -.025em; font-weight: 850; }
@media (min-width: 768px) { .article__title { font-size: 42px; } }
@media (min-width: 1200px) { .article__title { font-size: 46px; } }
.article__lead { font-size: 19px; line-height: 1.55; color: var(--c-ink-2); margin-top: 18px; font-weight: 500; }
@media (min-width: 768px) { .article__lead { font-size: 21px; } }
.article__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  padding: 16px 0; margin: 24px 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line);
}
.byline { display: flex; align-items: center; gap: 12px; min-width: 0; }
.byline__name { font-weight: 750; font-size: 15px; display: block; }
.byline__role { font-size: 13px; color: var(--c-ink-3); }
.byline__group { display: flex; }
.byline__group .avatar + .avatar { margin-left: -10px; box-shadow: 0 0 0 2px var(--c-bg); }
.article__dates { font-size: 13px; color: var(--c-ink-3); display: flex; flex-direction: column; gap: 2px; }
.article__tools { display: flex; align-items: center; gap: 6px; }
.tool-btn { height: 36px; min-width: 36px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--c-line); background: var(--c-surface); display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--c-ink-2); }
.tool-btn:hover { border-color: var(--c-ink-3); color: var(--c-ink); }
.tool-btn .i { width: 16px; height: 16px; }
.tool-btn[aria-pressed="true"] { background: var(--c-brand-soft); border-color: var(--c-brand); color: var(--c-brand-ink); }

.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share__label { font-size: 13px; font-weight: 700; color: var(--c-ink-3); margin-right: 4px; }
.share a, .share button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--c-line); background: var(--c-surface); display: grid; place-items: center; color: var(--c-ink-2); }
.share a:hover, .share button:hover { color: #fff; border-color: transparent; }
.share .s-tg:hover { background: #229ed9; }
.share .s-wa:hover { background: #1fa855; }
.share .s-fb:hover { background: #1877f2; }
.share .s-x:hover { background: #000; }
.share .s-vk:hover { background: #0077ff; }
.share .s-link:hover { background: var(--c-ink); color: var(--c-bg); }
.share .i { width: 17px; height: 17px; }

.audio-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--c-bg-soft); border-radius: 999px; font-size: 14px; margin-bottom: 24px; }
.audio-bar__btn { width: 36px; height: 36px; border-radius: 50%; background: var(--c-brand-600); color: #fff; border: 0; display: grid; place-items: center; flex: none; }
.audio-bar__line { flex: 1; height: 4px; border-radius: 2px; background: var(--c-bg-muted); position: relative; }
.audio-bar__line::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--c-brand); border-radius: 2px; }

.figure { margin: 0 0 28px; }
.figure--wide { margin-left: 0; margin-right: 0; }
.figure figcaption, .caption { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; font-size: 13.5px; color: var(--c-ink-3); margin-top: 10px; line-height: 1.45; font-family: var(--font-ui); }
.credit { font-style: italic; }

.prose { --fs-text: 18px; font-family: var(--font-text); font-size: var(--fs-text); line-height: 1.72; color: var(--c-ink); max-width: 720px; }
@media (min-width: 768px) { .prose { --fs-text: 19px; } }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-family: var(--font-ui); font-size: 1.35em; line-height: 1.25; margin-top: 1.8em; }
.prose h3 { font-family: var(--font-ui); font-size: 1.12em; margin-top: 1.6em; }
.prose a { color: var(--c-brand-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--c-brand); font-weight: 700; }
.prose blockquote { margin: 1.8em 0; font-size: 1.2em; font-style: italic; font-weight: 500; line-height: 1.55; }
@media (min-width: 768px) { .prose blockquote { margin-left: 2em; } }
.prose blockquote cite { display: block; margin-top: 10px; font-family: var(--font-ui); font-style: normal; font-size: 14px; color: var(--c-ink-3); }
.prose blockquote cite b { color: var(--c-ink); }
.prose .figure { margin: 1.8em 0; }
.prose .table-wrap { font-family: var(--font-ui); font-size: 15px; }
.prose--ui { font-family: var(--font-ui); --fs-text: 17px; line-height: 1.7; }

.related-inline { display: flex; gap: 16px; align-items: center; padding: 14px; background: var(--c-bg-soft); border-radius: var(--radius-sm); font-family: var(--font-ui); position: relative; }
.related-inline .thumb { width: 96px; flex: none; aspect-ratio: 4 / 3; }
.related-inline__label { font-size: 13px; font-weight: 650; color: var(--c-ink-3); }
.related-inline a { font-weight: 750; font-size: 16px; line-height: 1.35; display: block; margin-top: 2px; text-decoration: none; color: var(--c-ink); }
.related-inline a::after { content: ""; position: absolute; inset: 0; }
.related-inline:hover a { color: var(--c-brand-ink); }

.factbox { font-family: var(--font-ui); font-size: 16px; line-height: 1.6; background: var(--c-bg-soft); border-radius: var(--radius); padding: 20px 24px; }
.factbox__title { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.factbox ul { padding-left: 1.2em; }

.table-wrap { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--radius-sm); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; font-family: var(--font-ui); }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table th { font-size: 13px; color: var(--c-ink-3); background: var(--c-bg-soft); font-weight: 750; white-space: nowrap; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.article__foot { max-width: 720px; margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 6px; background: var(--c-bg-soft); font-size: 14px; font-weight: 600; color: var(--c-ink-2); }
.tag::before { content: "#"; color: var(--c-brand); margin-right: 2px; font-weight: 800; }
.tag:hover { background: var(--c-brand-soft); color: var(--c-brand-ink); }
.error-hint { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--c-ink-3); }
.pref-source { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 14px; line-height: 1.5; color: var(--c-ink-2); }
.pref-source .i { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--c-gold); }
.pref-source a { color: var(--c-brand-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.error-hint kbd { font-family: var(--font-ui); font-size: 12px; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--c-line); background: var(--c-bg-soft); font-weight: 700; }

.author-box { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--c-line); border-radius: var(--radius); }
.author-box > div { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .author-box { padding: 16px; gap: 12px; } .author-box .avatar--lg { width: 56px; height: 56px; font-size: 18px; } }
.author-box__name { font-weight: 800; font-size: 17px; }
.author-box__role { font-size: 14px; color: var(--c-ink-3); }
.author-box p { font-size: 14.5px; color: var(--c-ink-2); margin-top: 8px; }
.author-box .btn { margin-top: 12px; }


.comments { margin-top: 48px; max-width: 720px; }
.comments__form { display: grid; gap: 10px; margin-bottom: 8px; }
.comments__form .row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.comment { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 18px 0; border-top: 1px solid var(--c-line); }
.comment--reply { margin-left: 52px; }
.comment__head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 14px; }
.comment__name { font-weight: 750; }
.comment__time { color: var(--c-ink-3); font-size: 13px; }
.comment__text { margin-top: 4px; font-size: 15px; line-height: 1.55; }
.comment__actions { display: flex; gap: 16px; margin-top: 8px; font-size: 13px; color: var(--c-ink-3); }
.comment__actions button { background: none; border: 0; padding: 0; display: inline-flex; gap: 5px; align-items: center; font-weight: 650; color: inherit; }
.comment__actions button:hover { color: var(--c-brand-ink); }
.comment__actions .i { width: 14px; height: 14px; }
.rules-note { font-size: 13px; color: var(--c-ink-3); }

/* ---------- 10. Главная ---------- */
.home-top { display: grid; gap: 32px; padding-top: 20px; }
@media (min-width: 1024px) { .home-top { grid-template-columns: minmax(0, 1fr) 340px; } }
.hero-grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .hero-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } }
.hero-grid__side { display: grid; gap: 22px; align-content: start; }
.home-top__row { margin-top: 28px; }
.home-feed { border: 1px solid var(--c-line); border-radius: var(--radius); padding: 18px 18px 8px; background: var(--c-surface); align-self: start; }
@media (min-width: 1024px) { .home-feed { position: sticky; top: var(--sticky-top); } }
.home-feed .widget__title { margin-bottom: 6px; }

.rubric-block { display: grid; gap: 24px; }
@media (min-width: 768px) { .rubric-block { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.rubric-block__list { display: grid; gap: 0; align-content: start; }
.rubric-block__list .card { padding: 14px 0; border-top: 1px solid var(--c-line); }
.rubric-block__list .card:first-child { padding-top: 0; border-top: 0; }

.opinion-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--radius); background: var(--c-bg-soft); }
.opinion-card__author { display: flex; align-items: center; gap: 12px; }
.opinion-card__name { font-weight: 800; font-size: 15px; display: block; }
.opinion-card__role { font-size: 13px; color: var(--c-ink-3); }
.opinion-card__title { font-family: var(--font-text); font-size: 19px; font-weight: 600; line-height: 1.38; }
.opinion-card__title a::after { content: ""; position: absolute; inset: 0; }
.opinion-card:hover .opinion-card__title a { color: var(--c-brand-ink); }

.band-dark {
  --c-ink: #e6edf4; --c-ink-2: #b4c1ce; --c-ink-3: #8a9aab; --c-line: #24364a; --c-brand-ink: #4fd3ec;
  --c-bg-soft: #14243a; --c-bg-muted: #1c2f47; --c-surface: #0f1d2e;
  background: #0a1626; color: var(--c-ink); padding: 44px 0 52px; margin-top: 56px;
}
.band-dark .section-head { border-bottom-color: rgb(255 255 255 / .85); }
.band-dark .chip { background: transparent; }
.video-grid { display: grid; gap: 24px; }
@media (min-width: 960px) { .video-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.video-grid__side { display: grid; gap: 18px; align-content: start; }

.region-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

.promo-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  min-height: 300px; padding: 28px; border-radius: var(--radius); overflow: hidden; isolation: isolate; color: #fff;
}
.promo-card > .thumb { position: absolute; inset: 0; z-index: -1; aspect-ratio: auto; border-radius: 0; }
.promo-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(4 12 22 / .9), rgb(4 12 22 / .1)); }
.promo-card .meta { color: rgb(255 255 255 / .75); }
.promo-card h3 { font-size: 26px; line-height: 1.15; max-width: 520px; }
.promo-card h3 a::after { content: ""; position: absolute; inset: 0; }
.promo-card h3 a:hover { color: #fff; }
.promo-card p { color: rgb(255 255 255 / .8); max-width: 480px; font-size: 15px; }
@media (min-width: 768px) { .promo-card { min-height: 380px; } .promo-card h3 { font-size: 32px; } }

.photo-strip { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .photo-strip { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; } .photo-strip > :first-child { grid-row: span 2; } }
.photo-strip .card--overlay { min-height: 200px; }
.photo-strip > :first-child { min-height: 280px; }
@media (min-width: 768px) { .photo-strip > :first-child { min-height: 424px; } .photo-strip .card--overlay .card__body { padding: 60px 18px 16px; } }
.photo-strip .card__title { font-size: 16px; }
.photo-strip > :first-child .card__title { font-size: 24px; }

/* ---------- 11. Колонка, лонгрид, онлайн ---------- */
.column-head { display: grid; gap: 24px; align-items: center; padding: 28px; border-radius: var(--radius); background: var(--c-bg-soft); margin-top: 16px; }
@media (min-width: 768px) { .column-head { grid-template-columns: minmax(0, 1fr) 180px; padding: 40px; } }
.column-head .avatar--xl { justify-self: start; }
@media (min-width: 768px) { .column-head .avatar--xl { justify-self: end; width: 180px; height: 180px; } }
.column-head__title { font-family: var(--font-text); font-size: 30px; font-weight: 700; line-height: 1.18; letter-spacing: -.015em; margin: 14px 0 18px; }
@media (min-width: 768px) { .column-head__title { font-size: 42px; } }
.column-head__author b { font-size: 17px; display: block; }
.column-head__author span { color: var(--c-ink-3); font-size: 14px; }
.prose--dropcap > p:first-of-type::first-letter { float: left; font-size: 4.1em; line-height: .82; font-weight: 800; margin: .08em .1em 0 0; color: var(--c-brand-ink); }
.disclaimer { font-family: var(--font-ui); font-size: 14px; color: var(--c-ink-3); font-style: italic; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--c-bg-soft); }

.page-longread .main { padding-top: 0; }
.lr-cover { position: relative; isolation: isolate; min-height: 86vh; display: flex; align-items: flex-end; color: #fff; padding: 64px 0 56px; }
.lr-cover > .thumb { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; z-index: -2; }
.lr-cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(3 10 18 / .95) 5%, rgb(3 10 18 / .35) 60%, rgb(3 10 18 / .15)); }
.lr-cover h1 { font-family: var(--font-text); font-size: clamp(36px, 6.4vw, 80px); line-height: 1.04; letter-spacing: -.02em; max-width: 980px; margin: 0 0 18px; font-weight: 800; }
.lr-cover__lead { font-size: clamp(17px, 2vw, 22px); max-width: 720px; color: rgb(255 255 255 / .86); line-height: 1.5; }
.lr-cover .meta { color: rgb(255 255 255 / .75); margin-top: 28px; font-size: 14px; }
.lr-cover .meta a { color: #fff; }

.lr-chapters { position: sticky; top: 50px; z-index: 40; background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.lr-chapters ol { list-style: none; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; counter-reset: ch; }
.lr-chapters li { counter-increment: ch; }
.lr-chapters a { display: flex; gap: 8px; align-items: center; padding: 14px 12px; white-space: nowrap; font-size: 14px; font-weight: 650; color: var(--c-ink-2); border-bottom: 3px solid transparent; }
.lr-chapters a::before { content: counter(ch, decimal-leading-zero); font-weight: 800; color: var(--c-brand); font-size: 12px; }
.lr-chapters a.is-active { border-bottom-color: var(--c-gold); color: var(--c-ink); }

.lr-body { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.lr-intro { font-family: var(--font-text); font-size: clamp(19px, 2.2vw, 23px); line-height: 1.6; margin-top: 56px; }
.lr-chapter { padding-top: 72px; }
.lr-chapter h2 { font-family: var(--font-text); font-size: clamp(30px, 4vw, 46px); line-height: 1.12; margin: 0 0 28px; }
.lr-wide { max-width: 1200px; margin: 56px auto; padding: 0 16px; }
.lr-full { margin: 64px 0; }
.lr-full .thumb { border-radius: 0; }
.lr-full figcaption { max-width: 1200px; margin: 10px auto 0; padding: 0 16px; }
.lr-quote { max-width: 940px; margin: 72px auto; padding: 0 16px; text-align: center; }
.lr-quote blockquote { font-family: var(--font-text); font-size: clamp(24px, 3.4vw, 40px); line-height: 1.3; font-weight: 600; }
.lr-quote cite { display: block; margin-top: 20px; font-style: normal; color: var(--c-ink-3); font-size: 15px; }
.lr-stats { max-width: 1100px; margin: 64px auto; padding: 0 16px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.lr-stat { padding: 26px; border-radius: var(--radius); background: var(--c-bg-soft); }
.lr-stat b { display: block; font-size: 46px; font-weight: 900; letter-spacing: -.03em; line-height: 1; color: var(--c-brand-ink); }
.lr-stat span { display: block; margin-top: 10px; color: var(--c-ink-2); font-size: 15px; }
.lr-split { max-width: 1200px; margin: 64px auto; padding: 0 16px; display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .lr-split { grid-template-columns: 1fr 1fr; gap: 56px; } .lr-split--rev > :first-child { order: 2; } }
.lr-split .prose { max-width: none; }
.lr-share { margin: 40px auto 0; }
.credits { max-width: 720px; margin: 72px auto 0; padding: 32px 16px 0; border-top: 1px solid var(--c-line); display: grid; gap: 12px 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); font-size: 14px; }
.credits dt { color: var(--c-ink-3); }
.credits dd { margin: 2px 0 0; font-weight: 700; }

.live-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0 14px; }
.live-status { font-size: 14px; color: var(--c-ink-3); display: inline-flex; align-items: center; gap: 6px; }
.keypoints { margin: 24px 0 32px; padding: 20px 24px; border-radius: var(--radius); background: var(--c-bg-soft); }
.keypoints h2 { font-size: 18px; margin-bottom: 12px; }
.keypoints ul { padding-left: 1.2em; display: grid; gap: 8px; font-size: 16px; }
.live-new { position: sticky; top: calc(var(--sticky-top) + 4px); z-index: 30; display: flex; justify-content: center; margin-bottom: 16px; pointer-events: none; }
.live-new .btn { pointer-events: auto; box-shadow: var(--shadow); }
.live-new[hidden] { display: none; }
.updates { list-style: none; max-width: 760px; }
.update { padding: 22px 0 26px; border-top: 1px solid var(--c-line); }
.update__time { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 15px; font-weight: 800; }
.update__time span { color: var(--c-ink-3); font-weight: 500; font-size: 13px; }
.update__title { font-size: 21px; margin: 6px 0 10px; line-height: 1.3; }
.update .prose { --fs-text: 17px; }
.update--pinned { background: var(--c-gold-soft); border-radius: var(--radius); padding: 18px 22px 22px; border-top: 0; margin-bottom: 12px; }
.update--key .update__time { color: var(--c-red); }
.update__foot { display: flex; gap: 10px; align-items: center; margin-top: 12px; font-size: 13px; color: var(--c-ink-3); }

/* ---------- 12. Фото, видео, сюжет, регион, автор ---------- */
.gallery { background: #0a1626; color: #fff; border-radius: var(--radius); overflow: hidden; }
.gallery__stage { position: relative; aspect-ratio: 3 / 2; }
.gallery__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; border-radius: 0; aspect-ratio: auto; }
.gallery__slide.is-active { opacity: 1; z-index: 1; }
.gallery__btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgb(0 0 0 / .5); color: #fff; display: grid; place-items: center; backdrop-filter: blur(4px); }
.gallery__btn:hover { background: rgb(0 0 0 / .75); }
.gallery__btn--prev { left: 14px; }
.gallery__btn--next { right: 14px; }
.gallery__btn .i { width: 24px; height: 24px; }
.gallery__counter { position: absolute; left: 14px; top: 14px; z-index: 2; background: rgb(0 0 0 / .55); padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.gallery__full { position: absolute; right: 14px; top: 14px; z-index: 2; }
.gallery__full .icon-btn { background: rgb(0 0 0 / .55); color: #fff; }
.gallery__caption { padding: 16px 20px; font-size: 15px; line-height: 1.5; min-height: 76px; color: #d6e0ea; display: flex; justify-content: space-between; gap: 16px; }
.gallery__caption .credit { color: #8a9aab; font-size: 13px; white-space: nowrap; }
.gallery__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 0 20px 20px; scrollbar-width: thin; }
.gallery__thumb { width: 96px; flex: none; aspect-ratio: 3 / 2; border-radius: 6px; border: 2px solid transparent; padding: 0; opacity: .55; cursor: pointer; }
.gallery__thumb[aria-current="true"] { border-color: var(--c-gold); opacity: 1; }
.gallery__thumb:hover { opacity: 1; }
.photo-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .photo-grid .wide { grid-column: span 2; grid-row: span 2; } }
.photo-grid .thumb { aspect-ratio: 1; border-radius: 6px; }
.photo-grid .wide .thumb { aspect-ratio: auto; height: 100%; }

.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; isolation: isolate; }
.player > .thumb { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; z-index: -1; }
.player__btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .92); color: var(--c-head); display: grid; place-items: center; box-shadow: 0 10px 40px rgb(0 0 0 / .35); transition: transform .2s; }
.player__btn:hover { transform: translate(-50%, -50%) scale(1.06); }
.player__btn .i { width: 32px; height: 32px; margin-left: 4px; }
.player__bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: #fff; font-size: 13px; font-weight: 600; background: linear-gradient(to top, rgb(0 0 0 / .7), transparent); }
.player__progress { flex: 1; height: 4px; border-radius: 2px; background: rgb(255 255 255 / .3); position: relative; }
.player__progress::before { content: ""; position: absolute; inset: 0 70% 0 0; background: var(--c-brand); border-radius: 2px; }
.player__bar .i { width: 18px; height: 18px; }
.player__live { position: absolute; left: 16px; top: 16px; }
.playlist { list-style: none; display: grid; gap: 4px; }
.playlist a { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; padding: 8px; border-radius: var(--radius-sm); }
.playlist a:hover, .playlist a[aria-current] { background: var(--c-bg-soft); color: inherit; }
.playlist a[aria-current] .playlist__title { color: var(--c-brand-ink); }
.playlist .thumb { aspect-ratio: 16 / 9; }
.playlist__title { font-size: 14px; font-weight: 700; line-height: 1.35; }
.playlist .meta { font-size: 12px; margin-top: 4px; }
.short { position: relative; }
.short .thumb { border-radius: var(--radius); }
.short__title { position: absolute; left: 12px; right: 12px; bottom: 12px; color: #fff; font-weight: 700; font-size: 14px; line-height: 1.3; text-shadow: 0 1px 8px rgb(0 0 0 / .6); }
.short__title a::after { content: ""; position: absolute; inset: -400px -12px -12px; }
.short__views { position: absolute; left: 12px; top: 12px; color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; gap: 4px; align-items: center; text-shadow: 0 1px 6px rgb(0 0 0 / .5); }
.short__views .i { width: 14px; height: 14px; }

.story-head { position: relative; isolation: isolate; border-radius: var(--radius); overflow: hidden; color: #fff; padding: 40px 24px; margin-top: 16px; }
.story-head > .thumb { position: absolute; inset: 0; z-index: -2; aspect-ratio: auto; border-radius: 0; }
.story-head::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(4 12 22 / .92), rgb(4 12 22 / .55)); }
.story-head h1 { font-size: 34px; margin: 0 0 12px; max-width: 760px; }
.story-head p { max-width: 680px; color: rgb(255 255 255 / .85); font-size: 17px; }
.story-head .meta { color: rgb(255 255 255 / .7); margin-top: 18px; }
.story-head__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
@media (min-width: 768px) { .story-head { padding: 56px 48px; } .story-head h1 { font-size: 48px; } }
/* Хронология сюжета: дата слева, событие справа, разделители — горизонтальные линии */
.timeline { list-style: none; }
.timeline li { display: grid; gap: 4px 20px; padding: 16px 0; border-top: 1px solid var(--c-line); }
.timeline li:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 640px) { .timeline li { grid-template-columns: 110px minmax(0, 1fr); } }
.timeline__date { font-size: 14px; font-weight: 750; color: var(--c-ink-3); font-variant-numeric: tabular-nums; }
.timeline__title { font-size: 17px; font-weight: 750; line-height: 1.35; display: block; }
.timeline li.is-key .timeline__title { font-size: 19px; }
.timeline__text { font-size: 15px; color: var(--c-ink-2); margin-top: 4px; }

.tag-head { display: flex; align-items: center; gap: 18px; padding: 8px 0; }
.tag-head__hash { width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; background: var(--c-brand-soft); color: var(--c-brand-ink); font-size: 40px; font-weight: 900; flex: none; }

.region-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.region-grid a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 14px; border-radius: var(--radius-sm); background: var(--c-bg-soft); font-size: 14.5px; font-weight: 650; border: 1px solid transparent; }
.region-grid a:hover { border-color: var(--c-line); background: var(--c-surface); }
.region-grid a[aria-current] { background: var(--c-head); color: #fff; }
.region-grid a[aria-current] small { color: #93a8be; }
.region-grid small { color: var(--c-ink-3); font-weight: 600; font-size: 12px; }
.region-group + .region-group { margin-top: 20px; }
.region-group h2 { font-size: 15px; font-weight: 750; color: var(--c-ink-3); margin-bottom: 10px; }
.region-card { display: grid; gap: 24px; padding: 24px; border-radius: var(--radius); background: var(--c-bg-soft); }
@media (min-width: 768px) { .region-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 32px; } }
.region-card h1 { font-size: 34px; }
@media (min-width: 768px) { .region-card h1 { font-size: 44px; } }
.facts { display: flex; flex-wrap: wrap; gap: 20px 32px; margin-top: 16px; }
.facts div { font-size: 13px; color: var(--c-ink-3); }
.facts b { display: block; font-size: 20px; color: var(--c-ink); font-weight: 800; }

.profile { display: grid; gap: 24px; align-items: center; padding: 28px; border-radius: var(--radius); background: var(--c-bg-soft); margin-top: 16px; }
@media (min-width: 768px) { .profile { grid-template-columns: 160px minmax(0, 1fr) auto; padding: 36px; gap: 32px; } }
.profile h1 { font-size: 32px; }
.profile__role { color: var(--c-brand-ink); font-weight: 700; margin-top: 4px; }
.profile__bio { color: var(--c-ink-2); margin-top: 12px; max-width: 640px; }
.profile__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.stats { display: flex; gap: 28px; }
.stats div { font-size: 13px; color: var(--c-ink-3); }
.stats b { display: block; font-size: 30px; font-weight: 900; color: var(--c-ink); letter-spacing: -.02em; }

/* ---------- 13. Поиск, архив, формы ---------- */
.search-big { display: flex; gap: 8px; margin-top: 16px; }
.search-big .input { height: 56px; font-size: 18px; padding-left: 52px; border-radius: 12px; border-width: 2px; }
.search-big__field { position: relative; flex: 1; }
.search-big__field .i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--c-ink-3); }
.search-big .btn { height: 56px; border-radius: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0 8px; }
.filters .select { width: auto; height: 38px; font-size: 14px; border-radius: 999px; padding: 0 34px 0 14px; }
.results-count { font-size: 14px; color: var(--c-ink-3); margin: 18px 0 4px; }
.result { padding: 20px 0; border-bottom: 1px solid var(--c-line); display: grid; gap: 6px; position: relative; }
.result__title { font-size: 19px; font-weight: 750; line-height: 1.3; }
.result__title a::after { content: ""; position: absolute; inset: 0; }
.result:hover .result__title a { color: var(--c-brand-ink); }
.result__snippet { color: var(--c-ink-2); font-size: 15px; }
.result__url { font-size: 13px; color: var(--c-green); }
.empty { text-align: center; padding: 48px 16px; border: 1px dashed var(--c-line); border-radius: var(--radius); }
.empty .i { width: 40px; height: 40px; color: var(--c-ink-3); margin-bottom: 12px; }
.empty h3 { font-size: 20px; margin-bottom: 6px; }

.calendar { border: 1px solid var(--c-line); border-radius: var(--radius); padding: 18px; background: var(--c-surface); }
.calendar__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.calendar__head strong { font-size: 16px; }
.calendar__head .icon-btn { width: 34px; height: 34px; border: 1px solid var(--c-line); }
.calendar__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.calendar__dow { font-size: 11.5px; font-weight: 800; color: var(--c-ink-3); padding: 4px 0; text-transform: uppercase; }
.calendar__grid a, .calendar__grid span.d { aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; font-weight: 650; font-size: 14px; font-variant-numeric: tabular-nums; }
.calendar__grid a:hover { background: var(--c-bg-soft); color: var(--c-ink); }
.calendar__grid a[aria-current] { background: var(--c-brand-600); color: #fff; }
.calendar__grid .is-muted { color: var(--c-ink-3); opacity: .45; }
.calendar__grid .is-today { box-shadow: inset 0 0 0 2px var(--c-gold); }
.calendar__selects { display: flex; gap: 8px; margin-bottom: 12px; }
.calendar__selects .select { height: 38px; font-size: 14px; }
.archive-years { display: flex; flex-wrap: wrap; gap: 6px; }

.form { display: grid; gap: 16px; }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .span-2 { grid-column: span 2; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field__label { font-size: 14px; font-weight: 650; }
.field__hint { font-size: 12.5px; color: var(--c-ink-3); }
.input, .select, .textarea {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--c-line); border-radius: 10px;
  background: var(--c-surface); font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 130px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2366768a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 3px rgb(0 166 200 / .2); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--c-brand-600); flex: none; }
.check a { color: var(--c-brand-ink); text-decoration: underline; }
.dropzone { display: grid; place-items: center; gap: 6px; text-align: center; padding: 28px 16px; border: 2px dashed var(--c-line); border-radius: var(--radius); color: var(--c-ink-3); font-size: 14px; cursor: pointer; }
.dropzone:hover { border-color: var(--c-brand); color: var(--c-ink-2); }
.dropzone .i { width: 28px; height: 28px; color: var(--c-brand); }
.dropzone b { color: var(--c-ink); }
.form-success { display: none; padding: 14px 18px; border-radius: var(--radius-sm); background: rgb(21 128 61 / .12); color: var(--c-green); font-weight: 650; font-size: 15px; }
.form.is-sent .form-success { display: block; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-form .input { flex: 1 1 220px; }

/* ---------- 14. О редакции, реклама, подписка, документы, 404 ---------- */
.hero-band { position: relative; isolation: isolate; overflow: hidden; background: var(--c-head); color: #fff; padding: 56px 0 64px; }
.hero-band::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64' fill='none' stroke='white' stroke-width='1.6'%3E%3Cpath d='M32 6 58 32 32 58 6 32Z'/%3E%3Cpath d='M32 20c-5 0-8 3.5-8 7.5 0 3 2.2 4.5 4.5 4.5M32 20c5 0 8 3.5 8 7.5 0 3-2.2 4.5-4.5 4.5M32 44c-5 0-8-3.5-8-7.5 0-3 2.2-4.5 4.5-4.5M32 44c5 0 8-3.5 8-7.5 0-3-2.2-4.5-4.5-4.5'/%3E%3C/svg%3E"); background-size: 64px; }
.hero-band .breadcrumbs { color: #93a8be; padding-top: 0; margin-bottom: 18px; }
.hero-band h1 { font-size: 36px; max-width: 860px; letter-spacing: -.025em; }
.hero-band p { font-size: 19px; color: #c3d1df; max-width: 720px; margin-top: 16px; }
.hero-band .btn { margin-top: 26px; }
@media (min-width: 768px) { .hero-band { padding: 72px 0 84px; } .hero-band h1 { font-size: 52px; } }

.numbers { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 960px) { .numbers { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.number { padding: 24px; border-radius: var(--radius); background: var(--c-bg-soft); }
.number b { display: block; font-size: 36px; font-weight: 900; letter-spacing: -.03em; color: var(--c-brand-ink); line-height: 1.05; }
.number span { display: block; margin-top: 8px; font-size: 14.5px; color: var(--c-ink-2); }
@media (min-width: 768px) { .number b { font-size: 44px; } }
.team { display: grid; gap: 28px 20px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.member { text-align: center; display: grid; justify-items: center; gap: 4px; }
.member .avatar { margin-bottom: 8px; }
.member b { font-size: 15.5px; }
.member span { font-size: 13.5px; color: var(--c-ink-3); line-height: 1.35; }
.legal-box { padding: 24px; border-radius: var(--radius); background: var(--c-bg-soft); font-size: 14.5px; line-height: 1.7; }
.legal-box dl { display: grid; gap: 8px 24px; margin: 0; }
@media (min-width: 768px) { .legal-box dl { grid-template-columns: 260px 1fr; } }
.legal-box dt { color: var(--c-ink-3); }
.legal-box dd { margin: 0; font-weight: 600; }

.contact-cards { display: grid; gap: 16px; }
@media (min-width: 640px) { .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact-card { padding: 20px; border: 1px solid var(--c-line); border-radius: var(--radius); display: grid; gap: 6px; align-content: start; }
.contact-card h3 { font-size: 16px; }
.contact-card p { font-size: 14px; color: var(--c-ink-3); }
.contact-card a { font-weight: 700; color: var(--c-brand-ink); display: inline-flex; gap: 6px; align-items: center; }
.map { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: linear-gradient(90deg, var(--c-line) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(var(--c-line) 1px, transparent 1px) 0 0 / 40px 40px, var(--c-bg-soft); }
.map::before { content: ""; position: absolute; left: -10%; right: -10%; top: 46%; height: 26px; background: rgb(0 166 200 / .35); transform: rotate(-8deg); }
.map__pin { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -100%); color: var(--c-red); text-align: center; font-size: 13px; font-weight: 800; }
.map__pin .i { width: 40px; height: 40px; fill: var(--c-red); stroke: #fff; stroke-width: 1.5; }
.map__pin span { display: block; background: var(--c-surface); color: var(--c-ink); padding: 4px 10px; border-radius: 6px; box-shadow: var(--shadow); white-space: nowrap; }
.messengers { display: flex; flex-wrap: wrap; gap: 10px; }

.formats { display: grid; gap: 20px; }
@media (min-width: 640px) { .formats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .formats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.format { padding: 18px; border: 1px solid var(--c-line); border-radius: var(--radius); display: grid; gap: 10px; align-content: start; }
.format h3 { font-size: 17px; }
.format p { font-size: 14px; color: var(--c-ink-2); }
.format__size { font-size: 13px; font-weight: 700; color: var(--c-brand-ink); }
.wire { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); background: var(--c-bg-soft); padding: 10px; display: grid; gap: 6px; grid-template-rows: 10px 8px auto; }
.wire__bar { background: var(--c-bg-muted); border-radius: 3px; }
.wire__body { display: grid; gap: 6px; grid-template-columns: 2fr 1fr; }
.wire__col { display: grid; gap: 6px; align-content: start; }
.wire__col span { height: 8px; background: var(--c-bg-muted); border-radius: 3px; }
.wire__col span.blk { height: 38px; }
.wire .hl { background: var(--c-gold) !important; box-shadow: 0 0 0 2px rgb(245 184 0 / .35); }

.nl-list { display: grid; gap: 12px; }
.nl-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 18px 20px; border: 1px solid var(--c-line); border-radius: var(--radius); cursor: pointer; background: var(--c-surface); transition: border-color .15s, background .15s; }
.nl-card:hover { border-color: var(--c-ink-3); }
.nl-card:has(input:checked) { border-color: var(--c-brand-600); background: var(--c-brand-soft); box-shadow: inset 0 0 0 1px var(--c-brand-600); }
.nl-card input { width: 20px; height: 20px; accent-color: var(--c-brand-600); margin-top: 2px; }
.nl-card h3 { font-size: 17px; }
.nl-card p { font-size: 14px; color: var(--c-ink-2); margin-top: 4px; }
.nl-card__freq { font-size: 13px; font-weight: 650; color: var(--c-ink-3); white-space: nowrap; }
.channels { display: grid; gap: 12px; }
@media (min-width: 640px) { .channels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.channel { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--radius); border: 1px solid var(--c-line); position: relative; }
.channel:hover { border-color: var(--c-ink-3); color: inherit; }
.channel__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.channel__icon .i { width: 22px; height: 22px; }
.channel__icon--tg { background: #229ed9; }
.channel__icon--wa { background: #1fa855; }
.channel__icon--ig { background: #d62976; }
.channel__icon--yt { background: #e00000; }
.channel b { display: block; font-size: 15px; }
.channel span { font-size: 13px; color: var(--c-ink-3); }

.doc { display: grid; gap: 32px; padding-top: 8px; }
@media (min-width: 1024px) { .doc { grid-template-columns: 260px minmax(0, 1fr); gap: 56px; } }
.toc { align-self: start; }
@media (min-width: 1024px) { .toc { position: sticky; top: var(--sticky-top); } }
.toc h2 { font-size: 16px; margin-bottom: 10px; }
.toc ol { list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: block; padding: 6px 10px; font-size: 14px; font-weight: 600; color: var(--c-ink-2); border-radius: 6px; }
.toc a::before { content: counter(toc) ". "; color: var(--c-ink-3); }
.toc a:hover { color: var(--c-brand-ink); }
.toc a.is-active { color: var(--c-ink); background: var(--c-bg-soft); }
.doc-meta { font-size: 14px; color: var(--c-ink-3); margin-top: 8px; }

.notfound { text-align: center; padding: 56px 0 24px; max-width: 680px; margin: 0 auto; }
.notfound__code { font-size: clamp(110px, 22vw, 220px); font-weight: 900; line-height: .9; letter-spacing: -.06em; color: var(--c-brand-ink); }
.notfound h1 { font-size: 30px; margin-top: 16px; }
.notfound p { color: var(--c-ink-2); margin-top: 10px; font-size: 17px; }
.notfound .search-big { max-width: 560px; margin: 28px auto 0; }
.notfound .chips { justify-content: center; margin-top: 20px; }

/* ---------- 15. Подвал ---------- */
.footer { background: var(--c-top); color: #a9b8c8; margin-top: 72px; font-size: 14px; }
.footer a:hover { color: #fff; }
.footer__top { display: grid; gap: 36px; padding: 52px 0 36px; }
@media (min-width: 640px) { .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1fr 1.5fr; gap: 32px; } }
.footer__about { line-height: 1.6; max-width: 340px; }
.footer__about .logo { font-size: 26px; margin-bottom: 14px; }
.footer h3 { color: #fff; font-size: 15px; margin-bottom: 14px; font-weight: 750; letter-spacing: 0; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .08); color: #fff; }
.socials a:hover { background: var(--c-brand-600); }
.socials .i { width: 18px; height: 18px; }
.footer__pref { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; color: inherit; opacity: .85; }
.footer__pref:hover { opacity: 1; text-decoration: underline; }
.footer__pref .i { width: 15px; height: 15px; }
.footer .inline-form .input { background: rgb(255 255 255 / .07); border-color: rgb(255 255 255 / .16); color: #fff; height: 42px; }
.footer .inline-form .input::placeholder { color: #8094a9; }
.footer .inline-form .btn { height: 42px; }
.footer__apps { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.app-badge { display: inline-flex; flex-direction: column; justify-content: center; height: 42px; padding: 0 14px; border-radius: 8px; border: 1px solid rgb(255 255 255 / .2); font-size: 10px; line-height: 1.15; color: #c3d1df; }
.app-badge b { font-size: 14px; color: #fff; }
.footer__bottom { border-top: 1px solid rgb(255 255 255 / .1); padding: 24px 0 28px; display: grid; gap: 14px; font-size: 12.5px; line-height: 1.6; color: #8094a9; }
@media (min-width: 960px) { .footer__bottom { grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 40px; } }
.footer__legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.age { display: inline-grid; place-items: center; min-width: 40px; height: 28px; border: 1.5px solid #c3d1df; color: #fff; border-radius: 6px; font-weight: 800; font-size: 13px; }

/* ---------- 16. Оверлеи ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 200; background: rgb(5 15 26 / .94); backdrop-filter: blur(6px); padding: 12vh 16px 24px; overflow-y: auto; color: #fff; }
.search-overlay[hidden] { display: none; }
.search-overlay__close { position: absolute; right: 16px; top: 16px; color: #fff; }
.search-overlay__inner { max-width: 760px; margin: 0 auto; }
.search-overlay form { display: flex; gap: 8px; }
.search-overlay .input { height: 60px; font-size: 20px; border-radius: 14px; border: 0; color: var(--c-ink); background: var(--c-surface); }
.search-overlay .btn { height: 60px; border-radius: 14px; }
.search-overlay h3 { font-size: 15px; color: #93a8be; margin: 32px 0 12px; }
.search-overlay .chip { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .12); color: #fff; }
.search-overlay .chip:hover { background: rgb(255 255 255 / .16); }
.search-overlay__hint { font-size: 13px; color: #93a8be; margin-top: 12px; }
.search-overlay__hint kbd { border: 1px solid rgb(255 255 255 / .3); border-radius: 4px; padding: 0 5px; font-family: inherit; }

.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150; max-width: 560px; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; padding: 16px 18px; border-radius: 14px; background: var(--c-surface); color: var(--c-ink); border: 1px solid var(--c-line); box-shadow: var(--shadow); font-size: 14px; }
.cookie[hidden] { display: none; }
.cookie p { flex: 1 1 260px; }
.cookie a { color: var(--c-brand-ink); text-decoration: underline; }
.cookie__btns { display: flex; gap: 8px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 250; background: var(--c-ink); color: var(--c-bg); padding: 12px 18px; border-radius: 10px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 100; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-ink); display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top.is-visible { opacity: 1; pointer-events: auto; }

.dev-nav { position: fixed; left: 16px; bottom: 16px; z-index: 140; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--c-gold); color: #1a1300; font-weight: 750; font-size: 13px; box-shadow: var(--shadow); }
.dev-nav:hover { color: #1a1300; background: #ffc61a; }
.dev-nav .i { width: 16px; height: 16px; }

/* ---------- Обзор шаблонов (служебная страница) ---------- */
.tpl-hero { padding: 48px 0 24px; }
.tpl-hero h1 { font-size: 40px; letter-spacing: -.03em; }
.tpl-hero p { color: var(--c-ink-2); max-width: 760px; margin-top: 12px; font-size: 17px; }
.tpl-group { margin-top: 40px; }
.tpl-group h2 { font-size: 20px; margin-bottom: 14px; }
.tpl-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tpl { position: relative; display: grid; gap: 8px; align-content: start; padding: 20px; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); transition: border-color .15s, box-shadow .15s; }
.tpl:hover { border-color: var(--c-brand); box-shadow: var(--shadow); }
.tpl__num { font-size: 12px; font-weight: 800; color: var(--c-brand-ink); letter-spacing: .06em; }
.tpl h3 { font-size: 18px; }
.tpl h3 a::after { content: ""; position: absolute; inset: 0; }
.tpl p { font-size: 14px; color: var(--c-ink-2); }
.tpl code { font-size: 12.5px; color: var(--c-ink-3); font-family: ui-monospace, Consolas, monospace; }

/* ---------- 17. Дополнения для движка (Django) ---------- */
.flash { margin: 16px 0 0; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--c-bg-soft); font-weight: 600; font-size: 15px; }
.flash--success { background: rgb(21 128 61 / .12); color: var(--c-green); }
.flash--error, .flash--warning { background: var(--c-gold-soft); color: var(--c-ink); }
.honeypot { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-success.form-error { background: rgb(214 40 57 / .1); color: var(--c-red); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius-sm); }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.prose figure img { width: 100%; }
.player > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.byline__name a:hover { color: var(--c-brand-ink); }
.thumb > img { position: absolute; inset: 0; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.calendar__head span.icon-btn { opacity: .35; }
/* Флаги валют: библиотека flag-icons (подключается в base.html движка) */
.rates-table .fi, .fx-table .fi { width: 22px; height: 16px; line-height: 16px; flex: none; border-radius: 3px; box-shadow: 0 0 0 1px rgb(0 0 0 / .1); background-size: cover; }
.fx-table .cur { display: inline-flex; align-items: center; gap: 8px; }
.maint-bar { position: sticky; top: 0; z-index: 130; padding: 8px 16px; text-align: center; font-size: 13px; font-weight: 700; background: var(--c-red); color: #fff; }
.maint-bar a { color: #fff; text-decoration: underline; }
.channel__icon--tt { background: #111; }
.channel__icon--fb { background: #1877f2; }
.channel__icon--x { background: #000; }

/* ---------- 18. Коммерческие размещения (классы .pl — без слов ad/banner), регионы, погода, курсы ---------- */
.pl:empty { display: none; }
.pl { position: relative; text-align: center; }
.pl:not(:empty)::before { content: attr(data-pl-note); display: block; margin-bottom: 6px; text-align: right; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c-ink-3); }
.pl img { display: inline-block; max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.pl a { display: inline-block; }
.pl--top, .pl--home { max-width: 970px; margin: 0 auto; }
.pl--text { margin: 2em 0; font-family: var(--font-ui); }
.pl-band:has(.pl:empty) { display: none; }
.pl-ph { display: grid; place-items: center; min-height: 90px; padding: 12px; border-radius: var(--radius-sm); border: 1px dashed var(--c-line); color: var(--c-ink-3); font-size: 13px; font-weight: 600; background: repeating-linear-gradient(-45deg, var(--c-bg-soft) 0 12px, var(--c-bg-muted) 12px 24px); }
.pl-ph small { display: block; font-weight: 500; font-size: 12px; }
.pl--side .pl-ph { aspect-ratio: 300 / 600; }
.pl--side_small .pl-ph { aspect-ratio: 300 / 250; }
.pl--text .pl-ph, .pl--home .pl-ph { min-height: 250px; }

.region-hero { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius); margin-top: 16px; color: #fff; background: var(--c-head); }
.region-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.region-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(4 12 22 / .86) 0%, rgb(4 12 22 / .62) 50%, rgb(4 12 22 / .35) 100%); }
.region-hero__inner { display: grid; gap: 28px; padding: 28px 22px; }
@media (min-width: 960px) { .region-hero__inner { grid-template-columns: minmax(0, 1fr) 340px; align-items: end; padding: 56px 44px 40px; min-height: 420px; } }
.region-hero h1 { font-size: 36px; letter-spacing: -.025em; }
@media (min-width: 768px) { .region-hero h1 { font-size: 52px; } }
.region-hero__desc { max-width: 640px; margin-top: 12px; font-size: 17px; color: rgb(255 255 255 / .88); }
.region-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 24px 0 0; }
@media (min-width: 640px) { .region-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.region-facts div { min-width: 0; }
.region-facts dt { font-size: 13px; color: rgb(255 255 255 / .72); }
.region-facts dd { margin: 2px 0 0; font-size: 20px; font-weight: 800; }
.region-hero__credit { position: absolute; right: 14px; bottom: 8px; font-size: 11px; color: rgb(255 255 255 / .6); }
.region-hero .btn { margin-top: 22px; }

.wx-card { border-radius: var(--radius); padding: 20px; background: rgb(255 255 255 / .1); backdrop-filter: blur(10px); border: 1px solid rgb(255 255 255 / .18); }
.wx-card__title { font-size: 14px; font-weight: 700; color: rgb(255 255 255 / .8); }
.wx-now { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.wx-now .i { width: 46px; height: 46px; }
.wx-now__temp { font-size: 46px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.wx-now__text { font-size: 14px; }
.wx-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 13px; }
.wx-meta span { display: inline-flex; align-items: center; gap: 4px; }
.wx-meta .i { width: 15px; height: 15px; opacity: .8; }
.wx-days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 14px; text-align: center; font-size: 13px; }
.wx-days div { padding: 8px 4px; border-radius: 8px; background: rgb(255 255 255 / .08); }
.wx-days .i { width: 20px; height: 20px; margin: 4px auto; display: block; }
.wx-days b { display: block; font-size: 14px; }
.wx-days small { opacity: .75; }
.wx-card a { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; font-weight: 600; display: inline-block; margin-top: 12px; }

.wx-week { display: grid; gap: 8px; }
@media (min-width: 768px) { .wx-week { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.wx-day { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--c-bg-soft); }
@media (min-width: 768px) { .wx-day { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 16px 8px; } }
.wx-day .i { width: 30px; height: 30px; color: var(--c-brand-ink); }
.wx-day__name { font-weight: 700; font-size: 14px; }
.wx-day__date { font-size: 12px; color: var(--c-ink-3); }
.wx-day__t { font-weight: 800; font-size: 18px; }
.wx-day__t small { font-weight: 600; color: var(--c-ink-3); font-size: 14px; }
.wx-day__text { font-size: 12px; color: var(--c-ink-2); }
.wx-big { display: grid; gap: 24px; padding: 28px; border-radius: var(--radius); background: var(--c-head); color: #fff; }
@media (min-width: 768px) { .wx-big { grid-template-columns: auto 1fr; align-items: center; } }
.wx-big .wx-now__temp { font-size: 72px; }
.wx-big .wx-now .i { width: 72px; height: 72px; color: var(--c-gold); }
.wx-cities { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.wx-city { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--c-line); background: var(--c-surface); }
.wx-city:hover { border-color: var(--c-ink-3); color: inherit; }
.wx-city[aria-current] { background: var(--c-brand-soft); border-color: var(--c-brand); }
.wx-city .i { width: 28px; height: 28px; color: var(--c-brand-ink); flex: none; }
.wx-city b { display: block; font-size: 15px; }
.wx-city span { font-size: 12px; color: var(--c-ink-3); }
.wx-city strong { margin-left: auto; font-size: 20px; font-weight: 800; }
.weather__forecast { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 12px; text-align: center; font-size: 12px; }
.weather__forecast div { padding: 8px 2px; border-radius: 8px; background: var(--c-bg-soft); }
.weather__forecast .i { width: 20px; height: 20px; display: block; margin: 4px auto; color: var(--c-brand-ink); }
.weather__forecast b { font-size: 13px; }

.fx-table td:first-child { white-space: nowrap; }
.fx-table .fx-name { color: var(--c-ink-3); font-size: 13px; display: block; font-weight: 500; }
.fx-charts { display: grid; gap: 16px; }
@media (min-width: 768px) { .fx-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fx-chart { padding: 18px; border: 1px solid var(--c-line); border-radius: var(--radius); }
.fx-chart__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.fx-chart__head b { font-size: 22px; }
.fx-chart svg { width: 100%; height: 96px; margin-top: 10px; overflow: visible; }
.fx-chart polyline { fill: none; stroke: var(--c-brand); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.fx-chart__foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--c-ink-3); margin-top: 6px; }
.converter { display: grid; gap: 12px; padding: 20px; border-radius: var(--radius); background: var(--c-bg-soft); }
@media (min-width: 640px) { .converter { grid-template-columns: 1fr 1fr auto 1fr; align-items: end; } }
.converter__swap { height: 46px; }
.converter output { grid-column: 1 / -1; }
.converter output { display: block; height: 46px; line-height: 46px; padding: 0 14px; border-radius: 10px; background: var(--c-surface); border: 1px solid var(--c-line); font-weight: 800; font-size: 18px; }

@media print {
  .topbar, .nav, .ticker, .aside, .footer, .share, .article__tools, .comments, .pl, .pl-band, .pl-demo, .dev-nav, .to-top, .cookie, .progress { display: none !important; }
  .header { background: none; color: #000; }
  .layout { display: block; }
}
