/*
Theme Name: dds_vsegeroispb.ru
Theme URI: https://vsegeroispb.ru/
Author: Анна Владимировна Соколова
Description: Образовательная тема о исторической памяти и героике: архивная сине-стальная гамма, хронология, факты и карта тем.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vgspb
*/

:root {
    --vg-bg: #F4F7FA;
    --vg-steel: #E4EBF2;
    --vg-head: #1B2A3A;
    --vg-foot: #101B26;
    --vg-aside: #EDF2F7;
    --vg-ink: #16222E;
    --vg-accent: #2F6FB0;
    --vg-ice: #7FD1E8;
    --vg-muted: #6B7F91;
    --vg-line: #C9D6E2;
    --vg-serif: "Playfair Display", "Times New Roman", Georgia, serif;
    --vg-sans: "Golos Text", "Segoe UI", Arial, sans-serif;
    --vg-mono: "JetBrains Mono", "Consolas", "Courier New", monospace;
}

/* Скрытые элементы — до основных блоков */
.cookie-banner[hidden] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--vg-sans);
    font-size: 1.0625rem;
    line-height: 1.7;
    letter-spacing: 0.012em;
    color: var(--vg-ink);
    background-color: var(--vg-bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='360' viewBox='0 0 260 360'%3E%3Cg fill='none' stroke='%232F6FB0' stroke-width='1.2' opacity='0.16'%3E%3Cpath d='M120 20 L124 80 L116 80 Z'/%3E%3Cpath d='M120 20 V6'/%3E%3Ccircle cx='120' cy='5' r='3'/%3E%3Cpath d='M112 80 H128 L134 150 H106 Z'/%3E%3Cpath d='M98 150 H142 V200 H98 Z'/%3E%3Cpath d='M112 165 a8 8 0 0 1 16 0 V200 H112 Z'/%3E%3Cpath d='M40 200 H200 V300 H40 Z'/%3E%3Cpath d='M20 300 H220 V330 H20 Z'/%3E%3Cpath d='M60 220 V290 M80 220 V290 M160 220 V290 M180 220 V290'/%3E%3Cpath d='M101 230 a19 19 0 0 1 38 0 V300 H101 Z'/%3E%3Cpath d='M0 345 H260'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(rgba(47, 111, 176, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47, 111, 176, 0.045) 1px, transparent 1px);
    background-size: 260px 360px, 24px 24px, 24px 24px;
    background-position: right 2% bottom 0, 0 0, 0 0;
    background-repeat: no-repeat, repeat, repeat;
    background-attachment: fixed, scroll, scroll;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--vg-serif);
    font-weight: 600;
    line-height: 1.22;
    margin: 1.6em 0 0.6em;
    color: var(--vg-ink);
}
h1 { font-size: 3.2rem; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }

a {
    color: var(--vg-accent);
    text-decoration: underline;
    text-decoration-color: rgba(22, 34, 46, 0.45);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
    transition: text-decoration-color 0.2s, text-decoration-thickness 0.2s, color 0.2s;
}
a:hover { text-decoration-color: var(--vg-ice); text-decoration-thickness: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--vg-ice);
    outline-offset: 2px;
}

ul, ol { margin: 0 0 1.1em; padding-left: 1.4em; }
blockquote {
    margin: 1.5em 0;
    padding: 1.1rem 1.4rem;
    border-left: 3px solid var(--vg-ice);
    background: var(--vg-steel);
    font-family: var(--vg-serif);
    font-size: 1.15rem;
}
blockquote p:last-child { margin-bottom: 0; }

table { width: 100%; border-collapse: collapse; margin: 1.4em 0; border: 1px solid var(--vg-line); }
th, td { border: 1px solid var(--vg-line); padding: 0.6rem 0.8rem; text-align: left; vertical-align: top; }
th { background: var(--vg-steel); font-weight: 600; }

pre, code { font-family: var(--vg-mono); font-size: 0.9em; }
pre { overflow-x: auto; padding: 1rem 1.2rem; background: var(--vg-steel); border: 1px solid var(--vg-line); }

