/* ============================================================
   vestnik — самостоятельный шаблон новостного портала.
   Дизайн-система в духе журнальных WordPress-тем (Jannah-класс):
   боксовая белая колонка с тенью на цветной подложке, тонкая
   строка даты + липкое меню, блоки рубрик «крупная первая + список»,
   бенто-полоса дня, тёмная секция во всю ширину, цветные ярлыки
   рубрик, скруглённые контейнеры (14px) и пилюли (32px).
   Своя вёрстка (классы vk-*), не CSS поверх core-template — из общего
   берём только PHP-хелперы (article_url / load_articles и т.д.).
   ============================================================ */

:root {
  --accent: #2F80ED;
  --accent-dim: #1B5FC4;

  --vk-page-bg: #e7ebf0;
  --vk-col-bg: #ffffff;
  --vk-brand: #16183f;
  --vk-nav-bg: #1f2024;
  --vk-nav-bg-2: #17181b;
  --vk-ink: #2c2f34;
  --vk-ink-soft: #5a5f66;
  --vk-ink-dim: #8b9099;
  --vk-line: #e6e8ec;
  --vk-line-soft: #f1f3f6;
  --vk-dark-bg: #17182c;
  --vk-col-max: 1180px;
  --vk-r-box: 14px;
  --vk-r-pill: 32px;
  --vk-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--vk-page-bg); }

body {
  margin: 0;
  font-family: var(--vk-font);
  font-size: 15px;
  line-height: 1.62;
  color: var(--vk-ink);
  /* Сплошной цвет-заглушка. Если оператор сгенерировал «Фон сайта через ИИ»,
     includes/header.php инлайн-переопределяет background на body целиком
     (картинка виден в полях по бокам боксовой белой колонки .vk-shell). */
  background: var(--vk-page-bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--vk-ink); text-decoration: none; }
a:hover { color: var(--accent); }

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

/* ── Боксовая колонка ─────────────────────────────────────── */
.vk-shell {
  max-width: var(--vk-col-max);
  margin: 0 auto;
  background: var(--vk-col-bg);
  box-shadow: 0 0 50px rgba(10, 12, 40, 0.28);
  min-height: 100vh;
  overflow-x: hidden;
}

.vk-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Полоса прогресса чтения ──────────────────────────────── */
.vk-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--accent);
  z-index: 200;
  box-shadow: 0 0 10px rgba(224, 83, 58, 0.6);
  transition: width 0.08s linear;
}

/* ── Шапка ────────────────────────────────────────────────── */
.vk-topbar {
  background: var(--vk-nav-bg-2);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12.5px;
}
.vk-topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 38px;
}
.vk-today { text-transform: capitalize; }
.vk-top-link { color: rgba(255, 255, 255, 0.72); }
.vk-top-link:hover { color: #fff; }

.vk-navbar {
  background: var(--vk-col-bg);
  border-bottom: 1px solid var(--vk-line);
  position: sticky; top: 0; z-index: 150;
  transition: box-shadow 0.2s;
}
.vk-header.is-stuck .vk-navbar { box-shadow: 0 6px 24px rgba(10, 12, 40, 0.12); }
.vk-navbar-inner {
  display: flex; align-items: center; gap: 18px;
  min-height: 76px;
  transition: min-height 0.2s;
}
.vk-header.is-stuck .vk-navbar-inner { min-height: 60px; }

.vk-logo { flex-shrink: 0; display: flex; align-items: center; }
.vk-logo img { max-height: 52px; width: auto; }
.vk-header.is-stuck .vk-logo img { max-height: 40px; }
.vk-logo-text {
  font-size: 24px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--vk-brand); line-height: 1.1;
}
.vk-header.is-stuck .vk-logo-text { font-size: 20px; }

