/*
Theme Name: dds_processual.ru
Description: Тёмная типографическая тема для правового информационного портала
Author: Алексей Сабуров
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: procsl
*/

/* ============================================================
   1. Переменные и база
   ============================================================ */

:root {
    --bg:      #121212;
    --alt:     #1E1E24;
    --dark:    #0A0A0A;
    --ink:     #E8E8E8;
    --accent:  #4A8B9F;
    --gold:    #C5A059;
    --muted:   #7A7A7A;
    --line:    #2A2A2A;
    --sans:    "PT Sans Narrow", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
    --serif:   Georgia, "PT Serif", "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(232, 232, 232, .028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 232, 232, .028) 1px, transparent 1px);
    background-size: 26px 26px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

body.home::after {
    content: "";
    position: fixed;
    right: -40px;
    bottom: -20px;
    width: 380px;
    height: 300px;
    opacity: .05;
    pointer-events: none;
    z-index: 0;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right bottom;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 190'%3E%3Cg fill='%23E8E8E8'%3E%3Cpath d='M120 6 L232 62 H8 Z'/%3E%3Crect x='8' y='70' width='224' height='8'/%3E%3Crect x='26' y='86' width='16' height='78'/%3E%3Crect x='62' y='86' width='16' height='78'/%3E%3Crect x='98' y='86' width='16' height='78'/%3E%3Crect x='134' y='86' width='16' height='78'/%3E%3Crect x='170' y='86' width='16' height='78'/%3E%3Crect x='204' y='86' width='16' height='78'/%3E%3Crect x='0' y='168' width='240' height='14'/%3E%3C/g%3E%3C/svg%3E");
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sans);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: .045em;
    color: var(--ink);
    margin: 0 0 .7em;
}

h1 { font-size: 4.2rem; letter-spacing: .06em; }
h2 { font-size: 2.3rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.25rem; }

p { margin: 0 0 1.2em; }

a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: .22em;
    text-decoration-thickness: 1px;
    transition: color .18s ease, text-decoration-color .18s ease, transform .18s ease;
}

a:hover {
    color: var(--gold);
    text-decoration-thickness: 2px;
}

.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* ============================================================
   2. Кнопки
   ============================================================ */

.btn {
    display: inline-block;
    font-family: var(--sans);
    font-size: 1rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    padding: .72rem 1.6rem;
    border: 1px solid var(--accent);
    border-radius: 2px;
    color: var(--accent);
    background: transparent;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.btn:hover,
.btn:focus {
    background: var(--accent);
    border-color: var(--gold);
    color: var(--dark);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-gold { border-color: var(--gold); color: var(--gold); }
.btn-gold:hover { background: var(--gold); border-color: var(--gold); color: var(--dark); }

/* ============================================================
   3. Шапка
   ============================================================ */

.topline {
    height: 3px;
    background: var(--accent);
    position: relative;
}

.topline::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -3px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gold);
    transform: translateX(-50%);
}

.site-header {
    background: var(--dark);
    border-bottom: 1px solid var(--line);
    padding: 1.6rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    text-decoration: none;
    flex: 1 1 auto;
}

.brand:hover { text-decoration: none; }

.brand-logo { width: 62px; height: auto; display: block; }
.brand-mark { width: 62px; height: 62px; display: block; flex: 0 0 auto; }

.brand-text { min-width: 0; }

.brand-name {
    display: block;
    font-family: var(--sans);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink);
    line-height: 1.2;
}

