@charset "UTF-8";
/*
Theme Name: ВестиВЛГ News
Theme URI: https://vestivlg.ru/
Author: ВестиВЛГ
Author URI: https://vestivlg.ru/
Description: Современная адаптивная новостная тема для портала «ВестиВЛГ». Тёмная тема, лента-«молния», счётчики просмотров и лайков, блоки «Читайте также», готовые интеграции Яндекс.Метрики и РСЯ. Работает из коробки — без настройки.
Version: 3.1
Requires at least: 5.9
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vestivlg
Tags: news, blog, dark-mode, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   1. Дизайн-токены — строгая палитра: белый, чёрный, #fb6e06
   ========================================================================== */
:root {
  --accent: #fb6e06;
  --accent-hover: #d95c00;
  --accent-soft: #fff1e6;
  --danger: #fb6e06;
  --bg: #f6f6f6;
  --card: #ffffff;
  --text: #111111;
  --text-2: #666666;
  --border: #e6e6e6;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 4px 16px rgba(0, 0, 0, .06);
  --shadow-lg: 0 6px 28px rgba(0, 0, 0, .13);
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
html[data-theme="dark"] {
  --accent: #fb6e06;
  --accent-hover: #ff8c33;
  --accent-soft: #2a1707;
  --bg: #0d0d0d;
  --card: #171717;
  --text: #f2f2f2;
  --text-2: #999999;
  --border: #2a2a2a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
  --shadow-lg: 0 6px 28px rgba(0, 0, 0, .45);
}

/* ==========================================================================
   2. База
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  transition: background .25s, color .25s;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
::selection { background: var(--accent); color: #fff; }

/* ==========================================================================
   3. Верхняя лента-«молния» — чёрная с оранжевым ярлыком
   ========================================================================== */
.vlg-ticker {
  background: #111111;
  color: #fff; font-size: 13.5px; overflow: hidden; position: relative; z-index: 60;
}
.vlg-ticker__inner { display: flex; align-items: center; height: 34px; }
.vlg-ticker__label {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px;
  font-weight: 700; padding: 0 14px 0 10px; white-space: nowrap;
  color: #fff; background: var(--accent); align-self: stretch; margin-right: 14px;
}
.vlg-ticker__track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.vlg-ticker__move { display: inline-flex; gap: 48px; white-space: nowrap; animation: vlg-marquee 40s linear infinite; }
.vlg-ticker__move:hover { animation-play-state: paused; }
.vlg-ticker__move a { color: #ffffff; opacity: .85; }
.vlg-ticker__move a:hover { opacity: 1; text-decoration: underline; color: var(--accent); }
@keyframes vlg-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .vlg-ticker__move { animation: none; } }

/* ==========================================================================
   4. Шапка
   ========================================================================== */
.vlg-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--card); border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
  backdrop-filter: saturate(1.4) blur(8px);
}
.vlg-header__inner { display: flex; align-items: center; gap: 10px; height: var(--header-h); }
.vlg-logo { display: inline-flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; letter-spacing: -.5px; color: var(--text) !important; }
.vlg-logo__badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; flex: 0 0 auto;
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 10px rgba(251, 110, 6, .35);
}
.vlg-logo b { color: var(--accent); font-weight: 800; }
.vlg-logo img.custom-logo { max-height: 40px; width: auto; }
.vlg-nav { display: flex; align-items: center; gap: 2px; margin-left: 18px; flex: 1; min-width: 0; overflow: hidden; }
.vlg-nav a {
  color: var(--text-2); font-weight: 600; font-size: 14.5px; white-space: nowrap;
  padding: 8px 12px; border-radius: 999px; transition: .15s;
}
.vlg-nav a:hover { color: var(--accent); background: var(--accent-soft); }
.vlg-nav .current-menu-item > a, .vlg-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.vlg-header__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.vlg-iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background: transparent; color: var(--text-2);
  cursor: pointer; transition: .15s; flex: 0 0 auto;
}
.vlg-iconbtn:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.vlg-iconbtn svg { width: 18px; height: 18px; }
.vlg-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent); color: #fff !important; font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: 999px; border: 0; cursor: pointer;
  transition: .15s; white-space: nowrap; box-shadow: 0 4px 12px rgba(251, 110, 6, .3);
}
.vlg-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.vlg-btn--ghost { background: transparent; color: var(--accent) !important; border: 1.5px solid var(--accent); box-shadow: none; }
.vlg-btn--ghost:hover { background: var(--accent-soft); }
html[data-theme="dark"] .vlg-icon-sun { display: block; }
html[data-theme="dark"] .vlg-icon-moon { display: none; }
.vlg-icon-sun { display: none; }
.vlg-icon-moon { display: block; }
.vlg-burger { display: none; }