.vg-meta { font-family: var(--vg-mono); font-size: 0.8rem; color: var(--vg-muted); letter-spacing: 0; }

/* Контейнер */
.vg-shell { width: min(92%, 1180px); margin-inline: auto; }

/* Полоса сверху */
.vg-ribbon { display: flex; height: 5px; }
.vg-ribbon span { flex: 1; }
.vg-ribbon span:nth-child(1) { background: var(--vg-head); }
.vg-ribbon span:nth-child(2) { background: var(--vg-accent); }
.vg-ribbon span:nth-child(3) { background: var(--vg-ice); }

/* Кнопки */
.vg-btn {
    display: inline-block;
    padding: 0.72rem 1.4rem;
    border: 1px solid var(--vg-accent);
    border-radius: 2px;
    font-family: var(--vg-sans);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.vg-btn-fill { background: var(--vg-accent); color: #FFFFFF; }
.vg-btn-line { background: transparent; color: var(--vg-accent); }
.vg-btn-light { color: #F4F7FA; border-color: #F4F7FA; }
.vg-btn:hover {
    background: var(--vg-ice);
    border-color: var(--vg-ice);
    color: var(--vg-head);
    transform: translateY(-1px);
    text-decoration: none;
}

/* Шапка */
.vg-header { background: var(--vg-head); color: #E4EBF2; }
.vg-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.1rem 0;
    flex-wrap: wrap;
}
.vg-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #F4F7FA;
    flex: 1 1 520px;
    min-width: 0;
}
.vg-brand:hover { text-decoration: none; }
.vg-brand-mark { flex: 0 0 auto; display: block; }
.vg-brand-logo { display: block; max-height: 64px; width: auto; }
.vg-brand-svg { display: block; }
.vg-brand-text { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.vg-brand-name {
    font-family: var(--vg-serif);
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.35;
    color: #F4F7FA;
    max-width: 62ch;
}
.vg-brand-desc {
    font-size: 0.78rem;
    line-height: 1.45;
    color: #9FB2C3;
    max-width: 78ch;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vg-nav-toggle {
    display: none;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    border: 1px solid #4B5E72;
    border-radius: 2px;
    color: #F4F7FA;
    padding: 0.5rem 0.8rem;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}
.vg-nav-toggle-bars,
.vg-nav-toggle-bars::before,
.vg-nav-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--vg-ice);
    position: relative;
}
.vg-nav-toggle-bars::before, .vg-nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.vg-nav-toggle-bars::before { top: -6px; }
.vg-nav-toggle-bars::after { top: 6px; }

.vg-nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.2rem 1.6rem; flex-wrap: wrap; }
.vg-nav-list li { position: relative; }
.vg-nav-list a {
    display: block;
    padding: 0.35rem 0;
    color: #E4EBF2;
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 2px solid transparent;
}
.vg-nav-list a:hover,
.vg-nav-list .current-menu-item > a { border-bottom-color: var(--vg-ice); color: #FFFFFF; }
.vg-nav-list .sub-menu { list-style: none; margin: 0; padding: 0.4rem 0 0 1rem; }

/* Крошки */
.vg-crumbs {
    font-family: var(--vg-mono);
    font-size: 0.8rem;
    color: var(--vg-muted);
    padding: 1.4rem 0 0.4rem;
}
.vg-crumbs a { color: var(--vg-accent); }
.vg-crumbs-sep { margin: 0 0.35rem; color: var(--vg-ice); }

/* Раскладки */
.vg-inner { padding-bottom: 4rem; }
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    column-gap: 6%;
    align-items: start;
}
.layout-single { display: block; }
.layout-single > .content-area { width: 85%; margin-left: auto; margin-right: auto; }
.content-area { min-width: 0; }

.vg-page-head { margin-bottom: 1.8rem; }
.vg-page-title {
    margin: 0.6rem 0 0.4rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--vg-line);
    position: relative;
}
.vg-empty { color: var(--vg-muted); }

