/*
Theme Name: dds_yurzakoni.ru
Author: Анна Кравцова
Description: Информационная тема для портала о юридическом образовании и правовой грамотности. Холодная стальная палитра с янтарным акцентом, редакционная типографика и строгая вертикальная структура.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: yurzak
*/

/* ==========================================================================
   1. Переменные
   ========================================================================== */

:root {
    --bg: #F8F9FC;
    --bg-alt: #F1F4FA;
    --dark: #0A0C10;
    --dark-2: #1A1E26;
    --dark-3: #1E232E;
    --ink: #1A1E26;
    --gold: #D4A235;
    --gold-dark: #BE9130;
    --steel: #6B7A8F;
    --muted: #7E8A98;
    --line: #DDE2EA;
    --white: #FFFFFF;
    --sans: "Inter", "Manrope", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    --serif: "Merriweather", "Literata", Georgia, "Times New Roman", serif;
}

/* ==========================================================================
   2. Сброс и база
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--serif);
    font-size: 1.02rem;
    line-height: 1.78;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        linear-gradient(to right, rgba(107, 122, 143, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(107, 122, 143, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    background-attachment: fixed;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sans);
    color: var(--ink);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-align: left;
    margin: 0 0 0.7em;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 1.95rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.15em; }

a { color: var(--steel); }

ul, ol { margin: 0 0 1.3em; padding-left: 1.3em; }
li { margin-bottom: 0.45em; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.6em;
    background: var(--white);
    font-size: 0.96rem;
}
table, th, td { border: 1px solid var(--steel); }
th, td { padding: 0.7rem 0.9rem; text-align: left; }
th { background: var(--bg-alt); font-family: var(--sans); font-weight: 600; }

code, pre { font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.92em; }
pre { background: var(--dark); color: #E6EAF0; padding: 1.2rem 1.3rem; overflow-x: auto; border-radius: 4px; }

/* ==========================================================================
   3. Контейнеры и раскладки
   ========================================================================== */

.shell { width: min(92%, 1180px); margin-inline: auto; }

.site-main { display: block; padding: 2.6rem 0 4rem; }

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

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

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

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

.site-top {
    background: var(--dark);
    color: #E6EAF0;
    padding: 1.2rem 0;
}

.top-inner {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    flex-wrap: wrap;
}

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

.brand-mark { flex: 0 0 auto; }

.brand-logo {
    width: 52px;
    height: 52px;
    display: block;
    object-fit: contain;
}

.brand-text { min-width: 0; display: block; max-width: 640px; }

.brand-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--sans);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.32;
    color: var(--white);
    letter-spacing: -0.01em;
}

.brand-tagline {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0.3rem;
    font-family: var(--sans);
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--muted);
}

/* Навигация */

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.45rem;
    background: transparent;
    border: 1px solid var(--steel);
    color: #E6EAF0;
    font-family: var(--sans);
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
}

.nav-toggle-bar { display: block; width: 18px; height: 2px; background: var(--gold); }
.nav-toggle-label { margin-left: 0.25rem; }

.main-nav { flex: 0 0 auto; }

.nav-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li { margin: 0; position: relative; }

.nav-list a {
    font-family: var(--sans);
    font-size: 0.95rem;
    color: #DCE2EA;
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

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

.nav-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--dark-2);
    border-top: 2px solid var(--gold);
    display: none;
    z-index: 20;
}

.nav-list li:hover > .sub-menu { display: block; }
.nav-list .sub-menu a { display: block; padding: 0.45rem 1rem; border: 0; }

/* Юридическая линейка */

.law-rule { height: 4px; background: var(--gold); }

/* ==========================================================================
   5. Кнопки и ссылки
   ========================================================================== */

.btn {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    cursor: pointer;
    border: 0;
    border-radius: 0;
    clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-primary { background: var(--gold); color: var(--dark); }
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); }

.btn-ghost {
    background: transparent;
    color: var(--steel);
    box-shadow: inset 0 0 0 1px var(--steel);
}
.btn-ghost:hover { background: var(--steel); color: var(--white); }