/* Поиск-оверлей */
.vlg-search-overlay {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px);
  padding: 12vh 16px 0;
}
.vlg-search-overlay.is-open { display: block; animation: vlg-fade .2s; }
.vlg-search-box { max-width: 640px; margin: 0 auto; position: relative; }
.vlg-search-box input[type="search"] {
  width: 100%; font-size: 20px; padding: 18px 56px 18px 22px;
  border-radius: var(--radius); border: 2px solid var(--accent);
  background: var(--card); color: var(--text); outline: none; box-shadow: var(--shadow-lg);
}
.vlg-search-box button {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: var(--accent); border: 0; color: #fff; width: 42px; height: 42px;
  border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.vlg-search-hint { text-align: center; color: #cccccc; font-size: 13px; margin-top: 14px; }
@keyframes vlg-fade { from { opacity: 0; } }

/* Мобильное меню */
.vlg-drawer {
  position: fixed; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); z-index: 110;
  background: var(--card); box-shadow: var(--shadow-lg);
  transform: translateX(-105%); transition: transform .28s cubic-bezier(.2, .7, .3, 1);
  display: flex; flex-direction: column; overflow-y: auto; padding: 18px;
}
.vlg-drawer.is-open { transform: none; }
.vlg-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.vlg-drawer nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px;
  border-radius: var(--radius-sm); color: var(--text); font-weight: 600; font-size: 15px;
}
.vlg-drawer nav a:hover { background: var(--accent-soft); color: var(--accent); }
.vlg-drawer nav img { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; }
/* приводим цветные плашки-инициалы из PHP к палитре */
.vlg-drawer nav a > span[style] { background: var(--accent) !important; }
.vlg-drawer__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); display: flex; gap: 8px; flex-wrap: wrap; }
.vlg-scrim { position: fixed; inset: 0; z-index: 105; background: rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: opacity .25s; }
.vlg-scrim.is-open { opacity: 1; pointer-events: auto; }

/* ==========================================================================
   5. Сетка и карточки
   ========================================================================== */
.vlg-main { padding: 24px 0 48px; }
.vlg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.vlg-section-title { display: flex; align-items: center; gap: 10px; font-size: 21px; margin: 34px 0 16px; }
.vlg-section-title::before { content: ""; width: 5px; height: 22px; border-radius: 3px; background: var(--accent); }

/* Hero */
.vlg-hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.vlg-hero__side { display: grid; gap: 18px; grid-template-rows: 1fr 1fr; }
.vlg-cover {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  background: #111111; box-shadow: var(--shadow); min-height: 220px; color: #fff !important;
}
.vlg-hero > .vlg-cover { min-height: 458px; }
.vlg-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.vlg-cover:hover img { transform: scale(1.045); }
.vlg-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .88));
}
.vlg-cover__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px 20px; }
.vlg-cover__title { font-size: 22px; font-weight: 800; line-height: 1.3; margin: 8px 0 6px; color: #fff; text-wrap: balance; }
.vlg-hero__side .vlg-cover__title { font-size: 16px; }
.vlg-cover__meta { color: rgba(255, 255, 255, .8); font-size: 12.5px; display: flex; gap: 14px; align-items: center; }
.vlg-cover--noimg { background: linear-gradient(135deg, #111111, #3a3a3a); }

/* Бейдж рубрики — всегда оранжевый, любые цвета из PHP игнорируются */
.vlg-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  color: #fff !important; background: var(--accent) !important;
  padding: 4px 10px; border-radius: 999px; position: relative; z-index: 3;
}
.vlg-badge--soft { background: var(--accent-soft) !important; color: var(--accent) !important; }

/* Карточка в ленте */
.vlg-card {
  position: relative; display: grid; grid-template-columns: 240px 1fr; gap: 0;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); margin-bottom: 16px;
  transition: transform .18s, box-shadow .18s;
}
.vlg-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.vlg-card__thumb { position: relative; min-height: 176px; display: block; background: var(--accent-soft); overflow: hidden; }
.vlg-card__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.vlg-card:hover .vlg-card__thumb img { transform: scale(1.05); }
.vlg-card__thumb .vlg-badge { position: absolute; top: 10px; left: 10px; }
.vlg-card__body { padding: 16px 18px; display: flex; flex-direction: column; min-width: 0; }
.vlg-card__title { font-size: 18px; margin: 6px 0; }
.vlg-card__title a { color: var(--text); }
.vlg-card__title a::after { content: ""; position: absolute; inset: 0; }
.vlg-card__title a:hover { color: var(--accent); }
.vlg-card__excerpt {
  color: var(--text-2); font-size: 14px; margin: 0 0 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vlg-card--noimg { grid-template-columns: 1fr; }

/* Метаданные */
.vlg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--text-2); font-size: 12.5px; margin-top: auto; position: relative; z-index: 3; }
.vlg-meta__item { display: inline-flex; align-items: center; gap: 5px; }
.vlg-meta svg { width: 14px; height: 14px; opacity: .8; }
.vlg-meta a { color: var(--text-2); }
.vlg-meta a:hover { color: var(--accent); }

