/* ============================================================ */
/* DOSSIER — STYLE.CSS                                           */
/* Светлый журнальный стиль для research.nakerosine.ru           */
/* ============================================================ */

/* ============================================================ */
/* 0. ПЕРЕМЕННЫЕ (CSS VARIABLES)                                 */
/* ============================================================ */
:root {
    /* Фоны */
    --bg:          #f2efe9;      /* тёплый светлый фон */
    --bg-alt:      #ece8e0;      /* чуть темнее (для полос) */
    --card:        #ffffff;      /* карточки */
    --card-hover:  #fdfbf7;      /* карточки при hover */

    /* Границы */
    --stroke:      #e8e0d5;      /* границы */

    /* Текст */
    --fg:          #2a2520;      /* основной текст */
    --fg-secondary:#6b6359;      /* вторичный */
    --fg-muted:    #9a9188;      /* приглушённый */

    /* Акценты */
    --accent:       #a82a2e;     /* глубокий красный */
    --accent-hover: #8e2326;     /* темнее при hover */
    --gold:         #b8963f;     /* золотой */
    --gold-light:   #d4a95a;     /* светлое золото */

    /* Скругления */
    --radius:    12px;
    --radius-sm: 8px;

    /* Тени */
    --shadow:    0 2px 12px rgba(42, 37, 32, 0.06);
    --shadow-lg: 0 12px 32px rgba(42, 37, 32, 0.12);

    /* Шрифты */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ============================================================ */
/* 1. RESET                                                      */
/* ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-y: scroll;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
    display: block;
}

ol, ul {
    list-style: none;
}

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

a {
    background-color: transparent;
    text-decoration: none;
    color: inherit;
}

a:hover,
a:active {
    outline: 0;
}

a:focus {
    outline: thin dotted;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
    margin: 0;
}

button {
    cursor: pointer;
    overflow: visible;
    background: none;
    border: none;
    text-transform: none;
    -webkit-appearance: button;
}

button[disabled] {
    cursor: default;
}

input[type="checkbox"],
input[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

input[type="search"] {
    -webkit-appearance: textfield;
    box-sizing: content-box;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

textarea {
    overflow: auto;
    resize: vertical;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

caption, th, td {
    font-weight: 400;
    text-align: left;
}

hr {
    border: 0;
    height: 1px;
    background: #e8e0d5;
}

b, strong {
    font-weight: 700;
}

dfn, cite, em, i {
    font-style: italic;
}

small {
    font-size: 80%;
}

sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sup { top: -0.5em; }
sub { bottom: -0.25em; }

::selection {
    background-color: #a82a2e;
    color: #ffffff;
    text-shadow: none;
}

::-moz-selection {
    background-color: #a82a2e;
    color: #ffffff;
    text-shadow: none;
}

[hidden] {
    display: none;
}

/* ============================================================ */
/* 2. CLEARINGS & ACCESSIBILITY                                  */
/* ============================================================ */

/* Очистка потока — современный способ */
.clear {
    clear: both;
}

.clearfix::before,
.clearfix::after {
    content: "";
    display: table;
}

.clearfix::after {
    clear: both;
}

/* ============================================================ */
/* Доступность — скрытый текст для screen readers                */
/* (визуально скрыт, но доступен скринридерам)                    */
/* ============================================================ */
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Когда элемент в фокусе — показываем его (для навигации с клавиатуры) */
.screen-reader-text:focus {
    position: fixed;
    top: 8px;
    left: 8px;
    width: auto;
    height: auto;
    padding: 12px 20px;
    margin: 0;
    overflow: visible;
    clip: auto !important;
    background: var(--accent);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 16px rgba(168, 42, 46, 0.4);
    z-index: 100000;
    outline: none;
}

/* ============================================================ */
/* Фокус для навигации с клавиатуры                              */
/* ============================================================ */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* ============================================================ */
/* 3. FORMS                                                      */
/* ============================================================ */

/* -------- База для всех полей и кнопок -------- */
button,
input,
select,
textarea {
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    vertical-align: baseline;
    color: var(--fg);
}

/* ============================================================ */
/* Кнопки                                                        */
/* ============================================================ */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent);
    color: #ffffff;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    text-decoration: none;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(168, 42, 46, 0.3);
}

button:focus-visible,
input[type="button"]:focus-visible,
input[type="reset"]:focus-visible,
input[type="submit"]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

button:active,
input[type="button"]:active,
input[type="reset"]:active,
input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: none;
}

button[disabled],
input[type="submit"][disabled],
input[type="button"][disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    background: var(--fg-muted);
    transform: none;
    box-shadow: none;
}

/* ============================================================ */
/* Чекбоксы и радио                                              */
/* ============================================================ */
input[type="checkbox"],
input[type="radio"] {
    padding: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
    vertical-align: middle;
}

/* ============================================================ */
/* Поиск                                                         */
/* ============================================================ */
input[type="search"] {
    -webkit-appearance: textfield;
    appearance: textfield;
    box-sizing: border-box;
}

input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

/* ============================================================ */
/* Текстовые поля                                                */
/* ============================================================ */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px 16px;
    color: var(--fg);
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="url"]::placeholder,
input[type="password"]::placeholder,
input[type="search"]::placeholder,
input[type="number"]::placeholder,
input[type="tel"]::placeholder,
textarea::placeholder {
    color: var(--fg-muted);
    opacity: 1;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="url"]:hover,
input[type="password"]:hover,
input[type="search"]:hover,
input[type="number"]:hover,
input[type="tel"]:hover,
textarea:hover {
    border-color: rgba(168, 42, 46, 0.3);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus {
    color: var(--fg);
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(168, 42, 46, 0.12);
}

input[type="text"]:disabled,
input[type="email"]:disabled,
input[type="url"]:disabled,
input[type="password"]:disabled,
input[type="search"]:disabled,
textarea:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--bg-alt);
}

/* ============================================================ */
/* Select — системный, но приводим к общему стилю                */
/* ============================================================ */
select {
    width: 100%;
    padding: 12px 16px;
    color: var(--fg);
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6359' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

select:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(168, 42, 46, 0.12);
}

/* ============================================================ */
/* Textarea                                                      */
/* ============================================================ */
textarea {
    overflow: auto;
    resize: vertical;
    min-height: 120px;
    vertical-align: top;
    font-family: inherit;
    line-height: 1.6;
}

/* ============================================================ */
/* 4. TYPOGRAPHY & ELEMENTS                                      */
/* ============================================================ */

/* -------- Body -------- */
body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

body, button, input, select, textarea {
    color: var(--fg);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

button, select {
    max-width: 100%;
}

/* -------- Ссылки -------- */
a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* -------- Заголовки -------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--fg);
    font-weight: 700;
    line-height: 1.2;
    clear: both;
    letter-spacing: -0.3px;
}

h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 0.5em;
    letter-spacing: -0.5px;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin: 1.5em 0 0.6em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid var(--stroke);
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 1.4em 0 0.5em;
}

h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 1.3em 0 0.4em;
}

h5 {
    font-size: 1rem;
    font-weight: 700;
    margin: 1.2em 0 0.4em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--fg-secondary);
}

h6 {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 1.2em 0 0.4em;
    color: var(--fg-secondary);
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    color: inherit;
    font-weight: inherit;
}

h1 a:hover, h2 a:hover, h3 a:hover,
h4 a:hover, h5 a:hover, h6 a:hover {
    color: var(--accent);
}

/* -------- Параграфы -------- */
p {
    margin: 0 0 1.1em;
    line-height: 1.75;
}

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

/* -------- Цитаты -------- */
blockquote {
    position: relative;
    margin: 28px 0;
    padding: 24px 28px 24px 32px;
    background: var(--bg-alt);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--fg-secondary);
    font-style: italic;
}

blockquote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 14px;
    font-family: var(--font-serif);
    font-size: 3rem;
    line-height: 1;
    color: var(--accent);
    opacity: 0.25;
}

blockquote p {
    margin: 0 0 0.8em;
    font-family: inherit;
    line-height: 1.7;
}

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

blockquote cite {
    display: block;
    margin-top: 12px;
    font-size: 0.9rem;
    font-style: normal;
    color: var(--fg-muted);
}