.entry-content a,
.widget a,
.card-excerpt a {
    color: var(--steel);
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0 1px;
    background-position: 50% calc(100% - 1px);
    background-repeat: no-repeat;
    transition: background-size 0.28s ease, color 0.2s ease;
}

.entry-content a:hover,
.widget a:hover,
.card-excerpt a:hover {
    color: var(--gold);
    background-size: 100% 1px;
}

.entry-content .btn,
.entry-content .btn:hover { background-image: none; }

/* ==========================================================================
   6. Заголовки секций, линейки, крошки
   ========================================================================== */

.sec-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.sec-head::before {
    content: "";
    flex: 0 0 46px;
    height: 1px;
    background: var(--steel);
}

.sec-head h2 { flex: 0 1 auto; margin: 0; min-width: 0; }

.sec-head::after {
    content: "";
    flex: 0 1 33%;
    height: 1px;
    background: var(--steel);
}

.sec-dot {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    background: var(--gold);
    display: block;
}

.sec-lead {
    max-width: 62ch;
    color: var(--steel);
    margin-bottom: 2rem;
}

.rule {
    width: 60%;
    height: 1px;
    background: var(--gold);
    margin: 3.4rem 0;
}

.crumbs {
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.8rem;
}

.crumbs a { color: var(--steel); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs .sep { color: var(--gold); margin: 0 0.35rem; }

.page-head { margin-bottom: 2.2rem; }
.page-title { margin-bottom: 0.5rem; }
.page-sub { color: var(--steel); max-width: 66ch; }

.empty-note {
    background: var(--white);
    border-top: 2px solid var(--steel);
    padding: 1.6rem 1.5rem;
    color: var(--steel);
    border-radius: 4px;
}

/* ==========================================================================
   7. Главная — блоки
   ========================================================================== */

.front .fs { position: relative; }

/* Блок 1 — hero */

.fs-hero {
    background: linear-gradient(135deg, #0A0C10 0%, #1E232E 100%);
    padding: 3.6rem 2.4rem;
    border-radius: 4px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
    gap: 2.2rem;
    align-items: center;
}

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

.hero-title {
    color: var(--gold);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    max-width: 14ch;
}

.hero-sub {
    color: #E9EDF3;
    font-size: 1.05rem;
    max-width: 60ch;
    margin-bottom: 1.2rem;
}

.hero-mark {
    font-family: var(--sans);
    font-size: 0.82rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--steel);
    margin: 0;
}

.hero-art { min-width: 0; opacity: 0.1; }
.hero-art svg { width: 100%; height: auto; display: block; }

/* Блок 2 — таймлайн */

.fs-track {
    background: var(--bg-alt);
    padding: 2.8rem 2.4rem;
    border-radius: 4px;
}

.track {
    list-style: none;
    margin: 0;
    padding: 0 0 0 2.2rem;
    position: relative;
}

.track::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--steel);
}

.track-item { position: relative; margin-bottom: 2rem; min-width: 0; }
.track-item:last-child { margin-bottom: 0; }

.track-item::before {
    content: "";
    position: absolute;
    left: -2.2rem;
    top: 7px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px var(--bg-alt);
}

.track-title { margin-bottom: 0.35rem; font-size: 1.2rem; }
.track-item p { margin: 0; color: var(--steel); max-width: 68ch; }

/* Последние записи */

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

.latest-more { margin: 2rem 0 0; }

/* Блок 3 — статистика */