.brand-desc {
    display: block;
    font-size: .82rem;
    line-height: 1.5;
    color: var(--muted);
    margin-top: .35rem;
    max-width: 46ch;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    font-family: var(--sans);
    letter-spacing: .12em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 2px;
    color: var(--accent);
    padding: .5rem 1rem;
    cursor: pointer;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-family: var(--sans);
    font-size: 1.05rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    padding-bottom: .25rem;
    border-bottom: 1px solid transparent;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* ============================================================
   4. Раскладка страниц
   ============================================================ */

.site-main { padding: 2.6rem 0 3.4rem; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    gap: 6%;
    align-items: start;
}

.layout-single {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.content-area { min-width: 0; }

.crumbs {
    font-family: var(--sans);
    font-size: .95rem;
    letter-spacing: .06em;
    color: var(--muted);
    margin-bottom: 1.8rem;
    padding-bottom: .9rem;
    border-bottom: 1px dotted var(--line);
}

.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs-sep { color: var(--accent); margin: 0 .3rem; }

.page-head { margin-bottom: 2rem; }

.page-head h1 { font-size: 3rem; }

.page-sub {
    font-family: var(--sans);
    font-variant: small-caps;
    letter-spacing: .1em;
    color: var(--muted);
    margin: 0;
}

/* ============================================================
   5. Карточки записей
   ============================================================ */

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem; }
.cards-1 { grid-template-columns: minmax(0, 1fr); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--alt);
    border: 1px solid var(--line);
    border-radius: 0;
    box-shadow: inset 1px 0 0 var(--line);
    overflow: hidden;
    transition: box-shadow .2s ease, border-color .2s ease;
}

.card:hover { box-shadow: inset 4px 0 0 var(--accent); border-color: #35353D; }

.card-thumb { display: block; border-bottom: 6px solid var(--dark); }

.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    filter: grayscale(100%) contrast(105%) brightness(.85);
    transition: filter .25s ease;
}

.card:hover .card-thumb img { filter: grayscale(60%) contrast(105%) brightness(.95); }

.card-body {
    flex: 1;
    min-width: 0;
    padding: 1.5rem 1.6rem 1.7rem;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.35rem;
    letter-spacing: .03em;
    margin: 0 0 .6rem;
}

.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--accent); }

.post-meta {
    font-family: var(--sans);
    font-size: .9rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .8rem;
}

.post-meta a { color: var(--muted); text-decoration: none; }
.post-meta a:hover { color: var(--gold); }
.meta-sep { color: var(--accent); }

.card-excerpt { color: #C4C4C4; font-size: .98rem; }
.card-excerpt p { margin: 0 0 .5em; background: none; }

.card-more {
    margin-top: auto;
    padding-top: 1rem;
    font-family: var(--sans);
    font-size: .92rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--accent);
    align-self: flex-start;
    border-bottom: 1px solid transparent;
}

.card-more:hover { color: var(--gold); border-bottom-color: var(--gold); }

.empty-note {
    border: 1px solid var(--line);
    background: var(--alt);
    padding: 1.6rem 1.8rem;
    color: var(--muted);
}

/* ============================================================
   6. Главная страница
   ============================================================ */

.front-section {
    padding: 3.4rem 0;
    border-bottom: 1px dotted var(--line);
}

.front-section.tone-alt { background: var(--alt); }

.sec-head {
    position: relative;
    padding-left: 2.2rem;
    margin-bottom: 2.2rem;
}

.sec-head::before {
    content: "";
    position: absolute;
    left: 0;
    top: .72em;
    width: 1.5rem;
    height: 1px;
    background: var(--accent);
}

.sec-head h2 { margin: 0; }

.sec-head h2::after {
    content: "";
    display: block;
    width: 42%;
    height: 1px;
    background: var(--accent);
    margin: .85rem 0 0 -2.2rem;
}

.sec-sub {
    font-family: var(--sans);
    font-variant: small-caps;
    letter-spacing: .12em;
    font-size: 1.05rem;
    color: var(--muted);
    margin: .9rem 0 0;
}

/* --- Блок 1: hero --- */

.fs-hero {
    background: var(--dark);
    background-image:
        linear-gradient(rgba(232, 232, 232, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 232, 232, .035) 1px, transparent 1px);
    background-size: 26px 26px;
    padding: 4.6rem 0 5.4rem;
    border-bottom: none;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 46px), 0 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 2.6rem;
    align-items: center;
}

.hero-text { min-width: 0; position: relative; padding-top: 1.6rem; }