blockquote cite::before {
    content: '— ';
}

/* -------- Address -------- */
address {
    margin: 0 0 1.5em;
    font-style: italic;
    color: var(--fg-secondary);
}

/* -------- Код и pre -------- */
code,
kbd,
tt,
var {
    font-family: 'Monaco', 'Consolas', 'Menlo', monospace;
    font-size: 0.9em;
    background: var(--bg-alt);
    color: var(--accent);
    padding: 2px 6px;
    border-radius: 4px;
}

pre {
    background: #2a2520;
    color: #ece5d8;
    font-family: 'Monaco', 'Consolas', 'Menlo', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 24px 0;
    max-width: 100%;
    overflow: auto;
    padding: 20px 24px;
    border-radius: var(--radius-sm);
    border: 1px solid #3a332c;
    position: relative;
}

pre code {
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

/* -------- Аббревиатуры -------- */
abbr,
acronym {
    border-bottom: 1px dotted var(--fg-muted);
    cursor: help;
    text-decoration: none;
}

/* -------- Mark, ins -------- */
mark,
ins {
    background: #fff9c0;
    color: var(--fg);
    padding: 2px 4px;
    border-radius: 3px;
    text-decoration: none;
}

/* -------- Sub, sup -------- */
sup, sub {
    font-size: 75%;
    height: 0;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sup { bottom: 1ex; }
sub { top: 0.5ex; }

small { font-size: 75%; }
big { font-size: 125%; }

/* -------- HR -------- */
hr {
    background: var(--stroke);
    border: 0;
    height: 1px;
    margin: 32px 0;
}

/* -------- Списки -------- */
ul, ol {
    margin: 0 0 1.5em 0;
    padding-left: 0;
    list-style: none;
}

ul li,
ol li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    line-height: 1.7;
}

/* Маркер — квадрат с акцентом */
ul li::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0.7em;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
}

/* Нумерованный — с цифрой в круге */
ol {
    counter-reset: dossier-counter;
}

ol li {
    counter-increment: dossier-counter;
}

ol li::before {
    content: counter(dossier-counter);
    position: absolute;
    left: 0;
    top: 0.15em;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    line-height: 1;
}

/* Вложенные списки */
li > ul,
li > ol {
    margin: 10px 0 0;
    padding-left: 0;
}

/* -------- Списки определений -------- */
dt {
    font-weight: 700;
    color: var(--fg);
    margin-bottom: 4px;
}

dd {
    margin: 0 0 16px 0;
    padding-left: 20px;
    color: var(--fg-secondary);
}

/* -------- Изображения и медиа -------- */
img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

figure {
    margin: 24px 0;
}

figure img {
    margin: 0 auto;
}

figcaption {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--fg-muted);
    text-align: center;
    font-style: italic;
}

embed,
iframe,
object,
video {
    max-width: 100%;
}

/* -------- Таблицы -------- */
table {
    margin: 24px 0;
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-sm);
    overflow: hidden;
    font-size: 0.95rem;
}

th {
    font-weight: 700;
    text-align: left;
}

thead th {
    background: var(--fg);
    color: #ffffff;
    padding: 14px 16px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

th,
td,
caption {
    padding: 12px 16px;
}

tbody tr {
    border-bottom: 1px solid var(--stroke);
    transition: background 0.15s ease;
}

tbody tr:last-child {
    border-bottom: none;
}

tbody tr:hover td {
    background: var(--bg-alt);
}

tbody td {
    color: var(--fg-secondary);
    vertical-align: top;
}

tr.even td {
    background: var(--bg-alt);
}

tfoot {
    font-style: italic;
    color: var(--fg-muted);
}

caption {
    background: var(--bg-alt);
    color: var(--fg-secondary);
    font-weight: 600;
    text-align: left;
}

/* ============================================================ */
/* 5. LAYOUT                                                     */
/* ============================================================ */

/* -------- Контейнер -------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 1276px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
}

/* ============================================================ */
/* Основной layout: 2 колонки (контент + сайдбар)               */
/* ============================================================ */
.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    padding: 40px 0 80px;
    align-items: start;
}

/* Контентная часть */
.content {
    min-width: 0;                /* важно: даёт сжиматься */
    word-wrap: break-word;
}

/* Сайдбар */
.sidebar {
    position: sticky;
    top: 96px;                   /* отступ от верха (высота шапки + 20px) */
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ============================================================ */
/* Модификатор: full-width (без сайдбара)                       */
/* ============================================================ */
.layout--full {
    grid-template-columns: 1fr;
    max-width: 800px;             /* комфортная ширина для чтения */
    margin: 0 auto;
}

.layout--full .sidebar {
    display: none;
}

/* ============================================================ */
/* Планшет: 2 колонки → 1                                      */
/* ============================================================ */
@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px 0 60px;
    }

    .sidebar {
        position: static;
        top: auto;
    }
}

@media (max-width: 480px) {
    .layout {
        gap: 24px;
        padding: 24px 0 40px;
    }
}

/* ============================================================ */
/* Утилитарные классы для быстрой верстки                       */
/* ============================================================ */

/* Обёртка страницы — на всю высоту экрана */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Основной контент растягивается, футер прижат к низу */
.page-wrapper main {
    flex: 1;
}

/* Сетка карточек (для статей, галерей) */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Сетка из 2 колонок */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 640px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Сетка из 3 колонок */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Секция с вертикальными отступами */
.section {
    padding: 48px 0;
}

.section--tight {
    padding: 24px 0;
}

.section--large {
    padding: 80px 0;
}

/* ============================================================ */
/* Отступы (утилитарные)                                        */
/* ============================================================ */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.text-center { text-align: center; }
.text-right { text-align: right; }

/* ============================================================ */
/* 6. HEADER                                                     */
/* ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--stroke);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(42, 37, 32, 0.06);
}

/* -------- Внутренний ряд -------- */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
    padding: 12px 0;
}

/* ============================================================ */
/* Логотип                                                       */
/* ============================================================ */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.85;
}

.logo-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    color: #ffffff;
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.5px;
    box-shadow: 0 4px 14px rgba(168, 42, 46, 0.3);
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0;
}

.logo-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--fg);
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.logo-subtitle {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--fg-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 2px;
    white-space: nowrap;
}

