/*
Theme Name: dds_timeofarctic.ru
Author: Олег Северцев
Description: Широкопрофильный арктический онлайн-журнал о русской Арктике. Дизайн «Тёплый крафт + Северный модерн».
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: toarctica
*/

/* =========================================================================
   Переменные палитры (секция F)
   ====================================================================== */
:root {
    --bg:        #FAF4EA;
    --bg-alt:    #EDE3D5;
    --bg-header: #F4EEE3;
    --bg-footer: #2C2A28;
    --bg-sidebar:#E6D9C6;
    --card-bg:   #FBF6EE;
    --text:      #2F2E2B;
    --accent:    #B55537;
    --accent-dk: #9C4830;
    --accent2:   #837960;
    --muted:     #8A8070;
    --line:      #D9CBBB;

    --font-head: "Helvetica Neue", "Arial", "Segoe UI", system-ui, sans-serif;
    --font-body: Georgia, "PT Serif", "Times New Roman", serif;

    --shell: min(90%, 1180px);
}

/* =========================================================================
   Базовые сбросы
   ====================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;                 /* A12.5 страховка */
    color: var(--text);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    background-color: var(--bg);
    /* «сломанная» сетка ледовой разведки — очень тонкий паттерн */
    background-image:
        repeating-linear-gradient(0deg,  transparent 0 43px, rgba(131,121,96,0.05) 43px 44px),
        repeating-linear-gradient(90deg, transparent 0 43px, rgba(131,121,96,0.05) 43px 44px),
        repeating-linear-gradient(90deg, transparent 0 129px, rgba(181,85,55,0.03) 129px 130px);
    background-size: 44px 44px, 44px 44px, 130px 130px;
}

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

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

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--text);
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1.1em; }              /* без background-color (F) */

/* Ссылки в тексте — второй акцент, пунктирное подчёркивание (F) */
.entry-content a,
.card-excerpt a,
.widget_text a,
.comment-text a {
    color: var(--accent2);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}
.entry-content a:hover,
.card-excerpt a:hover { color: var(--accent); }

/* =========================================================================
   Контейнер ширины — задан в одном месте (A12.7)
   ====================================================================== */
.shell {
    width: var(--shell);
    margin-inline: auto;
}

/* =========================================================================
   Кнопки (F): почти квадратные, скругление 4px, «вдавливание» при наведении
   ====================================================================== */
.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding: 0.72em 1.5em;
    border-radius: 4px;
    border: 2px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); transform: translateY(2px); color: #fff; }

.btn-outline { background: transparent; border-color: currentColor; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(2px); }

.btn-ghost { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: #fff; transform: translateY(2px); }

/* =========================================================================
   Шапка
   ====================================================================== */
.site-header { background: var(--bg-header); border-bottom: 1px solid var(--line); }

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

.site-branding { display: flex; align-items: center; gap: 0.9rem; min-width: 0; flex: 1; }

.brand-logo-link { display: inline-flex; flex: 0 0 auto; }
.brand-logo { display: block; height: 54px; width: auto; }

.site-titles { display: flex; flex-direction: column; min-width: 0; }
.site-title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 0.98rem;
    line-height: 1.3;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.site-description {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.4;
    margin-top: 0.15rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Навигация (не липкая) */
.main-nav { flex: 0 0 auto; }
.nav-list {
    list-style: none;
    display: flex;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.nav-list a {
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text);
    text-decoration: none;
    padding: 0.5em 0.85em;
    border-radius: 4px;
    transition: background-color 0.12s ease, color 0.12s ease;
}
.nav-list a:hover,
.nav-list .current-menu-item > a { background: var(--accent); color: #fff; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 4px;
    cursor: pointer;
    margin-left: auto;
}
.nav-toggle span { display: block; height: 2px; width: 22px; margin: 0 auto; background: var(--text); transition: 0.2s; }

/* «Полярная полоса» — рваный градиент из двух акцентов (F) */
.polar-stripe {
    height: 4px;
    background: repeating-linear-gradient(90deg,
        var(--accent)  0 26px,
        transparent    26px 34px,
        var(--accent2) 34px 66px,
        transparent    66px 72px);
}

/* =========================================================================
   Основная область / раскладки
   ====================================================================== */
.site-main { display: block; }

.content-wrap { padding: 2.6rem 0 3rem; }

/* С сайдбаром: контент 67% / сайдбар 27% (A12: minmax(0,...) + gap) */
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 6%;
    align-items: start;
}
/* Без сайдбара: одна колонка — block-контекст (A12.3) */
.layout-single { display: block; }

/* =========================================================================
   Заголовки секций — тонкая линия слева, не достаёт 1em (F)
   ====================================================================== */
.section-heading,
.page-title,
.archive-title {
    position: relative;
    padding-left: calc(46px + 1em);
    margin: 0 0 1.6rem;
    font-size: 1.9rem;
}
.section-heading::before,
.page-title::before,
.archive-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 46px;
    height: 3px;
    background: var(--accent);
}

