/*
Theme Name: dds_geocons-grushi.ru
Theme URI: https://geocons-grushi.ru/
Author: Андрей Лавров
Description: Тёмная тема для образовательного портала о нумизматике, антиквариате и музейном деле. Архивная эстетика, металлические акценты, тактильная типографика.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: chekan
*/

/* ============ БАЗА ============ */
:root {
    --bg: #121212;
    --bg-alt: #1A1A1A;
    --bg-deep: #0D0D0D;
    --bg-head: #0A0A0A;
    --bg-foot: #080808;
    --bg-side: #181818;
    --ink: #E8E4DD;
    --gold: #CDA86A;
    --gold-dark: #B8945A;
    --silver: #7A8B99;
    --muted: #8A8A8A;
    --serif: "Playfair Display", "PT Serif", "Literata", Georgia, "Times New Roman", serif;
    --sans: "Inter", "PT Root UI", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.75;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(45deg, rgba(232, 228, 221, 0.03) 0 1px, transparent 1px 24px),
        repeating-linear-gradient(-45deg, rgba(232, 228, 221, 0.03) 0 1px, transparent 1px 24px);
}

body::after {
    content: "";
    position: fixed;
    right: -70px;
    bottom: -80px;
    width: 440px;
    height: 440px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23CDA86A' stroke-width='2'%3E%3Ccircle cx='100' cy='100' r='88'/%3E%3Ccircle cx='100' cy='100' r='74'/%3E%3Cpath d='M100 12v12M100 176v12M12 100h12M176 100h12M38 38l9 9M153 153l9 9M162 38l-9 9M47 153l-9 9'/%3E%3Cpath d='M74 132c4-30 8-44 26-52 14-6 24 2 22 14-2 14-18 18-30 26-8 5-14 9-18 12z'/%3E%3Ccircle cx='100' cy='62' r='12'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.site { position: relative; z-index: 1; }

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

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

a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px dotted var(--gold);
    transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover { color: #E7C489; border-bottom: 1px solid #E7C489; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    color: var(--ink);
    line-height: 1.22;
    margin: 0 0 0.7em;
    font-weight: 600;
}

h1 { font-size: 3.5rem; letter-spacing: 0.02em; }
h2 { font-size: 2rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1.15em; }

ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 0.4em; }

blockquote {
    margin: 1.8rem 0;
    padding: 1.2rem 1.5rem;
    background: var(--bg-alt);
    border-left: 3px solid var(--gold);
    box-shadow: inset 3px 0 0 rgba(122, 139, 153, 0.75);
    font-family: var(--serif);
    font-size: 1.12rem;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border: 1px solid var(--silver);
}

th, td {
    border: 1px solid rgba(122, 139, 153, 0.6);
    padding: 0.6rem 0.8rem;
    text-align: left;
}

th { background: var(--bg-alt); font-family: var(--serif); color: var(--gold); }

code, pre {
    font-family: "SFMono-Regular", Consolas, monospace;
    background: var(--bg-deep);
    color: var(--gold);
}

pre { padding: 1rem; overflow-x: auto; border: 1px solid rgba(122, 139, 153, 0.4); }

hr { border: 0; height: 1px; background: rgba(122, 139, 153, 0.4); margin: 2.5rem 0; }

/* ============ ЭЛЕМЕНТЫ ОФОРМЛЕНИЯ ============ */
.mint-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-dark) 35%, #8E7440 55%, var(--gold) 100%);
}

.sec-title {
    position: relative;
    padding-top: 1.1rem;
    margin-bottom: 1.6rem;
    font-variant: small-caps;
    letter-spacing: 0.13em;
}

.sec-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 74px;
    height: 1px;
    background: var(--silver);
}

.coin-dot::before {
    content: "";
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-right: 0.55rem;
    vertical-align: 0.02em;
    border-radius: 50%;
    background:
        radial-gradient(circle, var(--gold) 0 52%, transparent 53%),
        repeating-conic-gradient(var(--gold) 0deg 7deg, transparent 7deg 14deg);
}

.rule-coin {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0;
    color: rgba(122, 139, 153, 0.5);
}