.vk-menu {
  flex: 1; min-width: 0;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 4px 6px;
}
.vk-menu-link {
  padding: 8px 12px;
  font-size: 13.5px; font-weight: 700;
  color: var(--vk-ink);
  white-space: nowrap;
  border-radius: var(--vk-r-pill);
  transition: background 0.15s, color 0.15s;
}
.vk-menu-link:hover { background: var(--vk-line-soft); color: var(--vk-ink); }
.vk-menu-link.is-active { background: var(--accent); color: #fff; }

.vk-menu-more { position: relative; }
.vk-menu-more-btn {
  padding: 8px 12px; font-size: 13.5px; font-weight: 700;
  background: var(--vk-line-soft); border: 0; border-radius: var(--vk-r-pill);
  color: var(--vk-ink); cursor: pointer; white-space: nowrap;
}
.vk-menu-more-list {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 220px; background: #fff;
  border: 1px solid var(--vk-line);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(10, 12, 40, 0.16);
  padding: 6px; display: none; z-index: 160;
}
.vk-menu-more-list.is-open { display: block; }
.vk-menu-more-list a {
  display: block; padding: 9px 12px; font-size: 13.5px; font-weight: 600;
  border-radius: 8px; white-space: normal;
}
.vk-menu-more-list a:hover { background: var(--vk-line-soft); }

.vk-search-btn {
  flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--vk-line-soft); color: var(--vk-ink);
}
.vk-search-btn:hover { background: var(--accent); color: #fff; }

.vk-burger {
  display: none;
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--vk-line-soft); border: 0; border-radius: 10px;
  cursor: pointer; padding: 11px 9px;
}
.vk-burger span {
  display: block; height: 2px; background: var(--vk-ink);
  border-radius: 2px; margin: 3px 0;
}

/* Бегущая строка "Сейчас в тренде" */
.vk-ticker {
  background: var(--vk-nav-bg);
  color: #fff;
}
.vk-ticker-inner {
  display: flex; align-items: center; gap: 14px;
  height: 44px; overflow: hidden;
}
.vk-ticker-label {
  flex-shrink: 0;
  background: var(--accent); color: #fff;
  font-size: 11.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 14px; border-radius: var(--vk-r-pill);
}
.vk-ticker-item {
  color: #fff; font-size: 13.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vk-ticker-item:hover { color: #fff; text-decoration: underline; }

/* ── Мобильное меню (drawer) ──────────────────────────────── */
.vk-drawer-overlay {
  position: fixed; inset: 0; background: rgba(10, 12, 40, 0.5);
  z-index: 300;
}
.vk-drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 82%; max-width: 320px;
  background: #fff; z-index: 301;
  padding: 22px 20px;
  overflow-y: auto;
  box-shadow: 4px 0 30px rgba(10, 12, 40, 0.25);
}
.vk-drawer-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: 0; font-size: 28px; line-height: 1;
  color: var(--vk-ink-soft); cursor: pointer;
}
.vk-drawer-title {
  font-size: 18px; font-weight: 800; color: var(--vk-brand);
  margin-bottom: 16px; padding-right: 30px;
}
.vk-drawer-nav a {
  display: block; padding: 12px 8px;
  font-size: 15px; font-weight: 600;
  border-bottom: 1px solid var(--vk-line);
}

/* ── Хлебные крошки ───────────────────────────────────────── */
.vk-crumbs {
  background: var(--vk-line-soft);
  border-bottom: 1px solid var(--vk-line);
  font-size: 12.5px; color: var(--vk-ink-dim);
}
.vk-crumbs .vk-wrap {
  padding-top: 11px; padding-bottom: 11px;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.vk-crumbs a { color: var(--vk-ink-soft); font-weight: 600; }
.vk-crumbs a:hover { color: var(--accent); }
.vk-crumbs em { font-style: normal; color: var(--vk-ink-dim); }
.vk-crumbs-current { color: var(--vk-ink-dim); }

/* ── Основная область ─────────────────────────────────────── */
.vk-main { padding: 26px 0 40px; }
.vk-main > .vk-wrap + .vk-wrap { margin-top: 26px; }

.vk-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: start;
}
.vk-layout-main { min-width: 0; }
.vk-layout-side { min-width: 0; }