/* =========================================================================
   Карточки записей (A8, A10, F)
   ====================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1.7rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 6px 6px 0 rgba(0,0,0,0.10);   /* жёсткая смещённая тень */
    transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.card:hover {
    background: var(--bg-alt);
    border-color: var(--accent);              /* «подсвеченный лёд» */
    transform: translateY(-2px);
}

.card-thumb-wrap { overflow: hidden; }
.card-thumb-link { display: block; }
.card-thumb {
    display: block;                            /* убирает inline-зазор */
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;                     /* вертикальная карточка (A10) */
    object-fit: cover;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);  /* «горизонт» */
}

.card-body {
    flex: 1;                                   /* A8 */
    display: flex;
    flex-direction: column;
    padding: 1.1rem 1.25rem 1.35rem;
}

/* Метка категории — бирка со скошенным правым углом (F) */
.card-tag {
    align-self: flex-start;
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    padding: 0.32em 0.9em 0.32em 0.7em;
    margin-bottom: 0.7rem;
    clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}
.tag-var-0 { background: var(--accent); }     /* терракота */
.tag-var-1 { background: #6E7B78; }           /* серо-зелёный */
.tag-var-2 { background: #9A7B3F; }           /* синеватая охра */

.card-title { font-size: 1.28rem; margin: 0 0 0.5rem; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--accent); }

.card-meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.7rem; }

.card-excerpt { font-size: 0.95rem; color: #45433d; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }   /* A8 */

.card-more {
    margin-top: auto;
    padding-top: 0.7rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent);
    text-decoration: none;
}
.card-more:hover { color: var(--accent-dk); }

/* =========================================================================
   ГЛАВНАЯ СТРАНИЦА
   ====================================================================== */
.front-section {
    position: relative;
    padding: 3.4rem 0;
    overflow: hidden;
}
.front-section.section-alt { background: var(--bg-alt); }

/* Чередование фонов задаётся классами в шаблоне; тонкая линия-нить сверху,
   выступающая влево за контейнер (F) */
.front-section + .front-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: -6%;
    right: 0;
    height: 1px;
    background: var(--line);
}

/* Полупрозрачный ромб/компас в правом нижнем углу секций (F) */
.front-section::after {
    content: "";
    position: absolute;
    right: 3%;
    bottom: 1.4rem;
    width: 128px;
    height: 128px;
    opacity: 0.03;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,4 62,50 50,96 38,50' fill='none' stroke='%232F2E2B' stroke-width='3'/%3E%3Ccircle cx='50' cy='50' r='30' fill='none' stroke='%232F2E2B' stroke-width='2'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* След из трёх точек — разделитель-координата (F) */
.dot-trail { text-align: center; padding: 0.4rem 0 0; }
.dot-trail::before {
    content: "\2022\00a0\00a0\2022\00a0\00a0\2022";
    color: var(--accent);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
}

/* --- Hero-баннер --- */
.hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(24,28,40,0.82), rgba(24,28,40,0.45)),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 7px); /* лёгкий шум/фактура */
}
.hero-content { position: relative; z-index: 2; padding: 3.5rem 0; }
.hero-kicker {
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: #E6D9C6;
    margin: 0 0 1rem;
}
.hero-title {
    color: #fff;
    font-size: 3.2rem;
    max-width: 16ch;
    margin: 0 0 1.2rem;
}
.hero-mark {
    position: relative;
    display: inline-block;
    color: #fff;
    padding: 0 0.2em;
}
.hero-mark::before {
    content: "";
    position: absolute;
    inset: 0.08em -0.05em 0.02em;
    background: var(--accent);
    transform: skewX(-8deg);
    z-index: -1;
}
.hero-lead {
    font-family: var(--font-body);
    font-size: 1.2rem;
    max-width: 44ch;
    color: #F2ECE1;
    margin: 0 0 1.8rem;
}