.rule-coin::before,
.rule-coin::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(122, 139, 153, 0.25);
}

.rule-coin span {
    font-size: 0.6rem;
    letter-spacing: 0.55em;
}

.chevron-break {
    height: 26px;
    background-image: repeating-linear-gradient(-45deg, rgba(205, 168, 106, 0.12) 0 5px, transparent 5px 15px);
}

.btn {
    display: inline-block;
    padding: 0.85rem 1.9rem;
    border-radius: 4px;
    font-family: var(--sans);
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-gold {
    background: var(--gold);
    color: #16130E;
    border: 1.5px solid var(--gold);
}

.btn-gold:hover {
    background: #E0BB7C;
    color: #16130E;
    border-color: #E0BB7C;
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(205, 168, 106, 0.32);
}

.btn-silver {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--silver);
}

.btn-silver:hover {
    background: var(--silver);
    color: #0D0D0D;
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(122, 139, 153, 0.28);
}

/* ============ ШАПКА ============ */
.glass-strip {
    background: rgba(232, 228, 221, 0.045);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(122, 139, 153, 0.16);
    font-size: 0.76rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
}

.glass-strip .shell { padding: 0.5rem 0; }

.site-head { background: var(--bg-head); border-bottom: 1px solid rgba(122, 139, 153, 0.18); }

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

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    flex: 1 1 420px;
    border-bottom: 0;
}

.brand:hover { border-bottom: 0; }

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

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

.brand-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--serif);
    font-size: 1.15rem;
    line-height: 1.35;
    color: var(--ink);
}

.brand-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0.25rem;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--muted);
}

.nav-toggle {
    display: none;
    padding: 0.6rem 1rem;
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--silver);
    border-radius: 4px;
    font-family: var(--sans);
    font-size: 0.85rem;
    cursor: pointer;
}

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

.main-nav li { margin: 0; }

.main-nav a {
    border-bottom: 1px dotted transparent;
    color: var(--ink);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

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

/* ============ РАСКЛАДКА ============ */
.site-main { padding: 3.2rem 0 4.5rem; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    justify-content: space-between;
    gap: 2.5rem;
    align-items: start;
}

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

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

.sidebar {
    min-width: 0;
    padding: 1.5rem 1.4rem;
    background: var(--bg-side);
    border: 1px solid rgba(122, 139, 153, 0.28);
    border-radius: 2px;
}

.breadcrumbs {
    margin-bottom: 1.8rem;
    font-size: 0.82rem;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.breadcrumbs a { color: var(--silver); border-bottom: 1px dotted rgba(122, 139, 153, 0.6); }
.breadcrumbs a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.breadcrumbs .sep { margin: 0 0.4rem; color: rgba(122, 139, 153, 0.6); }

.page-title { margin-bottom: 1.6rem; font-size: 2.6rem; }

/* ============ КАРТОЧКИ ЗАПИСЕЙ ============ */
.card-list { display: flex; flex-direction: column; gap: 2rem; }

.card {
    display: flex;
    flex-direction: column;
    background: var(--bg-alt);
    border: 1px solid rgba(122, 139, 153, 0.55);
    border-radius: 2px;
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.55), inset 0 0 0 3px rgba(205, 168, 106, 0.28);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.6), inset 0 0 0 3px rgba(205, 168, 106, 0.55), 0 0 26px rgba(205, 168, 106, 0.18);
}

.card-row { display: flex; align-items: stretch; min-width: 0; }

.card-thumb-wrap {
    flex: 0 0 200px;
    position: relative;
    overflow: hidden;
    background: var(--bg-deep);
}

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

.card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: sepia(0.55) saturate(0.8) contrast(1.05) brightness(0.85);
    transition: filter 0.3s ease;
}

.card:hover .card-thumb-wrap img { filter: sepia(0.3) saturate(1) contrast(1.05) brightness(0.95); }

.card-thumb-blank {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 45%, rgba(205, 168, 106, 0.22) 0 22%, transparent 23%),
        repeating-linear-gradient(45deg, rgba(122, 139, 153, 0.08) 0 1px, transparent 1px 14px),
        var(--bg-deep);
}

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

