/* ===== Event24.uz — Design System ===== */
:root {
  /* Brand (derived from logo: petrol navy + white) */
  --brand: #1F3A4D;
  --brand-600: #2A4E63;
  --brand-700: #162D3A;
  --accent: #C99A3F;        /* warm gold — Events / premium highlights */
  --breaking: #D7263D;      /* urgent only */

  --bg: #F6F7F8;
  --card: #FFFFFF;
  --border: #E4E8EB;
  --text: #18242C;
  --muted: #5C6B75;
  --muted-2: #8896A0;

  --link: #1F3A4D;
  --shadow-sm: 0 1px 2px rgba(22,45,58,.06);
  --shadow: 0 6px 24px rgba(22,45,58,.08);

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Roboto', system-ui, -apple-system, sans-serif;

  --r-sm: 4px;
  --r-md: 8px;
  --r-btn: 10px;
  --maxw: 1240px;
}

[data-theme="dark"] {
  --brand: #2E5871;
  --brand-600: #366683;
  --brand-700: #0E181E;
  --accent: #D7B36A;
  --bg: #0E181E;
  --card: #16242D;
  --border: #25394A;
  --text: #EAEFF2;
  --muted: #9DB0BC;
  --muted-2: #6E8492;
  --link: #BFE0F2;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow: 0 8px 28px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }
/* #5 — мобильная защита: запрещаем iOS/Android раздувать шрифты («desktop-режим»
   с гигантским текстом) и отсекаем случайное горизонтальное переполнение, из-за
   которого браузер сжимает всю страницу (shrink-to-fit) и она выглядит «мелкой и
   неадаптивной». overflow-x: clip (а не hidden) не ломает position: sticky шапки. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { overflow-x: clip; max-width: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

h1,h2,h3,h4 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .4em; font-weight: 700; letter-spacing: -.01em; }

/* ===== Top bar ===== */
.topbar {
  background: var(--brand-700);
  color: #cdd9e0;
  font-size: 13px;
}
.topbar .container { display: flex; align-items: center; gap: 18px; min-height: 38px; flex-wrap: wrap; }
.topbar .tb-left { display: flex; gap: 16px; align-items: center; }
.topbar .tb-right { margin-left: auto; display: flex; gap: 14px; align-items: center; }
.topbar a { color: #cdd9e0; }
.tb-widget { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tb-widget b { color: #fff; font-weight: 600; }
.tb-ico { font-size: 14px; line-height: 1; }
.tb-desc { color: #aebcc4; }
.tb-desc::before { content: "·"; margin-right: 6px; color: #7d8f99; }
.tb-arrow { font-size: 11px; line-height: 1; font-weight: 700; }
.tb-arrow.is-up { color: #4caf7d; }
.tb-arrow.is-down { color: #e0736b; }
.lang-switch button, .icon-btn {
  background: transparent; border: 1px solid transparent; color: #cdd9e0;
  cursor: pointer; font: inherit; padding: 3px 7px; border-radius: var(--r-sm);
}
.lang-switch button.active { background: rgba(255,255,255,.12); color: #fff; }
.icon-btn:hover, .lang-switch button:hover { background: rgba(255,255,255,.12); }

/* ===== Header ===== */
.header { background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header .container { display: flex; align-items: center; gap: 22px; height: 68px; transition: height .2s; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img { width: 38px; height: 38px; border-radius: var(--r-sm); }
.brand .word { font-family: var(--serif); font-weight: 700; font-size: 26px; color: var(--text); letter-spacing: -.02em; }
.brand .word span { color: var(--accent); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--text); font-weight: 500; font-size: 15px; padding: 8px 11px; border-radius: var(--r-sm); }
.nav a:hover { background: var(--bg); text-decoration: none; }
.nav a.events { color: var(--accent); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.scrolled .header .container { height: 56px; }

/* ===== Крупный glass-тумблер меню (ТЗ п.1) ===== */
.menu-toggle {
  --mt-size: 46px;
  width: var(--mt-size); height: var(--mt-size); flex-shrink: 0;
  border-radius: 14px; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--card) 78%, transparent);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 2px rgba(16,30,40,.06), inset 0 1px 0 rgba(255,255,255,.35);
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle:hover { border-color: var(--brand); box-shadow: 0 4px 14px rgba(16,30,40,.12); }
.menu-toggle:active { transform: scale(.94); }
.menu-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.menu-toggle__box { position: relative; width: 22px; height: 16px; display: block; }
.menu-toggle__line {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px;
  background: var(--text);
  transition: transform .24s cubic-bezier(.4,.01,.2,1), opacity .18s ease, background-color .2s ease;
}
.menu-toggle__line:nth-child(1) { top: 0; }
.menu-toggle__line:nth-child(2) { top: 7px; }
.menu-toggle__line:nth-child(3) { top: 14px; }
/* Активное состояние — фирменный акцент + морф в «X» */
.menu-toggle.is-open {
  background: var(--brand); border-color: var(--brand);
  box-shadow: 0 6px 18px rgba(31,58,77,.32);
}
.menu-toggle.is-open .menu-toggle__line { background: #fff; }
.menu-toggle.is-open .menu-toggle__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open .menu-toggle__line:nth-child(2) { opacity: 0; }
.menu-toggle.is-open .menu-toggle__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Выпадающая панель меню (ТЗ п.2) ===== */
.site-panel-scrim {
  position: fixed; inset: 0; z-index: 90; background: rgba(10,18,24,.34);
  opacity: 0; transition: opacity .22s ease;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.site-panel-scrim.is-open { opacity: 1; }
.site-panel {
  position: fixed; z-index: 91; top: 74px; right: max(16px, calc((100vw - var(--maxw)) / 2 + 20px));
  width: min(380px, calc(100vw - 24px));
  background: var(--card);
  border: 1px solid var(--border); border-radius: 20px;
  box-shadow: 0 24px 60px rgba(12,22,30,.32), inset 0 1px 0 rgba(255,255,255,.4);
  opacity: 0; transform: translateY(-12px); pointer-events: none;
  transition: opacity .22s ease, transform .24s cubic-bezier(.4,.01,.2,1);
  overflow: hidden;
}
.site-panel.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.site-panel__inner { padding: 14px; display: flex; flex-direction: column; gap: 10px;
  max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px);
  overflow-y: auto; -webkit-overflow-scrolling: touch; }
/* Флекс-дети НЕ должны сжиматься под высоту панели: иначе при нехватке места
   (низкий in-app браузер) контент не скроллится, а «схлопывается», и аккордеон
   с overflow:hidden срезает пункты. flex-shrink:0 → включается нормальная
   прокрутка, всё содержимое остаётся доступным. */
.site-panel__inner > * { flex-shrink: 0; }

/* Умный поиск — сверху панели */
.panel-search { position: relative; display: flex; align-items: center;
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px;
  padding: 0 6px 0 12px; transition: border-color .18s ease, box-shadow .18s ease; }
.panel-search:focus-within { border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); }
.panel-search__ico { flex: 0 0 auto; width: 19px; height: 19px; color: var(--muted); }
.panel-search__input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: none;
  padding: 13px 10px; font-family: var(--sans); font-size: 15px; color: var(--text); }
.panel-search__input::placeholder { color: var(--muted); }
.panel-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.panel-search__go { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 0; border-radius: 11px; cursor: pointer;
  background: var(--brand); color: #fff; transition: filter .16s ease, transform .16s ease; }
.panel-search__go svg { width: 19px; height: 19px; }
.panel-search__go:hover { filter: brightness(1.08); }
.panel-search__go:active { transform: scale(.94); }

.panel-row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 10px; }
.panel-row__label { font-size: 14px; font-weight: 500; color: var(--text); }

/* iOS-подобный тумблер темы */
.theme-switch { background: none; border: 0; padding: 0; cursor: pointer; }
.theme-switch__track { display: block; width: 50px; height: 30px; border-radius: 999px;
  background: var(--border); position: relative; transition: background .22s ease; }
.theme-switch__thumb { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.28);
  transition: transform .22s cubic-bezier(.4,.01,.2,1); }
[data-theme="dark"] .theme-switch__track { background: var(--accent); }
[data-theme="dark"] .theme-switch__thumb { transform: translateX(20px); }
.theme-switch:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 999px; }

/* Аккордеоны панели */
.panel-acc { border-radius: 14px; background: var(--bg); overflow: hidden; }
.panel-acc > summary { list-style: none; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; padding: 13px 14px; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.panel-acc > summary::-webkit-details-marker { display: none; }
.panel-acc__chev { width: 18px; height: 18px; transition: transform .22s ease; }
.panel-acc[open] .panel-acc__chev { transform: rotate(180deg); }
.panel-acc__body { display: flex; flex-direction: column; padding: 2px 8px 10px; }
.panel-acc__body a, .panel-link {
  display: flex; align-items: center; text-align: left; width: 100%;
  padding: 11px 12px; border-radius: 10px; font-size: 15px; font-weight: 500;
  color: var(--text); background: none; border: 0; cursor: pointer;
  transition: background .16s ease, color .16s ease, padding-left .16s ease;
}
.panel-acc__body a:hover, .panel-link:hover {
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand); padding-left: 16px; text-decoration: none;
}
.panel-acc__body a.is-accent { color: var(--accent); }

/* Кнопки соцсетей — авто-сетка (ТЗ п.3) */
.panel-social { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 4px 2px; }
.social-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 6px; border-radius: 14px; background: var(--bg);
  border: 1px solid var(--border); color: var(--text); font-size: 12px; font-weight: 600;
  transition: transform .18s ease, box-shadow .22s ease, border-color .18s ease, background .18s ease;
}
.social-btn svg { width: 22px; height: 22px; }
.social-btn:hover { transform: translateY(-2px) scale(1.04); text-decoration: none; }
.social-btn--tg:hover { border-color: #29a9eb; color: #29a9eb; box-shadow: 0 8px 20px rgba(41,169,235,.28); }
.social-btn--ig:hover { border-color: #d6249f; color: #d6249f; box-shadow: 0 8px 20px rgba(214,36,159,.26); }
.social-btn--yt:hover { border-color: #ff3d3d; color: #ff3d3d; box-shadow: 0 8px 20px rgba(255,61,61,.26); }
.social-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.panel-write {
  margin-top: 2px; width: 100%; padding: 13px; border-radius: 14px; border: 0; cursor: pointer;
  background: var(--brand); color: #fff; font-size: 15px; font-weight: 600;
  display: block; box-sizing: border-box; text-align: center; text-decoration: none;
  transition: filter .18s ease, transform .18s ease;
}
.panel-write:hover { filter: brightness(1.08); }
.panel-write:active { transform: scale(.98); }

/* ===== Экраны «О нас» / «Реклама» (ТЗ п.5-6) ===== */
.sheet-scrim {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(8,15,20,.5);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .24s ease;
}
/* Атрибут hidden должен победить display:flex, иначе невидимый (opacity:0)
   оверлей висит поверх страницы и перехватывает все клики. */
.sheet-scrim[hidden] { display: none; }
.sheet-scrim.is-open { opacity: 1; }
.sheet {
  position: relative; width: min(560px, 100%); max-height: 88vh;
  background: var(--card); border: 1px solid var(--border); border-radius: 22px;
  box-shadow: 0 30px 80px rgba(8,15,20,.4); overflow: hidden;
  transform: translateY(16px) scale(.98); opacity: 0;
  transition: transform .28s cubic-bezier(.34,1.2,.5,1), opacity .22s ease;
}
.sheet-scrim.is-open .sheet { transform: translateY(0) scale(1); opacity: 1; }
.sheet__scroll { padding: 30px 26px 26px; overflow-y: auto; max-height: 88vh; }
.sheet__close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  border-radius: 12px; border: 1px solid var(--border); background: color-mix(in srgb, var(--card) 70%, transparent);
  color: var(--text); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.sheet__close svg { width: 20px; height: 20px; }
.sheet__close:hover { border-color: var(--brand); transform: rotate(90deg); }

/* Плавное появление секций */
.sheet__reveal { opacity: 0; transform: translateY(14px); }
.sheet-scrim.is-open .sheet__reveal { animation: sheetReveal .5s cubic-bezier(.2,.7,.3,1) forwards; }
.sheet__reveal:nth-child(1) { animation-delay: .06s; }
.sheet__reveal:nth-child(2) { animation-delay: .16s; }
.sheet__reveal:nth-child(3) { animation-delay: .26s; }
.sheet__reveal:nth-child(4) { animation-delay: .36s; }
.sheet__reveal:nth-child(5) { animation-delay: .46s; }
@keyframes sheetReveal { to { opacity: 1; transform: translateY(0); } }

.about-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.about-brand img { width: 52px; height: 52px; border-radius: 12px; }
.about-brand__word { font-family: var(--serif); font-weight: 700; font-size: 30px; color: var(--text); }
.about-brand__word span { color: var(--accent); }
.about-lead { font-size: 15.5px; line-height: 1.6; color: var(--muted); margin: 0 0 6px; }

/* Печатающийся заголовок «О нас». display:block + резерв высоты (JS меряет самую
   длинную фразу и ставит min-height) — строки не «прыгают» при печати/стирании. */
.about-type { font-size: 28px; line-height: 1.2; margin: 2px 0 12px; min-height: 2.4em; }
.about-type__caret { display: inline-block; width: 3px; height: 1.02em; margin-left: 3px;
  background: var(--accent); border-radius: 2px; vertical-align: -0.14em;
  animation: aboutCaret 1s step-end infinite; }
@keyframes aboutCaret { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* Подсказка «Ниже — подробности» */
.about-scrollhint { display: flex; align-items: center; gap: 8px; margin: 16px 0 2px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-2, var(--muted)); }
.about-scrollhint svg { width: 16px; height: 16px; color: var(--accent);
  animation: aboutBob 1.6s ease-in-out infinite; }
@keyframes aboutBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* Мелкий заголовок-надзаголовок секций */
.about-eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin: 20px 0 12px; }

/* «В одном взгляде» — счётчики */
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.about-stat { background: var(--bg); border: 1px solid var(--border); border-radius: 16px;
  padding: 16px 10px; text-align: center; }
.about-stat__num { display: block; font-family: var(--serif); font-weight: 700; font-size: 30px;
  line-height: 1; color: var(--brand); margin-bottom: 6px; }
.about-stat span { font-size: 12px; line-height: 1.4; color: var(--muted); }

/* «Что для нас важно» — карточки-строки с line-иконками */
.about-values { display: flex; flex-direction: column; gap: 10px; }
.about-value { display: flex; align-items: flex-start; gap: 14px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 15px 16px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.about-value:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
  box-shadow: 0 12px 26px rgba(12,22,30,.1); }
.about-value__ico { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.about-value__ico svg { width: 22px; height: 22px; }
.about-value div { display: flex; flex-direction: column; gap: 3px; }
.about-value b { font-size: 15px; color: var(--text); }
.about-value span { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.about-h { font-size: 18px; margin: 18px 0 12px; }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 4px; }
.about-card { background: var(--bg); border: 1px solid var(--border); border-radius: 16px;
  padding: 16px; display: flex; flex-direction: column; gap: 6px;
  transition: transform .2s ease, box-shadow .2s ease; }
.about-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(12,22,30,.1); }
.about-card__ico { font-size: 24px; }
.about-card b { font-size: 15px; color: var(--text); }
.about-card span { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.ads-cards { grid-template-columns: 1fr; }

.sheet-social { grid-template-columns: repeat(3, 1fr); margin: 20px 0 16px; }
.sheet__cta {
  display: block; width: 100%; text-align: center; padding: 15px; border-radius: 16px;
  background: var(--brand); color: #fff; font-size: 16px; font-weight: 600;
  transition: filter .18s ease, transform .18s ease;
}
.sheet__cta:hover { filter: brightness(1.08); text-decoration: none; }
.sheet__cta:active { transform: scale(.99); }
.ads-badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent);
  padding: 5px 11px; border-radius: 999px; margin-bottom: 12px; }
.ads-title { font-size: 26px; margin: 0 0 12px; }
.ads-note { font-size: 13px; color: var(--muted); text-align: center; margin: 12px 0 0; }

/* Панель как bottom-sheet на мобильных */
@media (max-width: 600px) {
  .site-panel { top: auto; bottom: 0; left: 0; right: 0; width: 100%;
    border-radius: 22px 22px 0 0; transform: translateY(100%); }
  .site-panel.is-open { transform: translateY(0); }
  .site-panel__inner { max-height: 82vh; max-height: 82dvh;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
  .panel-social { grid-template-columns: 1fr 1fr; }
  .site-panel .panel-social .social-btn:nth-child(3) { grid-column: 1 / -1; flex-direction: row; }

  .sheet-scrim { padding: 0; align-items: flex-end; }
  .sheet { width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0;
    transform: translateY(100%); }
  .sheet-scrim.is-open .sheet { transform: translateY(0); }
  .sheet__scroll { max-height: 92vh; padding-bottom: calc(26px + env(safe-area-inset-bottom)); }
  .about-cards { grid-template-columns: 1fr 1fr; }
  .sheet-social { grid-template-columns: 1fr 1fr; }
  .sheet-social .social-btn:nth-child(3) { grid-column: 1 / -1; flex-direction: row; }
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle, .menu-toggle__line, .site-panel, .site-panel-scrim, .sheet, .sheet-scrim,
  .theme-switch__thumb, .social-btn { transition: none; }
  .sheet-scrim.is-open .sheet__reveal { animation: none; opacity: 1; transform: none; }
}

/* ===== Бегущая строка последних новостей (ТЗ п.3) ===== */
.newsticker {
  display: flex; align-items: stretch;
  background: var(--card); border-bottom: 1px solid var(--border);
  overflow: hidden; font-size: 14px;
}
.newsticker__label {
  flex: 0 0 auto; display: flex; align-items: center;
  background: var(--brand); color: #fff; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; font-size: 12px;
  padding: 0 16px; white-space: nowrap;
}
.newsticker__viewport { position: relative; flex: 1 1 auto; overflow: hidden; min-width: 0; }
/* Мягкие «шторки» по краям, чтобы текст не обрывался резко */
.newsticker__viewport::before, .newsticker__viewport::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 32px; z-index: 2; pointer-events: none;
}
.newsticker__viewport::before { left: 0; background: linear-gradient(90deg, var(--card), transparent); }
.newsticker__viewport::after { right: 0; background: linear-gradient(270deg, var(--card), transparent); }
.newsticker__track {
  display: inline-flex; align-items: center; gap: 0;
  white-space: nowrap; padding: 9px 0;
  will-change: transform;
  animation: ticker-scroll 40s linear infinite;
}
.newsticker:hover .newsticker__track { animation-play-state: paused; }
.newsticker__item { display: inline-flex; align-items: baseline; gap: 8px; color: var(--text); }
.newsticker__item:hover { text-decoration: none; }
.newsticker__item:hover .newsticker__title { color: var(--brand); text-decoration: underline; }
.newsticker__rubric { color: var(--accent); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .04em; }
.newsticker__title { color: var(--text); }
.newsticker__sep { color: var(--muted-2); padding: 0 18px; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* Доступность: при запрете анимации строка не двигается, читаема как список */
@media (prefers-reduced-motion: reduce) {
  .newsticker__viewport { overflow-x: auto; }
  .newsticker__track { animation: none; }
}
@media (max-width: 700px) {
  .newsticker__label { padding: 0 11px; font-size: 11px; }
  .newsticker { font-size: 13px; }
  .newsticker__track { animation-duration: 28s; }
  .newsticker__sep { padding: 0 12px; }
}

/* ===== Breaking strip ===== */
.breaking {
  background: var(--breaking); color: #fff; font-size: 14px;
  display: flex; align-items: center; gap: 12px;
}
.breaking .container { display: flex; align-items: center; gap: 14px; min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.breaking .tag { flex: 0 0 auto; }
.breaking a { min-width: 0; overflow-wrap: break-word; }
.breaking .tag { background: rgba(0,0,0,.18); font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; padding: 3px 9px; border-radius: var(--r-sm); font-size: 12px; }
.breaking a { color: #fff; font-weight: 500; }

/* ===== Layout ===== */
main { padding: 26px 0 48px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; }
.section-head { display: flex; align-items: baseline; gap: 12px; margin: 28px 0 14px;
  border-bottom: 2px solid var(--brand); padding-bottom: 8px; }
.section-head h2 { margin: 0; font-size: 24px; }
.section-head a.more { margin-left: auto; font-size: 14px; font-family: var(--sans);
  font-weight: 600; color: var(--brand-600); padding: 4px 11px; border-radius: 999px;
  transition: background-color .18s ease, color .18s ease; }
.section-head a.more:hover { background: rgba(31,58,77,.08); color: var(--brand); text-decoration: none; }
.section-head.accent { border-color: var(--accent); }
.section-head.accent h2 { color: var(--accent); }

/* ===== Cards / labels ===== */
.label { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; padding: 3px 8px; border-radius: var(--r-sm); margin-bottom: 8px; }
.label.rubric { background: var(--brand); color: #fff; }
.label.event { background: var(--accent); color: #1c1305; }
.label.opinion { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.label.ad { background: var(--bg); color: var(--muted-2); border: 1px solid var(--border); }
.meta { font-size: 13px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.meta .dot::before { content: "•"; margin-right: 12px; color: var(--muted-2); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; }
.hero > * { min-width: 0; }
.hero-main { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--brand-700); min-height: 420px; min-width: 0; }
.hero-main img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; opacity: .9; }
.hero-main .overlay { position: absolute; left: 0; right: 0; bottom: 0; box-sizing: border-box; padding: 28px;
  background: linear-gradient(transparent, rgba(14,24,30,.92)); color: #fff; }
.hero-main h1 { color: #fff; font-size: 34px; margin: 8px 0 8px; overflow-wrap: break-word; }
.hero-main .lead { color: #dfe7ec; font-size: 16px; max-width: 90%; overflow-wrap: break-word; }
.hero-main .meta { color: #b8c6d0; }
.hero-side { display: flex; flex-direction: column; gap: 18px; }
.hero-side .item { padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.hero-side .item:last-child { border-bottom: 0; }
.hero-side h3 { font-size: 18px; }
.hero-side h3 a { color: var(--text); }

/* ===== Hero-карусель главных новостей (ТЗ) ===== */
.hero-carousel { position: relative; border-radius: var(--r-md); overflow: hidden;
  background: var(--brand-700); box-shadow: var(--shadow-sm); }
.hero-carousel .hc-viewport { overflow: hidden; }
.hero-carousel .hc-track { display: flex; will-change: transform;
  transition: transform .6s cubic-bezier(.22, .61, .36, 1); touch-action: pan-y; }
.hero-carousel.is-dragging .hc-track { transition: none; }
.hc-slide { position: relative; flex: 0 0 100%; min-width: 0; }
.hc-media { display: block; position: relative; aspect-ratio: 16 / 9; background: var(--brand-700); }
.hc-media img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.hc-grad { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(8,15,21,.94) 0%, rgba(8,15,21,.5) 40%, rgba(8,15,21,.08) 72%, transparent 88%); }
.hc-content { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 28px; }
.hc-content .label { margin-bottom: 10px; }
.hc-title { color: #fff; font-size: 30px; line-height: 1.2; margin: 8px 0 6px; overflow-wrap: break-word; }
/* Рубричная карусель («Экономика» и т.п.): та же композиция, чуть скромнее заголовок */
.hero-carousel.is-rubric .hc-title { font-size: 24px; }
.hc-title a { color: #fff; }
.hc-title a:hover { text-decoration: none; opacity: .92; }
.hc-lead { color: #dfe7ec; font-size: 16px; max-width: 72%; margin: 0 0 8px;
  overflow-wrap: break-word; }
.hc-meta { color: #b8c6d0; font-size: 13px; display: flex; gap: 12px; }
.hc-meta .dot::before { content: "· "; }
/* Стрелки */
.hc-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(14,24,30,.5); color: #fff; font-size: 26px; line-height: 1;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px);
  transition: background .2s, opacity .2s; opacity: 0; }
.hero-carousel:hover .hc-arrow, .hc-arrow:focus-visible { opacity: 1; }
.hc-arrow:hover { background: var(--brand); }
.hc-prev { left: 14px; } .hc-next { right: 14px; }
/* Индикаторы */
.hc-dots { position: absolute; bottom: 16px; right: 20px; z-index: 3; display: flex; gap: 8px; }
.hc-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.45); transition: width .3s, background .3s; }
.hc-dot:hover { background: rgba(255,255,255,.75); }
.hc-dot.is-active { width: 24px; border-radius: 5px; background: #fff; }
@media (hover: none) { .hc-arrow { display: none; } }  /* на тач-устройствах — свайп */
@media (max-width: 600px) {
  .hc-media { aspect-ratio: 4 / 3; }
  .hc-content { padding: 16px 16px 18px; }
  .hc-title { font-size: 21px; }
  .hero-carousel.is-rubric .hc-title { font-size: 20px; }
  .hc-lead { display: none; }
  .hc-dots { bottom: 12px; right: 14px; }
}

/* Card grid */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
/* .thumb — это <a> (inline по умолчанию): aspect-ratio на inline игнорируется,
   из-за чего на ПК в многоколоночной сетке картинки вытягивались в портрет.
   Внутри flex-колонки ссылка блокируется — 16/10 снова работает. */
.card .thumb { display: block; aspect-ratio: 16/10; background: var(--brand-700); overflow: hidden; }
.card .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card .body { flex: 1 1 auto; display: flex; flex-direction: column; padding: 14px 16px 18px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--brand-600); text-decoration: none; }
.card p { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.card .meta { margin-top: auto; }

/* ===== «Важное сейчас» — премиальные overlay-карточки ===== */
.cards-feature { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card-feat { position: relative; display: block; box-sizing: border-box; overflow: hidden;
  border-radius: var(--r-md); background: var(--brand-700); aspect-ratio: 4 / 3; min-height: 230px;
  box-shadow: var(--shadow-sm); isolation: isolate;
  transition: transform .25s ease, box-shadow .25s ease; }
.card-feat.is-lead { grid-column: 1 / -1; aspect-ratio: 16 / 8; min-height: 340px; }
.card-feat:hover { box-shadow: var(--shadow); transform: translateY(-3px); text-decoration: none; }

/* Тонкая полоса-индикатор рубрики сверху */
.card-feat .cf-bar { position: absolute; top: 0; left: 0; right: 0; height: 4px; z-index: 4;
  background: linear-gradient(90deg, var(--brand), var(--accent)); transform-origin: left;
  transition: height .25s ease; }
.card-feat.is-live .cf-bar { background: linear-gradient(90deg, var(--breaking), #ff6b7a); }
.card-feat.is-exclusive .cf-bar { background: linear-gradient(90deg, var(--accent), #efd9a3); }
.card-feat:hover .cf-bar { height: 6px; }

/* Картинка + плавный зум при наведении */
.card-feat .cf-media { position: absolute; inset: 0; overflow: hidden; }
.card-feat .cf-media img { width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.005); transition: transform .6s cubic-bezier(.2,.6,.2,1), filter .3s ease; }
.card-feat:hover .cf-media img { transform: scale(1.06); }

/* Градиент-затемнение снизу вверх — читаемость на любом фоне */
.card-feat .cf-grad { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(8,15,21,.92) 0%, rgba(8,15,21,.55) 34%,
    rgba(8,15,21,.12) 62%, rgba(8,15,21,0) 80%);
  transition: background .3s ease; }
.card-feat:hover .cf-grad { background: linear-gradient(to top, rgba(6,12,17,.96) 0%,
    rgba(6,12,17,.66) 40%, rgba(6,12,17,.22) 68%, rgba(6,12,17,0) 86%); }

/* Текстовый блок поверх фото */
.card-feat .cf-content { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  box-sizing: border-box; padding: 20px; display: flex; flex-direction: column; gap: 7px;
  transition: transform .25s ease; }
.card-feat:hover .cf-content { transform: translateY(-3px); }

/* Кикер-рубрика: мелкий, uppercase, увеличенный трекинг */
.card-feat .cf-kicker { align-self: flex-start; font-family: var(--sans); font-size: 11px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--accent);
  margin: 0; }
.card-feat.is-lead .cf-kicker { font-size: 12px; }

.card-feat .cf-title { color: #fff; font-family: var(--serif); font-weight: 700; margin: 0;
  font-size: 19px; line-height: 1.22; letter-spacing: -.01em; overflow-wrap: break-word;
  text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.card-feat.is-lead .cf-title { font-size: 30px; max-width: 80%; }

.card-feat .cf-lead { color: rgba(233,239,242,.86); font-family: var(--sans); font-size: 15px;
  line-height: 1.5; margin: 2px 0 0; max-width: 62ch; overflow-wrap: break-word; }

.card-feat .cf-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 3px; font-size: 12px; letter-spacing: .02em; color: rgba(207,221,230,.82); }
.card-feat .cf-meta .cf-dot::before { content: "·"; margin-right: 10px; color: rgba(207,221,230,.55); }

/* Плашки LIVE / Эксклюзив */
.card-feat .cf-flag { position: absolute; top: 14px; left: 14px; z-index: 4;
  display: inline-flex; align-items: center; gap: 6px; box-sizing: border-box;
  padding: 5px 10px; border-radius: 999px; font-family: var(--sans); font-size: 11px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .08em; line-height: 1;
  box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.card-feat .cf-flag.live { background: var(--breaking); color: #fff; }
.card-feat .cf-flag.excl { background: var(--accent); color: #1c1305; }
.card-feat .cf-flag.live i { width: 7px; height: 7px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: cf-pulse 1.8s ease-out infinite; }
@keyframes cf-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); }
  70% { box-shadow: 0 0 0 7px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
@media (prefers-reduced-motion: reduce) {
  .card-feat, .card-feat .cf-media img, .card-feat .cf-content, .card-feat .cf-grad,
  .card-feat .cf-bar { transition: none; }
  .card-feat:hover .cf-media img { transform: none; }
  .card-feat .cf-flag.live i { animation: none; }
}

/* Rubric block: 1 big + list */
.rubric-block { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 26px; }
.rubric-list { display: flex; flex-direction: column; }
.rubric-list a.row { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.rubric-list a.row:last-child { border-bottom: 0; }
.rubric-list a.row:hover { text-decoration: none; color: var(--brand-600); }
.rubric-list .time { color: var(--accent); font-size: 12px; font-weight: 600; min-width: 44px; }
.rubric-list .row h4 { font-size: 16px; margin: 0; font-weight: 600; line-height: 1.35; }

/* Events horizontal scroll */
.events-row { display: grid; grid-auto-flow: column; grid-auto-columns: 240px; gap: 18px;
  overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.event-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md);
  overflow: hidden; scroll-snap-align: start; }
.event-card .poster { aspect-ratio: 3/4; background: var(--brand-700); position: relative; overflow: hidden; }
.event-card .poster img { width: 100%; height: 100%; object-fit: cover; }
.event-card .date-badge { position: absolute; top: 10px; left: 10px; background: var(--accent);
  color: #1c1305; border-radius: var(--r-sm); padding: 5px 8px; text-align: center; line-height: 1; }
.event-card .date-badge b { display: block; font-size: 18px; font-weight: 700; }
.event-card .date-badge span { font-size: 11px; text-transform: uppercase; }
.event-card .ev-body { padding: 12px 14px 16px; }
.event-card h4 { font-size: 16px; margin: 0 0 6px; }
.event-card .place { font-size: 13px; color: var(--muted); }
.event-card .price { font-size: 13px; color: var(--accent); font-weight: 600; margin-top: 6px; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.widget { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px; }
.widget h3 { font-size: 17px; border-bottom: 2px solid var(--accent); padding-bottom: 8px; margin-bottom: 12px; }
/* «Топ за 24 часа» — компактные карточки с миниатюрой и номером */
.topcards { counter-reset: top; list-style: none; margin: 0; padding: 0; }
.topcards .topcard { counter-increment: top; }
.topcards .topcard a { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 12px;
  align-items: center; padding: 11px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.topcards .topcard:last-child a { border-bottom: 0; }
.topcards .tc-thumb { position: relative; width: 58px; height: 58px; border-radius: var(--r-sm);
  overflow: hidden; background: var(--bg); }
.topcards .tc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.topcards .topcard a:hover .tc-thumb img { transform: scale(1.07); }
.topcards .tc-body { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.topcards .tc-body::before { content: counter(top); font-family: var(--serif); font-weight: 700;
  font-size: 21px; line-height: 1; color: var(--accent); flex: none; }
.topcards .tc-title { font-size: 14px; font-weight: 600; line-height: 1.32; overflow-wrap: break-word;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.topcards .topcard a:hover .tc-title { color: var(--brand-600); }
.top-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 100%;
  margin-top: 12px; padding: 10px 16px; font-family: var(--sans); font-weight: 600; font-size: 14px;
  color: var(--brand); background: transparent; border: 1px solid var(--border); border-radius: var(--r-btn);
  cursor: pointer; transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
.top-toggle:hover { background: var(--bg); border-color: var(--brand); }
.top-toggle:active { background: rgba(31,58,77,.08); }
.top-toggle:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; }
.top-toggle .tt-chevron { font-size: 15px; line-height: 1; transition: transform .22s ease; }
.top-toggle[aria-expanded="true"] .tt-chevron { transform: rotate(180deg); }
.ad-slot { background: repeating-linear-gradient(45deg, var(--bg), var(--bg) 10px, var(--card) 10px, var(--card) 20px);
  border: 1px dashed var(--border); border-radius: var(--r-md); min-height: 250px;
  display: flex; align-items: center; justify-content: center; color: var(--muted-2); font-size: 13px; }
.sidebar .sticky { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 28px; }

/* Live feed widget — компактные сканируемые строки */
.live-feed a.row { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 10px; align-items: baseline;
  padding: 9px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.live-feed a.row:last-child { border-bottom: 0; }
.live-feed a.row:hover .lf-title { color: var(--brand-600); }
.live-feed .t { color: var(--accent); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.live-feed .lf-title { font-size: 14px; font-weight: 500; line-height: 1.35; overflow-wrap: break-word;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.live-feed .lf-all .lf-title { color: var(--brand-600); font-weight: 600; }
.live-feed .live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--breaking); margin-right: 6px; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* CTA Telegram block */
.tg-cta { background: var(--brand); color: #fff; border-radius: var(--r-md); padding: 26px 26px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 28px; }
.tg-cta .tg-icon { width: 54px; height: 54px; flex-shrink: 0; background: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; }
.tg-cta h3 { color: #fff; margin: 0 0 4px; font-size: 22px; }
.tg-cta p { margin: 0; color: #cfdde6; }
.tg-cta .btn { margin-left: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 15px; line-height: 1.2;
  padding: 12px 24px; border-radius: var(--r-btn); cursor: pointer; border: 1px solid transparent;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, filter .2s ease; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: #1c1305; box-shadow: 0 2px 10px rgba(201,154,63,.26); }
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(201,154,63,.34); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(201,154,63,.28); }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--brand); background: var(--bg); }
.btn-tg { background: #fff; color: var(--brand); }
.btn-tg:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) {
  .btn, .load-more, .section-head a.more, .top-toggle, .top-toggle .tt-chevron { transition: none; }
  .btn:hover, .btn:active, .btn-tg:hover, .load-more:active { transform: none; }
}

/* ===== Footer ===== */
.footer { background: var(--brand-700); color: #b9c7d0; margin-top: 50px; padding: 40px 0 24px; }
/* Верхняя полоса: бренд + соцкнопка */
.footer .foot-top { display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .fabout { max-width: 460px; }
.footer .fabout p { margin: 10px 0 0; font-size: 14px; color: #9fb0bb; line-height: 1.5; }
.footer .fbrand { display: flex; align-items: center; gap: 10px; }
.footer .fbrand .word { font-family: var(--serif); font-size: 22px; color: #fff; }
.footer .fbrand .word span { color: var(--accent); }
.footer .fsocial { display: inline-flex; align-items: center; gap: 9px; color: #fff;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  transition: background .2s, border-color .2s; }
.footer .fsocial:hover { background: var(--accent); border-color: var(--accent); color: #14100a; text-decoration: none; }
/* Колонки-ссылки */
.footer .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px; padding: 26px 0 4px; }
.footer .fcol { min-width: 0; }
.footer .fcol summary { color: #fff; font-family: var(--sans); font-size: 13px;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px;
  list-style: none; }
.footer .fcol summary::-webkit-details-marker { display: none; }
.footer .flinks a { color: #b9c7d0; display: block; padding: 5px 0; font-size: 14px; }
.footer .flinks a:hover { color: #fff; }
/* Десктоп: колонки всегда раскрыты, заголовок не кликается */
@media (min-width: 641px) {
  .footer .fcol > :not(summary) { display: block !important; }
  .footer .fcol summary { pointer-events: none; cursor: default; }
}
.footer .copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 24px; padding-top: 18px;
  font-size: 13px; color: #8ea0ac; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ===== Telegram popup modal ===== */
.tg-modal-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(14,24,30,.6); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px;
  opacity: 0; transition: opacity .25s; }
.tg-modal-backdrop.show { display: flex; opacity: 1; }
.tg-modal { background: var(--card); border-radius: 14px; max-width: 420px; width: 100%;
  padding: 34px 30px 26px; text-align: center; box-shadow: var(--shadow);
  transform: translateY(14px); transition: transform .25s; }
.tg-modal-backdrop.show .tg-modal { transform: translateY(0); }
.tg-modal .tg-badge { width: 68px; height: 68px; margin: 0 auto 16px; background: var(--brand);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.tg-modal h3 { font-size: 22px; margin: 0 0 10px; }
.tg-modal p { color: var(--muted); margin: 0 0 22px; }
.tg-modal .actions { display: flex; gap: 12px; }
.tg-modal .actions .btn { flex: 1; justify-content: center; }

/* ===== Top popup banner (в потоке, не перекрывает интерфейс) ===== */
.top-popup { display: none; background: var(--brand); color: #fff; }
.top-popup.is-visible { display: block; }
.top-popup__inner { max-width: 1200px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 12px; }
.top-popup__icon { flex: none; }
.top-popup__text { flex: 1; font-size: 14px; font-weight: 600; line-height: 1.3; }
.top-popup__btn { flex: none; background: #fff; color: var(--brand); font-weight: 700;
  font-size: 13px; padding: 6px 14px; border-radius: 999px; text-decoration: none;
  white-space: nowrap; }
.top-popup__btn:hover { opacity: .92; }
.top-popup__close { flex: none; background: transparent; border: 0; color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; opacity: .85; }
.top-popup__close:hover { opacity: 1; }
@media (max-width: 640px) {
  .top-popup__inner { gap: 8px; padding: 9px 12px; }
  .top-popup__text { font-size: 13px; }
  .top-popup__btn { padding: 5px 11px; font-size: 12px; }
}

/* ===== Article page ===== */
.article-wrap { display: grid; grid-template-columns: minmax(0,720px) 320px; gap: 30px; justify-content: center; }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.article h1 { font-size: 40px; line-height: 1.15; margin: 8px 0 14px; }
.article .lead { font-size: 21px; line-height: 1.5; color: var(--muted); font-family: var(--serif);
  margin-bottom: 20px; }
.article .author-meta { display: flex; align-items: center; gap: 12px; padding: 14px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.article .author-meta .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; }
.article .author-meta .reader-tools { margin-left: auto; display: flex; gap: 8px; }
.article figure { margin: 0 0 22px; }
.article figure img { width: 100%; border-radius: var(--r-md); }
.article figcaption { font-size: 13px; color: var(--muted-2); margin-top: 8px; }
.article-body { font-family: var(--serif); font-size: 19px; line-height: 1.75; }
.article-body p { margin: 0 0 1.3em; }
.article-body blockquote { border-left: 3px solid var(--accent); margin: 1.4em 0; padding: 6px 0 6px 22px;
  font-size: 24px; line-height: 1.45; color: var(--text); }
.article-body h2 { font-size: 27px; margin: 1.4em 0 .5em; }
/* Мультимедийная вёрстка «Зебра»: фото из источника между абзацами. */
.article-body figure { margin: 1.6em 0; }
.article-body figure img { display: block; width: 100%; height: auto; border-radius: var(--r-md); }
.article-body figcaption { margin-top: 8px; font-family: var(--sans, inherit); font-size: 14px;
  line-height: 1.4; color: var(--muted); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 28px 0; }
.tags a { background: var(--bg); border: 1px solid var(--border); border-radius: 20px;
  padding: 5px 13px; font-size: 13px; color: var(--muted); }
.tags a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.read-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--accent); width: 0; z-index: 60; }

.comments-off { background: var(--bg); border: 1px dashed var(--border); border-radius: var(--r-md);
  padding: 22px; text-align: center; color: var(--muted); margin-top: 30px; }

/* ===== Lenta page ===== */
.lenta-day { font-family: var(--serif); font-size: 20px; margin: 26px 0 8px; color: var(--brand-600);
  border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.lenta-item { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.lenta-item .ltime { color: var(--accent); font-weight: 600; font-size: 14px; min-width: 52px; }
.lenta-item .lbody h3 { font-size: 18px; margin: 0 0 4px; }
.lenta-item .lbody h3 a { color: var(--text); }
.lenta-item .lbody .lmeta { font-size: 13px; color: var(--muted); }
.lenta-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.lenta-filter button { background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 7px 15px; font: inherit; font-size: 14px; cursor: pointer; color: var(--text); }
.lenta-filter button.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.load-more { display: block; margin: 28px auto 0; background: var(--card); border: 1px solid var(--brand);
  color: var(--brand); font-weight: 600; padding: 13px 32px; border-radius: var(--r-btn); cursor: pointer; font: inherit; font-weight: 600;
  transition: transform .12s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.load-more:hover { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.load-more:active { transform: translateY(1px); }
.load-more:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; }

.page-title { font-size: 32px; margin: 6px 0 4px; }
.page-sub { color: var(--muted); margin: 0 0 22px; }

/* ===== Event detail page ===== */
.event-hero { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 30px; align-items: start; margin-bottom: 14px; }
.event-hero .poster-lg { border-radius: var(--r-md); overflow: hidden; background: var(--brand-700); aspect-ratio: 3/4; }
.event-hero .poster-lg img { width: 100%; height: 100%; object-fit: cover; }
.event-hero h1 { font-size: 32px; margin: 10px 0 14px; }
.event-facts { list-style: none; margin: 0 0 18px; padding: 0; }
.event-facts li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.event-facts li:last-child { border-bottom: 0; }
.event-facts .k { color: var(--muted); min-width: 110px; }
.event-facts .v { font-weight: 500; }
.event-facts .v.free { color: var(--accent); font-weight: 700; }
.event-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.event-desc { font-family: var(--serif); font-size: 18px; line-height: 1.7; max-width: 760px; }
.map-stub { height: 220px; border-radius: var(--r-md); background:
  linear-gradient(135deg, var(--brand-700), var(--brand-600)); display: flex; align-items: center;
  justify-content: center; color: #cdd9e0; font-size: 14px; margin: 16px 0; }
@media (max-width: 720px) { .event-hero { grid-template-columns: minmax(0, 1fr); } }

/* ===== Search page ===== */
.search-box { display: flex; gap: 10px; margin: 8px 0 18px; }
.search-box input { flex: 1; font: inherit; font-size: 16px; padding: 13px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--card); color: var(--text); }
.search-box input:focus { outline: none; border-color: var(--brand); }
.search-box button { background: var(--brand); color: #fff; border: 0; font: inherit; font-weight: 600;
  padding: 0 24px; border-radius: var(--r-sm); cursor: pointer; }
.search-result { padding: 16px 0; border-bottom: 1px solid var(--border); }
.search-result h3 { font-size: 19px; margin: 6px 0 4px; }
.search-result h3 a { color: var(--text); }
.search-result p { color: var(--muted); margin: 0; font-size: 14px; }
.search-result mark { background: rgba(201,154,63,.28); color: inherit; padding: 0 2px; border-radius: 2px; }

/* ===== Calendar / afisha filter ===== */
.afisha-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.afisha-cats button { background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 7px 15px; font: inherit; font-size: 14px; cursor: pointer; color: var(--text); }
.afisha-cats button.active { background: var(--accent); color: #1c1305; border-color: var(--accent); }
.afisha-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 980px) { .afisha-grid { grid-template-columns: repeat(3,minmax(0, 1fr)); } }
@media (max-width: 720px) { .afisha-grid { grid-template-columns: repeat(2,minmax(0, 1fr)); } }
@media (max-width: 460px) { .afisha-grid { grid-template-columns: minmax(0, 1fr); } }

/* ===== Admin settings mockup ===== */
.admin-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.admin-side { background: var(--brand-700); color: #cdd9e0; padding: 22px 16px; }
.admin-side .fbrand { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.admin-side .fbrand .word { font-family: var(--serif); font-size: 20px; color: #fff; }
.admin-side .fbrand .word span { color: var(--accent); }
.admin-side a { display: block; color: #cdd9e0; padding: 10px 12px; border-radius: var(--r-sm); font-size: 14px; }
.admin-side a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.admin-side a.active { background: var(--brand); color: #fff; }
.admin-main { padding: 30px 34px; background: var(--bg); }
.admin-main h1 { font-size: 26px; }
.admin-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 22px 24px; margin-bottom: 18px; max-width: 720px; }
.admin-card h2 { font-size: 18px; margin: 0 0 4px; }
.admin-card .hint { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.setting-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--border); }
.setting-row:first-of-type { border-top: 0; }
.setting-row .st-text { flex: 1; }
.setting-row .st-text b { display: block; font-size: 15px; }
.setting-row .st-text span { font-size: 13px; color: var(--muted); }
.switch { position: relative; width: 48px; height: 27px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: var(--border); border-radius: 27px; cursor: pointer; transition: .2s; }
.switch .slider::before { content: ""; position: absolute; width: 21px; height: 21px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: .2s; box-shadow: var(--shadow-sm); }
.switch input:checked + .slider { background: var(--brand); }
.switch input:checked + .slider::before { transform: translateX(21px); }
.switch input:disabled + .slider { opacity: .5; cursor: not-allowed; }
.admin-save { background: var(--accent); color: #1c1305; border: 0; font: inherit; font-weight: 600;
  padding: 11px 26px; border-radius: var(--r-sm); cursor: pointer; }
.admin-side .group-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted-2); padding: 16px 12px 6px; }
.admin-side .badge-count { float: right; background: var(--accent); color: #1c1305; font-size: 11px;
  font-weight: 700; border-radius: 10px; padding: 1px 7px; }

/* Admin topbar (page header) */
.admin-topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-topbar h1 { margin: 0; font-size: 24px; }
.admin-topbar .crumb { font-size: 13px; color: var(--muted); width: 100%; margin-bottom: 4px; }
.admin-topbar .spacer { margin-left: auto; }

/* Stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px; }
.stat-card .num { font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1; }
.stat-card .lbl { color: var(--muted); font-size: 13px; margin-top: 6px; }
.stat-card .delta { font-size: 12px; font-weight: 600; margin-top: 8px; }
.stat-card .delta.up { color: #1a8a4b; }
.stat-card .delta.down { color: var(--breaking); }
@media (max-width: 820px) { .stat-grid { grid-template-columns: repeat(2,minmax(0, 1fr)); } }

/* Toolbar */
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar input[type="search"], .toolbar select { font: inherit; font-size: 14px; padding: 9px 12px;
  border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--card); color: var(--text); }
.toolbar input[type="search"] { flex: 1; min-width: 180px; }
.toolbar .spacer { margin-left: auto; }

/* Buttons */
.btn-sm { font-size: 13px; padding: 8px 14px; border-radius: var(--r-sm); border: 1px solid var(--border);
  background: var(--card); color: var(--text); cursor: pointer; font-family: var(--sans); font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.btn-sm:hover { border-color: var(--brand); text-decoration: none; }
.btn-acc { background: var(--accent); border-color: var(--accent); color: #1c1305; font-weight: 600; }
.btn-acc:hover { filter: brightness(1.05); }
.btn-danger { color: var(--breaking); border-color: var(--breaking); background: transparent; }
.btn-danger:hover { background: var(--breaking); color: #fff; }

/* Table */
.table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden; }
.table th, .table td { text-align: left; padding: 13px 16px; font-size: 14px; border-bottom: 1px solid var(--border); }
.table th { background: var(--bg); color: var(--muted); font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: .04em; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--bg); }
.table .t-title { font-weight: 600; color: var(--text); }
.table .t-title a { color: var(--text); }
.table .t-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.table .actions-cell { white-space: nowrap; text-align: right; }
.table .actions-cell a, .table .actions-cell button { margin-left: 6px; }

/* Status badge */
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .03em; }
.badge.pub { background: rgba(26,138,75,.14); color: #1a8a4b; }
.badge.draft { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.badge.sched { background: rgba(201,154,63,.18); color: #9a7320; }
.badge.pending { background: rgba(215,38,61,.12); color: var(--breaking); }

/* Pagination */
.pagination { display: flex; gap: 6px; margin-top: 18px; justify-content: flex-end; }
.pagination a { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--text); font-size: 14px; }
.pagination a.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination a:hover { border-color: var(--brand); text-decoration: none; }

/* Editor */
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.field .desc { color: var(--muted); font-size: 12px; font-weight: 400; }
.field input[type="text"], .field input[type="datetime-local"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; padding: 11px 13px; border: 1px solid var(--border);
  border-radius: var(--r-sm); background: var(--card); color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
.field textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.field textarea.body { min-height: 320px; font-family: var(--serif); font-size: 17px; }
.field .title-input { font-family: var(--serif); font-size: 22px; font-weight: 700; }
.field .wysiwyg { width: 100%; min-height: 320px; padding: 11px 13px; border: 1px solid var(--border);
  border-radius: var(--r-sm); background: var(--card); color: var(--text);
  font-family: var(--serif); font-size: 17px; line-height: 1.7; overflow-y: auto; }
.field .wysiwyg:focus { outline: none; border-color: var(--brand); }
.field .wysiwyg p { margin: 0 0 1em; }
.field .wysiwyg h2 { font-size: 1.3em; margin: 1.2em 0 .5em; }
.field .wysiwyg blockquote { margin: 1em 0; padding-left: 14px; border-left: 3px solid var(--brand); color: var(--muted); }
.field .wysiwyg ul, .field .wysiwyg ol { margin: 0 0 1em 1.2em; }
.field .wysiwyg a { color: var(--brand); text-decoration: underline; }
.field .wysiwyg:empty:before { content: attr(data-ph); color: var(--muted); }
.editor-toolbar { display: flex; gap: 4px; margin-bottom: 8px; flex-wrap: wrap; }
.editor-toolbar button { width: 36px; height: 34px; border: 1px solid var(--border); background: var(--card);
  border-radius: var(--r-sm); cursor: pointer; color: var(--text); font-weight: 600; }
.editor-toolbar button:hover { border-color: var(--brand); }
.editor-side .panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 16px 18px; margin-bottom: 16px; }
.editor-side .panel h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
  font-family: var(--sans); margin: 0 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chips .chip { background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 4px 11px;
  font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.chips .chip b { cursor: pointer; color: var(--muted-2); font-weight: 700; }
.cover-drop { border: 2px dashed var(--border); border-radius: var(--r-md); padding: 26px 14px; text-align: center;
  color: var(--muted); font-size: 13px; cursor: pointer; }
.cover-drop:hover { border-color: var(--brand); }
.editor-actions { display: flex; gap: 10px; }
.editor-actions .btn-acc, .editor-actions .btn-sm { flex: 1; justify-content: center; }

/* Comment moderation card */
.mod-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 16px 18px; margin-bottom: 12px; }
.mod-item .mod-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mod-item .mod-head .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand);
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.mod-item .mod-head .who { font-weight: 600; font-size: 14px; }
.mod-item .mod-head .ctx { color: var(--muted); font-size: 12px; }
.mod-item .mod-text { font-size: 15px; margin: 0 0 12px; }
.mod-item .mod-actions { display: flex; gap: 8px; }
.notice { background: rgba(201,154,63,.12); border: 1px solid rgba(201,154,63,.4); border-radius: var(--r-md);
  padding: 14px 16px; font-size: 14px; color: var(--text); margin-bottom: 18px; }

@media (max-width: 820px) {
  .admin-shell { grid-template-columns: minmax(0, 1fr); }
  .admin-side { display: none; }
  .editor-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ===== Mobile bottom nav ===== */
.mobile-nav { display: none; }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .grid-main { grid-template-columns: minmax(0, 1fr); }
  .sidebar { flex-direction: row; flex-wrap: wrap; }
  .sidebar .sticky { position: static; flex-direction: row; flex-wrap: wrap; width: 100%; }
  .widget { flex: 1; min-width: 260px; }
  .article-wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-feature { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-feat.is-lead { aspect-ratio: 16 / 9; }
  .card-feat.is-lead .cf-title { font-size: 24px; max-width: 100%; }
  .rubric-block { grid-template-columns: minmax(0, 1fr); }
  .footer .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .nav { display: none; }
  /* Погода и курсы валют показываются и на телефоне (раньше скрывались).
     Компактно: без словесного описания погоды, мельче шрифт и отступы;
     при нехватке ширины строка аккуратно переносится, а не режется. */
  .topbar .container { gap: 6px 12px; }
  .topbar .tb-left { flex-wrap: wrap; gap: 4px 12px; font-size: 12px; }
  .topbar .tb-weather .tb-desc { display: none; }
  .topbar .tb-ico { font-size: 13px; }
  .topbar .tb-widget { gap: 5px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .cards-feature { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .card-feat, .card-feat.is-lead { aspect-ratio: 4 / 3; min-height: 220px; }
  .card-feat .cf-content { padding: 16px; }
  .card-feat .cf-title { font-size: 18px; }
  .card-feat.is-lead .cf-title { font-size: 22px; }
  .card-feat .cf-lead { display: none; }
  .hero-main { min-height: 340px; }
  .hero-main img { min-height: 340px; }
  .hero-main .overlay { padding: 16px; }
  .hero-main h1 { font-size: 24px; line-height: 1.18; }
  .hero-main .lead { font-size: 14px; max-width: 100%; }
  .article h1 { font-size: 28px; }
  .article-body { font-size: 18px; }
  .footer .cols { grid-template-columns: minmax(0, 1fr); }
  .tg-cta { flex-direction: column; align-items: flex-start; }
  .tg-cta .btn { margin-left: 0; }
  body { padding-bottom: 64px; }
  .mobile-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; height: 60px;
    background: var(--card); border-top: 1px solid var(--border); z-index: 80; }
  .mobile-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; font-size: 11px; color: var(--muted); }
  .mobile-nav a.active { color: var(--brand); }
  .mobile-nav svg { width: 22px; height: 22px; }
}

/* ===== «Популярные новости» под статьёй: слева фото, справа текст ===== */
.popular-feed { list-style: none; margin: 0 0 8px; padding: 0; }
.pf-item { display: flex; align-items: stretch; gap: 14px; padding: 12px 0;
  border-bottom: 1px solid var(--border); }
.pf-item:last-child { border-bottom: none; }
.pf-thumb { flex: 0 0 84px; width: 84px; height: 84px; border-radius: var(--r-sm);
  overflow: hidden; background: var(--bg); display: block; }
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.pf-item:hover .pf-thumb img { transform: scale(1.05); }
.pf-body { display: flex; flex-direction: column; justify-content: center; gap: 6px;
  min-width: 0; flex: 1; }
.pf-title { font-family: var(--serif); font-weight: 700; color: var(--text);
  line-height: 1.28; font-size: 16px; overflow-wrap: break-word;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pf-item:hover .pf-title { color: var(--brand); }
.pf-meta { font-size: 12px; color: var(--muted); }
@media (max-width: 600px) {
  .pf-thumb { flex-basis: 72px; width: 72px; height: 72px; }
  .pf-title { font-size: 15px; -webkit-line-clamp: 2; }
}

/* ===== «Поделиться материалом» — блок под текстом статьи ===== */
.share-card {
  margin: 28px 0 6px;
  padding: 18px 20px 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.share-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.share-card__ico {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in srgb, #2f9fef 15%, transparent); color: #3d92f5;
}
.share-card__ico svg { width: 21px; height: 21px; }
.share-card__title {
  margin: 0; font-family: var(--sans); font-size: 18px; font-weight: 800;
  line-height: 1.2; color: var(--text); letter-spacing: -.01em;
}
.share-card__sub { margin: 3px 0 0; font-size: 13px; line-height: 1.35; color: var(--muted); }

.share-card__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }

.share-btn {
  display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box;
  padding: 13px 16px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 15px; font-weight: 700; line-height: 1.1;
  text-align: left; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.share-btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.share-btn:active { transform: translateY(0); }
.share-btn__ico { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.share-btn__ico svg { width: 21px; height: 21px; }
.share-btn__label { flex: 1 1 auto; min-width: 0; }
.share-btn__arrow { flex: 0 0 auto; font-size: 18px; font-weight: 400; opacity: .7; }

.share-btn--tg { border-color: color-mix(in srgb, #2f9fef 42%, var(--border)); background: color-mix(in srgb, #2f9fef 12%, var(--card)); }
.share-btn--tg .share-btn__ico { background: #2f9fef; color: #fff; }
.share-btn--tg .share-btn__arrow { color: #2f9fef; opacity: 1; }
.share-btn--tg:hover { border-color: #2f9fef; }

.share-btn--wa { border-color: color-mix(in srgb, #25d366 42%, var(--border)); background: color-mix(in srgb, #25d366 12%, var(--card)); }
.share-btn--wa .share-btn__ico { background: #25d366; color: #fff; }
.share-btn--wa .share-btn__arrow { color: #1fa855; opacity: 1; }
.share-btn--wa:hover { border-color: #25d366; }

.share-btn--copy { width: 100%; }
.share-btn--copy .share-btn__ico { background: color-mix(in srgb, var(--muted) 20%, transparent); color: var(--muted); }

.share-toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 200;
  transform: translateX(-50%) translateY(12px);
  padding: 10px 18px; border-radius: 999px;
  background: var(--brand-700); color: #fff;
  font-family: var(--sans); font-size: 13.5px; font-weight: 600; white-space: nowrap;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.share-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 560px) {
  .share-card { padding: 16px 15px 17px; border-radius: 16px; }
  .share-card__head { gap: 12px; margin-bottom: 14px; }
  .share-card__ico { width: 42px; height: 42px; }
  .share-card__title { font-size: 16px; }
  .share-card__sub { font-size: 12px; }
  .share-btn { padding: 12px 13px; font-size: 14px; gap: 10px; }
  .share-btn__ico { width: 32px; height: 32px; }
  .share-btn__ico svg { width: 19px; height: 19px; }
}
@media (max-width: 380px) {
  .share-card__row { grid-template-columns: 1fr; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .share-btn, .share-toast { transition: none; }
}
