/* =========================================================
   HayerJan — дизайн-система и стили публичной части
   ========================================================= */

/* ---------- Токены ---------- */
:root {
  --accent: #e63b2e;
  --accent-600: #c92b1f;
  --accent-50: #fdeeec;
  --ink: #0b1120;
  --ink-2: #1e293b;
  --text: #1f2937;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e4e7ee;
  --line-2: #eef1f6;
  --bg: #f7f8fb;
  --bg-2: #f0f2f7;
  --bg-3: #e7ebf2;
  --card: #ffffff;
  --header-bg: rgba(255, 255, 255, .94);
  --dark: #0b1220;
  --dark-2: #111a2e;
  --success: #16a34a;
  --success-50: #e8f7ee;
  --warning: #d97706;
  --warning-50: #fef5e7;
  --danger: #dc2626;
  --danger-50: #fdecec;
  --info: #2563eb;
  --info-50: #eaf1fe;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 7px;
  --shadow-sm: 0 2px 8px rgba(11, 17, 32, .04), 0 1px 2px rgba(11, 17, 32, .03);
  --shadow: 0 10px 28px rgba(11, 17, 32, .075), 0 2px 6px rgba(11, 17, 32, .04);
  --shadow-lg: 0 22px 54px rgba(11, 17, 32, .16);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'PT Serif', Georgia, 'Times New Roman', serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1280px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

[data-theme="dark"] {
  --ink: #f1f5f9;
  --ink-2: #e2e8f0;
  --text: #d6dde8;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --line: #243048;
  --line-2: #1b2539;
  --bg: #0b1220;
  --bg-2: #0f1828;
  --bg-3: #16213a;
  --card: #111a2e;
  --header-bg: rgba(11, 18, 32, .92);
  --accent-50: #3a1714;
  --success-50: #0f2e1d;
  --warning-50: #33240b;
  --danger-50: #3a1515;
  --info-50: #13254a;
  --shadow: 0 4px 16px rgba(0, 0, 0, .35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* ---------- Сброс и база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0; font-weight: 800; letter-spacing: -.015em; }
p { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.i { flex-shrink: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 10px;
  font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap;
  border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s, transform .1s, box-shadow .15s;
  user-select: none; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-600); color: #fff; }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { opacity: .9; color: var(--bg); }
.btn--ghost { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--muted-2); color: var(--ink); background: var(--bg-2); }
.btn--soft { background: var(--bg-2); color: var(--ink); }
.btn--soft:hover { background: var(--bg-3); color: var(--ink); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: #b91c1c; color: #fff; }
.btn--success { background: var(--success); color: #fff; }
.btn--success:hover { background: #15803d; color: #fff; }
.btn--link { background: none; color: var(--accent); padding: 0; height: auto; }
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn--xs { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; gap: 6px; }
.btn--lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 12px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn--ghost.is-loading::after, .btn--soft.is-loading::after { border-color: var(--line); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 10px; color: var(--ink); transition: background .15s;
}
.icon-btn:hover { background: var(--bg-2); color: var(--ink); }
.dot-count {
  position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
  border-radius: 9px; border: 2px solid var(--bg);
}

/* ---------- Формы ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > label, .label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field__hint { font-size: 13px; color: var(--muted); }
.field__error { font-size: 13px; color: var(--danger); }
.input, .textarea, .select {
  width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--ink); transition: border-color .15s, box-shadow .15s; font-size: 15px;
}
.textarea { height: auto; min-height: 110px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.select { -webkit-appearance: none; -moz-appearance: none; appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.select::-ms-expand { display: none; }
.input:hover, .textarea:hover, .select:hover { border-color: var(--muted-2); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.input--sm { height: 36px; font-size: 14px; }
.input-group { position: relative; display: flex; align-items: center; }
.input-group > .i { position: absolute; left: 13px; color: var(--muted); pointer-events: none; }
.input-group > .input { padding-left: 40px; }
.check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 15px; line-height: 1.4; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { width: 42px; height: 24px; background: var(--bg-3); border-radius: 12px; position: relative; transition: background .2s; flex-shrink: 0; border: 1px solid var(--line); }
.switch__track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s var(--ease); }
.switch input:checked + .switch__track { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Флеш-сообщения и тосты ---------- */
.flashes { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; gap: 8px; width: min(560px, calc(100% - 24px)); }
.flash, .toast {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: 14.5px; font-weight: 500;
  animation: slideDown .3s var(--ease);
}
.flash span, .toast span { flex: 1; padding-top: 1px; }
.flash--success .i, .toast--success .i { color: var(--success); }
.flash--error .i, .toast--error .i { color: var(--danger); }
.flash--warning .i, .toast--warning .i { color: var(--warning); }
.flash--info .i, .toast--info .i { color: var(--info); }
.flash__close { color: var(--muted); }
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 500; display: flex; flex-direction: column; gap: 8px; width: min(380px, calc(100% - 24px)); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Логотип HayerJan.am (адаптивный обсидиановый знак hj) ---------- */
.tricolor-bar { height: 3px; width: 100%; background: linear-gradient(90deg, #D90012 0%, #D90012 33.33%, #0033A0 33.33%, #0033A0 66.66%, #F2A800 66.66%, #F2A800 100%); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0; }
.logo:hover { color: var(--ink); }
.logo__mark { display: inline-flex; border-radius: 10px; box-shadow: 0 2px 10px rgba(11, 14, 20, .16); transition: transform .18s ease, box-shadow .18s ease; }
.logo:hover .logo__mark { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(11, 14, 20, .24); }
[data-theme="dark"] .logo__mark, .logo--light .logo__mark { box-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.logo__text { font-weight: 800; font-size: 20.5px; letter-spacing: -.02em; line-height: 1; }
.logo__domain { font-style: normal; font-weight: 700; font-size: 11.5px; padding: 2px 6px; border-radius: 6px; background: rgba(11, 14, 20, .06); color: #EE5346; border: 1px solid rgba(238, 83, 70, .24); margin-left: -4px; letter-spacing: .01em; }
[data-theme="dark"] .logo__domain, .logo--light .logo__domain { background: rgba(255, 255, 255, .08); color: #FF6E62; border-color: rgba(255, 110, 98, .28); }
.logo--light, .logo--light:hover { color: #fff; }

/* ---------- Верхняя полоса ---------- */
.topbar { background: var(--card); color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); }
[data-theme="dark"] .topbar { background: var(--dark); color: #b8c2d6; border-bottom-color: var(--line); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 36px; gap: 16px; }
.topbar__left { display: flex; align-items: center; gap: 18px; min-width: 0; overflow: hidden; }
.topbar__date { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.market-bar { display: flex; align-items: center; gap: 14px; font-size: 12.5px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; padding-left: 14px; border-left: 1px solid var(--line); }
.market-bar::-webkit-scrollbar { display: none; }
.market-bar__item { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
[data-theme="dark"] .market-bar__item { color: #cbd5e1; }
.market-bar__item b { font-weight: 700; color: var(--ink); }
[data-theme="dark"] .market-bar__item b { color: #fff; }
.market-bar__item em { font-style: normal; font-weight: 700; font-size: 11.5px; }
.market-bar__item em.is-up { color: var(--success); }
.market-bar__item em.is-down { color: var(--danger); }

/* Панель автора на главной после входа */
.home-author-strip { padding-top: 18px; }
.home-author-card { background: linear-gradient(135deg, #fff8f7 0%, var(--bg-2) 100%); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); border-radius: var(--radius); padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
[data-theme="dark"] .home-author-card { background: var(--card); }
.home-author-card__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.home-author-card__who { display: flex; align-items: center; gap: 14px; }
.home-author-card__title { font-size: 15.5px; color: var(--ink); display: flex; align-items: center; gap: 4px; }
.home-author-card__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.home-author-card__meta b { color: var(--ink); }
.home-author-card__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.home-author-card__recent { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
.home-author-card__label { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.home-author-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink); max-width: 320px; }
.home-author-pill:hover { border-color: var(--accent); color: var(--accent); }
.home-author-pill__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Оглавление статьи и управление шрифтом */
.article-toc { margin: 0 0 24px; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--bg-2); border-left: 4px solid var(--accent); }
.article-toc__title { font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); margin-bottom: 8px; }
.article-toc__list { margin: 0; padding-left: 18px; display: grid; gap: 5px; font-size: 14.5px; }
.article-toc__list li.is-sub { margin-left: 16px; font-size: 13.5px; }
.article-toc__list a { color: var(--ink-2); font-weight: 500; }
.article-toc__list a:hover { color: var(--accent); text-decoration: underline; }
.font-ctrl { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border-radius: 7px; background: var(--bg-2); border: 1px solid var(--line); }
.font-ctrl button { padding: 2px 7px; font-size: 12px; font-weight: 700; border-radius: 5px; color: var(--ink-2); }
.font-ctrl button:hover { background: var(--card); color: var(--accent); }
[data-article-body] img, [data-zoomable] { cursor: zoom-in; }
.topbar__links { display: flex; align-items: center; gap: 14px; white-space: nowrap; flex-shrink: 0; }
.topbar__links a { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.topbar__links a:hover { color: var(--ink); }
[data-theme="dark"] .topbar__links a { color: #b8c2d6; }
[data-theme="dark"] .topbar__links a:hover { color: #fff; }
.theme-toggle { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
.theme-toggle:hover { color: var(--ink); }
[data-theme="dark"] .theme-toggle { color: #b8c2d6; }
[data-theme="dark"] .theme-toggle:hover { color: #fff; }
.theme-toggle__sun, .theme-toggle__text-dark { display: none; }
[data-theme="dark"] .theme-toggle__sun, [data-theme="dark"] .theme-toggle__text-dark { display: inline; }
[data-theme="dark"] .theme-toggle__moon, [data-theme="dark"] .theme-toggle__text-light { display: none; }
.header__theme, .topnav__theme { gap: 6px; padding: 0 11px; }

/* Переключатель языков (RU / ՀԱՅ / EN / FR) */
.lang-switch { display: inline-flex; align-items: center; padding: 2px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line); gap: 1px; flex-shrink: 0; }
.lang-switch__btn { display: inline-flex; align-items: center; justify-content: center; height: 28px; padding: 0 7.5px; border-radius: 7px; font-size: 11.5px; font-weight: 700; color: var(--muted); transition: all .15s; white-space: nowrap; letter-spacing: .01em; }
.lang-switch__btn:hover { color: var(--ink); background: var(--bg-3); }
.lang-switch__btn.is-active { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.lang-switch--sm { padding: 1px; border-radius: 7px; }
.lang-switch--sm .lang-switch__btn { height: 22px; padding: 0 5.5px; font-size: 11px; border-radius: 5px; }

/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 100; background: var(--header-bg); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: 14px; height: var(--header-h); }
.header__burger { display: none; margin-left: -8px; }
.nav { flex: 1; min-width: 0; position: relative; display: flex; align-items: center; gap: 4px; }
.nav::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 24px; background: linear-gradient(90deg, transparent, var(--bg)); pointer-events: none; }
.nav__geo-menus { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.nav__scroll { flex: 1; min-width: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding-right: 22px; }
.nav__scroll::-webkit-scrollbar { display: none; }
.nav__link { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 7px 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; border-radius: 8px; }
.nav__link:hover { color: var(--ink); background: var(--bg-2); }
.nav__link.is-active { color: var(--accent); }
.nav__link.is-active::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -12px; height: 3px; border-radius: 3px 3px 0 0; background: var(--cat, var(--accent)); }

/* Выпадающие мега-меню регионов и стран при наведении */
.nav-drop { position: relative; padding: 10px 0; margin: -10px 0; }
.nav-drop__panel {
  position: absolute; top: calc(100% + 2px); left: 0; z-index: 220;
  width: 560px; max-width: calc(100vw - 32px);
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px; box-shadow: 0 20px 50px rgba(11, 14, 20, .18);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  pointer-events: none; overflow: hidden;
}
.nav-drop:nth-child(2) .nav-drop__panel { left: -80px; }
.nav-drop:hover .nav-drop__panel,
.nav-drop:focus-within .nav-drop__panel {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
}
.nav-drop:hover > .nav__link { color: var(--ink); background: var(--bg-2); }
.nav-drop__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--ink);
}
.nav-drop__head a { color: var(--accent); font-weight: 700; font-size: 12.5px; }
.nav-drop__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.nav-drop__item {
  display: flex; flex-direction: column; gap: 2px; padding: 8px 11px;
  border-radius: 10px; transition: background .14s; min-width: 0; overflow: hidden;
}
.nav-drop__item:hover { background: var(--bg-2); }
.nav-drop__item b { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.nav-drop__item small { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) {
  .nav__geo-menus { display: none; }
}
.header__actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.header__user { display: inline-flex; border-radius: 50%; padding: 2px; border: 2px solid transparent; }
.header__user:hover, .header__user[aria-expanded="true"] { border-color: var(--accent); }

.search-panel { border-top: 1px solid var(--line); background: var(--bg); animation: slideDown .2s var(--ease); }
.search-panel__form { display: flex; align-items: center; gap: 12px; height: 72px; color: var(--muted); }
.search-panel__form input { flex: 1; border: 0; background: none; font-size: 20px; font-weight: 500; color: var(--ink); outline: none; min-width: 0; }

/* Дропдауны */
.dropdown { position: relative; }
.dropdown__menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; z-index: 200; padding: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.dropdown__menu--right { left: auto; right: 0; }
.dropdown.is-open .dropdown__menu { opacity: 1; visibility: visible; transform: none; }
.dropdown__menu a, .dropdown__menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--ink); text-align: left; }
.dropdown__menu a:hover, .dropdown__menu button:hover { background: var(--bg-2); color: var(--ink); }
.dropdown__menu .i { color: var(--muted); }
.dropdown__menu hr { margin: 6px 0; }
.dropdown__menu form { margin: 0; }
.dropdown__menu .is-danger, .dropdown__menu .is-danger .i { color: var(--danger); }
.dropdown__head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dropdown__head b { display: block; color: var(--ink); font-size: 15px; }
.dropdown__head small { color: var(--muted); font-size: 13px; }

/* Бегущая строка */
.ticker { background: var(--accent); color: #fff; overflow: hidden; }
.ticker__inner { display: flex; align-items: center; gap: 14px; height: 40px; }
.ticker__label { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; font-weight: 800; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; background: rgba(0,0,0,.18); padding: 5px 10px; border-radius: 6px; }
.ticker__track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker__move { display: inline-flex; gap: 48px; white-space: nowrap; animation: ticker 60s linear infinite; }
.ticker__move a { color: #fff; font-weight: 600; font-size: 14.5px; position: relative; }
.ticker__move a::after { content: '•'; position: absolute; right: -28px; opacity: .6; }
.ticker:hover .ticker__move { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Мобильное меню (drawer) */
.drawer { position: fixed; inset: 0; z-index: 300; visibility: hidden; pointer-events: none; }
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer.is-open .drawer__overlay { opacity: 1; pointer-events: auto; }
.drawer__panel {
  position: absolute; top: 0; left: 0; bottom: 0; width: min(340px, 88vw); background: var(--bg); z-index: 2;
  transform: translateX(-100%); transition: transform .3s var(--ease); overflow-y: auto; padding: 16px 16px 32px; display: flex; flex-direction: column; gap: 14px;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer__search { display: flex; align-items: center; gap: 8px; background: var(--bg-2); border-radius: 10px; padding: 0 12px; color: var(--muted); }
.drawer__search input { border: 0; background: none; height: 44px; flex: 1; outline: none; color: var(--ink); }
.drawer__user { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; background: var(--bg-2); }
.drawer__user span { flex: 1; }
.drawer__user b { display: block; color: var(--ink); }
.drawer__user small { color: var(--muted); }
.drawer__auth { display: grid; gap: 8px; }
.drawer__nav a, .drawer__cats a { display: flex; align-items: center; gap: 12px; padding: 11px 8px; font-weight: 600; color: var(--ink); border-radius: 8px; }
.drawer__nav a:hover, .drawer__cats a:hover { background: var(--bg-2); }
.drawer__nav .i { color: var(--muted); }
.drawer__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 4px 8px 0; }
.drawer__cats { display: grid; grid-template-columns: 1fr 1fr; }
.drawer__cats a { font-weight: 500; font-size: 15px; }
.drawer__cats i { width: 8px; height: 8px; border-radius: 50%; background: var(--cat); }
.drawer__foot { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }

/* ---------- Аватары, метки ---------- */
.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--bg-3); }
.avatar--ph { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; letter-spacing: .02em; }
.verified { display: inline-flex; color: #1d9bf0; margin-left: 4px; vertical-align: -2px; }
.cat-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--cat, var(--accent)); }
.cat-label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.cat-label--light { color: #fff; background: var(--cat); padding: 4px 9px; border-radius: 6px; }
.cat-label--light::before { display: none; }
.cat-label--light:hover { color: #fff; filter: brightness(1.1); }
.loc-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.loc-badge:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-50); }
.loc-badge--light { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.32); color: #fff; backdrop-filter: blur(6px); }
.loc-badge--light:hover { background: rgba(255,255,255,.3); color: #fff; border-color: #fff; }
.nav__link--geo { background: var(--bg-2); border: 1px solid var(--line); margin-right: 4px; }

/* ---------- Хаб «Армения (11 регионов) + Мировая Диаспора» ---------- */
.geo-hub-section { padding-top: 8px; padding-bottom: 24px; }
.geo-hub { background: linear-gradient(135deg, #fff9f5 0%, #f8fafc 50%, #eef2ff 100%); border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line)); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow-sm); }
[data-theme="dark"] .geo-hub { background: var(--card); border-color: var(--line); }
.geo-hub__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.geo-hub__eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); background: var(--accent-50); padding: 4px 10px; border-radius: 999px; margin-bottom: 8px; }
.geo-hub__title { font-size: clamp(20px, 2.4vw, 26px); color: var(--ink); line-height: 1.2; }
.geo-hub__sub { color: var(--ink-2); font-size: 14.5px; margin-top: 6px; max-width: 760px; }
.geo-hub__actions { display: flex; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }
.geo-hub__formats { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.geo-hub__formats-label { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-right: 4px; }
.geo-format-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink); transition: all .15s; }
.geo-format-pill:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-50); }
.geo-hub__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.geo-hub__box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.geo-hub__box-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.geo-hub__box-head h3 { font-size: 15.5px; font-weight: 800; color: var(--ink); }
.geo-hub__box-head a { font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.geo-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.geo-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink); transition: all .15s; }
.geo-pill:hover { border-color: var(--accent); background: var(--accent-50); color: var(--accent); transform: translateY(-1px); }
.geo-pill__count { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: var(--card); color: var(--muted); border: 1px solid var(--line); }

/* Страница /world и карточки регионов */
.world-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .15s, border-color .15s; }
.world-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.world-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.world-card__title { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; color: var(--ink); }
.world-card__desc { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.world-card__cities { font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: auto; padding-top: 6px; border-top: 1px dashed var(--line); }
.world-card__cities b { color: var(--ink-2); }
.world-card__foot { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.loc-cities { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.loc-cities__label { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); margin-right: 4px; }
.ambassador-box { background: linear-gradient(135deg, #fff5f4 0%, var(--bg-2) 100%); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
@media (max-width: 960px) { .geo-hub__cols { grid-template-columns: 1fr; } }
.format-label { display: inline-flex; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border: 1px solid var(--line); padding: 2px 7px; border-radius: 5px; }
.badge-live { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 4px 9px; border-radius: 6px; }
.badge-live::before { content: ''; width: 7px; height: 7px; background: #fff; border-radius: 50%; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.meta__author { display: inline-flex; align-items: center; font-weight: 600; color: var(--ink-2); }
.meta__views { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Обложки и карточки ---------- */
.cover { position: relative; overflow: hidden; background: var(--bg-3); aspect-ratio: 16 / 9; border-radius: var(--radius-sm); }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cover--ph { display: flex; align-items: flex-end; padding: 14px; background: linear-gradient(135deg, var(--cat), color-mix(in srgb, var(--cat) 55%, #000)); }
.cover--ph span { color: rgba(255,255,255,.9); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }

.card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 12px 16px; box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--ink) 16%, var(--line)); }
.card__media:hover img, .card-row__media:hover img, .card-hero__link:hover img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 0 4px; flex: 1; }
.card__labels { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.card__title { font-size: 17.5px; font-weight: 700; line-height: 1.3; letter-spacing: -.015em; }
.card__title a:hover, .card-row__title a:hover, .feed-item__title:hover, .num-item__title:hover { color: var(--accent); }
.card__lead { color: var(--muted); font-size: 14.5px; line-height: 1.52; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: auto; padding-top: 4px; }
.card--lg { padding: 14px 14px 18px; }
.card--lg .card__title { font-size: 23px; letter-spacing: -.02em; }
.card--featured-lead { border-radius: 20px; padding: 16px 16px 20px; }

.card-row {
  display: grid; grid-template-columns: 144px minmax(0, 1fr); gap: 15px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px; box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.card-row:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--ink) 15%, var(--line)); }
.card-row .cover { aspect-ratio: 16 / 10; border-radius: 10px; }
.card-row__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card-row__title { font-size: 16px; font-weight: 700; line-height: 1.32; letter-spacing: -.012em; }

/* Расширенные журнальные карточки внутри разделов и регионов */
.listing__main > .card-row {
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 22px;
  padding: 16px 18px;
  border-radius: 18px;
}
.listing__main > .card-row .cover { aspect-ratio: 16 / 10; border-radius: 12px; }
.listing__main > .card-row .card-row__title { font-size: clamp(17.5px, 1.8vw, 20px); font-weight: 800; line-height: 1.28; letter-spacing: -.018em; }
.listing__main > .card-row .card__lead { -webkit-line-clamp: 2; font-size: 14.5px; }

.card-hero { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--dark); color: #fff; isolation: isolate; }
.card-hero .cover { border-radius: 0; aspect-ratio: 16 / 10; }
.card-hero__link::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,10,20,.28) 0%, rgba(5,10,20,.68) 45%, rgba(5,10,20,.95) 100%); z-index: 1; }
.card-hero__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 26px; z-index: 2; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.card-hero__body a, .card-hero__body .meta { pointer-events: auto; }
.card-hero__labels { display: flex; gap: 8px; flex-wrap: wrap; }
.card-hero__labels .format-label { color: #fff; border-color: rgba(255,255,255,.4); }
.card-hero__title { color: #fff; font-size: clamp(20px, 2.1vw, 27px); line-height: 1.22; font-weight: 800; text-wrap: balance; text-shadow: 0 2px 12px rgba(0,0,0,.55); }
.card-hero__title a:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.card-hero__lead { color: rgba(255,255,255,.85); font-size: 16px; max-width: 680px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-hero .meta, .card-hero .meta__author { color: rgba(255,255,255,.8); }

.feed { list-style: none; margin: 0; padding: 0; }
.feed-item { display: grid; grid-template-columns: 46px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.feed-item:last-child { border-bottom: 0; }
.feed-item__time { font-size: 13px; font-weight: 700; color: var(--muted); padding-top: 2px; font-variant-numeric: tabular-nums; }
.feed-item__title { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--ink); display: block; }
.feed-item__cat { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--cat); }
.feed-item--hot .feed-item__time { color: var(--accent); }
.feed-item--hot .feed-item__title { font-weight: 800; }

.num-list { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.num-item { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.num-item:last-child { border-bottom: 0; }
.num-item__n { font-size: 26px; font-weight: 900; color: var(--accent); line-height: 1; opacity: .9; font-variant-numeric: tabular-nums; }
.num-item__title { display: block; font-weight: 700; font-size: 15px; line-height: 1.35; color: var(--ink); margin-bottom: 4px; }

.card-opinion { display: flex; flex-direction: column; gap: 14px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .2s, transform .2s; }
.card-opinion:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-opinion__author { display: flex; align-items: center; gap: 12px; }
.card-opinion__author b { display: flex; align-items: center; color: var(--ink); font-size: 15px; }
.card-opinion__author small { display: block; color: var(--muted); font-size: 13px; }
.card-opinion__title { font-family: var(--font-serif); font-size: 20px; line-height: 1.3; font-weight: 700; }
.card-opinion__title::before { content: '«'; color: var(--accent); }
.card-opinion__title::after { content: '»'; color: var(--accent); }

.author-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 22px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .2s, transform .2s; overflow: hidden; position: relative; }
.author-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); color: inherit; border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.author-card--rich { padding: 0 16px 18px; }
.author-card__cover {
  display: block; width: calc(100% + 32px); height: 78px; margin: 0 -16px;
  background: linear-gradient(125deg, #0b0e14 0%, #172554 100%);
  background-size: cover; background-position: center; position: relative;
}
.author-card__cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,14,20,.1) 0%, rgba(11,14,20,.38) 100%); }
.author-card__avatar { display: inline-flex; margin-top: -36px; position: relative; z-index: 1; }
.author-card__avatar .avatar { border: 3px solid var(--card); box-shadow: 0 4px 12px rgba(11,14,20,.16); margin-bottom: 2px; }
.author-card .avatar { margin-bottom: 6px; }
.author-card__name { display: flex; align-items: center; gap: 4px; color: var(--ink); font-size: 15.5px; margin-top: 2px; }
.author-card__pos { color: var(--muted); font-size: 12.5px; line-height: 1.35; min-height: 33px; }
.author-card__loc { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); font-size: 11.5px; font-weight: 600; margin-top: 2px; }
.author-card__stats { font-size: 12px; color: var(--muted-2); margin-top: auto; padding-top: 6px; }
.authors-region-filter .tag.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- Секции ---------- */
.main { min-height: 60vh; }
.section { padding: 28px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-head__title { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; }
.section-head__title::before { content: ''; width: 4px; height: 22px; background: var(--cat, var(--accent)); border-radius: 2px; }
.section-head__title .i { color: var(--cat, var(--accent)); }
.section-head__more { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 600; color: var(--muted); }
.section-head__more:hover { color: var(--accent); }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.box--muted { background: var(--bg-2); border-color: var(--line); box-shadow: none; }
.box__title { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.box__title .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.4s infinite; }

/* Главная */
.home-top { display: grid; grid-template-columns: 300px minmax(0, 1fr) 300px; gap: 28px; padding-top: 24px; padding-bottom: 28px; }
.home-top__center { display: flex; flex-direction: column; gap: 24px; }
.home-top__sub { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.home-top__feed .feed { max-height: none; }
.home-top__right { display: flex; flex-direction: column; gap: 20px; }
.feed-more { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; padding: 10px; border-radius: 10px; background: var(--bg-2); font-weight: 600; font-size: 14px; color: var(--ink); }
.feed-more:hover { background: var(--bg-3); color: var(--ink); }

.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cat-block { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; }
.cat-block__list { display: flex; flex-direction: column; gap: 18px; }
.cat-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 32px; }
.cat-blocks .cat-block { grid-template-columns: 1fr; }

.cta-banner {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center;
  padding: 40px; border-radius: 20px; color: var(--ink); border: 1px solid var(--line);
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 55%, #fdeeed 100%);
}
[data-theme="dark"] .cta-banner { color: #fff; border-color: var(--line); background: radial-gradient(120% 140% at 100% 0%, #3b1210 0%, var(--dark) 55%); }
[data-theme="dark"] .cta-banner h2 { color: #fff; }
[data-theme="dark"] .cta-banner p { color: rgba(255,255,255,.78); }
[data-theme="dark"] .cta-banner__features div { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); color: #fff; }
[data-theme="dark"] .cta-banner .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.cta-banner::after { content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: var(--accent); opacity: .12; filter: blur(60px); pointer-events: none; }
.cta-banner h2 { color: var(--ink); font-size: clamp(24px, 3vw, 34px); margin-bottom: 12px; }
.cta-banner p { color: var(--ink-2); font-size: 16px; max-width: 560px; }
.cta-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; position: relative; z-index: 1; }
.cta-banner__features { display: grid; gap: 12px; position: relative; z-index: 1; }
.cta-banner__features div { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; font-weight: 500; box-shadow: var(--shadow-sm); }
.cta-banner__features .i { color: var(--accent); }
.cta-banner .btn--ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.cta-banner .btn--ghost:hover { background: var(--bg-2); border-color: var(--muted-2); }

.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; }

/* Страницы рубрик / регионов / внутренние разделы */
.page-hero {
  position: relative; overflow: hidden;
  margin-top: 14px; margin-bottom: 4px;
  padding: 26px 30px;
  border-radius: 22px;
  background:
    radial-gradient(60% 120% at 96% 0%, color-mix(in srgb, var(--cat, var(--accent)) 10%, transparent), transparent 70%),
    linear-gradient(135deg, var(--card) 0%, color-mix(in srgb, var(--bg-2) 65%, var(--card)) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.page-hero::before {
  content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--cat, var(--accent)) 0%, color-mix(in srgb, var(--cat, var(--accent)) 35%, transparent) 100%);
}
.crumbs-public--tight { margin-bottom: 10px; font-size: 12.5px; font-weight: 500; }
.page-hero__label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em;
  color: var(--cat, var(--accent));
  background: color-mix(in srgb, var(--cat, var(--accent)) 10%, var(--card));
  border: 1px solid color-mix(in srgb, var(--cat, var(--accent)) 24%, transparent);
  padding: 4px 10px; border-radius: 999px;
  margin-bottom: 10px;
}
.page-hero__title { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.025em; line-height: 1.14; }
.page-hero__desc { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; margin-top: 8px; max-width: 780px; }
.page-hero__tabs { display: flex; gap: 6px; margin-top: 18px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.page-hero__tabs::-webkit-scrollbar { display: none; }
.tab-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  white-space: nowrap; transition: all .15s;
}
.tab-pill:hover { border-color: var(--muted-2); color: var(--ink); background: var(--bg-2); }
.tab-pill.is-active { background: var(--ink); border-color: var(--ink); color: var(--card); box-shadow: var(--shadow-sm); }
.listing { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 32px; padding: 22px 0 48px; }
.listing__main { display: flex; flex-direction: column; gap: 18px; }
.listing__side { display: flex; flex-direction: column; gap: 20px; }
.sticky-side { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 20px; }
.listing-day {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em;
  color: var(--ink); padding: 10px 0 4px; border-bottom: 2px solid var(--line);
}
.listing-day::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Пагинация */
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.pagination__pages { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.pagination__page, .pagination__btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; font-weight: 600; font-size: 14.5px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.pagination__page:hover, .pagination__btn:hover { border-color: var(--ink); color: var(--ink); }
.pagination__page.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pagination__btn.is-disabled { opacity: .4; pointer-events: none; }
.pagination__dots { padding: 0 6px; color: var(--muted); align-self: center; }

/* ---------- Статья (премиальная редакционная вёрстка) ---------- */
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 330px; justify-content: space-between; gap: 32px; padding: 20px 0 56px; align-items: start; }
.article, .article-sheet {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px 38px;
  box-shadow: var(--shadow-sm);
}
.crumbs-public { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs-public a:hover { color: var(--accent); }
.article__labels { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.article__title { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.14; font-weight: 800; letter-spacing: -.026em; text-wrap: balance; }
.article__lead { font-size: clamp(17.5px, 1.8vw, 20px); line-height: 1.54; color: var(--ink-2); margin-top: 16px; font-weight: 500; }
.article__bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  padding: 12px 16px; margin: 22px 0 24px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px;
}
.article__author { display: flex; align-items: center; gap: 12px; }
.article__author b { display: flex; align-items: center; color: var(--ink); font-size: 15px; }
.article__author small { color: var(--muted); font-size: 12.5px; display: block; }
.article__stats { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.article__stats span { display: inline-flex; align-items: center; gap: 5px; }
.article__cover { margin: 0 0 26px; }
.article__cover .cover { border-radius: 16px; aspect-ratio: 16 / 9; box-shadow: 0 10px 28px rgba(11, 17, 32, .08); }
.article__cover figcaption, .prose figcaption { font-size: 13.5px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.article__actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin: 32px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.article__reactions { display: flex; gap: 8px; }
.react-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--ink); background: var(--card); transition: all .15s; }
.react-btn:hover { border-color: var(--accent); color: var(--accent); }
.react-btn.is-active { background: var(--accent-50); border-color: var(--accent); color: var(--accent); }
.react-btn.is-active .i { fill: currentColor; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tag { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 8px; background: var(--bg-2); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.tag:hover { background: var(--ink); color: var(--bg); }
.source-note { margin-top: 20px; font-size: 14px; color: var(--muted); }
.source-note a { color: var(--accent); }
.source-card {
  margin-top: 26px; padding: 16px 20px; border-radius: 14px;
  background: var(--bg-2); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  display: flex; align-items: center; justify-content: space-between; gap: 14px 18px; flex-wrap: wrap;
}
.source-card__main { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 240px; }
.source-card__icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--accent-50); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.source-card__text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.source-card__label { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.source-card__name { font-size: 15px; font-weight: 700; color: var(--ink); word-break: break-word; }
a.source-card__name:hover { color: var(--accent); text-decoration: underline; }
.source-card__url {
  display: inline-block; font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 520px;
}
.source-card__url:hover { color: var(--accent); text-decoration: underline; }
.source-card__btn { flex-shrink: 0; }
.article__source-pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
  background: var(--accent-50); color: var(--accent); font-size: 12.5px; text-decoration: none;
  border: 1px solid rgba(217, 45, 32, .18); transition: background .15s, transform .15s;
}
.article__source-pill b { font-weight: 700; }
.article__source-pill:hover { background: var(--accent); color: #fff; text-decoration: none; }
.meta__source {
  display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2);
  font-weight: 600; font-size: 12px; text-decoration: none;
}
.meta__source:hover { color: var(--accent); text-decoration: underline; }
.card-hero .meta__source { color: rgba(255, 255, 255, .9); }
.card-hero .meta__source:hover { color: #fff; }
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 150; transition: width .1s linear; }

.share { display: flex; gap: 6px; flex-wrap: wrap; }
.share__btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--bg-2); color: var(--ink); transition: all .15s; }
.share__btn:hover { color: #fff; background: var(--ink); }
.share__btn--tg:hover { background: #229ed9; }
.share__btn--vk:hover { background: #0077ff; }
.share__btn--ok:hover { background: #ee8208; }
.share__btn--wa:hover { background: #25d366; }

.author-box { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: var(--bg-2); margin: 32px 0; }
.author-box__body { flex: 1; min-width: 0; }
.author-box__name { display: flex; align-items: center; font-size: 18px; font-weight: 800; color: var(--ink); }
.author-box__pos { color: var(--muted); font-size: 14px; }
.author-box__bio { margin-top: 8px; font-size: 15px; color: var(--text); }
.author-box__actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* Типографика статьи */
.prose { font-family: var(--font-serif); font-size: 19px; line-height: 1.7; color: var(--text); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-family: var(--font); font-size: 1.45em; margin-top: 1.7em; line-height: 1.25; }
.prose h3 { font-family: var(--font); font-size: 1.2em; margin-top: 1.5em; }
.prose h4 { font-family: var(--font); font-size: 1.05em; margin-top: 1.4em; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong, .prose b { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--accent); font-size: 1.12em; font-style: italic; color: var(--ink); }
.prose blockquote p + p { margin-top: .6em; }
.prose blockquote.pull-quote { border: 0; padding: 24px 0; text-align: center; font-size: 1.35em; font-weight: 700; font-style: normal; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.prose figure { margin: 1.8em 0; }
.prose figure img { border-radius: var(--radius-sm); width: 100%; }
.prose figure.img-wide { margin-left: -40px; margin-right: -40px; }
.prose figure.img-left, .prose figure.img-right { width: 45%; }
.prose figure.img-left { float: left; margin: .3em 1.4em 1em 0; }
.prose figure.img-right { float: right; margin: .3em 0 1em 1.4em; }
.prose figcaption { font-family: var(--font); }
.prose img { border-radius: var(--radius-sm); }
.prose hr { border: 0; text-align: center; margin: 2em 0; }
.prose hr::before { content: '• • •'; letter-spacing: .6em; color: var(--muted); font-family: var(--font); }
.prose code { font-family: var(--font-mono); font-size: .85em; background: var(--bg-2); padding: 2px 6px; border-radius: 5px; }
.prose pre { background: var(--dark); color: #e2e8f0; padding: 18px; border-radius: var(--radius-sm); overflow-x: auto; font-size: 14px; line-height: 1.6; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose mark { background: #fff1a8; color: #111; padding: 0 2px; border-radius: 3px; }
.prose .table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--font); font-size: 15px; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--bg-2); font-weight: 700; color: var(--ink); }
.prose tr:last-child td { border-bottom: 0; }
.prose .callout { font-family: var(--font); font-size: 16px; line-height: 1.6; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--info-50); border-left: 4px solid var(--info); }
.prose .callout--warning { background: var(--warning-50); border-color: var(--warning); }
.prose .callout--success { background: var(--success-50); border-color: var(--success); }
.prose .callout--danger { background: var(--danger-50); border-color: var(--danger); }
.prose .callout > * + * { margin-top: .5em; }
.prose .incut { font-family: var(--font); padding: 18px 20px; background: var(--bg-2); border-radius: var(--radius-sm); font-size: 16px; }
.prose .embed, .prose figure.embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: #000; }
.prose .embed iframe, .prose figure.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose figure.embed figcaption { position: static; }
.prose iframe { max-width: 100%; border: 0; }
.prose .text-center { text-align: center; }
.prose::after { content: ''; display: table; clear: both; }

/* Комментарии */
.comments { margin-top: 40px; }
.comments__title { display: flex; align-items: center; gap: 10px; font-size: 22px; margin-bottom: 18px; }
.comments__count { font-size: 14px; font-weight: 700; background: var(--bg-2); padding: 2px 10px; border-radius: 999px; color: var(--muted); }
.comment-form { display: flex; gap: 12px; margin-bottom: 24px; }
.comment-form__body { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.comment-form__body .textarea { min-height: 84px; }
.comment-form__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.comment-login { padding: 20px; border-radius: var(--radius); border: 1px dashed var(--line); text-align: center; color: var(--muted); margin-bottom: 24px; }
.comment-login a { color: var(--accent); font-weight: 600; }
.comment { display: flex; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line-2); }
.comment--reply { margin-left: 52px; border-top: 0; padding-top: 4px; }
.comment__body { flex: 1; min-width: 0; }
.comment__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.comment__head b { display: inline-flex; align-items: center; color: var(--ink); }
.comment__head time { color: var(--muted); font-size: 13px; }
.comment__author-badge { font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-50); padding: 1px 7px; border-radius: 5px; text-transform: uppercase; }
.comment__text { margin-top: 4px; font-size: 15.5px; line-height: 1.55; overflow-wrap: anywhere; }
.comment__text a { color: var(--accent); }
.comment__actions { display: flex; gap: 14px; margin-top: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.comment__actions button:hover { color: var(--accent); }
.comment__reply-form { margin-top: 10px; }

/* Профиль автора (премиальная карточка корреспондента) */
.profile-shell {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 6px;
}
.profile-shell__body { padding: 0 32px 26px; }
.profile-cover { height: 210px; background: linear-gradient(120deg, #0b1120 0%, #1e293b 60%, #3b1210 100%); background-size: cover; background-position: center; position: relative; border-bottom: 1px solid var(--line); }
[data-theme="dark"] .profile-cover { background: linear-gradient(120deg, var(--dark) 0%, #3b1210 100%); background-size: cover; background-position: center; }
.profile-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,17,32,.08) 40%, rgba(11,17,32,.36) 100%); }
.profile-head { display: flex; align-items: flex-end; gap: 22px; margin-top: -56px; position: relative; z-index: 1; flex-wrap: wrap; }
.profile-head .avatar { border: 4px solid var(--card); box-shadow: var(--shadow); }
.profile-head__info { flex: 1; min-width: 240px; padding-bottom: 6px; }
.profile-head__name { display: flex; align-items: center; gap: 4px; font-size: clamp(24px, 3vw, 33px); letter-spacing: -.02em; }
.profile-head__pos { color: var(--muted); font-size: 15px; margin-top: 3px; font-weight: 500; }
.profile-head__actions { display: flex; gap: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.profile-bio { font-size: 15.5px; line-height: 1.6; max-width: 780px; margin-top: 16px; color: var(--ink-2); }
.profile-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.profile-meta a, .profile-meta span { display: inline-flex; align-items: center; gap: 6px; }
.profile-meta a:hover { color: var(--accent); }
.profile-stats { display: grid; grid-template-columns: repeat(4, minmax(110px, 1fr)); gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.profile-stats > div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.profile-stats b { display: block; font-size: 22px; color: var(--ink); font-weight: 800; line-height: 1.15; }
.profile-stats span { font-size: 12.5px; color: var(--muted); }

/* Поиск */
.search-big { display: flex; gap: 10px; margin-top: 16px; }
.search-big .input-group { flex: 1; }
.search-big .input { height: 50px; font-size: 16px; border-radius: 12px; }
.search-mark { background: #fff1a8; color: #111; border-radius: 3px; padding: 0 1px; }

/* Статические страницы */
.static-page { max-width: 900px; padding: 24px 20px 56px; }
.static-page h1 { font-size: clamp(28px, 3.6vw, 38px); margin-bottom: 20px; letter-spacing: -.025em; }

/* Ошибки */
.error-page { text-align: center; padding: 80px 20px 100px; max-width: 640px; }
.error-page__code { font-size: clamp(80px, 16vw, 140px); font-weight: 900; line-height: 1; color: var(--accent); letter-spacing: -.05em; }
.error-page__title { font-size: 30px; margin-top: 12px; }
.error-page__text { color: var(--muted); font-size: 17px; margin-top: 12px; }
.error-page__actions { display: flex; gap: 10px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.error-page__search { display: flex; align-items: center; gap: 10px; margin: 28px auto 0; max-width: 420px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); }
.error-page__search input { flex: 1; border: 0; background: none; height: 46px; outline: none; color: var(--ink); }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty__icon { display: inline-flex; align-items: center; justify-content: center; width: 68px; height: 68px; border-radius: 20px; background: var(--bg-2); color: var(--muted); margin-bottom: 14px; }
.empty__title { font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.empty__text { max-width: 420px; margin: 0 auto 16px; font-size: 15px; }

/* Подвал */
.footer { background: var(--bg-2); color: var(--muted); margin-top: 40px; padding: 48px 0 28px; font-size: 14.5px; border-top: 1px solid var(--line); }
[data-theme="dark"] .footer { background: var(--dark); color: #a5b0c4; }
.footer .logo--light, .footer .logo--light:hover { color: var(--ink); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1.6fr 1fr 1fr; gap: 40px; }
.footer__brand p { margin-top: 14px; line-height: 1.6; max-width: 360px; }
.footer__social { display: flex; gap: 8px; margin-top: 18px; }
.footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); }
.footer__social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer h4 { color: var(--ink); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer__cats { grid-template-columns: 1fr 1fr; }
.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--accent); }
.footer__bottom { display: flex; align-items: flex-start; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.footer__bottom p { flex: 1; min-width: 260px; }
.footer__muted { color: var(--muted); font-size: 13px; }
.footer__age { display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 8px; border: 2px solid var(--muted-2); border-radius: 6px; font-weight: 800; color: var(--ink-2); font-size: 13px; }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(12px); pointer-events: none; transition: all .25s var(--ease); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Авторизация ---------- */
.auth-body { background: var(--bg); }
.auth-wrap { display: grid; grid-template-columns: minmax(380px, 520px) 1fr; min-height: 100vh; }
.auth-side { background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 55%, #fdeeed 100%); border-right: 1px solid var(--line); color: var(--ink); padding: 40px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
[data-theme="dark"] .auth-side { background: radial-gradient(120% 80% at 0% 100%, #4a1511 0%, var(--dark) 60%); color: #fff; }
.auth-side .logo--light, .auth-side .logo--light:hover { color: var(--ink); }
.auth-side::after { content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: var(--accent); filter: blur(120px); opacity: .12; right: -120px; top: 20%; pointer-events: none; }
.auth-side__content { position: relative; z-index: 1; }
.auth-side h2 { color: var(--ink); font-size: 32px; line-height: 1.15; margin-bottom: 28px; }
.auth-side__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.auth-side__list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 15.5px; }
.auth-side__list .i { color: var(--accent); margin-top: 2px; }
.auth-side__foot { color: var(--muted); font-size: 13px; position: relative; z-index: 1; }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; position: relative; }
.auth-main__back { position: absolute; top: 24px; left: 24px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.auth-main__theme { position: absolute; top: 20px; right: 24px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 30px; margin-bottom: 8px; }
.auth-card__sub { color: var(--muted); margin-bottom: 28px; }
.auth-card__sub a, .auth-card__foot a { color: var(--accent); font-weight: 600; }
.auth-card__foot { text-align: center; margin-top: 22px; color: var(--muted); font-size: 15px; }
.auth-card__legal { font-size: 12.5px; color: var(--muted); margin-top: 18px; text-align: center; line-height: 1.5; }
.auth-card__legal a { text-decoration: underline; }
.oauth-buttons { display: grid; gap: 10px; }
.oauth-btn { display: flex; align-items: center; justify-content: center; gap: 12px; height: 50px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: 15.5px; color: var(--ink); transition: all .15s; }
.oauth-btn:hover { border-color: var(--ink); color: var(--ink); box-shadow: var(--shadow-sm); }
.oauth-btn.is-disabled { opacity: .5; cursor: not-allowed; }
.oauth-btn--facebook { background: #1877F2; border-color: #1877F2; color: #fff; }
.oauth-btn--facebook:hover { background: #1565D8; color: #fff; border-color: #1565D8; }

.btn--tg { background: linear-gradient(135deg, #2AABEE 0%, #0088CC 100%); border-color: #0088CC; color: #fff; font-weight: 700; box-shadow: 0 4px 12px rgba(0, 136, 204, .22); }
.btn--tg:hover { filter: brightness(1.05); color: #fff; border-color: #0077b5; }
.tg-concierge-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 18px 22px; border-radius: 14px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
}
[data-theme="dark"] .tg-concierge-banner {
  background: linear-gradient(135deg, rgba(14, 116, 144, .18) 0%, rgba(15, 23, 42, .9) 100%);
  border-color: rgba(56, 189, 248, .3);
}
@media (max-width: 680px) {
  .tg-concierge-banner { flex-direction: column; align-items: stretch; }
  .tg-concierge-banner .btn { width: 100%; justify-content: center; }
}
.divider-text { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-note { font-size: 13px; color: var(--muted); background: var(--bg-2); padding: 10px 12px; border-radius: 10px; margin-top: 10px; line-height: 1.5; }
.auth-note code { font-size: 12px; background: var(--bg-3); padding: 1px 5px; border-radius: 4px; }
.demo-accounts { margin-top: 24px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 12px; font-size: 13.5px; color: var(--muted); }
.demo-accounts b { color: var(--ink); }
.demo-accounts button { color: var(--accent); font-weight: 600; font-size: 13.5px; }
.pw-field { position: relative; }
.pw-field .input { padding-right: 46px; }
.pw-field__toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); border-radius: 8px; }
.pw-field__toggle:hover { color: var(--ink); background: var(--bg-2); }

/* ---------- Адаптив ---------- */
@media (max-width: 1200px) {
  .home-top { grid-template-columns: 260px minmax(0, 1fr); }
  .home-top__right { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hide-md { display: none !important; }
}
@media (max-width: 1024px) {
  .nav { display: none; }
  .header__burger { display: inline-flex; }
  .header__inner { gap: 10px; }
  .logo { margin-right: auto; }
  .listing, .article-wrap { grid-template-columns: 1fr; }
  .listing__side, .article-side { display: none; }
  .cat-blocks { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .prose figure.img-wide { margin-left: 0; margin-right: 0; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}
@media (max-width: 860px) {
  .home-top { grid-template-columns: 1fr; gap: 24px; padding-top: 16px; }
  .home-top__center { order: -1; }
  .home-top__right { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-banner { grid-template-columns: 1fr; padding: 28px; }
  .hide-sm { display: none !important; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container { padding: 0 14px; }
  :root { --header-h: 58px; }
  .header__inner { gap: 6px; }
  .header__burger { width: 36px; height: 36px; margin-left: -4px; flex-shrink: 0; }
  .header__actions { gap: 4px; }
  .header__actions .icon-btn { width: 36px; height: 36px; }
  .header__theme, .header__bell { display: none !important; }
  .lang-switch__btn { height: 25px; padding: 0 5.5px; font-size: 10.5px; }
  .logo { gap: 6px; }
  .logo__mark svg { width: 25px; height: 25px; }
  .logo__text { font-size: 15.5px; }
  .logo__domain { display: none; }
  .card-hero { border-radius: 0; margin: 0 -14px; }
  .card-hero .cover { aspect-ratio: 4 / 5; }
  .card-hero__body { padding: 20px 14px; }
  .card-hero__lead { display: none; }
  .geo-hub { padding: 16px; }
  .geo-hub__actions { width: 100%; }
  .geo-hub__actions .btn { width: 100%; white-space: normal; height: auto; min-height: 42px; padding: 10px 14px; text-align: center; line-height: 1.3; }
  .source-card { flex-direction: column; align-items: stretch; padding: 14px; gap: 10px; }
  .source-card__main { flex: none; width: 100%; align-items: flex-start; }
  .source-card__btn { width: 100%; justify-content: center; height: 34px; }
  .home-top__sub, .grid-2, .grid-3, .grid-4, .cat-block { grid-template-columns: 1fr; }
  .grid-4.grid-4--mobile-row > .card, .grid-3.grid-3--mobile-row > .card { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
  .card-row, .listing__main > .card-row { grid-template-columns: 112px 1fr; gap: 12px; padding: 12px; border-radius: 14px; }
  .card-row__title, .listing__main > .card-row .card-row__title { font-size: 15.5px; }
  .page-hero { padding: 20px 18px; border-radius: 18px; }
  .article, .article-sheet { padding: 20px 16px; border-radius: 18px; }
  .profile-shell__body { padding: 0 16px 20px; }
  .profile-stats { grid-template-columns: 1fr 1fr; }
  .card__title { font-size: 17px; }
  .card--lg .card__title { font-size: 21px; }
  .section { padding: 22px 0; }
  .section-head__title { font-size: 19px; }
  .prose { font-size: 18px; line-height: 1.65; }
  .prose figure.img-left, .prose figure.img-right { float: none; width: auto; margin: 1.4em 0; }
  .article__cover .cover { border-radius: 0; margin: 0 -14px; }
  .article__cover figcaption { padding: 0 0; }
  .article__bar { gap: 10px; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
  .pagination__btn span { display: none; }
  .profile-cover { height: 150px; }
  .profile-head { gap: 14px; margin-top: -48px; }
  .comment--reply { margin-left: 28px; }
  .hide-xs { display: none !important; }
  .to-top { right: 14px; bottom: 14px; }
  .scroller { grid-auto-columns: 72%; }
  .flashes { top: 66px; }
  .search-panel__form input { font-size: 17px; }
  .search-panel__form .btn { display: none; }
  .author-box { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .topbar, .header, .ticker, .footer, .article-side, .comments, .share, .article__actions, .to-top, .ad-unit { display: none !important; }
  .article-wrap { display: block; }
}

/* ---------- Рекламные блоки (.ad-unit) и фирменный стиль ProMarketing (.ad-unit--pm) ---------- */
.ad-top-wrap { margin-top: 12px; margin-bottom: 4px; }
.ad-footer-wrap { margin-top: 28px; margin-bottom: 12px; }

/* Фирменный баннер ProMarketing.tech (#121310 карбон + #C9F31D неон-лайм + #0CC995 изумруд + официальный SVG-логотип) */
.ad-unit.ad-unit--pm,
[data-theme="dark"] .ad-unit.ad-unit--pm {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 22px;
  border-radius: 18px;
  background:
    radial-gradient(48% 120% at 86% 50%, rgba(201, 243, 29, .14), transparent 70%),
    radial-gradient(36% 110% at 10% 50%, rgba(12, 201, 149, .11), transparent 72%),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(180deg, rgba(255, 255, 255, .028) 1px, transparent 1px) 0 0 / 44px 44px,
    #121310;
  border: 1px solid rgba(201, 243, 29, .28);
  box-shadow: 0 10px 26px rgba(11, 14, 20, .13);
  color: #ffffff;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.ad-unit.ad-unit--pm:hover {
  border-color: rgba(201, 243, 29, .58);
  box-shadow: 0 14px 34px rgba(11, 14, 20, .2);
}
.ad-unit.ad-unit--pm-compact {
  padding: 12px 20px;
  border-radius: 16px;
}
.ad-pm__brand-col {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-right: 18px;
  border-right: 1px solid rgba(255, 255, 255, .13);
}
.ad-pm__logo-link { display: inline-flex; align-items: center; }
.ad-pm__logo {
  display: block;
  height: 27px;
  width: auto;
}
.ad-unit--pm-compact .ad-pm__logo { height: 25px; }
.ad-pm__wordmark { color: #C9F31D; font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.ad-pm__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ad-pm__headline-row {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  flex-wrap: wrap;
}
.ad-unit--pm-compact .ad-pm__headline-row { flex-wrap: nowrap; }
.ad-pm__pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  background: #C9F31D;
  color: #121310;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.ad-pm__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -.012em;
  color: #ffffff;
  min-width: 0;
}
.ad-unit--pm-compact .ad-pm__title {
  font-size: 15.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ad-pm__title a { color: #ffffff; }
.ad-pm__title a:hover { color: #C9F31D; }
.ad-pm__sub {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.42;
  color: rgba(255, 255, 255, .74);
}
.ad-pm__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.ad-pm__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 5px 0 18px;
  border-radius: 999px;
  background: #C9F31D;
  color: #121310;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}
.ad-pm__cta:hover {
  background: #d7ff38;
  color: #121310;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201, 243, 29, .28);
}
.ad-pm__cta-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #252525;
  color: #C9F31D;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ad-pm__adtag {
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .48);
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.ad-pm__adtag:hover {
  color: #C9F31D;
  border-color: rgba(201, 243, 29, .4);
}
@media (max-width: 1060px) {
  .ad-unit.ad-unit--pm { flex-wrap: wrap; gap: 12px 16px; }
  .ad-unit--pm-compact .ad-pm__headline-row { flex-wrap: wrap; }
  .ad-unit--pm-compact .ad-pm__title { white-space: normal; }
}
@media (max-width: 680px) {
  .ad-unit.ad-unit--pm, .ad-unit.ad-unit--pm-compact {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
    gap: 10px;
  }
  .ad-pm__brand-col {
    border-right: 0;
    padding-right: 0;
    justify-content: space-between;
  }
  .ad-pm__actions { justify-content: space-between; }
  .ad-pm__cta { flex: 1; justify-content: space-between; }
}

.ad-unit {
  --ad-accent: #2563eb;
  --ad-bg: linear-gradient(135deg, #f8faff 0%, #eef4ff 100%);
  --ad-border: #cfe0ff;
  position: relative;
  background: var(--ad-bg);
  border: 1px solid var(--ad-border);
  border-radius: 14px;
  padding: 14px 18px 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s;
}
.ad-unit:hover { border-color: var(--ad-accent); box-shadow: var(--shadow); }

.ad-unit--theme-blue { --ad-accent: #2563eb; --ad-bg: linear-gradient(135deg, #f7faff 0%, #edf3ff 100%); --ad-border: #c7dbff; }
.ad-unit--theme-accent { --ad-accent: #e63b2e; --ad-bg: linear-gradient(135deg, #fff8f7 0%, #fff0ed 100%); --ad-border: #ffd1c9; }
.ad-unit--theme-emerald { --ad-accent: #059669; --ad-bg: linear-gradient(135deg, #f4fdf9 0%, #e7faf1 100%); --ad-border: #b8ebd5; }
.ad-unit--theme-violet { --ad-accent: #7c3aed; --ad-bg: linear-gradient(135deg, #faf7ff 0%, #f1ebff 100%); --ad-border: #d9c7ff; }
.ad-unit--theme-gold { --ad-accent: #d97706; --ad-bg: linear-gradient(135deg, #fffdf5 0%, #fef6dc 100%); --ad-border: #f7de9c; }
.ad-unit--theme-clean { --ad-accent: var(--ink); --ad-bg: var(--card); --ad-border: var(--line); }

[data-theme="dark"] .ad-unit {
  --ad-bg: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  --ad-border: rgba(148, 163, 184, 0.24);
}

.ad-unit__topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 10px; font-size: 11.5px; color: var(--muted);
}
.ad-unit__meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ad-unit__label {
  display: inline-flex; align-items: center; padding: 1px 6px; border-radius: 4px;
  background: rgba(15,23,42,.07); color: var(--ink-2); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 10px;
}
[data-theme="dark"] .ad-unit__label { background: rgba(255,255,255,.1); }
.ad-unit__domain { font-weight: 700; color: var(--ad-accent); }
.ad-unit__erid { font-size: 10.5px; opacity: .75; }
.ad-unit__buy {
  display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 11.5px;
  color: var(--ink-2); padding: 2px 8px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
}
.ad-unit__buy:hover { color: var(--accent); border-color: var(--accent); }

.ad-unit__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center;
}
.ad-unit--has-media:not(.ad-unit--compact) .ad-unit__inner {
  grid-template-columns: minmax(0, 1.38fr) 250px auto; gap: 22px;
}
.ad-unit__media {
  display: block; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .32);
  aspect-ratio: 16 / 9; background: #0b1020;
}
.ad-unit__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .28s ease; }
.ad-unit:hover .ad-unit__media img { transform: scale(1.03); }

/* Премиум-темы ProMarketing.tech (executive) и HayerJan Ads + Telegram (house_tg) */
.ad-unit--theme-executive,
[data-theme="dark"] .ad-unit--theme-executive {
  --ad-accent: #38bdf8;
  --ad-bg: linear-gradient(125deg, #080d1a 0%, #0e1a34 52%, #13284c 100%);
  --ad-border: rgba(56, 189, 248, .32);
  color: #f8fafc;
  padding: 16px 22px 20px;
  box-shadow: 0 12px 32px rgba(8, 13, 26, .18);
}
.ad-unit--theme-house_tg,
[data-theme="dark"] .ad-unit--theme-house_tg {
  --ad-accent: #ee5346;
  --ad-bg: linear-gradient(130deg, #0b0e14 0%, #151b28 58%, #26161d 100%);
  --ad-border: rgba(238, 83, 70, .36);
  color: #f8fafc;
  box-shadow: 0 10px 26px rgba(11, 14, 20, .16);
}
.ad-unit--theme-executive .ad-unit__topbar,
.ad-unit--theme-house_tg .ad-unit__topbar {
  border-bottom-color: rgba(255, 255, 255, .12);
  color: #94a3b8;
}
.ad-unit--theme-executive .ad-unit__label,
.ad-unit--theme-house_tg .ad-unit__label {
  background: rgba(255, 255, 255, .1);
  color: #e2e8f0;
}
.ad-unit--theme-executive .ad-unit__buy,
.ad-unit--theme-house_tg .ad-unit__buy {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .16);
  color: #f1f5f9;
}
.ad-unit--theme-executive .ad-unit__buy:hover,
.ad-unit--theme-house_tg .ad-unit__buy:hover {
  background: rgba(255, 255, 255, .16);
  color: #ffffff;
}
.ad-unit--theme-executive .ad-unit__brand,
.ad-unit--theme-executive .ad-unit__title,
.ad-unit--theme-executive .ad-unit__title a,
.ad-unit--theme-house_tg .ad-unit__brand,
.ad-unit--theme-house_tg .ad-unit__title,
.ad-unit--theme-house_tg .ad-unit__title a {
  color: #ffffff;
}
.ad-unit--theme-executive .ad-unit__title a:hover { color: #7dd3fc; }
.ad-unit--theme-house_tg .ad-unit__title a:hover { color: #ff8075; }
.ad-unit--theme-executive .ad-unit__sub,
.ad-unit--theme-house_tg .ad-unit__sub {
  color: #cbd5e1;
}
.ad-unit--theme-executive .ad-unit__badge {
  background: rgba(16, 185, 129, .14);
  border-color: rgba(52, 211, 153, .35);
  color: #6ee7b7;
}
.ad-unit--theme-house_tg .ad-unit__badge {
  background: rgba(238, 83, 70, .16);
  border-color: rgba(238, 83, 70, .38);
  color: #ff8b80;
}
.ad-unit--theme-executive .ad-unit__brand-icon {
  background: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
  width: 26px; height: 26px; font-size: 11px; letter-spacing: -.03em;
}
.ad-unit--theme-house_tg .ad-unit__brand-icon {
  background: #0b0e14; border: 1px solid rgba(255,255,255,.22);
  width: 26px; height: 26px; font-size: 12px; color: #fff;
}
.ad-unit--theme-executive .ad-unit__features li,
.ad-unit--theme-house_tg .ad-unit__features li {
  color: #e2e8f0;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  padding: 3px 9px; border-radius: 999px;
}
.ad-unit--theme-executive .ad-unit__features .i { color: #34d399; }
.ad-unit--theme-house_tg .ad-unit__features .i { color: #ff6e62; }
.ad-unit--theme-executive .ad-unit__cta {
  background: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
  border: 0; padding: 11px 20px; font-size: 14.5px;
  box-shadow: 0 6px 20px rgba(16, 185, 129, .28);
}
.ad-unit--theme-house_tg .ad-unit__cta {
  background: #ee5346; border-color: #ee5346;
}
.ad-unit--theme-executive .ad-unit__verified,
.ad-unit--theme-house_tg .ad-unit__verified {
  color: #94a3b8;
}
.ad-unit__tg-btn { width: 100%; justify-content: center; white-space: nowrap; }
.ad-unit__badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.ad-unit__brand { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink); }
.ad-unit__brand-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px; background: var(--ad-accent); color: #fff;
  font-weight: 800; font-size: 12px;
}
.ad-unit__badge {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--ad-border); color: var(--ad-accent);
  font-size: 11.5px; font-weight: 700;
}
.ad-unit__title { font-size: clamp(16px, 1.5vw, 19px); font-weight: 800; line-height: 1.3; color: var(--ink); margin: 0 0 6px; }
.ad-unit__title a:hover { color: var(--ad-accent); }
.ad-unit__sub { font-size: 14px; color: var(--ink-2); line-height: 1.48; margin: 0; max-width: 820px; }
.ad-unit__features {
  list-style: none; padding: 0; margin: 10px 0 0;
  display: flex; flex-wrap: wrap; gap: 6px 14px;
}
.ad-unit__features li {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 600; color: var(--ink);
}
.ad-unit__features .i { color: var(--ad-accent); }
.ad-unit__cta-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.ad-unit__cta { background: var(--ad-accent); border-color: var(--ad-accent); color: #fff; white-space: nowrap; font-weight: 700; }
.ad-unit__cta:hover { filter: brightness(0.94); color: #fff; }
.ad-unit__verified { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); }

.ad-unit--compact { padding: 14px; border-radius: 16px; }
.ad-unit__media--top { margin-bottom: 12px; border-radius: 11px; aspect-ratio: 16 / 9.4; }
.ad-unit--compact .ad-unit__inner { grid-template-columns: 1fr; gap: 12px; }
.ad-unit--compact .ad-unit__title { font-size: 16.5px; line-height: 1.32; }
.ad-unit--compact .ad-unit__sub { font-size: 13px; line-height: 1.45; }
.ad-unit--compact .ad-unit__cta-wrap { align-items: stretch; gap: 8px; }
.ad-unit--compact .ad-unit__cta { width: 100%; justify-content: center; }
.ad-unit--compact .ad-unit__verified { justify-content: center; }
.ad-unit__sublink { font-size: 12.5px; font-weight: 600; color: #94a3b8; text-align: center; transition: color .15s; }
.ad-unit__sublink:hover { color: #ffffff; }

/* Премиум-страница «Купить рекламу» (/advertise) */
.adv-page { padding-bottom: 48px; }
.adv-hero--luxury {
  margin-top: 18px; padding: 36px; border-radius: 22px;
  background: linear-gradient(128deg, #090d16 0%, #10192d 56%, #1b1726 100%);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 20px 50px rgba(9, 13, 22, .22);
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: center;
  color: #f8fafc;
}
.adv-hero__eyebrow {
  display: inline-flex; padding: 4px 11px; border-radius: 999px;
  background: rgba(238, 83, 70, .16); border: 1px solid rgba(238, 83, 70, .38);
  color: #ff857a; font-size: 11.5px; font-weight: 800; letter-spacing: .06em;
}
.adv-hero--luxury .adv-hero__title { font-size: clamp(26px, 2.9vw, 38px); line-height: 1.15; margin: 12px 0 14px; color: #ffffff; letter-spacing: -.02em; }
.adv-hero--luxury .adv-hero__sub { font-size: 15.5px; color: #cbd5e1; line-height: 1.58; margin-bottom: 22px; }
.adv-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.btn--ghost-light { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #f8fafc; font-weight: 600; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .15); color: #ffffff; }
.adv-hero__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.adv-hero--luxury .adv-kpi {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 3px;
}
.adv-hero--luxury .adv-kpi b { font-size: 21px; font-weight: 800; color: #ffffff; line-height: 1.15; }
.adv-hero--luxury .adv-kpi span { font-size: 12px; color: #94a3b8; line-height: 1.3; }
.adv-hero__visual {
  border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .45); aspect-ratio: 16 / 10; background: #0b0e14;
}
.adv-hero__visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

.adv-section-head { max-width: 680px; margin-bottom: 22px; }
.adv-section-head__tag { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; color: var(--accent); margin-bottom: 6px; }
.adv-section-head h2 { font-size: clamp(22px, 2.3vw, 29px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; color: var(--ink); }
.adv-section-head p { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.5; }

.adv-pkg-card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.adv-pkg-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.adv-pkg-card__days { display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.adv-pkg-card__name { font-size: 20px; font-weight: 800; color: var(--ink); margin: 0; }
.adv-pkg-card__price { padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.adv-pkg-card__price b { font-size: 36px; font-weight: 900; color: var(--ink); display: block; line-height: 1.05; letter-spacing: -.02em; }
.adv-pkg-card__price span { font-size: 13px; color: var(--muted); margin-top: 4px; display: block; }
.adv-pkg-card__desc { font-size: 14px; color: var(--ink-2); line-height: 1.52; margin: 0; }
.adv-pkg-card__list { list-style: none; padding: 0; margin: 0 0 auto; display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; }
.adv-pkg-card__list li { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.adv-pkg-card__list .i { color: var(--success); flex-shrink: 0; }

.adv-pkg-card--featured {
  background: linear-gradient(155deg, #0b0f1a 0%, #131e36 100%);
  border: 1.5px solid rgba(42, 171, 238, .45);
  color: #f8fafc;
  box-shadow: 0 18px 42px rgba(11, 15, 26, .22);
}
.adv-pkg-card--featured .adv-pkg-card__name,
.adv-pkg-card--featured .adv-pkg-card__price b,
.adv-pkg-card--featured .adv-pkg-card__list li { color: #ffffff; }
.adv-pkg-card--featured .adv-pkg-card__days,
.adv-pkg-card--featured .adv-pkg-card__price span { color: #94a3b8; }
.adv-pkg-card--featured .adv-pkg-card__desc { color: #cbd5e1; }
.adv-pkg-card--featured .adv-pkg-card__price { border-color: rgba(255, 255, 255, .12); }
.adv-pkg-card--featured .adv-pkg-card__list .i { color: #38bdf8; }
.adv-pkg-card__ribbon {
  position: absolute; top: -12px; right: 20px;
  background: linear-gradient(135deg, #2aabee 0%, #0088cc 100%); color: #fff;
  font-size: 11.5px; font-weight: 800; padding: 4px 12px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 136, 204, .35);
}

.adv-slot-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  display: flex; flex-direction: column; gap: 11px; transition: transform .18s, box-shadow .18s;
}
.adv-slot-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.adv-slot-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.adv-slot-card__badge { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
.adv-slot-card__reach { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.adv-slot-card__title { font-size: 17.5px; font-weight: 800; color: var(--ink); margin: 2px 0 0; }
.adv-slot-card__place { font-size: 13.5px; color: var(--ink-2); line-height: 1.48; margin: 0 0 auto; }
.adv-slot-card__prices {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 11px 13px;
  background: var(--bg-2); border-radius: 12px; margin: 6px 0;
}
.adv-slot-card__prices small { display: block; font-size: 11.5px; color: var(--muted); }
.adv-slot-card__prices b { font-size: 13.5px; color: var(--ink); }

.adv-steps {
  margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.adv-step {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 24px;
}
.adv-step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; background: #0b0e14; color: #fff;
  font-weight: 800; font-size: 13px; margin-bottom: 10px;
}
.adv-step h3 { font-size: 17px; font-weight: 800; margin: 0 0 6px; color: var(--ink); }
.adv-step p { font-size: 14px; color: var(--ink-2); line-height: 1.5; margin: 0; }

@media (max-width: 960px) {
  .ad-unit__inner,
  .ad-unit--has-media:not(.ad-unit--compact) .ad-unit__inner { grid-template-columns: 1fr; }
  .ad-unit__media { max-width: 420px; }
  .ad-unit__cta-wrap { align-items: stretch; }
  .ad-unit__cta { width: 100%; justify-content: center; }
  .adv-hero--luxury, .adv-steps { grid-template-columns: 1fr; }
  .adv-hero__kpis { grid-template-columns: 1fr 1fr; }
}