.card-title { font-size: 1.35rem; margin-bottom: 0.5rem; }
.card-title a { color: var(--ink); border-bottom: 0; }
.card-title a:hover { color: var(--gold); border-bottom: 0; }

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

.card-excerpt { color: rgba(232, 228, 221, 0.82); font-size: 0.95rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

.card-more {
    margin-top: auto;
    padding-top: 0.9rem;
    align-self: flex-start;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-bottom: 1px dotted var(--gold);
}

/* ============ ПАГИНАЦИЯ ============ */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 3rem;
    justify-content: center;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 44px;
    padding: 0.6rem 0.9rem;
    text-align: center;
    color: var(--ink);
    background: var(--bg-alt);
    border: 1px solid rgba(122, 139, 153, 0.55);
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pager a.page-numbers:hover {
    color: #16130E;
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 6px 18px rgba(205, 168, 106, 0.25);
}

.pager .page-numbers.current {
    color: #16130E;
    background: var(--gold);
    border-color: var(--gold);
}

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

/* ============ ГЛАВНАЯ ============ */
.front-shell { width: 85%; margin-left: auto; margin-right: auto; }

.front-section { padding: 120px 0; }
.front-section.tight { padding: 90px 0; }

.sec-bg-deep { background: var(--bg-deep); }
.sec-bg-alt {
    background-color: var(--bg-alt);
    background-image:
        linear-gradient(135deg, rgba(42, 36, 31, 0.85), rgba(26, 26, 26, 0.4)),
        repeating-linear-gradient(45deg, rgba(232, 228, 221, 0.05) 0 1px, transparent 1px 20px),
        repeating-linear-gradient(-45deg, rgba(232, 228, 221, 0.05) 0 1px, transparent 1px 20px);
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(122, 139, 153, 0.2);
}

.hero-media { position: absolute; inset: 0; }

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: blur(2px) brightness(0.62) sepia(0.25);
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.82) 0%, rgba(13, 13, 13, 0.68) 45%, rgba(10, 10, 10, 0.92) 100%);
}

.hero-inner { position: relative; z-index: 2; padding: 5.5rem 0; }

.hero-kicker {
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.2rem;
}

.hero h1 { max-width: 16ch; margin-bottom: 1.2rem; }

.hero-sub {
    max-width: 58ch;
    font-size: 1.1rem;
    color: var(--silver);
    margin-bottom: 2.4rem;
}

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

/* Таймлайн */
.tline { position: relative; margin-top: 2.5rem; padding-left: 2.6rem; }

.tline::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 9px;
    width: 0;
    border-left: 2px dashed rgba(205, 168, 106, 0.55);
}

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

.tline-item::before {
    content: "";
    position: absolute;
    left: -2.6rem;
    top: 0.75rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background:
        radial-gradient(circle, var(--gold) 0 55%, transparent 56%),
        repeating-conic-gradient(var(--gold) 0deg 8deg, transparent 8deg 16deg);
}

.tline-card {
    padding: 1.2rem 1.5rem;
    background: var(--bg-deep);
    border: 1px solid rgba(122, 139, 153, 0.45);
    border-radius: 2px;
    box-shadow: inset 0 0 0 3px rgba(205, 168, 106, 0.16);
}

.tline-era {
    display: block;
    font-family: var(--serif);
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.35rem;
}

.tline-card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.tline-card p { margin: 0; font-size: 0.95rem; color: rgba(232, 228, 221, 0.8); }

/* Статистика */
.stats-plate {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 2.5rem;
    padding: 2.6rem 2.2rem;
    background: var(--bg-deep);
    border: 1px solid rgba(122, 139, 153, 0.35);
    border-radius: 2px;
}

.stat { padding: 0 1.4rem; text-align: center; border-left: 1px solid rgba(122, 139, 153, 0.35); min-width: 0; }
.stat:first-child { border-left: 0; }

.stat b {
    display: block;
    font-family: var(--serif);
    font-size: 2.9rem;
    font-weight: 600;
    line-height: 1.1;
    color: var(--gold);
}

.stat span { display: block; margin-top: 0.4rem; font-size: 0.85rem; letter-spacing: 0.08em; color: var(--ink); }