.fs-figures {
    background: linear-gradient(135deg, #0A0C10 0%, #1A1E26 100%);
    padding: 2.6rem 2.2rem;
    border-radius: 4px;
}

.figures {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.figure {
    min-width: 0;
    padding: 0 1.3rem;
    border-left: 1px solid rgba(107, 122, 143, 0.45);
}

.figure:first-child { border-left: 0; padding-left: 0; }

.figure-num {
    display: block;
    font-family: var(--sans);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--gold);
    margin-bottom: 0.6rem;
}

.figure-cap {
    display: block;
    font-family: var(--sans);
    font-size: 0.88rem;
    line-height: 1.5;
    color: #E4E8EF;
}

/* Блок 4 — карта тем */

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

.map-tile {
    display: block;
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--steel);
    border-radius: 4px;
    padding: 1.5rem 1.4rem;
    text-decoration: none;
    color: var(--ink);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.map-tile:hover { border-color: var(--gold); background: var(--bg-alt); }

.map-tile svg {
    width: 34px;
    height: 34px;
    display: block;
    color: var(--steel);
    margin-bottom: 0.9rem;
}

.map-tile:hover svg { color: var(--gold); }

.map-name {
    display: block;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 1.08rem;
    margin-bottom: 0.35rem;
}

.map-note { display: block; font-size: 0.9rem; color: var(--steel); line-height: 1.5; }

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

.card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 4px;
    border-top: 2px solid var(--steel);
    box-shadow: 6px 6px 0 rgba(10, 12, 16, 0.08);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    box-shadow: 10px 10px 0 rgba(10, 12, 16, 0.1);
    border-top-color: var(--gold);
}

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

.card-meta {
    font-family: var(--sans);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.6rem;
}

.card-title { font-size: 1.25rem; margin-bottom: 0.7rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--gold); }

.card-excerpt { color: var(--steel); font-size: 0.98rem; flex: 1; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

.card-more { margin: 1.1rem 0 0; }

.card img { display: block; width: 100%; }

.card-thumb-wrap img {
    filter: grayscale(1) contrast(1.03) brightness(0.98);
    transition: filter 0.3s ease;
}

.card:hover .card-thumb-wrap img { filter: grayscale(0.75) contrast(1.03); }

/* Вертикальная карточка (сетка) */

.card--grid .card-thumb-wrap { display: block; overflow: hidden; }
.card--grid .card-thumb-wrap a { display: block; }
.card--grid .card-thumb-wrap img { aspect-ratio: 16 / 9; object-fit: cover; }

/* Горизонтальная карточка (лента) */

.card-list { display: flex; flex-direction: column; gap: 1.7rem; }

.card--row { flex-direction: row; }

.card--row .card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
}

.card--row .card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.card--row .card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   9. Контент записи и страницы
   ========================================================================== */

.post-meta {
    font-family: var(--sans);
    font-size: 0.86rem;
    color: var(--muted);
}

.post-meta .meta-sep { margin: 0 0.4rem; color: var(--gold); }
.post-meta .meta-cat { color: var(--steel); text-decoration: none; }
.post-meta .meta-cat:hover { color: var(--gold); }

.post-cover { margin: 0 0 2rem; }
.post-cover img { width: 100%; border-radius: 4px; }

.entry-content { font-size: 1.05rem; }

.entry-content h2 { margin-top: 2.2rem; font-size: 1.7rem; }
.entry-content h2::before {
    content: "▪";
    color: var(--gold);
    margin-right: 0.4em;
    font-size: 0.9em;
}
.entry-content h3 { margin-top: 1.8rem; }

.entry-content img { border-radius: 4px; margin: 0.6rem 0 1.4rem; }

.entry-content blockquote {
    margin: 1.8rem 0;
    padding: 0.8rem 1.6rem;
    border-left: 4px solid var(--gold);
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--steel);
    background: none;
}

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

.entry-content ul li::marker { color: var(--gold); }
.entry-content ol li::marker { color: var(--gold); font-family: var(--sans); }

.page-links { font-family: var(--sans); margin-top: 1.6rem; }

.post-tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.post-tags a {
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--steel);
    text-decoration: none;
    border: 1px solid var(--line);
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
}
.post-tags a:hover { border-color: var(--gold); color: var(--gold); }

.post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: 2.6rem;
}

.post-nav-link {
    min-width: 0;
    display: block;
    background: var(--white);
    border-top: 2px solid var(--steel);
    border-radius: 4px;
    padding: 1.1rem 1.3rem;
    font-family: var(--sans);
    font-size: 0.98rem;
    color: var(--ink);
    text-decoration: none;
    transition: border-color 0.2s ease;
}

.post-nav-link:hover { border-top-color: var(--gold); }
.post-nav-link span {
    display: block;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.35rem;
}
.post-nav-next { text-align: right; }

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