/* ============================================================ */
/* Рекламный баннер в шапке (опционально)                       */
/* ============================================================ */
.header-banner {
    flex: 1;
    max-width: 728px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

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

/* ============================================================ */
/* Навигация в шапке                                             */
/* ============================================================ */
.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.header-nav a {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--fg-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.header-nav a:hover {
    color: var(--accent);
    background: rgba(168, 42, 46, 0.06);
}

.header-nav a.is-active {
    color: #ffffff;
    background: var(--accent);
}

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

/* Планшет — баннер прячем, оставляем логотип и навигацию */
@media (max-width: 1100px) {
    .header-banner {
        display: none;
    }
}

@media (max-width: 900px) {
    .header-nav a {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}

/* Мобилка — компактнее логотип, навигация переносится */
@media (max-width: 768px) {
    .header-inner {
        min-height: 64px;
        gap: 12px;
        flex-wrap: wrap;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 19px;
        border-radius: 9px;
    }

    .logo-title {
        font-size: 1.2rem;
    }

    .logo-subtitle {
        font-size: 0.62rem;
        letter-spacing: 1px;
    }

    .header-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 2px;
        padding-top: 8px;
        border-top: 1px solid var(--stroke);
    }

    .header-nav a {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .logo-subtitle {
        display: none;
    }

    .logo-title {
        font-size: 1.1rem;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .header-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }

    .header-nav a {
        text-align: center;
        font-size: 0.75rem;
        padding: 8px 4px;
    }
}

/* ============================================================ */
/* 7. MENU — единое меню в шапке                                 */
/* ============================================================ */

/* ============================================================ */
/* Основное меню (в шапке)                                      */
/* ============================================================ */
.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.nav a {
    display: block;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--fg-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.nav a:hover {
    color: var(--accent);
    background: rgba(168, 42, 46, 0.06);
}

.nav a.is-active {
    color: #ffffff;
    background: var(--accent);
    box-shadow: 0 2px 8px rgba(168, 42, 46, 0.25);
}

/* ============================================================ */
/* Выпадающее подменю                                            */
/* ============================================================ */
.nav-item {
    position: relative;
}

.nav-item.has-children > a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-left: 8px;
    margin-bottom: 2px;
    transition: transform 0.2s ease;
}

.nav-item.has-children:hover > a::after {
    transform: rotate(-135deg);
    margin-bottom: -2px;
}

.nav-submenu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 32px rgba(42, 37, 32, 0.12);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 200;
    list-style: none;
}

.nav-item:hover > .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-submenu a {
    display: block;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.88rem;
    color: var(--fg-secondary);
    white-space: normal;
}

.nav-submenu a:hover {
    color: var(--accent);
    background: var(--bg-alt);
}

/* ============================================================ */
/* Мобильное меню — кнопка-гамбургер                             */
/* ============================================================ */
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    border: 1px solid var(--stroke);
    cursor: pointer;
    place-items: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.nav-toggle:hover {
    background: var(--card);
    border-color: var(--accent);
}

.nav-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 20px;
}

.nav-toggle-icon span {
    display: block;
    height: 2px;
    background: var(--fg);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Открытое состояние гамбургера */
.nav-toggle.is-open .nav-toggle-icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-icon span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open .nav-toggle-icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

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

/* Планшет — прячем часть пунктов */
@media (max-width: 1100px) {
    .nav a.hide-1100 {
        display: none;
    }
}

@media (max-width: 980px) {
    .nav a.hide-980 {
        display: none;
    }
}

@media (max-width: 860px) {
    .nav a.hide-860 {
        display: none;
    }
}

/* Мобилка — гамбургер + выпадающее меню */
@media (max-width: 768px) {
    .nav-toggle {
        display: grid;
    }

    .nav {
        display: none;                /* скрыто по умолчанию */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card);
        border-top: 1px solid var(--stroke);
        border-bottom: 1px solid var(--stroke);
        padding: 12px 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        box-shadow: 0 8px 24px rgba(42, 37, 32, 0.08);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        z-index: 99;
    }

    .nav.is-open {
        display: flex;
    }

    .nav a {
        padding: 12px 16px;
        font-size: 0.95rem;
        border-radius: 8px;
    }

    /* Все скрытые классы снова видны */
    .nav a.hide-1100,
    .nav a.hide-980,
    .nav a.hide-860 {
        display: block;
    }

    /* Подменю на мобилке — раскрывается вниз */
    .nav-item.has-children > a::after {
        float: right;
        margin-top: 8px;
    }

    .nav-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--bg-alt);
        padding: 4px;
        margin-top: 4px;
        display: none;
    }

    .nav-item.is-open > .nav-submenu {
        display: block;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 10px 14px;
    }

    .nav a {
        padding: 10px 12px;
        font-size: 0.88rem;
    }
}

/* ============================================================ */
/* 8. POSTS & PAGES                                              */
/* ============================================================ */

/* ============================================================ */
/* 8.1. Заголовок секции / страницы                              */
/* ============================================================ */
.page-header {
    text-align: center;
    margin: 0 0 32px;
    padding: 24px 20px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border-bottom: 2px solid var(--accent);
}

.page-header h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--fg);
    line-height: 1.2;
    margin: 0 0 8px;
    letter-spacing: -0.3px;
}

.page-header .page-description,
.taxonomy-description {
    color: var(--fg-secondary);
    font-size: 1rem;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

.no-results {
    padding: 40px 20px;
    text-align: center;
    color: var(--fg-secondary);
    background: var(--card);
    border: 1px dashed var(--stroke);
    border-radius: var(--radius);
}

/* ============================================================ */
/* 8.2. Список постов (карточки в списке)                        */
/* ============================================================ */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* -------- Карточка поста в списке -------- */
.post-card {
    display: block;
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 28px 32px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent), var(--gold));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-card:hover::before {
    opacity: 1;
}

.post-card:hover {
    background: var(--card-hover);
    border-color: rgba(168, 42, 46, 0.25);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Бейдж категории */
.post-card__tag {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 12px;
}

/* Заголовок карточки */
.post-card__title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--fg);
    line-height: 1.25;
    margin: 0 0 12px;
    letter-spacing: -0.3px;
    transition: color 0.2s ease;
}

.post-card:hover .post-card__title {
    color: var(--accent);
}

.post-card__title a {
    color: inherit;
    text-decoration: none;
}

/* Описание */
.post-card__excerpt {
    font-size: 0.98rem;
    color: var(--fg-secondary);
    line-height: 1.65;
    margin: 0 0 16px;
}

.post-card__excerpt p {
    margin: 0;
}

/* Мета */
.post-card__meta {
    display: flex;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--stroke);
    font-size: 0.8rem;
    color: var(--fg-muted);
    flex-wrap: wrap;
}

.post-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Ссылка "Читать дальше" */
.post-card__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.2s ease;
}

.post-card:hover .post-card__more {
    gap: 10px;
}

/* ============================================================ */
/* 8.3. Одиночная статья (страница статьи)                       */
/* ============================================================ */
.post-single {
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 40px 48px;
    box-shadow: var(--shadow);
}

@media (max-width: 640px) {
    .post-single {
        padding: 28px 24px;
    }
}

/* -------- Заголовок статьи -------- */
.entry-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--stroke);
}

.entry-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--fg);
    line-height: 1.2;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
    text-align: left;
}

.entry-title a {
    color: inherit;
    text-decoration: none;
}

.entry-title a:hover {
    color: var(--accent);
}

/* -------- Мета статьи -------- */
.entry-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--fg-muted);
    margin: 0;
}

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

.entry-meta a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.entry-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.entry-meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--fg-muted);
    align-self: center;
    opacity: 0.6;
}

/* -------- Обложка статьи -------- */
.post-thumbnail {
    display: block;
    margin: 0 0 32px;
    border-radius: var(--radius);
    overflow: hidden;
}

.post-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
}

/* -------- Контент статьи -------- */
.entry-content {
    position: relative;
    line-height: 1.75;
    color: var(--fg);
}

.entry-content > p {
    margin-bottom: 1.2em;
}

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

/* Ссылки в тексте статьи */
.entry-content a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dashed rgba(168, 42, 46, 0.4);
    transition: all 0.2s ease;
}

.entry-content a:hover {
    color: var(--accent-hover);
    border-bottom-style: solid;
    border-bottom-color: var(--accent-hover);
}

/* Списки в статье (перебиваем общий стиль) */
.entry-content ul,
.entry-content ol {
    margin: 20px 0 24px;
    padding-left: 0;
}

.entry-content ul li,
.entry-content ol li {
    padding-left: 28px;
    margin-bottom: 10px;
    position: relative;
}

.entry-content ul li::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0.7em;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
}

.entry-content ol {
    counter-reset: post-counter;
}

.entry-content ol li {
    counter-increment: post-counter;
}

.entry-content ol li::before {
    content: counter(post-counter);
    position: absolute;
    left: 0;
    top: 0.15em;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    line-height: 1;
}

/* Вложенные списки */
.entry-content li > ul,
.entry-content li > ol {
    margin: 10px 0 0;
}

/* Цитаты в статье */
.entry-content blockquote {
    margin: 28px 0;
    padding: 24px 28px 24px 32px;
    background: var(--bg-alt);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 1.05rem;
    font-style: italic;
    color: var(--fg-secondary);
    position: relative;
}

.entry-content blockquote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 14px;
    font-family: var(--font-serif);
    font-size: 3rem;
    line-height: 1;
    color: var(--accent);
    opacity: 0.2;
}

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

.entry-content blockquote cite {
    display: block;
    margin-top: 12px;
    font-size: 0.9rem;
    font-style: normal;
    color: var(--fg-muted);
}

.entry-content blockquote cite::before {
    content: '— ';
}

/* Код в тексте */
.entry-content code {
    background: var(--bg-alt);
    color: var(--accent);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9em;
}

.entry-content pre {
    background: #2a2520;
    color: #ece5d8;
    padding: 20px 24px;
    border-radius: var(--radius-sm);
    overflow: auto;
    margin: 24px 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.entry-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Таблицы в статье */
.entry-content table {
    width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-sm);
    overflow: hidden;
    font-size: 0.95rem;
}