.hero-rule {
    position: absolute;
    top: .6rem;
    left: -6%;
    width: 62%;
    height: 1px;
    background: var(--accent);
}

.hero-kicker {
    position: relative;
    font-family: var(--sans);
    font-variant: small-caps;
    letter-spacing: .22em;
    color: var(--gold);
    font-size: 1rem;
    margin: 0 0 .8rem;
}

.hero-title {
    position: relative;
    margin: 0 0 1.2rem;
    text-transform: uppercase;
}

.hero-lead {
    max-width: 58ch;
    color: #CFCFCF;
    font-size: 1.08rem;
    margin-bottom: 1.8rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-seal { justify-self: center; }
.hero-seal svg { display: block; width: 100%; height: auto; opacity: .85; }

/* --- Блок 2: статистика --- */

.stat-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(74, 139, 159, .1), rgba(74, 139, 159, 0) 65%);
}

.stat-cell {
    min-width: 0;
    padding: 2.2rem 1.6rem;
    border-left: 1px solid var(--gold);
    background: rgba(30, 30, 36, .78);
    text-align: left;
}

.stat-cell:first-child { border-left: none; }

.stat-num {
    display: block;
    font-family: var(--sans);
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .04em;
    color: var(--accent);
}

.stat-cap {
    display: block;
    margin-top: .7rem;
    font-size: .95rem;
    line-height: 1.5;
    color: #BDBDBD;
}

/* --- Блок 3: таймлайн --- */

.timeline { position: relative; padding-left: 0; }

.tl-item {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 1.6rem;
    align-items: start;
    padding: 1.4rem 1.6rem;
    border-left: 1px dashed var(--line);
    margin-left: .6rem;
    position: relative;
    transition: background .25s ease;
}

.tl-item::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 2.1rem;
    width: 11px;
    height: 11px;
    background: var(--bg);
    border: 1px solid var(--accent);
    transition: background .25s ease, border-color .25s ease;
}

.tl-item:hover {
    background: linear-gradient(90deg, rgba(74, 139, 159, .12), rgba(74, 139, 159, 0) 80%);
}

.tl-item:hover::before { background: var(--gold); border-color: var(--gold); }

.tl-year {
    font-family: var(--sans);
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--gold);
    line-height: 1.1;
    min-width: 0;
}

.tl-body { min-width: 0; }
.tl-body h3 { font-size: 1.25rem; margin: 0 0 .4rem; }
.tl-body p { margin: 0; color: #C4C4C4; font-size: .98rem; }

/* --- Блок 4: рубрикатор --- */

.rubric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.rubric {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    padding: 1.5rem 1.6rem;
    background: var(--alt);
    border: 1px solid var(--accent);
    color: var(--ink);
    text-decoration: none;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px));
    transition: transform .2s ease, border-color .2s ease, filter .2s ease, color .2s ease;
}

.rubric:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-4px);
    filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .65));
    text-decoration: none;
}

.rubric svg { width: 30px; height: 30px; flex: 0 0 auto; }
.rubric span {
    font-family: var(--sans);
    font-size: 1.18rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    min-width: 0;
}

/* --- лента последних записей --- */

.fs-latest .cards { margin-bottom: 2rem; }

.latest-foot { text-align: left; }

/* ============================================================
   7. Запись и страница
   ============================================================ */

.entry {
    background: var(--alt);
    border: 1px solid var(--line);
    padding: 2.4rem 2.4rem 2.6rem;
}

.entry-header { margin-bottom: 1.6rem; }
.entry-header h1 { font-size: 3rem; margin-bottom: .8rem; }

.entry-thumb { margin: 0 0 1.8rem; border: 6px solid var(--dark); }
.entry-thumb img { display: block; width: 100%; filter: grayscale(70%) brightness(.9); }

.entry-content { font-size: 1.06rem; }
.entry-content h2 { font-size: 2rem; margin-top: 2rem; }
.entry-content h3 { font-size: 1.5rem; margin-top: 1.7rem; }
.entry-content ul,
.entry-content ol { padding-left: 1.3rem; margin: 0 0 1.3em; }
.entry-content li { margin-bottom: .5em; }
.entry-content img { display: block; height: auto; }