/* ── Заголовок секции + ярлык-пилюля ──────────────────────── */
.vk-section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 16px;
  border-bottom: 2px solid var(--vk-line);
  padding-bottom: 0;
}
.vk-section-tab {
  display: inline-block;
  background: var(--vk-brand); color: #fff;
  font-size: 15px; font-weight: 800;
  padding: 9px 20px;
  border-radius: var(--vk-r-box) var(--vk-r-box) 0 0;
  margin-bottom: -2px;
  line-height: 1.25;
}
h1.vk-section-tab { margin: 0 0 -2px; }
.vk-section-more {
  flex-shrink: 0;
  font-size: 12.5px; font-weight: 700; color: var(--vk-ink-soft);
  text-transform: uppercase; letter-spacing: 0.03em;
}
.vk-section-more:hover { color: var(--accent); }
.vk-section-head-dark { border-bottom-color: rgba(255, 255, 255, 0.14); }
.vk-section-head-dark .vk-section-tab { color: #fff; }

/* ── Ярлык рубрики (badge) ────────────────────────────────── */
.vk-badge {
  display: inline-block;
  background: var(--vk-brand); color: #fff;
  font-size: 10.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 12px; border-radius: var(--vk-r-pill);
}

/* ── Hero-строка ──────────────────────────────────────────── */
.vk-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: 22px;
  margin-bottom: 30px;
}
.vk-hero-lead {
  position: relative;
  display: block;
  min-height: 420px;
  border-radius: var(--vk-r-box);
  overflow: hidden;
  background: #16181d center / cover no-repeat;
  color: #fff;
}
.vk-hero-lead::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(9, 10, 24, 0.92) 0%, rgba(9, 10, 24, 0.4) 45%, rgba(9, 10, 24, 0.05) 100%);
}
.vk-hero-lead-inner {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 28px 24px;
  z-index: 2;
}
.vk-hero-lead-title {
  font-size: 27px; line-height: 1.24; font-weight: 800;
  margin: 12px 0 8px; color: #fff;
}
.vk-hero-lead-desc {
  font-size: 14px; line-height: 1.55; margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.82);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vk-hero-lead-date { font-size: 12px; color: rgba(255, 255, 255, 0.62); }
.vk-hero-lead .vk-badge { background: var(--accent); }

.vk-hero-aside {
  background: var(--vk-line-soft);
  border-radius: var(--vk-r-box);
  padding: 18px 20px;
}
.vk-panel-title {
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--vk-ink-soft);
  padding-bottom: 10px; margin-bottom: 6px;
  border-bottom: 2px solid var(--accent);
}
.vk-timeline { list-style: none; margin: 0; padding: 0; }
.vk-timeline li { border-bottom: 1px solid var(--vk-line); }
.vk-timeline li:last-child { border-bottom: 0; }
.vk-timeline a { display: block; padding: 11px 0; }
.vk-timeline-date {
  display: block; font-size: 11px; color: var(--vk-ink-dim);
  margin-bottom: 3px;
}
.vk-timeline-title {
  display: block; font-size: 13.5px; font-weight: 600; line-height: 1.4;
  color: var(--vk-ink);
}
.vk-timeline a:hover .vk-timeline-title { color: var(--accent); }
.vk-panel-more {
  display: inline-block; margin-top: 12px;
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.03em; color: var(--accent);
}