/* Сайдбар */
.vlg-widget { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 20px; }
.vlg-widget__title { font-size: 16px; display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.vlg-widget__title::before { content: ""; width: 4px; height: 17px; border-radius: 2px; background: var(--accent); }
.vlg-catlist { list-style: none; margin: 0; padding: 0; }
.vlg-catlist li + li { margin-top: 4px; }
.vlg-catlist a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text); font-weight: 600; font-size: 14.5px; transition: .15s; }
.vlg-catlist a:hover { background: var(--accent-soft); color: var(--accent); }
.vlg-catlist img { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; }
/* приводим цветные плашки-инициалы из PHP к палитре */
.vlg-catlist a > span[style] { background: var(--accent) !important; }
.vlg-catlist .vlg-catlist__count { margin-left: auto; font-size: 12px; color: var(--text-2); background: var(--bg); border-radius: 999px; padding: 2px 9px; }
.vlg-poplist { list-style: none; margin: 0; padding: 0; counter-reset: pop; }
.vlg-poplist li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border); counter-increment: pop; }
.vlg-poplist li:last-child { border-bottom: 0; }
.vlg-poplist li::before {
  content: counter(pop); flex: 0 0 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 14px;
}
.vlg-poplist a { color: var(--text); font-weight: 600; font-size: 13.5px; line-height: 1.4; display: block; }
.vlg-poplist a:hover { color: var(--accent); }
.vlg-poplist .vlg-poplist__meta { display: block; color: var(--text-2); font-weight: 400; font-size: 12px; margin-top: 2px; }
.vlg-widget--tg { background: var(--accent); border: 0; color: #fff; text-align: center; }
.vlg-widget--tg p { color: rgba(255, 255, 255, .92); font-size: 14px; margin: 8px 0 14px; }
.vlg-widget--tg .vlg-btn { background: #111111; color: #fff !important; box-shadow: none; }
.vlg-widget--tg .vlg-btn:hover { background: #000000; }
.vlg-widget--tg h3 { color: #fff; }
.vlg-sticky { position: sticky; top: calc(var(--header-h) + 16px); }

/* ==========================================================================
   6. Статья
   ========================================================================== */
.vlg-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 200; transition: width .1s linear; }
.vlg-article { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(18px, 4vw, 40px); }
.vlg-breadcrumbs { font-size: 13px; color: var(--text-2); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.vlg-breadcrumbs a { color: var(--text-2); }
.vlg-breadcrumbs a:hover { color: var(--accent); }
.vlg-breadcrumbs svg { width: 11px; height: 11px; opacity: .55; }
.vlg-article__title { font-size: clamp(24px, 4vw, 34px); letter-spacing: -.5px; margin: 10px 0 14px; text-wrap: balance; }
.vlg-article__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; color: var(--text-2); font-size: 13.5px; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.vlg-article__cover { border-radius: var(--radius); overflow: hidden; margin: 0 0 22px; }
.vlg-article__cover img { display: block; width: 100%; }
.vlg-article__cover figcaption { font-size: 12.5px; color: var(--text-2); padding-top: 8px; }
.vlg-content { font-size: 17px; line-height: 1.75; }
.vlg-content > * + * { margin-top: 1em; }
.vlg-content img { border-radius: var(--radius-sm); }
.vlg-content a { text-decoration: underline; text-underline-offset: 3px; }
.vlg-content blockquote {
  margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic;
}
.vlg-content iframe { max-width: 100%; border-radius: var(--radius-sm); }
.vlg-content .wp-caption { max-width: 100%; }
.vlg-content .wp-caption-text { font-size: 13px; color: var(--text-2); }

/* Панель действий под статьёй */
.vlg-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border); }
.vlg-like {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1.5px solid var(--border); background: transparent; color: var(--text-2);
  font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 999px; transition: .18s;
}
.vlg-like:hover { border-color: var(--accent); color: var(--accent); }
.vlg-like.is-liked { background: var(--accent); border-color: var(--accent); color: #fff; }
.vlg-like svg { width: 17px; height: 17px; }
.vlg-like.is-liked svg { animation: vlg-pop .35s; }
@keyframes vlg-pop { 40% { transform: scale(1.4); } }
.vlg-share { display: flex; gap: 8px; margin-left: auto; }
.vlg-share a, .vlg-share button {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: .15s;
  background: var(--text); color: var(--card);
}
.vlg-share svg { width: 18px; height: 18px; }
.vlg-share [data-share], .vlg-share a[data-share], .vlg-share button[data-share] { background: var(--text); color: var(--card); }
.vlg-share a:hover, .vlg-share button:hover { transform: translateY(-2px) scale(1.06); background: var(--accent); color: #fff; }
.vlg-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.vlg-tags a { font-size: 12.5px; font-weight: 600; color: var(--text-2); background: var(--bg); border: 1px solid var(--border); padding: 5px 12px; border-radius: 999px; }
.vlg-tags a:hover { color: var(--accent); border-color: var(--accent); }

/* Соседние статьи */
.vlg-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0; }
.vlg-prevnext a {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 18px; color: var(--text); font-weight: 600; font-size: 14px; line-height: 1.4;
  box-shadow: var(--shadow); transition: .15s; display: block;
}
.vlg-prevnext a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.vlg-prevnext span { display: block; font-size: 12px; color: var(--text-2); font-weight: 400; margin-bottom: 4px; }
.vlg-prevnext a.is-next { text-align: right; }

/* Читайте также */
.vlg-related { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* ==========================================================================
   7. Комментарии
   ========================================================================== */
.vlg-comments { margin-top: 24px; }
.vlg-comments .comment-list, .vlg-comments .children { list-style: none; margin: 0; padding: 0; }
.vlg-comments .children { margin-left: 26px; padding-left: 16px; border-left: 2px solid var(--border); }
.vlg-comment { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 12px; box-shadow: var(--shadow); }
.vlg-comment__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.vlg-comment__head img { border-radius: 50%; }
.vlg-comment__author { font-weight: 700; font-size: 14px; }
.vlg-comment__date { font-size: 12px; color: var(--text-2); }
.vlg-comment__text { font-size: 14.5px; }
.vlg-comment .reply a { font-size: 12.5px; font-weight: 600; }
.comment-respond input[type="text"], .comment-respond input[type="email"], .comment-respond input[type="url"], .comment-respond textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text); font: inherit; font-size: 14.5px; outline: none; transition: border-color .15s;
}
.comment-respond input:focus, .comment-respond textarea:focus { border-color: var(--accent); }
.comment-respond p { margin: 0 0 12px; }
.comment-respond input[type="submit"] {
  background: var(--accent); color: #fff; border: 0; font-weight: 700; font-size: 14.5px;
  padding: 11px 26px; border-radius: 999px; cursor: pointer; transition: .15s;
}
.comment-respond input[type="submit"]:hover { background: var(--accent-hover); }

/* ==========================================================================
   8. Пагинация, страницы, 404, поиск
   ========================================================================== */
.vlg-pagination { display: flex; justify-content: center; margin: 28px 0 10px; }
.vlg-pagination ul.page-numbers { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 0; }
.vlg-pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.vlg-pagination .page-numbers {
  min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; background: var(--card); border: 1px solid var(--border);
  color: var(--text); font-weight: 700; font-size: 14px; transition: .15s;
}
.vlg-pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.vlg-pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(251, 110, 6, .35); }
.vlg-pagination .dots { border: 0; background: transparent; }
.vlg-page-head { margin: 6px 0 20px; }
.vlg-page-head h1 { font-size: clamp(22px, 4vw, 30px); margin: 0; }
.vlg-page-head p { color: var(--text-2); margin: 6px 0 0; }
.vlg-404 { text-align: center; padding: 60px 16px; }
.vlg-404 .vlg-404__code { font-size: clamp(80px, 18vw, 150px); font-weight: 800; line-height: 1; color: var(--accent); }
.vlg-empty { background: var(--card); border: 1px dashed var(--border); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--text-2); }