.entry-content thead th {
    background: var(--fg);
    color: #fff;
    padding: 14px 16px;
    text-align: left;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.entry-content tbody td {
    padding: 12px 16px;
    border-top: 1px solid var(--stroke);
    color: var(--fg-secondary);
    vertical-align: top;
}

.entry-content tbody tr:nth-child(2n) td {
    background: var(--bg-alt);
}

.entry-content tbody tr:hover td {
    background: rgba(168, 42, 46, 0.04);
}

.entry-content caption {
    background: var(--bg-alt);
    color: var(--fg-secondary);
    padding: 12px 16px;
    font-weight: 600;
    text-align: left;
}

/* Изображения в статье */
.entry-content img {
    display: block;
    margin: 24px auto;
    border-radius: var(--radius-sm);
    max-width: 100%;
    height: auto;
}

/* -------- Футер статьи -------- */
.entry-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--stroke);
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 0.88rem;
    color: var(--fg-muted);
}

/* ============================================================ */
/* 8.4. Навигация между постами (пред/след)                      */
/* ============================================================ */
.post-navigation {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--stroke);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    padding: 20px 24px;
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
    border-color: var(--accent);
    background: var(--bg-alt);
    transform: translateY(-2px);
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation .nav-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--fg-muted);
    margin-bottom: 6px;
}

.post-navigation .nav-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--fg);
    line-height: 1.3;
}

@media (max-width: 600px) {
    .post-navigation {
        grid-template-columns: 1fr;
    }
    .post-navigation .nav-next {
        text-align: left;
    }
}

/* ============================================================ */
/* 8.5. Служебные классы                                         */
/* ============================================================ */
.sticky {
    border-color: var(--accent);
    border-width: 2px;
}

.byline {
    font-size: 0.85rem;
    color: var(--fg-muted);
}

.updated:not(.published) {
    display: none;
}

/* ============================================================ */
/* 9. PAGE LINKS, NAVIGATION, COMMENTS, GALLERIES                */
/* ============================================================ */

/* ============================================================ */
/* 9.1. Пагинация статьи (1, 2, 3...)                           */
/* ============================================================ */
.page-links {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 24px 0;
    padding: 6px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    flex-wrap: wrap;
}

.page-links > span,
.page-links > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--fg-secondary);
    background: var(--card);
    border: 1px solid var(--stroke);
    transition: all 0.2s ease;
}

.page-links > a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--card-hover);
    transform: translateY(-1px);
}

.page-links > span.current,
.page-links > span:not(.page-links-title) {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(168, 42, 46, 0.25);
}

.page-links span.page-links-title {
    background: transparent;
    border: none;
    color: var(--fg-muted);
    font-weight: 500;
    min-width: auto;
    padding: 0 8px;
}

/* ============================================================ */
/* 9.2. Пагинация списка постов (номер страниц)                  */
/* ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 40px 0 20px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--fg-secondary);
    background: var(--card);
    border: 1px solid var(--stroke);
    transition: all 0.2s ease;
}

.pagination a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--card-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 42, 46, 0.12);
}

.pagination .current,
.pagination span.current {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(168, 42, 46, 0.25);
    cursor: default;
}

.pagination .dots {
    border: none;
    background: transparent;
    color: var(--fg-muted);
    cursor: default;
}

.pagination .prev,
.pagination .next {
    padding: 0 18px;
    font-weight: 600;
}

/* ============================================================ */
/* 9.3. Облако тегов                                            */
/* ============================================================ */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.tag-cloud a,
.tag-cloud-link {
    display: inline-block;
    padding: 8px 14px;
    background: var(--card);
    color: var(--fg-secondary);
    border: 1px solid var(--stroke);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.2;
}

.tag-cloud a:hover,
.tag-cloud-link:hover {
    color: #ffffff;
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 42, 46, 0.25);
}

/* Теги в статье (под текстом) */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--stroke);
}

.post-tags a {
    display: inline-block;
    padding: 6px 12px;
    background: var(--bg-alt);
    color: var(--fg-secondary);
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.post-tags a::before {
    content: '#';
    margin-right: 2px;
    opacity: 0.5;
}

.post-tags a:hover {
    background: var(--accent);
    color: #ffffff;
}

/* ============================================================ */
/* 9.4. Выравнивание изображений в статьях                       */
/* ============================================================ */
img.centered,
img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 24px;
    margin-bottom: 24px;
    border-radius: var(--radius-sm);
    max-width: 100%;
    height: auto;
}

img.alignnone {
    display: block;
    margin: 24px 0;
    border-radius: var(--radius-sm);
    max-width: 100%;
    height: auto;
}

img.alignleft {
    float: left;
    margin: 8px 24px 16px 0;
    border-radius: var(--radius-sm);
    max-width: 50%;
    height: auto;
}

img.alignright {
    float: right;
    margin: 8px 0 16px 24px;
    border-radius: var(--radius-sm);
    max-width: 50%;
    height: auto;
}

/* Очистка обтекания после float-изображений */
.entry-content::after,
.post-content::after {
    content: '';
    display: table;
    clear: both;
}

@media (max-width: 600px) {
    img.alignleft,
    img.alignright {
        float: none;
        display: block;
        margin: 24px auto;
        max-width: 100%;
    }
}

/* ============================================================ */
/* 9.5. Подписи к изображениям                                   */
/* ============================================================ */
.figure-caption,
.wp-caption {
    display: block;
    max-width: 100%;
    margin: 0 auto 24px;
    text-align: center;
    background: var(--bg-alt);
    padding: 10px 14px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--stroke);
}

.figure-caption img,
.wp-caption img {
    display: block;
    margin: 0 auto 8px;
    border-radius: 6px;
}

.figure-caption .caption-text,
.wp-caption .wp-caption-text {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--fg-muted);
    font-style: italic;
}

/* ============================================================ */
/* 9.6. Галереи (для статей с фото)                              */
/* ============================================================ */
.gallery {
    display: grid;
    gap: 12px;
    margin: 24px 0;
}

.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }
.gallery-columns-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 768px) {
    .gallery-columns-4,
    .gallery-columns-5,
    .gallery-columns-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-columns-2,
    .gallery-columns-3,
    .gallery-columns-4,
    .gallery-columns-5,
    .gallery-columns-6 {
        grid-template-columns: 1fr;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    margin: 0;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* ============================================================ */
/* 9.7. Комментарии (чистая разметка, без WP)                    */
/* ============================================================ */
.comments-area {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--stroke);
}

.comments-title,
.comment-reply-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--fg);
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
    position: relative;
    letter-spacing: -0.3px;
}

.comments-title::after,
.comment-reply-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--gold);
}

.comment-list {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
}

.comment-list ol.children {
    list-style: none;
    margin: 16px 0 0 32px;
    padding: 0;
}

@media (max-width: 600px) {
    .comment-list ol.children {
        margin-left: 16px;
    }
}

.comment-body {
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin-bottom: 16px;
    transition: border-color 0.2s ease;
}

.comment-body:hover {
    border-color: rgba(168, 42, 46, 0.25);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--fg);
    font-size: 0.95rem;
}

.comment-author .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

.comment-metadata {
    font-size: 0.8rem;
    color: var(--fg-muted);
    margin-left: auto;
}

.comment-metadata a {
    color: var(--fg-muted);
    text-decoration: none;
}

.comment-metadata a:hover {
    color: var(--accent);
}