/* ── Бенто-полоса дня ─────────────────────────────────────── */
.vk-bento-section { margin-bottom: 30px; }
.vk-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 12px;
}
.vk-bento-1 { grid-column: span 2; grid-row: span 2; }
.vk-tile {
  position: relative; display: block;
  border-radius: var(--vk-r-box);
  overflow: hidden;
  background: #16181d center / cover no-repeat;
  color: #fff;
  min-height: 100%;
}
.vk-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(9, 10, 24, 0.9) 0%, rgba(9, 10, 24, 0.25) 55%, rgba(9, 10, 24, 0) 100%);
  transition: background 0.35s ease;
}
.vk-tile-inner {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 16px 14px; z-index: 2;
  transition: transform 0.35s ease;
}
.vk-tile-title {
  font-size: 14.5px; line-height: 1.32; font-weight: 700; margin: 8px 0 0;
  color: #fff;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.vk-bento-1 .vk-tile-title { font-size: 20px; -webkit-line-clamp: 4; }

/* Анимация описания при наведении (эффект из журнальных тем Jannah-класса):
   анонс скрыт, при hover плавно раскрывается снизу, а блок текста чуть
   приподнимается. Только там, где hover осмыслен (десктоп/мышь) — на тач
   остаётся один заголовок. */
.vk-tile-desc {
  margin: 0;
  font-size: 12.5px; line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.28s ease, margin-top 0.35s ease;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.vk-bento-1 .vk-tile-desc { font-size: 13.5px; -webkit-line-clamp: 4; }
@media (hover: hover) {
  .vk-tile:hover::after {
    background: linear-gradient(to top, rgba(9, 10, 24, 0.95) 0%, rgba(9, 10, 24, 0.55) 60%, rgba(9, 10, 24, 0.15) 100%);
  }
  .vk-tile:hover .vk-tile-inner { transform: translateY(-4px); }
  .vk-tile:hover .vk-tile-desc {
    max-height: 7em; opacity: 1; margin-top: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .vk-tile::after, .vk-tile-inner, .vk-tile-desc { transition: none; }
}

/* ── Блок рубрики (magbox) ────────────────────────────────── */
.vk-magbox { margin-bottom: 34px; }
.vk-container {
  background: var(--vk-col-bg);
  border: 1px solid var(--vk-line);
  border-top: 3px solid var(--accent);
  border-radius: 0 0 var(--vk-r-box) var(--vk-r-box);
  padding: 22px;
}
.vk-magbox-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr);
  gap: 26px;
}

/* Крупная первая карточка */
.vk-big { display: block; }
.vk-big-thumb {
  position: relative;
  height: 220px;
  border-radius: 10px;
  background: var(--vk-line-soft) center / cover no-repeat;
  margin-bottom: 12px;
}
.vk-big-thumb .vk-badge {
  position: absolute; left: 12px; top: 12px;
}
.vk-big-title {
  font-size: 18px; line-height: 1.32; font-weight: 800; margin: 0 0 8px;
  color: var(--vk-ink);
}
.vk-big:hover .vk-big-title { color: var(--accent); }
.vk-big-excerpt {
  font-size: 13.5px; line-height: 1.55; color: var(--vk-ink-soft); margin: 0 0 8px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.vk-big-date { font-size: 11.5px; color: var(--vk-ink-dim); }

/* Список маленьких — 2 колонки, заполняют пространство справа от крупной
   карточки (как в блоках рубрик 4esnok/Jannah). */
.vk-small-list {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 22px;
}
.vk-small {
  display: flex; gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid var(--vk-line);
}
/* верхний ряд (первые 2 в 2-колоночной сетке) без верхнего отступа */
.vk-small:nth-child(-n+2) { padding-top: 0; }
.vk-small-thumb {
  flex-shrink: 0;
  width: 80px; height: 56px;
  border-radius: 8px;
  background: var(--vk-line-soft) center / cover no-repeat;
  display: block;
}
.vk-small-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.vk-small-title {
  font-size: 13px; line-height: 1.38; font-weight: 700; color: var(--vk-ink);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.vk-small-title:hover { color: var(--accent); }
.vk-small-date { font-size: 11px; color: var(--vk-ink-dim); }

/* ── Стандартная сетка карточек ───────────────────────────── */
.vk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}
.vk-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--vk-line);
  border-radius: var(--vk-r-box);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.vk-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(10, 12, 40, 0.12); }