/* Заголовки секций */
.vg-sec-title {
    position: relative;
    margin: 0 0 1rem;
    padding: 0 0 0.8rem 1.5rem;
    font-size: 2.3rem;
    border-bottom: 1px solid var(--vg-line);
}
.vg-sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.32em;
    width: 7px;
    height: 0.95em;
    background: var(--vg-ice);
}
.vg-sec-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 7px;
    height: 7px;
    background: var(--vg-ice);
}
.vg-sec-lead { color: var(--vg-muted); max-width: 64ch; margin-bottom: 2.4rem; }

/* Секции главной */
.front-section { padding: 5.5rem 0; position: relative; }
.vg-front-inner { width: 85%; margin-left: auto; margin-right: auto; min-width: 0; }
.vg-sec-light { background: transparent; }
.vg-sec-steel {
    background-color: var(--vg-steel);
    background-image: repeating-linear-gradient(135deg, rgba(47, 111, 176, 0.05) 0 1px, transparent 1px 14px);
}
.front-section + .front-section { border-top: 1px solid var(--vg-line); }

/* Hero */
.vg-hero {
    position: relative;
    overflow: hidden;
    background: var(--vg-head);
    color: #F4F7FA;
    padding: 7rem 0 6rem;
    isolation: isolate;
}
.vg-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: -2;
}
.vg-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg, rgba(27, 42, 58, 0.94) 0%, rgba(27, 42, 58, 0.82) 48%, rgba(27, 42, 58, 0.55) 100%);
}
.vg-hero-content { max-width: 760px; margin-left: 7.5%; }
.vg-hero-kicker { color: var(--vg-ice); margin: 0 0 1rem; font-size: 0.85rem; }
.vg-hero-title { color: #FFFFFF; margin: 0; font-size: 3.2rem; line-height: 1.12; }
.vg-hero-rule { display: block; width: 120px; height: 1px; background: var(--vg-ice); margin: 1.6rem 0; position: relative; }
.vg-hero-rule::after { content: ""; position: absolute; right: -8px; top: -3px; width: 7px; height: 7px; background: var(--vg-ice); }
.vg-hero-text { font-size: 1.12rem; color: #D5E0EA; max-width: 58ch; }
.vg-hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* Таймлайн */
.vg-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.vg-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    margin-left: -1px;
    background: var(--vg-ice);
}
.vg-tl-item { position: relative; width: 50%; padding: 0 2.6rem 2.4rem 0; }
.vg-tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 2.4rem 2.6rem; }
.vg-tl-node {
    position: absolute;
    top: 1.35rem;
    right: -7px;
    width: 14px;
    height: 14px;
    background: var(--vg-bg);
    border: 2px solid var(--vg-accent);
}
.vg-tl-item:nth-child(even) .vg-tl-node { right: auto; left: -7px; }
.vg-tl-card {
    background: #FFFFFF;
    border: 1px solid var(--vg-line);
    border-radius: 2px;
    padding: 1.2rem 1.4rem;
    min-width: 0;
}
.vg-tl-date { display: inline-block; font-size: 0.9rem; color: var(--vg-accent); margin-bottom: 0.4rem; }
.vg-tl-card p { margin: 0 0 0.6rem; font-size: 0.98rem; }

/* Опись-разделитель */
.vg-inventory {
    width: min(92%, 1180px);
    margin: 0 auto;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, var(--vg-line) 50%, transparent 50%) center / 10px 1px repeat-x;
}
.vg-inventory span { width: 7px; height: 7px; background: var(--vg-bg); border: 1px solid var(--vg-accent); }
.vg-inventory span:nth-child(3) { background: var(--vg-ice); border-color: var(--vg-ice); }

/* Карточки */
.vg-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; }
.vg-cards-front { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid var(--vg-line);
    border-radius: 2px;
    overflow: hidden;
    min-width: 0;
    transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--vg-ice); transform: translateY(-3px); }