.comment-content {
    color: var(--fg-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

.comment-content p {
    margin-bottom: 12px;
}

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

.reply {
    margin-top: 12px;
    font-size: 0.85rem;
}

.reply a,
.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.reply a:hover,
.comment-reply-link:hover {
    color: var(--accent-hover);
    gap: 8px;
}

/* -------- Форма комментария -------- */
.comment-respond {
    background: var(--bg-alt);
    padding: 24px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
}

.comment-respond p {
    margin-bottom: 16px;
    color: var(--fg-secondary);
    font-size: 0.9rem;
}

.comment-form label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    margin-bottom: 16px;
}

.comment-form .submit,
.comment-form input[type="submit"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comment-form .submit:hover,
.comment-form input[type="submit"]:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(168, 42, 46, 0.3);
}

.comment-form .form-allowed-tags,
.comment-form .comment-notes {
    font-size: 0.82rem;
    color: var(--fg-muted);
    margin-bottom: 16px;
}

/* ============================================================ */
/* 9.8. Кнопка "наверх"                                          */
/* ============================================================ */
/* ============================================================ */
/* 9.8. Кнопка "наверх"                                          */
/* ============================================================ */
.scroll-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    border: none;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(168, 42, 46, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 90;
    text-decoration: none;

    /* Скрыта по умолчанию */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
}

/* Показать когда .is-visible */
.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.scroll-top:hover {
    background: var(--accent-hover);
    color: #ffffff;               /* ← фиксируем белый цвет стрелки */
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(168, 42, 46, 0.5);
}

.scroll-top:active {
    background: var(--accent);
    color: #ffffff;               /* ← и на active тоже */
    transform: translateY(-2px) scale(1);
}

.scroll-top:focus,
.scroll-top:focus-visible {
    color: #ffffff;               /* ← и в фокусе */
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.scroll-top svg {
    display: block;
    transition: transform 0.2s ease;
}

.scroll-top:hover svg {
    transform: translateY(-2px);
}

/* Мобилка */
@media (max-width: 480px) {
    .scroll-top {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }
    .scroll-top svg {
        width: 18px;
        height: 18px;
    }
}

/* ============================================================ */
/* 10. SIDEBAR, FOOTER, SOCIAL, SEARCH                           */
/* ============================================================ */

/* ============================================================ */
/* 10.1. Сайдбар — блоки                                     */
/* ============================================================ */
.side-block {
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    position: relative;
}

.side-block + .side-block {
    margin-top: 20px;
}

/* Заголовок блока */
.side-block h3,
.side-block h4,
.side-block .widget-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--fg);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--stroke);
    position: relative;
    letter-spacing: -0.2px;
}

.side-block h3::after,
.side-block h4::after,
.side-block .widget-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* Списки в сайдбаре */
.side-block ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.side-block li {
    padding: 10px 0;
    border-bottom: 1px solid var(--stroke);
    font-size: 0.92rem;
    line-height: 1.5;
}

.side-block li:first-child {
    padding-top: 0;
}

.side-block li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

/* Вложенные списки в сайдбаре */
.side-block li li {
    padding: 6px 0 6px 12px;
    border-bottom: none;
}

/* Убиваем глобальный квадратик в сайдбаре */
.side-block li::before {
    content: none;
    display: none;
}

.side-block li li::before {
    content: '→';
    display: inline-block;
    position: static;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    margin-right: 6px;
    color: var(--accent);
    opacity: 0.6;
    transform: none;
    left: auto;
    top: auto;
    font-size: inherit;
}

/* Ссылки в сайдбаре */
.side-block a {
    color: var(--fg-secondary);
    text-decoration: none;
    display: block;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.side-block a:hover {
    color: var(--accent);
    padding-left: 4px;
}

/* Select в сайдбаре */
.side-block select {
    margin: 0;
    padding: 10px 14px;
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-sm);
    background: var(--card);
    color: var(--fg);
    font-size: 0.92rem;
    cursor: pointer;
}

/* ============================================================ */
/* 10.2. Виджет "Свежие записи"                                  */
/* ============================================================ */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.recent-post-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--stroke);
}

.recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-item:first-child {
    padding-top: 0;
}

.recent-post-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-alt);
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.recent-post-info {
    flex: 1;
    min-width: 0;
}

.recent-post-info a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--fg);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-post-info a:hover {
    color: var(--accent);
}

.recent-post-date {
    font-size: 0.75rem;
    color: var(--fg-muted);
    margin-top: 4px;
    display: block;
}

/* ============================================================ */
/* 10.3. Виджет "Рубрики" / Категории                            */
/* ============================================================ */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.categories-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.categories-list .count {
    font-size: 0.75rem;
    background: var(--bg-alt);
    color: var(--fg-muted);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.categories-list a:hover .count {
    background: var(--accent);
    color: #fff;
}

/* ============================================================ */
/* 10.4. Виджет "Поиск"                                          */
/* ============================================================ */
.search-form {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(168, 42, 46, 0.12);
}

.search-form input[type="search"],
.search-form input[type="text"] {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: var(--fg);
    outline: none;
    width: 100%;
    min-width: 0;
}

.search-form input::placeholder {
    color: var(--fg-muted);
}

.search-form button {
    flex-shrink: 0;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 18px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.search-form button:hover {
    background: var(--accent-hover);
}

/* ============================================================ */
/* 10.5. Overlay-поиск (по клику на иконку)                     */
/* ============================================================ */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 14, 12, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-overlay.is-open {
    display: flex;
    opacity: 1;
}

.search-overlay-content {
    position: relative;
    width: 90%;
    max-width: 600px;
}

.search-overlay .search-form {
    background: var(--card);
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border-radius: var(--radius);
    overflow: hidden;
}

.search-overlay .search-form input {
    padding: 20px 24px;
    font-size: 1.1rem;
}

.search-overlay .search-form button {
    padding: 20px 28px;
}

.search-overlay-close {
    position: absolute;
    top: -60px;
    right: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.2s ease;
}

.search-overlay-close:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: rotate(90deg);
}

@media (max-width: 480px) {
    .search-overlay { padding-top: 80px; }
    .search-overlay-close { top: -50px; }
}

/* ============================================================ */
/* 10.6. Социальные иконки — только нужные                       */
/* ============================================================ */
.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.social-icons a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-alt);
    color: var(--fg-secondary);
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid var(--stroke);
}

.social-icons a:hover {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Индивидуальные цвета — только популярные */
.social-icons a.social-vk       { background: #0077FF; color: #fff; border-color: transparent; }
.social-icons a.social-tg       { background: #0088CC; color: #fff; border-color: transparent; }
.social-icons a.social-tiktok   { background: #000000; color: #fff; border-color: transparent; }
.social-icons a.social-youtube  { background: #FF0000; color: #fff; border-color: transparent; }
.social-icons a.social-rss      { background: #EE802F; color: #fff; border-color: transparent; }

.social-icons a.social-vk:hover      { background: #005fcc; }
.social-icons a.social-tg:hover      { background: #006699; }
.social-icons a.social-tiktok:hover  { background: #1a1a1a; }
.social-icons a.social-youtube:hover { background: #cc0000; }
.social-icons a.social-rss:hover     { background: #cc6b26; }

/* ============================================================ */
/* 10.7. Подписка на обновления (форма)                          */
/* ============================================================ */
.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.subscribe-form input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-sm);
    background: var(--card);
    font-size: 0.95rem;
    color: var(--fg);
    transition: all 0.2s ease;
}

.subscribe-form input[type="email"]:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(168, 42, 46, 0.12);
}

.subscribe-form button {
    padding: 12px 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.subscribe-form button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(168, 42, 46, 0.3);
}

/* ============================================================ */
/* 10.8. Адаптив                                                */
/* ============================================================ */
@media (max-width: 900px) {
    .side-block {
        padding: 20px;
    }

    .side-block h3,
    .side-block h4 {
        font-size: 1.05rem;
    }
}

/* ============================================================ */
/* 11. DOSSIER — ЭСТЕТИКА РАССЛЕДОВАНИЯ                          */
/* ============================================================ */

/* ============================================================ */
/* 11.1. Шапка выпуска (Hero досье)                              */
/* ============================================================ */
.dossier-hero {
    position: relative;
    padding: 72px 0 56px;
    border-bottom: 3px double var(--stroke);
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
    overflow: hidden;
}

/* Миллиметровка — почти незаметная */
.dossier-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(168, 42, 46, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 42, 46, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
}

/* Водяной знак «DOSSIER» — как штамп на папке */
.dossier-hero::after {
    content: 'DOSSIER';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-18deg);
    transform-origin: center;
    font-family: var(--font-serif);
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 900;
    font-style: italic;
    letter-spacing: 8px;
    color: transparent;
    -webkit-text-stroke: 2px rgba(168, 42, 46, 0.09);
    text-stroke: 2px rgba(168, 42, 46, 0.09);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    z-index: 0;
    line-height: 1;
}

/* На планшете и меньше — прячем */
@media (max-width: 1100px) {
    .dossier-hero::after {
        display: none;
    }
}

.dossier-hero .container {
    position: relative;
    z-index: 1;
    max-width: 880px;         /* ← ключевое: контент не растягивается */
}

/* Верхняя строка: номер дела + статус — компактно */
.dossier-hero__top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.dossier-hero__number {
    font-family: 'JetBrains Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #fff;
    padding: 8px 16px;
    background: var(--accent);
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(168, 42, 46, 0.25);
    line-height: 1;
}

.dossier-hero__status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--fg-secondary);
    padding: 8px 14px;
    border: 1px solid var(--stroke);
    border-radius: 4px;
    background: var(--card);
    line-height: 1;
}

.dossier-hero__status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(168, 42, 46, 0.15);
    animation: pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 3px rgba(168, 42, 46, 0.15); }
    50%      { box-shadow: 0 0 0 8px rgba(168, 42, 46, 0.04); }
}

/* Заголовок */
.dossier-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -1px;
    color: var(--fg);
    margin-bottom: 24px;
}

.dossier-hero h1 em {
    font-style: italic;
    color: var(--accent);
    font-weight: 800;
}

/* Лид */
.dossier-hero__lead {
    font-size: 1.15rem;
    color: var(--fg-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 640px;
}

/* Мета — компактная строка-плашка, а не 4 растянутые колонки */
.dossier-hero__meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 14px 20px;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-sm);
    background: var(--card);
    box-shadow: var(--shadow);
    font-family: 'JetBrains Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--fg-muted);
}

.dossier-hero__meta > div {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 0 16px;
    border-right: 1px solid var(--stroke);
    line-height: 1;
}

.dossier-hero__meta > div:first-child {
    padding-left: 0;
}

.dossier-hero__meta > div:last-child {
    padding-right: 0;
    border-right: none;
}

.dossier-hero__meta strong {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--fg);
    letter-spacing: -0.3px;
    text-transform: none;
}