.vk-card-thumb {
  position: relative;
  height: 170px;
  background: var(--vk-line-soft) center / cover no-repeat;
}
.vk-card-thumb .vk-badge { position: absolute; left: 12px; top: 12px; }
.vk-card-body { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.vk-card-title {
  font-size: 15px; line-height: 1.34; font-weight: 800; margin: 0; color: var(--vk-ink);
}
.vk-card:hover .vk-card-title { color: var(--accent); }
.vk-card-excerpt {
  font-size: 12.5px; line-height: 1.5; color: var(--vk-ink-soft); margin: 0; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.vk-card-meta {
  font-size: 11px; color: var(--vk-ink-dim);
  display: flex; align-items: center; gap: 6px;
}
.vk-dot { color: var(--vk-ink-dim); }
.vk-star { color: var(--accent); font-weight: 700; }

/* Заглушка обложки — сплошной фон, текст поверх остаётся читаемым */
.vk-card-thumb-ph,
.vk-card-thumb-ph.vk-tile,
.vk-card-thumb-ph.vk-hero-lead {
  background-color: #262a4d;
  background-image: linear-gradient(135deg, #262a4d 0%, #363b6b 100%);
}

/* ── Тёмная секция во всю ширину ──────────────────────────── */
.vk-darkband {
  background: var(--vk-dark-bg);
  padding: 34px 0 38px;
  margin: 6px 0 34px;
}
.vk-dark-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  grid-auto-rows: 200px;
  gap: 14px;
}

/* ── Сайдбар-виджеты ──────────────────────────────────────── */
.vk-widget {
  background: #fff;
  border: 1px solid var(--vk-line);
  border-radius: var(--vk-r-box);
  padding: 16px 18px;
  margin-bottom: 22px;
}
.vk-widget-title {
  font-size: 13px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--vk-ink);
  padding-bottom: 10px; margin-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}
.vk-widget-post {
  display: flex; gap: 11px;
  padding: 10px 0; border-bottom: 1px solid var(--vk-line);
}
.vk-widget-post:first-of-type { padding-top: 0; }
.vk-widget-post:last-child { border-bottom: 0; padding-bottom: 0; }
.vk-widget-thumb {
  flex-shrink: 0; width: 74px; height: 54px;
  border-radius: 8px;
  background: var(--vk-line-soft) center / cover no-repeat;
  display: block;
}
.vk-widget-post-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.vk-widget-post-title {
  font-size: 12.5px; line-height: 1.36; font-weight: 700; color: var(--vk-ink);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.vk-widget-post:hover .vk-widget-post-title { color: var(--accent); }
.vk-widget-post-date { font-size: 10.5px; color: var(--vk-ink-dim); }
.vk-widget-link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 0; font-size: 13px; font-weight: 600;
  border-bottom: 1px solid var(--vk-line);
}
.vk-widget-link:last-child { border-bottom: 0; }
.vk-widget-link.is-active { color: var(--accent); }
.vk-widget-count {
  flex-shrink: 0;
  font-size: 11px; font-weight: 700; color: var(--vk-ink-dim);
  background: var(--vk-line-soft); padding: 2px 9px; border-radius: var(--vk-r-pill);
}

/* ── Вкладки рубрик (страница «Все статьи») ────────────────── */
.vk-cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.vk-cat-tab {
  padding: 7px 15px; font-size: 12.5px; font-weight: 700;
  background: var(--vk-line-soft); border-radius: var(--vk-r-pill);
  white-space: nowrap;
}
.vk-cat-tab:hover { background: var(--vk-line); color: var(--vk-ink); }
.vk-cat-tab.is-active { background: var(--accent); color: #fff; }

/* ── Пагинация ────────────────────────────────────────────── */
.vk-pager { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 26px; }
.vk-pager a {
  min-width: 38px; height: 38px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13.5px; font-weight: 700;
  background: var(--vk-line-soft); border-radius: var(--vk-r-pill);
  color: var(--vk-ink);
}
.vk-pager a:hover { background: var(--vk-line); }
.vk-pager a.is-current { background: var(--accent); color: #fff; }

/* ── Страница статьи ──────────────────────────────────────── */
.vk-post { padding: 26px 30px 30px; }
.vk-post-narrow { max-width: 760px; }
.vk-post-head { margin-bottom: 18px; }
.vk-post-title {
  font-size: 30px; line-height: 1.24; font-weight: 800;
  margin: 0 0 12px; color: var(--vk-ink);
}
.vk-post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--vk-ink-dim);
}
.vk-post-cat { font-weight: 800; }
.vk-post-author { font-weight: 700; color: var(--vk-ink-soft); }
.vk-post-cover {
  margin: 0 0 20px;
  border-radius: var(--vk-r-box); overflow: hidden;
}
.vk-post-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 460px;
  object-fit: cover;
  display: block;
}
.vk-article-body figure img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.vk-post-lead {
  font-size: 17px; line-height: 1.55; font-weight: 600;
  color: var(--vk-ink); margin: 0 0 20px;
  padding-left: 16px; border-left: 3px solid var(--accent);
}