/* --- Чек-лист --- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.checklist li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.1rem 1.3rem;                    /* A14 — отступ со всех сторон */
}
.check-mark {
    flex: 0 0 auto;
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--accent2);
    transform: rotate(-8deg);                  /* «ручная пометка» */
}
.checklist strong { display: block; font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 0.2rem; }
.checklist p { margin: 0; font-size: 0.96rem; color: #45433d; }

/* --- Статистика / факты --- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}
.stat {
    padding: 0.6rem 1.4rem;
    text-align: center;
    border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }
.stat-num {
    display: block;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1.3;
    color: var(--accent);
}
.stat-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 0.4rem;
}

/* --- Карта тем / рубрикатор --- */
.rubric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 1.1rem;
}
.rubric-tile {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: #FCFAF6;
    border: 1px solid var(--line);
    border-left: 5px solid var(--accent);      /* яркая левая рамка (F) */
    border-radius: 6px;
    padding: 1rem 1.2rem;                       /* A14 */
    text-decoration: none;
    color: var(--text);
    transition: transform 0.14s ease, background-color 0.14s ease;
}
.rubric-tile:hover { transform: translateX(5px); background: var(--bg-alt); }  /* съезжает вправо (F) */
.rubric-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}
.rubric-icon svg { width: 30px; height: 30px; }
.rubric-name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }

.latest-more { margin-top: 2rem; text-align: center; }

/* =========================================================================
   Записи и страницы
   ====================================================================== */