@media (max-width: 640px) {
    .dossier-hero {
        padding: 48px 0 36px;
    }
    .dossier-hero__meta {
        display: flex;
        width: 100%;
        padding: 12px 16px;
        gap: 12px;
    }
    .dossier-hero__meta > div {
        padding: 0;
        border-right: none;
        gap: 6px;
    }
    .dossier-hero__meta > div:not(:last-child)::after {
        content: '·';
        color: var(--stroke);
        margin-left: 6px;
    }
}

/* ============================================================ */
/* 11.2. Навигация по разделам (архив)                           */
/* ============================================================ */
.archive-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 0 40px;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-sm);
    background: var(--card);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.archive-nav a {
    flex: 1;
    min-width: 140px;
    padding: 18px 22px;
    font-family: 'JetBrains Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--fg-secondary);
    text-align: center;
    border-right: 1px solid var(--stroke);
    transition: all 0.2s ease;
    position: relative;
}

.archive-nav a:last-child {
    border-right: none;
}

.archive-nav a:hover {
    color: var(--accent);
    background: var(--bg-alt);
}

.archive-nav a.is-active {
    color: #fff;
    background: var(--accent);
}

.archive-nav a.is-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold);
}

@media (max-width: 640px) {
    .archive-nav a {
        min-width: 50%;
        border-bottom: 1px solid var(--stroke);
        padding: 14px 12px;
        font-size: 0.75rem;
    }
}

/* ============================================================ */
/* 11.3. Карточка статьи — «папка с делом»                        */
/* ============================================================ */
.case-file {
    display: block;
    position: relative;
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 40px 44px 32px 52px;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Корешок дела */
.case-file::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, var(--accent), var(--gold));
    transition: width 0.3s ease;
}

.case-file:hover {
    background: var(--card-hover);
    border-color: rgba(168, 42, 46, 0.35);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.case-file:hover::before {
    width: 10px;
}

/* Верхняя строка */
.case-file__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px dashed var(--stroke);
    flex-wrap: wrap;
}

.case-file__number {
    font-family: 'JetBrains Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--fg-secondary);
}

.case-file__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    padding: 6px 14px;
    border: 1.5px solid rgba(168, 42, 46, 0.35);
    border-radius: 4px;
    background: rgba(168, 42, 46, 0.06);
}

.case-file__tag::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(168, 42, 46, 0.15);
}

/* Заголовок — крупный */
.case-file__title {
    font-family: var(--font-serif);
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--fg);
    line-height: 1.2;
    letter-spacing: -0.6px;
    margin-bottom: 18px;
    transition: color 0.2s ease;
}

.case-file:hover .case-file__title {
    color: var(--accent);
}

.case-file__title a {
    color: inherit;
}

/* Описание */
.case-file__excerpt {
    font-size: 1.08rem;
    color: var(--fg-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.case-file__excerpt p {
    margin: 0;
}

/* Футер */
.case-file__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid var(--stroke);
}

.case-file__meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    font-family: 'JetBrains Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.78rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--fg-muted);
    font-weight: 500;
}

.case-file__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.case-file__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    color: #fff;
    background: var(--accent);
    padding: 10px 18px;
    border-radius: 4px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(168, 42, 46, 0.2);
}

.case-file__more::after {
    content: '→';
    transition: transform 0.2s ease;
}

.case-file:hover .case-file__more {
    background: var(--accent-hover);
    box-shadow: 0 6px 18px rgba(168, 42, 46, 0.35);
}

.case-file:hover .case-file__more::after {
    transform: translateX(4px);
}

@media (max-width: 640px) {
    .case-file {
        padding: 28px 24px 24px 32px;
    }
    .case-file::before {
        width: 5px;
    }
    .case-file__title {
        font-size: 1.45rem;
    }
    .case-file__excerpt {
        font-size: 1rem;
    }
    .case-file__footer {
        flex-direction: column;
        align-items: stretch;
    }
    .case-file__more {
        justify-content: center;
    }
}

/* ============================================================ */
/* 11.4. Список дел                                              */
/* ============================================================ */
.case-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.case-list__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--stroke);
    flex-wrap: wrap;
}

.case-list__title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--fg);
    letter-spacing: -0.5px;
    position: relative;
    padding-left: 16px;
}

.case-list__title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.2em;
    bottom: 0.2em;
    width: 5px;
    background: linear-gradient(180deg, var(--accent), var(--gold));
    border-radius: 2px;
}

.case-list__count {
    font-family: 'JetBrains Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--fg-muted);
    font-weight: 600;
}

/* ============================================================ */
/* 11.5. Сайдбар — «навигация по делу»                           */
/* ============================================================ */
.side-block__label {
    display: inline-block;
    font-family: 'JetBrains Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(168, 42, 46, 0.07);
    padding: 4px 10px;
    border-radius: 3px;
    margin-bottom: 10px;
}

/* Увеличиваем заголовки сайдбара */
.side-block h3 {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin-bottom: 20px;
    padding-bottom: 14px;
}

.side-block h3::after {
    width: 50px;
    height: 3px;
}

.side-block li {
    font-size: 1rem;
    padding: 12px 0;
}

.side-block a {
    font-weight: 500;
}

/* ============================================================ */
/* 11.6. Разделитель с золотом                                   */
/* ============================================================ */
.divider-gold {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 40px 0;
    color: var(--fg-muted);
    font-family: 'JetBrains Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.78rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
}

.divider-gold::before,
.divider-gold::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ============================================================ */
/* 11.7. Статус-бейдж («Активное дело» / «Архив» / «Новое»)      */
/* ============================================================ */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 4px;
    line-height: 1;
}

.status-badge--active {
    color: var(--accent);
    background: rgba(168, 42, 46, 0.1);
    border: 1.5px solid rgba(168, 42, 46, 0.3);
}

.status-badge--archive {
    color: var(--fg-muted);
    background: var(--bg-alt);
    border: 1.5px solid var(--stroke);
}

.status-badge--new {
    color: #8a6d1f;
    background: rgba(184, 150, 63, 0.15);
    border: 1.5px solid rgba(184, 150, 63, 0.4);
}