.entry-content blockquote,
blockquote {
    margin: 1.8em 0;
    padding: 1.4rem 1.6rem;
    background: rgba(74, 139, 159, .08);
    border-left: 6px solid var(--gold);
    font-size: 1.2rem;
    line-height: 1.65;
}

blockquote p:last-child { margin-bottom: 0; }

.quote-ref {
    display: block;
    font-family: var(--sans);
    font-size: .88rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .6rem;
}

.entry-content table,
.comment-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.5em;
    border: 1px solid var(--line);
}

.entry-content th,
.entry-content td {
    border: 1px solid var(--line);
    padding: .7rem .9rem;
    text-align: left;
}

.entry-content th {
    background: rgba(74, 139, 159, .12);
    font-family: var(--sans);
    letter-spacing: .06em;
}

.entry-footer {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px dotted var(--line);
    font-family: var(--sans);
    letter-spacing: .06em;
    color: var(--muted);
}

.entry-footer a { color: var(--accent); text-decoration: none; }
.entry-footer a:hover { color: var(--gold); }

/* ============================================================
   8. Сайдбар и виджеты
   ============================================================ */

.sidebar {
    min-width: 0;
    background: var(--alt);
    border: 1px solid var(--line);
    padding: 1.6rem 1.5rem;
    color: var(--ink);
}

.sidebar .widget { margin-bottom: 2rem; }
.sidebar .widget:last-child { margin-bottom: 0; }

.sidebar .widget-title,
.site-footer .widget-title {
    font-size: 1.25rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin: 0 0 1rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid var(--accent);
    color: var(--ink);
}

.sidebar .widget,
.sidebar .widget p,
.sidebar .widget li { color: #D6D6D6; }

.sidebar .widget ul,
.site-footer .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar .widget li,
.site-footer .widget li {
    padding: .5rem 0 .5rem 1rem;
    border-bottom: 1px dotted var(--line);
    position: relative;
    font-size: .98rem;
}

.sidebar .widget li::before,
.site-footer .widget li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.sidebar .widget a { color: #D6D6D6; text-decoration: none; }
.sidebar .widget a:hover { color: var(--gold); }
.sidebar .post-date { display: block; color: var(--muted); font-size: .85rem; font-family: var(--sans); letter-spacing: .06em; }

/* ============================================================
   9. Пагинация
   ============================================================ */

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 2.4rem;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 2.7rem;
    text-align: center;
    padding: .55rem .8rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    font-family: var(--sans);
    letter-spacing: .08em;
    color: var(--ink);
    text-decoration: none;
    background: var(--alt);
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.pager a.page-numbers:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--dark);
}

.pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
}

/* ============================================================
   10. Формы, поиск, комментарии
   ============================================================ */

.search-form { display: flex; gap: .6rem; flex-wrap: wrap; }

.search-form label { flex: 1 1 200px; min-width: 0; }

input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
textarea {
    width: 100%;
    padding: .7rem .9rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1rem;
}

input[type="text"]:focus,
input[type="search"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
}

input[type="submit"],
.search-form button {
    font-family: var(--sans);
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .7rem 1.5rem;
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 2px;
    color: var(--accent);
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

input[type="submit"]:hover,
.search-form button:hover {
    background: var(--accent);
    border-color: var(--gold);
    color: var(--dark);
    transform: translateY(-2px);
}

.comments-area {
    margin-top: 2.4rem;
    background: var(--alt);
    border: 1px solid var(--line);
    padding: 2rem 2.2rem 2.2rem;
}

.comments-title,
.comment-reply-title {
    font-size: 1.7rem;
    letter-spacing: .07em;
    margin-bottom: 1.4rem;
}

.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list .children { list-style: none; margin: 0; padding-left: 1.6rem; }

.comment-item { margin-bottom: 1.2rem; }

.comment-inner {
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    padding: 1.1rem 1.3rem;
    background: var(--bg);
}

.comment-head {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    align-items: baseline;
    margin-bottom: .5rem;
}

.comment-author {
    font-family: var(--sans);
    font-size: 1.12rem;
    letter-spacing: .07em;
    color: var(--ink);
}

.comment-date,
.comment-actions {
    font-family: var(--sans);
    font-size: .88rem;
    letter-spacing: .08em;
    color: var(--muted);
}

.comment-actions a { color: var(--accent); text-decoration: none; }
.comment-actions a:hover { color: var(--gold); }
.comment-hold { color: var(--gold); font-style: italic; }

.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-family: var(--sans); letter-spacing: .06em; margin-bottom: .35rem; }
.comment-notes, .comment-form .form-submit { margin-bottom: 0; }
.comment-notes { color: var(--muted); font-size: .92rem; }