/* Рубрикатор */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
    margin-top: 2.5rem;
}

.topic-tile {
    display: block;
    min-width: 0;
    padding: 1.8rem 1.6rem;
    background: var(--bg);
    border: 1px solid rgba(122, 139, 153, 0.55);
    border-radius: 2px;
    box-shadow: inset 0 0 0 3px rgba(205, 168, 106, 0.2);
    color: var(--ink);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.topic-tile:hover {
    color: var(--ink);
    transform: translateY(-5px);
    box-shadow: inset 0 0 0 3px rgba(205, 168, 106, 0.6), 0 0 28px rgba(205, 168, 106, 0.2);
    border-color: var(--gold);
}

.topic-tile svg { display: block; width: 40px; height: 40px; margin-bottom: 1rem; }
.topic-tile strong { display: block; font-family: var(--serif); font-size: 1.25rem; margin-bottom: 0.4rem; }
.topic-tile span { display: block; font-size: 0.9rem; color: var(--muted); }

/* Последние записи на главной */
.front-latest { padding: 100px 0; background: var(--bg); }
.latest-more { margin-top: 2rem; }
.latest-more .btn { margin-right: 0.8rem; margin-bottom: 0.6rem; }

/* ============ ЗАПИСЬ / СТРАНИЦА ============ */
.entry-header { margin-bottom: 1.8rem; }
.entry-meta { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.entry-thumb { margin: 0 0 2rem; }
.entry-thumb img { display: block; width: 100%; border-radius: 2px; border: 1px solid rgba(122, 139, 153, 0.5); }

.entry-content h2, .entry-content h3 { margin-top: 2rem; }
.entry-content img { border-radius: 2px; }

.entry-tags { margin-top: 2.2rem; font-size: 0.85rem; color: var(--muted); }

/* ============ ВИДЖЕТЫ ============ */
.widget { margin-bottom: 2rem; }
.widget:last-child { margin-bottom: 0; }

.widget-title {
    padding-top: 0.9rem;
    margin-bottom: 1rem;
    position: relative;
    font-family: var(--serif);
    font-size: 1.1rem;
    font-variant: small-caps;
    letter-spacing: 0.12em;
}

.widget-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 52px;
    height: 1px;
    background: var(--silver);
}

.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { margin-bottom: 0.65rem; padding-bottom: 0.65rem; border-bottom: 1px solid rgba(122, 139, 153, 0.18); }
.widget li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

.sidebar .widget-title { color: var(--ink); }
.sidebar .widget, .sidebar .widget li, .sidebar .widget p { color: rgba(232, 228, 221, 0.86); }
.sidebar .widget a { color: var(--ink); border-bottom: 1px dotted rgba(205, 168, 106, 0.5); }
.sidebar .widget a:hover { color: var(--gold); border-bottom: 1px solid var(--gold); }
.sidebar .post-date { display: block; font-size: 0.75rem; color: var(--muted); }

/* ============ ПОДВАЛ ============ */
.site-foot { background: var(--bg-foot); border-top: 1px solid rgba(122, 139, 153, 0.22); }

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

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

.foot-col .widget-title { color: var(--gold); }
.foot-col .widget, .foot-col .widget p, .foot-col .widget li { color: rgba(232, 228, 221, 0.8); font-size: 0.92rem; }
.foot-col .widget a { color: rgba(232, 228, 221, 0.92); border-bottom: 1px dotted rgba(122, 139, 153, 0.6); }
.foot-col .widget a:hover { color: var(--gold); border-bottom: 1px solid var(--gold); }

.foot-bottom {
    padding: 1.4rem 0 2.2rem;
    border-top: 1px solid rgba(122, 139, 153, 0.18);
    font-size: 0.82rem;
    color: var(--muted);
}

.copy-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============ ФОРМЫ ============ */
.search-form { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.search-form input[type="search"],
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    flex: 1 1 200px;
    min-width: 0;
    padding: 0.7rem 0.9rem;
    background: var(--bg-deep);
    color: var(--ink);
    border: 1px solid rgba(122, 139, 153, 0.5);
    border-radius: 4px;
    font-family: var(--sans);
    font-size: 0.95rem;
}

.search-form button,
.comment-form input[type="submit"] {
    padding: 0.7rem 1.5rem;
    background: var(--gold);
    color: #16130E;
    border: 1.5px solid var(--gold);
    border-radius: 4px;
    font-family: var(--sans);
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-form button:hover,
.comment-form input[type="submit"]:hover {
    background: #E0BB7C;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(205, 168, 106, 0.3);
}

.comment-form label { display: block; margin-bottom: 0.35rem; font-size: 0.85rem; color: var(--muted); }
.comment-form p { margin-bottom: 1rem; }
.comment-form textarea { width: 100%; min-height: 150px; }

/* ============ КОММЕНТАРИИ ============ */
.comments-area { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid rgba(122, 139, 153, 0.25); }
.comments-title { font-size: 1.6rem; }
.comment-list { list-style: none; margin: 0 0 2.5rem; padding: 0; }
.comment-list ol { list-style: none; padding-left: 1.5rem; }

.comment-body {
    margin-bottom: 1.4rem;
    padding: 1.2rem 1.4rem;
    background: var(--bg-alt);
    border: 1px solid rgba(122, 139, 153, 0.35);
    border-radius: 2px;
}

.comment-author-name { font-family: var(--serif); color: var(--gold); }
.comment-date { display: block; font-size: 0.76rem; color: var(--muted); margin-bottom: 0.6rem; }

/* ============ 404 ============ */
.err-code { font-family: var(--serif); font-size: 6rem; color: var(--gold); line-height: 1; margin-bottom: 0.4rem; }

/* ============ COOKIE ============ */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.1rem 1.6rem;
    background: rgba(10, 10, 10, 0.97);
    border-top: 1px solid rgba(205, 168, 106, 0.55);
    color: rgba(232, 228, 221, 0.9);
    font-size: 0.88rem;
}

.cookie-banner p { margin: 0; min-width: 0; flex: 1 1 340px; }
.cookie-banner button { flex: 0 0 auto; }

/* ============ АДАПТИВ ============ */
@media (max-width: 960px) {
    h1 { font-size: 2.6rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); }
    .layout-single, .front-shell { width: 100%; }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-plate { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
    .stat:nth-child(3) { border-left: 0; }
    .front-section { padding: 84px 0; }
    .front-section.tight { padding: 70px 0; }
    .front-latest { padding: 76px 0; }
}

@media (max-width: 760px) {
    .nav-toggle { display: block; }
    .main-nav { flex: 1 1 100%; }
    .main-nav ul { flex-direction: column; gap: 0.9rem; padding-top: 1rem; }
    .main-nav[hidden] { display: none !important; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.6rem; }
    .site-main { padding: 2.2rem 0 3rem; }
    .hero { min-height: 460px; }
    .hero-inner { padding: 3.4rem 0; }
    .hero-actions .btn { width: 100%; text-align: center; }
    .card-row { flex-direction: column; }
    .card-thumb-wrap { flex: none; width: 100%; position: static; }
    .card-thumb-wrap a { position: static; }
    .card-thumb-wrap img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
    .card-thumb-blank { position: relative; inset: auto; width: 100%; aspect-ratio: 16 / 9; }
    .card-body { padding: 1.2rem 1.2rem; }
    .stats-plate { grid-template-columns: minmax(0, 1fr); padding: 1.8rem 1.4rem; }
    .stat { border-left: 0; padding: 0 0 1.4rem; border-bottom: 1px solid rgba(122, 139, 153, 0.3); }
    .stat:last-child { padding-bottom: 0; border-bottom: 0; }
    .topic-grid { grid-template-columns: minmax(0, 1fr); }
    .foot-cols { grid-template-columns: minmax(0, 1fr); padding: 2.5rem 0 1.8rem; }
    .front-section { padding: 60px 0; }
    .front-section.tight { padding: 52px 0; }
    .front-latest { padding: 56px 0; }
    .tline { padding-left: 2.2rem; }
    .tline-item::before { left: -2.2rem; width: 16px; height: 16px; }
    .cookie-banner { padding: 1rem 1.1rem; }
}