/* ============================================================ */
/* 11.8. Блок «источник» / «документ»                            */
/* ============================================================ */
.source-block {
    margin: 40px 0;
    padding: 28px 32px;
    background: var(--bg-alt);
    border-left: 4px solid var(--gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--fg-secondary);
    position: relative;
}

.source-block__label {
    display: inline-block;
    font-family: 'JetBrains Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.source-block a {
    color: var(--accent);
    border-bottom: 1px dashed rgba(168, 42, 46, 0.4);
    font-weight: 500;
}

.source-block a:hover {
    border-bottom-style: solid;
    border-bottom-color: var(--accent-hover);
}

/* ============================================================ */
/* 11.9. Штамп «Рассекречено» — опционально на статьях           */
/* ============================================================ */
.stamp {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    border: 3px solid var(--accent);
    border-radius: 6px;
    padding: 8px 18px;
    transform: rotate(-4deg);
    opacity: 0.85;
    box-shadow: 0 0 0 1px rgba(168, 42, 46, 0.15) inset;
    position: relative;
}

.stamp::before,
.stamp::after {
    content: '';
    position: absolute;
    left: 6px;
    right: 6px;
    height: 1px;
    background: var(--accent);
    opacity: 0.5;
}

.stamp::before { top: 4px; }
.stamp::after  { bottom: 4px; }

/* ============================================================ */
/* 11.10. Адаптив                                                */
/* ============================================================ */
@media (max-width: 900px) {
    .dossier-hero {
        padding: 64px 0 48px;
    }
    .dossier-hero__meta {
        gap: 24px;
    }
    .dossier-hero__meta strong {
        font-size: 1.3rem;
    }
    .case-list__title {
        font-size: 1.6rem;
    }
}

@media (max-width: 640px) {
    .dossier-hero {
        padding: 48px 0 36px;
    }
    .dossier-hero__top {
        gap: 10px;
        margin-bottom: 24px;
    }
    .dossier-hero__number,
    .dossier-hero__status {
        font-size: 0.72rem;
        padding: 8px 12px;
        letter-spacing: 1.5px;
    }
    .dossier-hero__lead {
        font-size: 1.08rem;
    }
    .dossier-hero__meta {
        gap: 20px;
        padding-top: 24px;
        font-size: 0.75rem;
    }
    .dossier-hero__meta strong {
        font-size: 1.15rem;
    }
    .case-list__title {
        font-size: 1.35rem;
        padding-left: 14px;
    }
    .case-list__title::before {
        width: 4px;
    }
}

/* ============================================================ */
/* 12. FOOTER                                                    */
/* ============================================================ */
.site-footer {
    background: #2a2520;
    color: #d8d0c4;
    border-top: 3px solid var(--accent);
    padding: 56px 0 28px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

.footer-col h4 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold-light);
    margin: 0 0 16px;
    letter-spacing: -0.2px;
}

.footer-col p,
.footer-col a {
    font-size: 0.92rem;
    color: #b8afa0;
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    text-align: center;
    font-size: 0.82rem;
    color: #9a9188;
    line-height: 1.6;
}

/* ============================================================ */
/* 13. СТРАНИЦА СТАТЬИ (дополнения)                              */
/* ============================================================ */

/* Хлебные крошки */
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-family: 'JetBrains Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.72rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--fg-muted);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--stroke);
}

.breadcrumbs a {
    color: var(--fg-secondary);
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumbs__sep {
    opacity: 0.4;
}

.breadcrumbs__current {
    color: var(--fg);
    font-weight: 600;
    /* Обрезаем длинные названия */
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* На странице статьи hero — чуть компактнее */
.dossier-hero--article {
    padding: 56px 0 44px;
}

.dossier-hero--article h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 20px;
}

.dossier-hero--article .dossier-hero__lead {
    font-size: 1.08rem;
    margin-bottom: 28px;
}

/* Счётчик в hero-мете — если цифры маленькие, они не сжимаются */
.dossier-hero--article .dossier-hero__meta strong {
    font-size: 1.05rem;
}

/* Source-block — источники в виде списка */
.source-block ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: source-counter;
}

.source-block ol li {
    counter-increment: source-counter;
    position: relative;
    padding: 12px 0 12px 60px;
    border-bottom: 1px solid rgba(184, 150, 63, 0.2);
    line-height: 1.65;
    background: none;
    margin: 0;
    font-size: 0.95rem;
    color: var(--fg-secondary);
}

.source-block ol li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.entry-content .source-block ol li::before,
.source-block ol li::before {
    content: '[' counter(source-counter, decimal-leading-zero) ']';
    position: absolute;
    left: 0;
    top: 12px;
    display: block;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    color: var(--gold);
    font-family: 'JetBrains Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.65;
    text-align: left;
    transform: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    opacity: 1;
}

/* Ссылки внутри источников */
.source-block ol li a {
    color: var(--fg);
    border-bottom: 1px dashed rgba(184, 150, 63, 0.5);
    transition: all 0.2s ease;
    font-weight: 500;
}

.source-block ol li a:hover {
    color: var(--gold);
    border-bottom-style: solid;
    border-bottom-color: var(--gold);
}

/* Entry-content — заголовки внутри статьи */
.entry-content h2 {
    margin-top: 2em;
    margin-bottom: 0.8em;
}

.entry-content h3 {
    margin-top: 1.8em;
}

/* На мобилке — прячем хлебные крошки или сжимаем */
@media (max-width: 640px) {
    .breadcrumbs {
        font-size: 0.65rem;
        gap: 6px;
    }
    .breadcrumbs__current {
        display: none;      /* на мобилке скрываем длинный заголовок */
    }
}

/* ============================================================ */
/* 14. МЕТОДОЛОГИЯ — стили служебных страниц                     */
/* ============================================================ */

/* ============================================================ */
/* 14.1. Список принципов (нумерованные карточки)                */
/* ============================================================ */
.method-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 40px 0;
}

.method-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 24px;
    padding: 28px 32px;
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

.method-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent), var(--gold));
    opacity: 0.4;
    transition: opacity 0.25s ease;
}

.method-item:hover {
    border-color: rgba(168, 42, 46, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.method-item:hover::before {
    opacity: 1;
}

.method-item__num {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px var(--accent);
    text-stroke: 2px var(--accent);
    letter-spacing: -2px;
    align-self: start;
    padding-top: 4px;
}

.method-item__body {
    min-width: 0;
}

.method-item__title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--fg);
    letter-spacing: -0.3px;
    margin: 0 0 10px;
    line-height: 1.25;
}

.method-item__text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--fg-secondary);
    margin: 0;
}

.method-item__text em {
    color: var(--accent);
    font-style: italic;
    font-weight: 500;
}

@media (max-width: 640px) {
    .method-item {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 22px 24px;
    }
    .method-item__num {
        font-size: 2rem;
        -webkit-text-stroke-width: 1.5px;
    }
    .method-item__title {
        font-size: 1.15rem;
    }
}

/* ============================================================ */
/* 14.2. Процесс — шаги с кружками                               */
/* ============================================================ */
.method-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 40px 0;
    position: relative;
}

/* Вертикальная линия слева */
.method-steps::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 32px;
    bottom: 32px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), var(--gold), var(--accent));
    opacity: 0.3;
}

.method-step {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 24px;
    padding: 20px 0 20px 0;
    position: relative;
}

.method-step__num {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card);
    border: 2px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 0 0 4px var(--bg);
    z-index: 1;
    flex-shrink: 0;
}

.method-step__content {
    padding-top: 6px;
    min-width: 0;
}

.method-step__title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--fg);
    margin: 0 0 6px;
    letter-spacing: -0.2px;
}

.method-step__content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--fg-secondary);
    margin: 0;
}