/* Тело статьи — стили под чистый HTML от ИИ-генератора */
.vk-article-body { font-size: 17px; line-height: 1.72; color: var(--vk-ink); }
.vk-article-body p { margin: 0 0 18px; }
.vk-article-body h2 {
  font-size: 22px; line-height: 1.3; font-weight: 800;
  margin: 32px 0 14px; color: var(--vk-brand);
}
.vk-article-body h3 {
  font-size: 18.5px; line-height: 1.32; font-weight: 800;
  margin: 26px 0 12px; color: var(--vk-brand);
}
.vk-article-body a { color: var(--accent-dim); text-decoration: underline; }
.vk-article-body ul, .vk-article-body ol { margin: 0 0 18px; padding-left: 24px; }
.vk-article-body li { margin-bottom: 8px; }
.vk-article-body blockquote {
  margin: 22px 0; padding: 16px 20px;
  background: var(--vk-line-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-style: italic; color: var(--vk-ink-soft);
}
.vk-article-body blockquote p:last-child { margin-bottom: 0; }
.vk-article-body figure { margin: 22px 0; }
.vk-article-body figure img { border-radius: var(--vk-r-box); }
.vk-article-body figcaption {
  font-size: 12.5px; color: var(--vk-ink-dim); text-align: center; margin-top: 8px;
}
.vk-article-body img { border-radius: var(--vk-r-box); margin: 0 auto; }
.vk-article-body table {
  display: block; width: 100%; overflow-x: auto;
  border-collapse: collapse; margin: 0 0 18px; font-size: 14.5px;
}
.vk-article-body th, .vk-article-body td {
  border: 1px solid var(--vk-line); padding: 8px 12px; text-align: left;
}
.vk-article-body th { background: var(--vk-line-soft); font-weight: 700; }

.vk-post-tags {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 24px 0 6px;
}
.vk-post-tags-label {
  font-size: 11.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--vk-ink-dim);
}
.vk-post-tags a {
  font-size: 12px; font-weight: 700;
  background: var(--vk-line-soft); padding: 5px 14px; border-radius: var(--vk-r-pill);
  color: var(--vk-ink-soft);
}
.vk-post-tags a:hover { background: var(--accent); color: #fff; }

.vk-lead-text { color: var(--vk-ink-soft); margin: 0 0 18px; font-size: 14px; }
.vk-empty { color: var(--vk-ink-dim); padding: 24px 0; }
.vk-note { color: var(--vk-ink-dim); font-size: 13px; margin-top: 26px; }

/* ── Рейтинг (классы из core stati/_article-rating.php) ───── */
.article-rating {
  border: 1px solid var(--vk-line);
  background: var(--vk-line-soft);
  border-radius: var(--vk-r-box);
  padding: 18px 20px; margin: 28px 0 4px;
}
.article-rating-title {
  font-weight: 800; text-transform: uppercase; font-size: 12.5px;
  letter-spacing: 0.04em; margin-bottom: 10px;
}
.article-rating-summary { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.article-rating-value { font-size: 26px; font-weight: 800; color: var(--vk-ink); }
.article-rating-stars-display { position: relative; display: inline-block; font-size: 18px; letter-spacing: 2px; }
.article-rating-stars-bg { color: #d5d5d5; }
.article-rating-stars-fg { color: var(--accent); position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; }
.article-rating-count { font-size: 12px; color: var(--vk-ink-dim); }
.article-rating-picker { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.article-rating-picker-label { font-size: 13px; color: var(--vk-ink-soft); }
.rating-star-btn { background: none; border: none; font-size: 22px; color: #d5d5d5; cursor: pointer; padding: 0 1px; transition: color 0.12s; }
.rating-star-btn:hover, .rating-star-btn.is-active { color: var(--accent); }
.article-rating-thanks { margin-top: 10px; color: #2e7d32; font-size: 13px; font-weight: 600; }

/* ── Кнопка / 404 ────────────────────────────────────────── */
.vk-btn {
  display: inline-block;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: 14px;
  padding: 11px 26px; border-radius: var(--vk-r-pill);
}
.vk-btn:hover { background: var(--accent-dim); color: #fff; }
.vk-404 { text-align: center; padding: 70px 0 80px; }
.vk-404-kicker {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--vk-ink-dim);
}
.vk-404-code {
  font-size: 84px; font-weight: 800; line-height: 1;
  color: var(--accent); margin: 8px 0 4px;
}
.vk-404-text { color: var(--vk-ink-soft); margin-bottom: 24px; }

/* ── Наверх ───────────────────────────────────────────────── */
.vk-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 120;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--vk-brand); color: #fff;
  box-shadow: 0 8px 24px rgba(10, 12, 40, 0.28);
}
.vk-to-top:hover { background: var(--accent); color: #fff; }

/* ── Cookie ───────────────────────────────────────────────── */
.vk-cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 400;
  max-width: 1120px; margin: 0 auto;
  background: #181a2e; color: #eceefb;
  border-radius: var(--vk-r-box);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.vk-cookie p { flex: 1; min-width: 220px; margin: 0; font-size: 13px; line-height: 1.5; }
.vk-cookie a { color: #fff; text-decoration: underline; }
.vk-cookie button {
  flex-shrink: 0;
  background: #fff; color: #181a2e; border: 0;
  padding: 9px 20px; border-radius: var(--vk-r-pill);
  font-weight: 700; font-size: 13px; cursor: pointer;
}

/* ── Подвал ───────────────────────────────────────────────── */
.vk-footer {
  background: var(--vk-nav-bg);
  color: rgba(255, 255, 255, 0.72);
  margin-top: 10px;
}
.vk-footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 30px;
  padding-top: 38px; padding-bottom: 30px;
}
.vk-footer-col a {
  display: block; color: rgba(255, 255, 255, 0.72);
  font-size: 13px; padding: 5px 0;
}
.vk-footer-col a:hover { color: #fff; }
.vk-footer-name { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.vk-footer-tag { font-size: 13px; line-height: 1.6; margin: 0; color: rgba(255, 255, 255, 0.6); }
.vk-footer-col-title {
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.05em; color: #fff; margin-bottom: 8px;
}
.vk-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  font-size: 12px; color: rgba(255, 255, 255, 0.5);
}
.vk-footer-bottom .vk-wrap { display: flex; flex-direction: column; gap: 6px; }
.vk-footer-disclaimer { font-size: 11.5px; line-height: 1.5; }

/* ── Планшет ──────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .vk-layout { grid-template-columns: 1fr; }
  .vk-layout-side { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
  .vk-hero-row { grid-template-columns: 1fr; }
  .vk-hero-lead { min-height: 340px; }
  .vk-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .vk-bento-1 { grid-column: span 2; grid-row: span 1; }
  .vk-magbox-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 22px; }
}

/* ── Мобильный ────────────────────────────────────────────── */
@media (max-width: 680px) {
  .vk-wrap { padding: 0 16px; }
  .vk-menu, .vk-search-btn { display: none; }
  .vk-burger { display: block; }
  .vk-logo { flex: 1; }
  .vk-navbar-inner { min-height: 62px; gap: 12px; }
  .vk-layout-side { grid-template-columns: 1fr; }
  .vk-magbox-grid { grid-template-columns: 1fr; gap: 18px; }
  .vk-small-list { grid-template-columns: 1fr; }
  .vk-small:nth-child(-n+2) { padding-top: 11px; }
  .vk-small:first-child { padding-top: 0; }
  .vk-small:last-child { border-bottom: 0; }
  .vk-hero-lead-title { font-size: 21px; }
  .vk-post { padding: 20px 18px 24px; }
  .vk-post-title { font-size: 23px; }
  .vk-article-body { font-size: 16px; }
  .vk-article-body h2 { font-size: 19.5px; }
  .vk-section-tab { font-size: 13.5px; padding: 8px 15px; }
  .vk-bento { grid-template-columns: 1fr; grid-auto-rows: 160px; }
  .vk-bento-1 { grid-column: span 1; }
  .vk-container { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .vk-card, .vk-progress { transition: none; }
}