/* ==========================================================================
   9. Подвал — чёрный
   ========================================================================== */
.vlg-footer { background: #111111; color: #999999; margin-top: 40px; }
html[data-theme="dark"] .vlg-footer { background: #0a0a0a; }
.vlg-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding: 40px 0 30px; }
.vlg-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.vlg-footer a { color: #999999; }
.vlg-footer a:hover { color: var(--accent); }
.vlg-footer ul { list-style: none; margin: 0; padding: 0; }
.vlg-footer li { margin-bottom: 8px; font-size: 14px; }
.vlg-footer__about p { font-size: 14px; line-height: 1.65; margin: 12px 0 16px; }
.vlg-footer__soc { display: flex; gap: 10px; }
.vlg-footer__soc a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: inline-flex; align-items: center; justify-content: center; transition: .15s; }
.vlg-footer__soc a:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.vlg-footer__soc svg { width: 18px; height: 18px; }
.vlg-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 16px 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; font-size: 13px; }
.vlg-age { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1.5px solid #999999; border-radius: 8px; font-weight: 800; font-size: 12px; }

/* Наверх */
.vlg-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(251, 110, 6, .4);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(8px); transition: .25s;
}
.vlg-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.vlg-top:hover { background: var(--accent-hover); }
.vlg-top svg { width: 18px; height: 18px; }