.sidebar { min-width: 0; }

.sidebar .widget {
    background: var(--white);
    border-top: 2px solid var(--steel);
    border-radius: 4px;
    box-shadow: 6px 6px 0 rgba(10, 12, 16, 0.06);
    padding: 1.4rem 1.5rem;
    margin-bottom: 1.7rem;
    color: var(--ink);
}

.sidebar .widget-title {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    color: var(--ink);
}

.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { margin-bottom: 0.7rem; padding-left: 1rem; position: relative; font-size: 0.96rem; }
.sidebar .widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 6px;
    height: 6px;
    background: var(--gold);
}
.sidebar .widget a { color: var(--ink); }
.sidebar .widget a:hover { color: var(--gold); }
.sidebar .widget .post-date { display: block; font-family: var(--sans); font-size: 0.78rem; color: var(--muted); }

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.6rem;
}

.pager .page-numbers {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.6rem 1rem;
    color: var(--steel);
    text-decoration: none;
    background: var(--white);
    box-shadow: inset 0 0 0 1px var(--steel);
    clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.pager .page-numbers:hover { background: var(--steel); color: var(--white); }

.pager .page-numbers.current {
    background: var(--gold);
    color: var(--dark);
    box-shadow: inset 0 0 0 1px var(--gold);
}

.pager .page-numbers.dots {
    background: none;
    box-shadow: none;
    clip-path: none;
    color: var(--muted);
}

.comments .nav-links {
    display: flex;
    gap: 0.8rem;
    font-family: var(--sans);
    font-size: 0.9rem;
    margin-top: 1.4rem;
}

/* ==========================================================================
   12. Форма поиска
   ========================================================================== */

.search-form { margin: 0 0 1.4rem; }

.search-label {
    display: block;
    font-family: var(--sans);
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.search-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.search-field {
    flex: 1 1 200px;
    min-width: 0;
    font-family: var(--serif);
    font-size: 0.98rem;
    padding: 0.72rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
    color: var(--ink);
}

.search-field:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

.notfound-box {
    background: var(--white);
    border-top: 2px solid var(--steel);
    border-radius: 4px;
    padding: 1.8rem 1.8rem 1.6rem;
    box-shadow: 6px 6px 0 rgba(10, 12, 16, 0.08);
}

.notfound-links { display: flex; gap: 0.8rem; flex-wrap: wrap; margin: 1.2rem 0 0; }

/* ==========================================================================
   13. Комментарии
   ========================================================================== */

.comments { margin-top: 3rem; }
.comments-title { font-size: 1.5rem; margin-bottom: 1.4rem; }

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

.comment-inner {
    background: var(--white);
    border-left: 4px solid var(--gold);
    border-radius: 4px;
    padding: 1.1rem 1.3rem;
    margin-bottom: 1rem;
}

.comment-head { display: flex; gap: 0.8rem; align-items: baseline; flex-wrap: wrap; margin-bottom: 0.5rem; }
.comment-author { font-family: var(--sans); font-weight: 700; }
.comment-date { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); }
.comment-text p:last-child { margin-bottom: 0; }
.comment-hold { color: var(--muted); font-size: 0.9rem; }
.comment-actions { font-family: var(--sans); font-size: 0.88rem; margin-top: 0.6rem; }
.comment-actions a { color: var(--steel); text-decoration: none; }
.comment-actions a:hover { color: var(--gold); }

.comment-respond {
    background: var(--white);
    border-top: 2px solid var(--steel);
    border-radius: 4px;
    padding: 1.6rem 1.7rem;
}

.comment-reply-title { font-size: 1.25rem; }
.comment-notes, .comment-form-cookies-consent label { font-size: 0.9rem; color: var(--muted); }

.comment-form label {
    display: block;
    font-family: var(--sans);
    font-size: 0.86rem;
    margin-bottom: 0.35rem;
    color: var(--ink);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    font-family: var(--serif);
    font-size: 0.98rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--bg);
    color: var(--ink);
}