/* ============================================================
   11. Подвал и cookie-баннер
   ============================================================ */

.site-footer {
    background: var(--dark);
    border-top: 1px solid var(--line);
    padding: 3rem 0 1.6rem;
    color: #D6D6D6;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
    margin-bottom: 2.4rem;
}

.footer-col { min-width: 0; }

.site-footer .widget,
.site-footer .widget p,
.site-footer .widget li { color: #C9C9C9; font-size: .97rem; }

.site-footer .widget a { color: #D6D6D6; text-decoration: none; }
.site-footer .widget a:hover { color: var(--gold); }
.site-footer .widget li { border-bottom-color: #1D1D1D; }

.footer-bottom {
    border-top: 1px dotted var(--line);
    padding-top: 1.3rem;
    font-family: var(--sans);
    font-size: .93rem;
    letter-spacing: .07em;
    color: var(--muted);
}

.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.1rem 1.6rem;
    background: var(--alt);
    border-top: 2px solid var(--accent);
    color: #D6D6D6;
    font-size: .95rem;
}

.cookie-banner p { margin: 0; min-width: 0; }
.cookie-banner a { color: var(--accent); }

/* ============================================================
   12. Адаптив
   ============================================================ */

@media (max-width: 960px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .layout-single { width: 100%; }
    .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-seal { max-width: 190px; }
    .rubric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-cell:nth-child(3) { border-left: none; }
    .stat-cell:nth-child(n+3) { border-top: 1px solid var(--gold); }
    body.home::after { display: none; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2.3rem; }
    h2 { font-size: 1.7rem; }
    .page-head h1, .entry-header h1 { font-size: 2.1rem; }
    .site-header { padding: 1.1rem 0; }
    .header-inner { flex-wrap: nowrap; align-items: flex-start; }
    .brand-desc { -webkit-line-clamp: 3; }
    .nav-toggle { display: inline-block; flex: 0 0 auto; }
    .main-nav { display: none; width: 100%; flex-basis: 100%; }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: .2rem; margin-top: 1rem; }
    .main-nav li { border-bottom: 1px dotted var(--line); }
    .main-nav a { display: block; padding: .7rem 0; }
    .cards, .cards-3 { grid-template-columns: minmax(0, 1fr); }
    .front-section { padding: 2.4rem 0; }
    .fs-hero { padding: 2.8rem 0 3.4rem; clip-path: none; }
    .hero-rule { left: 0; width: 45%; }
    .entry { padding: 1.5rem 1.3rem 1.7rem; }
    .comments-area { padding: 1.4rem 1.2rem 1.5rem; }
    .sidebar { padding: 1.3rem 1.2rem; }
    .stat-row { grid-template-columns: minmax(0, 1fr); }
    .stat-cell { border-left: none; border-top: 1px solid var(--gold); }
    .stat-cell:first-child { border-top: none; }
    .rubric-grid { grid-template-columns: minmax(0, 1fr); }
    .tl-item { grid-template-columns: minmax(0, 1fr); gap: .5rem; padding: 1.1rem 1.2rem; }
    .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
    .cookie-banner { padding: 1rem 1.2rem; }
    .comment-list .children { padding-left: .8rem; }
}