@media (max-width: 640px) {
    .method-steps::before {
        left: 20px;
    }
    .method-step {
        grid-template-columns: 40px 1fr;
        gap: 16px;
    }
    .method-step__num {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ============================================================ */
/* 14.3. «Чего мы не делаем» — список с крестиками               */
/* ============================================================ */
.method-not {
    list-style: none;
    margin: 32px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.entry-content .method-not li {
    position: relative;
    padding: 14px 18px 14px 52px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--fg-secondary);
    margin: 0;
}

.entry-content .method-not li::before {
    content: '✕';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 900;
    border-radius: 50%;
    line-height: 1;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



/* Убираем квадратный маркер из общего стиля ul */
.method-not li::marker {
    display: none;
    content: '';
}

/* ============================================================ */
/* 14.4. Контакты — карточки                                     */
/* ============================================================ */
.method-contacts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 32px 0;
}

@media (max-width: 640px) {
    .method-contacts {
        grid-template-columns: 1fr;
    }
}

.method-contact {
    display: block;
    padding: 20px 24px;
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
}

.method-contact::after {
    content: '→';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 1.2rem;
    transition: transform 0.25s ease;
}

.method-contact:hover {
    border-color: var(--accent);
    background: var(--card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.method-contact:hover::after {
    transform: translateY(-50%) translateX(4px);
}

.method-contact__label {
    display: block;
    font-family: 'JetBrains Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--fg-muted);
    margin-bottom: 6px;
}

.method-contact__value {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--fg);
    letter-spacing: -0.2px;
    padding-right: 30px;
}

/* ============================================================ */
/* 14.5. Адаптив                                                */
/* ============================================================ */
@media (max-width: 640px) {
    .method-not li {
        padding: 12px 14px 12px 44px;
        font-size: 0.92rem;
    }
    .method-not li::before {
        left: 14px;
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
    }
    .method-contact {
        padding: 16px 20px;
    }
    .method-contact__value {
        font-size: 1rem;
    }
}

/* ============================================================ */
/* 15. СПИСОК ИСТОЧНИКОВ                                         */
/* ============================================================ */

/* ============================================================ */
/* 15.1. Легенда                                                 */
/* ============================================================ */
.source-legend {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 16px 20px;
    margin: 32px 0;
    background: var(--bg-alt);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-sm);
    font-family: 'JetBrains Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.75rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--fg-secondary);
}

.source-legend__label {
    font-weight: 700;
    color: var(--fg-muted);
}

.source-legend__items {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.source-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.source-legend__dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.source-legend__dot--active {
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(168, 42, 46, 0.15);
}

.source-legend__dot--gold {
    background: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 150, 63, 0.2);
}

.source-legend__dot--muted {
    background: var(--fg-muted);
    opacity: 0.5;
}

/* ============================================================ */
/* 15.2. Категория источников                                    */
/* ============================================================ */
.source-category {
    margin: 48px 0;
}

.source-category__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--stroke);
    flex-wrap: wrap;
}

.source-category__title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--fg);
    letter-spacing: -0.4px;
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin: 0;
    padding: 0;
    border: none;
}

.source-category__title::after {
    display: none;      /* убиваем дефолтную полоску от h2::after */
}

.source-category__num {
    font-family: 'JetBrains Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    padding: 2px 10px;
    border: 1.5px solid rgba(168, 42, 46, 0.3);
    border-radius: 4px;
    background: rgba(168, 42, 46, 0.05);
    align-self: center;
}

.source-category__count {
    font-family: 'JetBrains Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--fg-muted);
    font-weight: 600;
}

/* Список записей */
.source-category__list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: source-list-counter;
}

.source-record {
    counter-increment: source-list-counter;
    display: grid;
    grid-template-columns: 60px 32px 1fr;
    gap: 12px;
    align-items: baseline;
    padding: 16px 0;
    border-bottom: 1px solid rgba(184, 150, 63, 0.15);
    position: relative;
    line-height: 1.65;
    font-size: 0.95rem;
}

.source-record:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* [01] — номер записи */
.source-record::before {
    content: '[' counter(source-list-counter, decimal-leading-zero) ']';
    font-family: 'JetBrains Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.5px;
    line-height: 1.65;
    grid-column: 1;
    grid-row: 1;
}

/* Статус — ✓ или ◆ */
.source-record__status {
    font-family: 'JetBrains Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1.65;
    text-align: center;
    grid-column: 2;
    grid-row: 1;
}

.source-record__status--active {
    color: var(--accent);
}

.source-record__status--gold {
    color: var(--gold);
}

.source-record__status--muted {
    color: var(--fg-muted);
    opacity: 0.5;
}

/* Основной блок записи */
.source-record > *:not(.source-record__status) {
    grid-column: 3;
}

.source-record__author {
    font-weight: 700;
    color: var(--fg);
    margin-right: 8px;
}

.source-record__title {
    color: var(--fg);
    font-weight: 500;
}

.source-record__title a {
    color: var(--accent);
    border-bottom: 1px dashed rgba(168, 42, 46, 0.4);
    transition: all 0.2s ease;
}

.source-record__title a:hover {
    color: var(--accent-hover);
    border-bottom-style: solid;
    border-bottom-color: var(--accent-hover);
}

.source-record__meta {
    display: block;
    margin-top: 4px;
    font-family: 'JetBrains Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    color: var(--fg-muted);
}

/* Пустая категория */
.source-category__empty {
    padding: 24px 0;
    font-family: 'JetBrains Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.82rem;
    letter-spacing: 1px;
    color: var(--fg-muted);
    opacity: 0.7;
    margin: 0;
    text-align: center;
    border: 1px dashed var(--stroke);
    border-radius: var(--radius-sm);
}

/* ============================================================ */
/* 15.3. Адаптив                                                */
/* ============================================================ */
@media (max-width: 640px) {
    .source-legend {
        gap: 12px;
        padding: 12px 14px;
        font-size: 0.68rem;
    }
    .source-legend__items {
        gap: 12px;
    }

    .source-category {
        margin: 32px 0;
    }
    .source-category__title {
        font-size: 1.3rem;
        gap: 10px;
    }
    .source-category__num {
        font-size: 0.8rem;
        padding: 2px 8px;
    }

    .source-record {
        grid-template-columns: 52px 24px 1fr;
        gap: 8px;
        font-size: 0.92rem;
    }
    .source-record::before {
        font-size: 0.75rem;
    }
    .source-record__status {
        font-size: 0.85rem;
    }
    .source-record__meta {
        font-size: 0.72rem;
    }
}

/* ============================================================ */
/* 16. СТАТЬЯ — КАРТОЧКИ ЦЕРКВЕЙ И ЗАМЕТКИ                       */
/* ============================================================ */

/* ============================================================ */
/* 16.1. Карточка церкви (в статье про 7 церквей)                */
/* ============================================================ */
.church-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 22px 26px;
    margin: 16px 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Верхняя линия — градиент */
.church-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.church-card:hover::before {
    opacity: 1;
}

.church-card:hover {
    transform: translateY(-3px);
    border-color: rgba(168, 42, 46, 0.35);
    box-shadow: var(--shadow-lg);
}

/* Бейдж — эпоха */
.church-card__badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    color: #ffffff;
    font-family: 'JetBrains Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 4px;
    margin-bottom: 10px;
    line-height: 1;
}

/* Заголовок */
.church-card__title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--fg);
    margin: 0 0 8px;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

/* Описание */
.church-card__desc {
    font-size: 0.95rem;
    color: var(--fg-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ============================================================ */
/* 16.2. Note-box (заметка, сноска, оговорка)                    */
/* ============================================================ */
.note-box {
    position: relative;
    background: var(--card);
    border: 1px solid var(--stroke);
    border-left: 4px solid var(--gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 20px 24px;
    margin: 24px 0;
}

.note-box h4 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--gold);
    margin: 0 0 12px;
    letter-spacing: -0.2px;
    line-height: 1.3;
}

.note-box p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--fg-secondary);
    margin-bottom: 12px;
}

.note-box p:last-child {
    margin-bottom: 0;
}

.note-box .note-source {
    font-family: 'JetBrains Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    color: var(--fg-muted);
    font-style: normal;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--stroke);
}

.note-box strong {
    color: var(--fg);
    font-weight: 700;
}

.note-box em {
    color: var(--accent);
    font-style: italic;
}

/* ============================================================ */
/* 16.3. Якоря в сайдбаре — активные ссылки                      */
/* ============================================================ */
.side-block a[href^="#"] {
    position: relative;
    padding-left: 0;
}

.side-block a[href^="#"]::before {
    content: '→';
    color: var(--accent);
    opacity: 0.5;
    margin-right: 8px;
    font-family: 'JetBrains Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.side-block a[href^="#"]:hover::before {
    opacity: 1;
    transform: translateX(3px);
}