.breadcrumbs {
    font-family: var(--font-head);
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
}
.breadcrumbs a { color: var(--accent2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumbs .sep { margin: 0 0.35em; color: var(--muted); }

.entry-header { margin-bottom: 1.6rem; }
.entry-title { font-size: 2.4rem; margin: 0 0 0.6rem; }
.entry-meta { font-size: 0.88rem; color: var(--muted); }
.entry-meta a { color: var(--accent2); text-decoration: none; }

.entry-thumb { margin-bottom: 1.8rem; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.entry-thumb img { display: block; width: 100%; height: auto; }

.entry-content { font-size: 1.05rem; }
.entry-content h2 { margin: 1.8rem 0 0.8rem; }
.entry-content h3 { margin: 1.5rem 0 0.7rem; }
.entry-content img { border-radius: 6px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content blockquote {
    margin: 1.6rem 0;
    padding: 1.2rem 1.5rem;                     /* A14 */
    background: linear-gradient(135deg, var(--bg), var(--bg-alt));
    background-image:
        linear-gradient(135deg, var(--bg), var(--bg-alt)),
        repeating-linear-gradient(45deg, rgba(181,85,55,0.05) 0 2px, transparent 2px 9px);
    border-left: 4px solid var(--accent);
    border-radius: 6px;
    font-style: italic;
    color: #45433d;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }

.entry-footer { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.entry-tags a {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.8rem;
    color: var(--accent2);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 0.2em 0.7em;
    margin: 0 0.3em 0.3em 0;
    text-decoration: none;
}
.entry-tags a:hover { border-color: var(--accent); color: var(--accent); }

/* Таблицы — видимые границы */
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; }
.entry-content th,
.entry-content td { border: 1px solid var(--line); padding: 0.6em 0.9em; text-align: left; }
.entry-content th { background: var(--bg-alt); font-family: var(--font-head); }

/* =========================================================================
   Сайдбар и виджеты (контраст текста — раздел F)
   ====================================================================== */
.sidebar {
    background: var(--bg-sidebar);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.4rem 1.5rem;
    min-width: 0;
}
.sidebar .widget { margin-bottom: 1.8rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    font-size: 1.15rem;
    margin: 0 0 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
    color: var(--text);
}
.sidebar a { color: #45433d; text-decoration: none; }
.sidebar a:hover { color: var(--accent); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 0.4rem 0; border-bottom: 1px dotted var(--line); font-size: 0.95rem; }
.sidebar li:last-child { border-bottom: none; }
.sidebar .post-date { display: block; font-size: 0.78rem; color: var(--muted); }

/* =========================================================================
   Пагинация (D5 — плоский вывод .page-numbers)
   ====================================================================== */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin-top: 2.6rem;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.7rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.12s ease, color 0.12s ease, transform 0.12s ease;
}
.pagination a.page-numbers:hover { background: var(--bg-alt); border-color: var(--accent); transform: translateY(2px); }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .page-numbers.dots { border: none; background: transparent; }

/* =========================================================================
   Подвал (тёмный фон — светлый текст)
   ====================================================================== */
.site-footer { background: var(--bg-footer); color: #D8CFC0; margin-top: 2rem; }
.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 2.4rem;
    padding: 3rem 0 2.2rem;
}
.footer-col { min-width: 0; }
.footer-col .widget-title {
    font-size: 1.1rem;
    color: #F4EEE3;
    margin: 0 0 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--accent);
}
.footer-col,
.footer-col p { color: #C7BEB0; font-size: 0.95rem; }
.footer-col a { color: #E6D9C6; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { padding: 0.35rem 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer-col li:last-child { border-bottom: none; }
.footer-col .widget_text a { color: #C9A38F; text-decoration: underline; text-decoration-style: dotted; }
.footer-col .post-date { color: #9a9080; }

.footer-copyright {
    padding: 1.3rem 0;
    border-top: 1px solid rgba(255,255,255,0.10);
    font-size: 0.85rem;
    color: #9a9080;
}

/* =========================================================================
   Cookie-баннер (D6, A11 — правило [hidden] ДО основного блока)
   ====================================================================== */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.4rem;
    padding: 1rem 1.4rem;
    background: var(--bg-footer);
    color: #E6D9C6;
    border-top: 3px solid var(--accent);
    box-shadow: 0 -6px 24px rgba(0,0,0,0.18);
}
.cookie-banner p { margin: 0; font-size: 0.92rem; max-width: 70ch; }
.cookie-banner a { color: #E6D9C6; }

/* =========================================================================
   Форма поиска / 404
   ====================================================================== */
.search-form { display: flex; gap: 0.5rem; max-width: 480px; }
.search-form .search-field {
    flex: 1;
    min-width: 0;
    padding: 0.6em 0.9em;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
}
.search-form .search-submit {
    font-family: var(--font-head);
    font-weight: 700;
    padding: 0.6em 1.2em;
    border: none;
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    transition: transform 0.12s ease, background-color 0.12s ease;
}
.search-form .search-submit:hover { background: var(--accent-dk); transform: translateY(2px); }

.error-404 { text-align: left; }
.error-404 .big-404 { font-size: 5rem; color: var(--accent); margin: 0; }
.error-404 .search-form { margin: 1.6rem 0; }

/* =========================================================================
   Комментарии
   ====================================================================== */
.comments-area { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list .children { list-style: none; margin: 1rem 0 0; padding-left: 1.6rem; border-left: 2px solid var(--line); }
.comment-inner {
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.1rem 1.3rem;                    /* A14 */
    margin-bottom: 1rem;
}
.comment-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; }
.comment-author { font-family: var(--font-head); font-weight: 700; }
.comment-date { font-size: 0.8rem; color: var(--muted); }
.comment-text { font-size: 0.98rem; }
.comment-await { font-size: 0.85rem; color: var(--accent); }
.comment-actions a { font-family: var(--font-head); font-size: 0.85rem; color: var(--accent2); text-decoration: none; }

.comment-respond {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.4rem 1.6rem;                    /* A14 */
}
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: 0.6em 0.8em;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: #fff;
    color: var(--text);
}
.comment-respond textarea { min-height: 130px; resize: vertical; }
.comment-respond .form-submit input {
    font-family: var(--font-head);
    font-weight: 700;
    padding: 0.65em 1.5em;
    border: none;
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
}
.comment-respond .form-submit input:hover { background: var(--accent-dk); }

/* =========================================================================
   Адаптив
   ====================================================================== */
@media (max-width: 960px) {
    h1 { font-size: 2.6rem; }
    .hero-title { font-size: 2.6rem; }
    .layout-with-sidebar { grid-template-columns: 1fr; gap: 2.5rem; }
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 0; }
    .stat:nth-child(3) { border-left: none; }
}

@media (max-width: 600px) {
    body { font-size: 17px; }
    h1 { font-size: 2.1rem; }
    .hero-title { font-size: 2.1rem; }

    .site-header-inner { position: relative; }
    .nav-toggle { display: flex; }
    .main-nav {
        flex-basis: 100%;
        display: none;
    }
    .main-nav.is-open { display: block; }
    .nav-list { flex-direction: column; gap: 0.2rem; margin-top: 0.6rem; }
    .nav-list a { padding: 0.7em 0.9em; }

    .section-heading,
    .page-title,
    .archive-title { padding-left: calc(34px + 0.8em); font-size: 1.6rem; }
    .section-heading::before,
    .page-title::before,
    .archive-title::before { width: 34px; }

    .front-section { padding: 2.4rem 0; }
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat { padding: 0.6rem 0.6rem; }
    .stat-num { font-size: 1.9rem; }

    .checklist li { padding: 1rem 1.1rem; }        /* A14 в брейкпоинте */
    .rubric-tile { padding: 0.9rem 1rem; }
    .cookie-banner { padding: 0.9rem 1.1rem; justify-content: flex-start; }
    .entry-title { font-size: 1.8rem; }
    .entry-content blockquote { padding: 1rem 1.1rem; }
}