.card-thumb { border-bottom: 1px solid var(--vg-line); }
.card-thumb a { display: block; text-decoration: none; }
.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: left center;
    transition: filter 0.3s;
}
.card:hover .card-thumb img { filter: saturate(0.25); }
.card-thumb-empty {
    display: flex;
    align-items: flex-end;
    aspect-ratio: 16 / 10;
    padding: 0.9rem 1.1rem;
    background-color: var(--vg-steel);
    background-image:
        linear-gradient(rgba(47, 111, 176, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47, 111, 176, 0.09) 1px, transparent 1px);
    background-size: 18px 18px;
    font-family: var(--vg-mono);
    font-size: 0.75rem;
    color: var(--vg-muted);
}
.card-body { flex: 1; display: flex; flex-direction: column; padding: 1.2rem 1.3rem 1.4rem; min-width: 0; }
.card-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; margin-bottom: 0.5rem; }
.card-cat { color: var(--vg-accent); }
.card-title { margin: 0 0 0.6rem; font-size: 1.28rem; line-height: 1.3; overflow-wrap: anywhere; }
.card-title a { color: var(--vg-ink); text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-decoration-color: var(--vg-ice); }
.card-excerpt { flex: 1; font-size: 0.95rem; color: #34485A; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more { align-self: flex-start; margin-top: 0.8rem; font-size: 0.92rem; font-weight: 500; }
.sticky.card { border-top: 3px solid var(--vg-ice); }
.vg-latest-all { margin: 2.4rem 0 0; }

/* Статистика */
.vg-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 2.4rem; }
.vg-stat { padding: 0.6rem 1.6rem; border-left: 1px solid #B3C4D4; min-width: 0; }
.vg-stat:first-child { border-left: 0; padding-left: 0; }
.vg-stat-num {
    display: block;
    font-family: var(--vg-serif);
    font-size: 3.6rem;
    font-weight: 700;
    line-height: 1;
    color: var(--vg-ice);
    -webkit-text-stroke: 1px var(--vg-accent);
    margin-bottom: 0.7rem;
}
.vg-stat-label { display: block; color: var(--vg-muted); font-size: 0.93rem; line-height: 1.5; }

/* Рубрикатор */
.vg-rubrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.vg-rubric {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.6rem 1.5rem;
    background: #FFFFFF;
    border: 1px solid var(--vg-line);
    border-radius: 2px;
    color: var(--vg-ink);
    text-decoration: none;
    min-width: 0;
    transition: background-color 0.2s, border-color 0.2s;
}
.vg-rubric svg {
    width: 44px;
    height: 44px;
    fill: none;
    stroke: var(--vg-accent);
    stroke-width: 1.4;
    stroke-linejoin: round;
    stroke-linecap: round;
    transition: stroke 0.2s;
}
.vg-rubric-name { font-family: var(--vg-serif); font-size: 1.3rem; font-weight: 600; }
.vg-rubric-note { font-size: 0.9rem; color: var(--vg-muted); line-height: 1.5; }
.vg-rubric:hover { background: var(--vg-ice); border-color: var(--vg-ice); text-decoration: none; }
.vg-rubric:hover svg { stroke: #FFFFFF; }
.vg-rubric:hover .vg-rubric-note { color: var(--vg-head); }

/* Запись */
.vg-entry-meta { display: flex; gap: 1rem; flex-wrap: wrap; }
.vg-entry-thumb { margin: 1.4rem 0; }
.vg-entry-thumb img { display: block; width: 100%; height: auto; border: 1px solid var(--vg-line); }
.vg-entry-content { overflow-wrap: break-word; }
.vg-entry-content > *:first-child { margin-top: 0; }
.vg-entry-content h2 { padding-left: 1rem; border-left: 5px solid var(--vg-ice); }
.vg-entry-content img { display: block; }
.vg-entry-content .alignleft { float: left; margin: 0.3rem 1.4rem 1rem 0; }
.vg-entry-content .alignright { float: right; margin: 0.3rem 0 1rem 1.4rem; }
.vg-entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: 0.85rem; color: var(--vg-muted); }
.vg-entry-tags { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px dashed var(--vg-line); }

/* Сайдбар */
.sidebar {
    background: var(--vg-aside);
    border: 1px solid var(--vg-line);
    border-radius: 2px;
    padding: 1.6rem 1.5rem;
    color: var(--vg-ink);
    min-width: 0;
    margin-top: 0.6rem;
}
.sidebar .vg-widget + .vg-widget { margin-top: 2rem; }
.sidebar .vg-widget-title {
    margin: 0 0 1rem;
    padding: 0 0 0.6rem 0.9rem;
    font-size: 1.2rem;
    color: var(--vg-ink);
    border-bottom: 1px solid var(--vg-line);
    border-left: 4px solid var(--vg-ice);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 0.55rem 0; border-bottom: 1px dashed var(--vg-line); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--vg-ink); }