/* Тост */
.vlg-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); z-index: 300;
  background: #111111; color: #ffffff; font-size: 14px; font-weight: 600;
  padding: 11px 22px; border-radius: 999px; opacity: 0; pointer-events: none; transition: .3s; box-shadow: var(--shadow-lg);
}
.vlg-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Реклама */
.vlg-ad { margin: 20px 0; min-height: 0; text-align: center; }
.vlg-ad:empty { display: none; }

/* Скелетон появления карточек */
@keyframes vlg-in { from { opacity: 0; transform: translateY(10px); } }
.vlg-animate { animation: vlg-in .45s both; }

/* ==========================================================================
   10. Адаптивность
   ========================================================================== */
@media (max-width: 1024px) {
  .vlg-layout { grid-template-columns: 1fr; }
  .vlg-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .vlg-sidebar .vlg-widget { margin-bottom: 0; }
  .vlg-sticky { position: static; }
}
@media (max-width: 900px) {
  .vlg-nav { display: none; }
  .vlg-burger { display: inline-flex; }
  .vlg-hero { grid-template-columns: 1fr; }
  .vlg-hero > .vlg-cover { min-height: 320px; }
  .vlg-hero__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .vlg-header .vlg-btn--add { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .vlg-card { grid-template-columns: 1fr; }
  .vlg-card__thumb { min-height: 190px; }
  .vlg-hero__side { grid-template-columns: 1fr; }
  .vlg-hero > .vlg-cover { min-height: 250px; }
  .vlg-cover__title { font-size: 18px; }
  .vlg-related, .vlg-prevnext { grid-template-columns: 1fr; }
  .vlg-sidebar { grid-template-columns: 1fr; }
  .vlg-footer__grid { grid-template-columns: 1fr; gap: 24px; padding: 30px 0 20px; }
  .vlg-logo { font-size: 20px; }
  .vlg-content { font-size: 16px; }
  .vlg-share { margin-left: 0; }
}


html[data-theme="dark"] .site-logo {
    filter: invert(100%);
}

html[data-theme="light"] .site-logo {
    filter: none;
}