.comment-form textarea { resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.comment-form .submit { margin-top: 0.4rem; }

/* ==========================================================================
   14. Подвал
   ========================================================================== */

.site-bottom {
    background: var(--dark);
    color: #D7DCE4;
    padding: 3rem 0 2rem;
    border-top: 4px solid var(--gold);
}

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

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

.site-bottom .widget { margin-bottom: 1.6rem; color: #D7DCE4; }
.site-bottom .widget:last-child { margin-bottom: 0; }

.site-bottom .widget-title {
    color: var(--white);
    font-size: 1rem;
    letter-spacing: 0.03em;
    margin-bottom: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(107, 122, 143, 0.5);
}

.site-bottom .widget p { color: #C9D0DA; font-size: 0.94rem; }

.site-bottom .widget ul { list-style: none; margin: 0; padding: 0; }
.site-bottom .widget li { margin-bottom: 0.55rem; padding-left: 1rem; position: relative; font-size: 0.94rem; }
.site-bottom .widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px;
    height: 6px;
    background: var(--gold);
}

.site-bottom .widget a { color: #D7DCE4; }
.site-bottom .widget a:hover { color: var(--gold); }
.site-bottom .widget .post-date { display: block; font-family: var(--sans); font-size: 0.78rem; color: var(--muted); }

.foot-note {
    margin-top: 2.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(107, 122, 143, 0.35);
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--muted);
}

/* ==========================================================================
   15. Cookie-баннер
   ========================================================================== */

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: var(--dark-2);
    border-top: 3px solid var(--gold);
    padding: 1rem 0;
}

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

.cookie-text {
    flex: 1 1 380px;
    min-width: 0;
    margin: 0;
    font-family: var(--sans);
    font-size: 0.88rem;
    line-height: 1.55;
    color: #D7DCE4;
}

.cookie-accept { flex: 0 0 auto; }

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

@media (max-width: 960px) {
    h1 { font-size: 2.6rem; }
    .hero-title { font-size: 2.6rem; }

    .layout-with-sidebar { display: block; }
    .sidebar { margin-top: 2.6rem; }

    .layout-single { width: 100%; }

    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .map-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.8rem; }
    .figure:nth-child(3) { border-left: 0; padding-left: 0; }

    .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-art { max-width: 200px; }

    .nav-toggle { display: inline-flex; order: 2; margin-left: auto; }
    .main-nav { flex: 1 1 100%; order: 3; display: none; }
    .main-nav.is-open { display: block; }
    .nav-list { flex-direction: column; align-items: flex-start; gap: 0.9rem; padding-top: 1rem; }
    .nav-list .sub-menu { position: static; display: block; background: transparent; border: 0; padding: 0.4rem 0 0 1rem; }
    .brand-text { max-width: none; }
}

@media (max-width: 600px) {
    body { font-size: 0.99rem; }
    h1 { font-size: 2.05rem; }
    h2 { font-size: 1.55rem; }

    .site-main { padding: 1.8rem 0 2.8rem; }

    .hero-title { font-size: 2.05rem; max-width: none; }
    .fs-hero { padding: 2.1rem 1.4rem; }
    .fs-track { padding: 1.9rem 1.3rem; }
    .fs-figures { padding: 1.9rem 1.3rem; }
    .notfound-box { padding: 1.4rem 1.3rem; }
    .comment-respond { padding: 1.3rem 1.2rem; }
    .empty-note { padding: 1.3rem 1.2rem; }

    .card-grid { grid-template-columns: minmax(0, 1fr); }
    .map-grid { grid-template-columns: minmax(0, 1fr); }
    .figures { grid-template-columns: minmax(0, 1fr); }
    .figure { border-left: 0; padding-left: 0; }

    .post-nav { grid-template-columns: minmax(0, 1fr); }
    .post-nav-next { text-align: left; }

    .sec-head { flex-wrap: wrap; gap: 0.7rem; }
    .sec-head::after { flex: 0 1 20%; }

    .card--row { flex-direction: column; }
    .card--row .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }
    .card--row .card-thumb-wrap a { position: static; }
    .card--row .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .rule { width: 80%; margin: 2.4rem 0; }
    .cookie-inner { gap: 0.9rem; }
}