.sidebar a:hover { color: var(--vg-accent); }
.sidebar .post-date { display: block; font-family: var(--vg-mono); font-size: 0.75rem; color: var(--vg-muted); }
.sidebar p { color: var(--vg-ink); }

/* Пагинация */
.vg-pager { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 2.6rem 0 0; }
.vg-pager .page-numbers {
    display: inline-block;
    min-width: 2.5rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid var(--vg-line);
    border-radius: 2px;
    background: #FFFFFF;
    color: var(--vg-ink);
    font-family: var(--vg-mono);
    font-size: 0.88rem;
    text-align: center;
    text-decoration: none;
}
.vg-pager a.page-numbers:hover { border-color: var(--vg-ice); background: var(--vg-ice); color: var(--vg-head); }
.vg-pager .page-numbers.current { background: var(--vg-head); border-color: var(--vg-head); color: #FFFFFF; }
.vg-pager .page-numbers.dots { border: 0; background: none; min-width: 0; }

/* Поиск */
.vg-search { margin: 1.4rem 0; }
.vg-search-label { display: block; font-size: 0.9rem; color: var(--vg-muted); margin-bottom: 0.4rem; }
.vg-search-row { display: flex; gap: 0.5rem; }
.vg-search-field {
    flex: 1;
    min-width: 0;
    padding: 0.68rem 0.9rem;
    border: 1px solid var(--vg-line);
    border-radius: 2px;
    background: #FFFFFF;
    font: inherit;
    color: var(--vg-ink);
}

.vg-404-code { color: var(--vg-accent); font-size: 0.95rem; margin: 1.5rem 0 0; }

/* Комментарии */
.vg-comments { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--vg-line); }
.vg-comment-list, .vg-comment-list .children { list-style: none; padding: 0; margin: 0; }
.vg-comment-list .children { padding-left: 1.6rem; }
.vg-comment-body { background: #FFFFFF; border: 1px solid var(--vg-line); border-radius: 2px; padding: 1rem 1.2rem; margin-bottom: 1rem; }
.vg-comment-head { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.vg-comment-avatar { display: block; border-radius: 2px; }
.vg-comment-author { font-weight: 600; }
.comment-form label { display: block; font-size: 0.9rem; margin-bottom: 0.3rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--vg-line);
    border-radius: 2px;
    background: #FFFFFF;
    font: inherit;
}
.comment-form .submit { border: 1px solid var(--vg-accent); }

/* Подвал */
.vg-footer {
    background-color: var(--vg-foot);
    background-image: linear-gradient(rgba(127, 209, 232, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(127, 209, 232, 0.035) 1px, transparent 1px);
    background-size: 24px 24px;
    color: #C3D1DD;
    padding: 4rem 0 0;
    border-top: 3px solid var(--vg-accent);
}
.vg-footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
.vg-footer-col { min-width: 0; }
.vg-footer .vg-widget-title {
    font-size: 1.15rem;
    color: #FFFFFF;
    margin: 0 0 1rem;
    padding-left: 0.9rem;
    border-left: 4px solid var(--vg-ice);
}
.vg-footer .vg-widget,
.vg-footer .vg-widget p,
.vg-footer .textwidget { color: #C3D1DD; font-size: 0.95rem; }
.vg-footer a { color: #E4EBF2; text-decoration-color: rgba(228, 235, 242, 0.4); }
.vg-footer a:hover { color: var(--vg-ice); text-decoration-color: var(--vg-ice); }
.vg-footer ul { list-style: none; margin: 0; padding: 0; }
.vg-footer li { padding: 0.3rem 0; }
.vg-footer .post-date { color: #8DA2B5; font-family: var(--vg-mono); font-size: 0.75rem; }
.vg-footer-bottom { margin-top: 3rem; padding: 1.4rem 0; border-top: 1px dashed #2A3C4E; }
.vg-copy { margin: 0; font-size: 0.85rem; color: #8DA2B5; }

/* Cookie */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    max-width: 880px;
    margin: 0 auto;
    padding: 1rem 1.4rem;
    background: var(--vg-head);
    color: #E4EBF2;
    border: 1px solid #34495E;
    border-left: 4px solid var(--vg-ice);
    border-radius: 2px;
}
.cookie-banner-text { margin: 0; font-size: 0.9rem; line-height: 1.5; }
.cookie-banner .vg-btn { flex: 0 0 auto; }

/* Служебные */
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
.alignwide, .alignfull { max-width: 100%; }

/* Адаптив */
@media (max-width: 960px) {
    h1, .vg-hero-title { font-size: 2.5rem; }
    .vg-sec-title { font-size: 1.9rem; }
    .vg-nav-toggle { display: inline-flex; }
    .vg-nav { flex-basis: 100%; display: none; }
    .vg-nav.is-open { display: block; }
    .vg-nav-list { flex-direction: column; gap: 0; padding: 0.6rem 0 0.4rem; border-top: 1px solid #34495E; }
    .vg-nav-list a { padding: 0.6rem 0; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 2.5rem; }
    .layout-single > .content-area { width: 100%; }
    .vg-front-inner { width: 92%; }
    .vg-hero-content { margin-left: 4%; }
    .vg-cards-front { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
    .vg-stat:nth-child(3) { border-left: 0; padding-left: 0; }
    .vg-rubrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vg-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
    body { background-size: 160px 222px, 24px 24px, 24px 24px; }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    h1, .vg-hero-title { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .vg-sec-title { font-size: 1.6rem; }
    .front-section { padding: 3.5rem 0; }
    .vg-front-inner { width: 100%; }
    .vg-hero { padding: 4.5rem 0 4rem; }
    .vg-hero-content { margin-left: 0; }
    .vg-brand-desc { display: none; }
    .vg-brand-name { font-size: 0.9rem; }
    .vg-cards, .vg-cards-front { grid-template-columns: minmax(0, 1fr); }
    .vg-timeline::before { left: 7px; }
    .vg-tl-item, .vg-tl-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 1.8rem 2.2rem; }
    .vg-tl-node, .vg-tl-item:nth-child(even) .vg-tl-node { left: 0; right: auto; }
    .vg-tl-card { padding: 1rem 1.1rem; }
    .vg-stats { grid-template-columns: minmax(0, 1fr); }
    .vg-stat, .vg-stat:nth-child(3) { border-left: 0; border-top: 1px solid #B3C4D4; padding: 1.2rem 0 0; }
    .vg-stat:first-child { border-top: 0; padding-top: 0; }
    .vg-stat-num { font-size: 2.8rem; }
    .vg-rubrics { grid-template-columns: minmax(0, 1fr); }
    .vg-rubric { padding: 1.3rem 1.2rem; }
    .vg-footer-cols { grid-template-columns: minmax(0, 1fr); }
    .sidebar { padding: 1.3rem 1.1rem; }
    .cookie-banner { flex-direction: column; align-items: flex-start; padding: 1rem 1.1rem; }
    .vg-search-row { flex-direction: column; }
    body { background-image: linear-gradient(rgba(47, 111, 176, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(47, 111, 176, 0.045) 1px, transparent 1px); background-size: 24px 24px, 24px 24px; background-repeat: repeat, repeat; background-attachment: scroll, scroll; background-position: 0 0, 0 0; }
}
