/*
Theme Name: dds_izochess.ru
Author: Анна Соколова
Description: Информационно-образовательная тема для портала о раннем развитии и педагогике. Дизайн-концепция «Лаборатория мышления»: журнальная типографика и японский минимализм в холодной палитре «Северное стекло».
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: izochess
*/

/* ============================================================ *
 *  Переменные
 * ============================================================ */
:root {
    --bg: #F2F5F9;
    --bg-alt: #E8EEF5;
    --header-bg: #FFFFFF;
    --footer-bg: #1E293B;
    --text: #1E293B;
    --accent: #0E7C9E;
    --accent-2: #EAB308;
    --muted: #6B7A8F;
    --hover: #0B5A73;
    --border: #E2E8F0;
    --dots: #D1DCE6;
    --card-bg: #FFFFFF;
    --shell: min(92%, 1180px);
    --font-head: 'Inter', 'Manrope', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Public Sans', 'Roboto', 'Segoe UI', system-ui, sans-serif;
}

/* ============================================================ *
 *  База
 * ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    background-image: radial-gradient(circle, var(--dots) 1px, transparent 1.4px);
    background-size: 26px 26px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--text);
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 0.6em;
}

h1 { font-size: 3.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; letter-spacing: -0.01em; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

a { color: var(--accent); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--hover); }

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

.shell { width: var(--shell); margin-inline: auto; }

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

/* Анимированное пунктирное подчёркивание текстовых ссылок в контенте */
.entry-content a,
.widget-text a,
.timeline-desc a {
    background-image: linear-gradient(to right, var(--accent) 0 100%);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0% 1px;
    transition: background-size .25s ease, color .18s ease;
    border-bottom: 1px dashed transparent;
}
.entry-content a:hover,
.widget-text a:hover,
.timeline-desc a:hover {
    background-size: 0 1px;
    border-bottom-color: var(--accent);
}

/* ============================================================ *
 *  Кнопки
 * ============================================================ */
.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.7em 1.5em;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
    text-align: center;
}
.btn-filled {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 14px rgba(14, 124, 158, 0.28);
}
.btn-filled:hover {
    background: var(--hover);
    color: #fff;
    transform: translateY(-2px);
}
.btn-ghost {
    background: transparent;
    color: var(--accent);
    border-color: var(--border);
}
.btn-ghost:hover {
    border-color: var(--accent);
    background: rgba(14, 124, 158, 0.05);
    color: var(--accent);
}

/* ============================================================ *
 *  Шапка
 * ============================================================ */
.site-header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.1rem 0;
    flex-wrap: wrap;
}
.branding { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.brand-logo { display: block; height: auto; }
.brand-text { min-width: 0; }
.site-title {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.25;
}
.site-title a { color: var(--text); }
.site-desc {
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.4;
    max-width: 640px;
}

/* Навигация */
.main-nav { margin-left: auto; }
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.5rem 0.7rem;
    font-family: var(--font-head);
    color: var(--text);
    cursor: pointer;
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.main-nav a {
    display: block;
    font-family: var(--font-head);
    font-weight: 500;
    color: var(--text);
    padding: 0.5rem 0.85rem;
    border-radius: 4px;
    transition: background-color .18s ease, color .18s ease;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
    background: var(--bg-alt);
    color: var(--accent);
}

/* ============================================================ *
 *  Общий каркас страницы
 * ============================================================ */
.site-main { padding: 2.6rem 0 3.4rem; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 3.2%;
    align-items: start;
}
.layout-single {
    display: block;
    width: 85%;
    margin-inline: auto;
}
.content-area { min-width: 0; }

/* ============================================================ *
 *  Хлебные крошки
 * ============================================================ */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
    line-height: 1.6;
}
.breadcrumbs a { color: var(--accent); }
.breadcrumbs a:hover { color: var(--hover); }
.breadcrumbs .sep { color: var(--muted); margin: 0 0.15rem; }
.breadcrumbs span:last-child { color: var(--text); }

/* ============================================================ *
 *  Заголовки секций (декоративная линия)
 * ============================================================ */
.section-head { margin-bottom: 2.2rem; }
.section-head .eyebrow {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
}
.section-title {
    position: relative;
    padding-top: 0.9rem;
}
.section-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 33%;
    max-width: 120px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* ============================================================ *
 *  Карточки записей
 * ============================================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1.8rem;
}
.card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(14, 124, 158, 0.08);
    transition: transform .22s ease, box-shadow .22s ease;
    min-width: 0;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 34px rgba(14, 124, 158, 0.16);
}
.card-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.card-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Шахматная заглушка для карточек без миниатюры */
.card-thumb-placeholder {
    display: block;
    aspect-ratio: 16 / 9;
    background-color: var(--accent);
    background-image:
        linear-gradient(45deg, rgba(255,255,255,0.08) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.08) 75%),
        linear-gradient(45deg, rgba(255,255,255,0.08) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.08) 75%);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    position: relative;
}
.card-thumb-placeholder::after {
    content: "";
    position: absolute;
    right: 16px;
    bottom: 12px;
    width: 26px;
    height: 26px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 4px;
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.3rem 1.4rem 1.5rem;
    min-width: 0;
}
.card-meta {
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
    font-family: var(--font-head);
    letter-spacing: 0.02em;
}
.card-title {
    font-size: 1.2rem;
    margin: 0 0 0.6rem;
    line-height: 1.3;
}
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); }
.card-excerpt {
    color: #3c4a5c;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    margin-top: auto;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--accent);
    align-self: flex-start;
}
.card-more:hover { color: var(--hover); }

/* ============================================================ *
 *  Сайдбар и виджеты
 * ============================================================ */
.sidebar { min-width: 0; }
.widget {
    margin-bottom: 2rem;
    background: #fff;
    border-radius: 12px;
    padding: 1.4rem 1.5rem;
    box-shadow: 0 2px 15px rgba(14, 124, 158, 0.06);
    color: var(--text);
}
.widget-title {
    font-size: 1.05rem;
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--bg-alt);
    color: var(--text);
}
.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    color: var(--text);
}
.widget ul li:last-child { border-bottom: none; }
.widget a { color: var(--accent); }
.widget a:hover { color: var(--hover); }
.widget .post-date,
.widget .rss-date { color: var(--muted); font-size: 0.8rem; }

/* ============================================================ *
 *  Пагинация
 * ============================================================ */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 2.6rem;
    justify-content: center;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.7rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-family: var(--font-head);
    font-weight: 500;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.pagination a.page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.pagination .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.pagination .page-numbers.dots {
    border: none;
    background: none;
}

/* ============================================================ *
 *  Контент записи / страницы
 * ============================================================ */
.entry-header { margin-bottom: 1.6rem; }
.entry-title { margin-bottom: 0.6rem; }
.single .entry-title,
.page .entry-title { font-size: 2.6rem; }
.entry-meta {
    font-family: var(--font-head);
    font-size: 0.85rem;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.4rem;
}
.entry-thumb {
    margin: 0 0 1.8rem;
    border-radius: 12px;
    overflow: hidden;
}
.entry-thumb img { display: block; width: 100%; }

.entry-content { counter-reset: h2coord; }
.entry-content > h2 {
    counter-increment: h2coord;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 2.2rem;
}
.entry-content > h2::before {
    content: counter(h2coord);
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--accent);
    color: #fff;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-head);
}
.entry-content h3 { margin-top: 1.8rem; }
.entry-content img { border-radius: 8px; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content li { margin-bottom: 0.4rem; }

.entry-content blockquote {
    margin: 1.8rem 0;
    padding: 0.4rem 0 0.4rem 1.4rem;
    border-left: 4px solid var(--accent-2);
    font-size: 1.2em;
    color: var(--text);
    font-style: normal;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
}
.entry-content table,
.entry-content th,
.entry-content td {
    border: 1px solid var(--border);
}
.entry-content th, .entry-content td {
    padding: 0.7rem 0.9rem;
    text-align: left;
}
.entry-content th { background: var(--bg-alt); font-family: var(--font-head); }

.entry-footer {
    margin-top: 2.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--muted);
}
.entry-footer a { color: var(--accent); }
.tags-links a {
    display: inline-block;
    background: var(--bg-alt);
    padding: 0.2rem 0.7rem;
    border-radius: 4px;
    margin: 0.2rem 0.2rem 0.2rem 0;
    font-size: 0.85rem;
}

/* ============================================================ *
 *  Главная — общие секции
 * ============================================================ */
.front-section { padding: 120px 0; }
.front-section + .front-section { border-top: 1px solid var(--border); }
.front-section.section-alt {
    background: var(--bg-alt);
    background-image: linear-gradient(135deg, rgba(14,124,158,0.03) 0 1px, transparent 1px);
    background-size: 22px 22px;
}

/* Волнистый разделитель */
.wave-divider { line-height: 0; }
.wave-divider svg { display: block; width: 100%; height: 40px; }

/* -- Блок 1: Hero -- */
.hero {
    position: relative;
    padding: 0;
    overflow: hidden;
    border-top: none;
}
.hero-inner {
    position: relative;
    background: linear-gradient(120deg, #E8EEF5 0%, #DCE5EF 100%);
    border-radius: 0;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 1;
    padding: 6.5rem 0;
    max-width: 720px;
}
.hero-coord {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 1.4rem;
    letter-spacing: 0.02em;
}
.hero h1 { color: var(--text); margin-bottom: 1rem; }
.hero-sub {
    font-size: 1.2rem;
    color: #33455c;
    max-width: 560px;
    margin-bottom: 2rem;
}

/* -- Блок 2: Таймлайн -- */
.timeline { position: relative; margin-top: 1rem; }
.timeline::before {
    content: "";
    position: absolute;
    left: 130px;
    top: 6px;
    bottom: 6px;
    width: 0;
    border-left: 2px dashed var(--accent);
}
.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 2.4rem;
    padding-bottom: 2.4rem;
    align-items: start;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-age {
    text-align: right;
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--accent);
    font-size: 1.05rem;
    padding-top: 0.1rem;
}
.timeline-body { position: relative; }
.timeline-body::before {
    content: "";
    position: absolute;
    left: -34px;
    top: 6px;
    width: 14px;
    height: 14px;
    background: #fff;
    border: 3px solid var(--accent);
    border-radius: 50%;
    z-index: 1;
}
.timeline-title { font-size: 1.2rem; margin-bottom: 0.4rem; }
.timeline-desc { color: #3c4a5c; margin: 0; }

/* -- Блок 3: Статистика -- */
.stats {
    background: linear-gradient(135deg, #E8EEF5 0%, #DCE5EF 100%);
    background-image:
        repeating-linear-gradient(45deg, rgba(14,124,158,0.05) 0 1px, transparent 1px 14px),
        linear-gradient(135deg, #E8EEF5 0%, #DCE5EF 100%);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.6rem;
    margin-top: 1rem;
}
.stat-item {
    background: rgba(255,255,255,0.55);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
}
.stat-num {
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.02em;
}
.stat-label {
    margin-top: 0.7rem;
    color: var(--muted);
    font-size: 0.95rem;
}

/* -- Блок 4: Рубрикатор -- */
.rubricator-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
    margin-top: 1rem;
}
.rubric-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    text-align: center;
    padding: 2.2rem 1.2rem;
    border: 1.5px solid var(--accent);
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font-family: var(--font-head);
    font-weight: 600;
    transition: background-color .22s ease, color .22s ease, transform .22s ease;
    min-width: 0;
}
.rubric-tile svg { width: 40px; height: 40px; }
.rubric-tile svg [stroke] { stroke: var(--accent); transition: stroke .22s ease; }
.rubric-tile:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px);
}
.rubric-tile:hover svg [stroke] { stroke: #fff; }

/* -- Последние записи на главной -- */
.front-latest .cards-grid { margin-top: 0.5rem; }
.front-latest-more { text-align: center; margin-top: 2.4rem; }

/* ============================================================ *
 *  Форма поиска
 * ============================================================ */
.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 460px;
}
.search-form .search-field {
    flex: 1;
    min-width: 0;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: #fff;
    color: var(--text);
}
.search-form .search-field:focus {
    outline: none;
    border-color: var(--accent);
}
.search-form .search-submit {
    font-family: var(--font-head);
    font-weight: 600;
    padding: 0.7rem 1.3rem;
    border: none;
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    transition: background-color .18s ease;
}
.search-form .search-submit:hover { background: var(--hover); }

/* ============================================================ *
 *  Комментарии
 * ============================================================ */
.comments-area { margin-top: 3rem; }
.comments-title, .comment-reply-title { font-size: 1.5rem; margin-bottom: 1.4rem; }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list ul.children { list-style: none; margin: 1rem 0 0 1.6rem; padding: 0; }
.comment-item { margin-bottom: 1.4rem; }
.comment-body {
    background: #fff;
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
    box-shadow: 0 2px 15px rgba(14, 124, 158, 0.06);
}
.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}
.comment-author { font-family: var(--font-head); font-weight: 600; }
.comment-date { font-size: 0.8rem; color: var(--muted); }
.comment-awaiting { color: var(--accent-2); font-size: 0.9rem; }
.comment-reply a {
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 600;
}
.comment-respond {
    background: #fff;
    border-radius: 12px;
    padding: 1.6rem;
    box-shadow: 0 2px 15px rgba(14, 124, 158, 0.06);
}
.comment-form label {
    display: block;
    font-family: var(--font-head);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 1rem;
    background: #fff;
    color: var(--text);
}
.comment-form textarea:focus,
.comment-form input:focus { outline: none; border-color: var(--accent); }
.comment-form .submit {
    font-family: var(--font-head);
    font-weight: 600;
    padding: 0.7rem 1.6rem;
    border: none;
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
}
.comment-form .submit:hover { background: var(--hover); }

/* ============================================================ *
 *  404
 * ============================================================ */
.error-404 { text-align: center; padding: 2rem 0 3rem; }
.error-404 .big-code {
    font-family: var(--font-head);
    font-size: 6rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.03em;
}
.error-404 .search-form { margin: 1.8rem auto; }

/* ============================================================ *
 *  Подвал
 * ============================================================ */
.site-footer {
    background: var(--footer-bg);
    color: #cbd5e1;
    padding: 3.4rem 0 1.6rem;
    margin-top: 2rem;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
    margin-bottom: 2.4rem;
}
.site-footer .widget {
    background: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    color: #cbd5e1;
}
.site-footer .widget-title {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.15);
}
.site-footer .widget ul li {
    border-bottom-color: rgba(255,255,255,0.1);
    color: #cbd5e1;
}
.site-footer .widget a { color: #9fd4e6; }
.site-footer .widget a:hover { color: #fff; }
.site-footer .widget .post-date,
.site-footer .widget .rss-date { color: #8ba0b8; }
.site-copyright {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 1.4rem;
    font-size: 0.85rem;
    color: #8ba0b8;
    text-align: center;
}

/* ============================================================ *
 *  Cookie-баннер
 *  (правило [hidden] размещено ДО основного блока стилей)
 * ============================================================ */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: space-between;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.1rem 1.4rem;
    box-shadow: 0 10px 40px rgba(30, 41, 59, 0.18);
    max-width: 780px;
    margin-inline: auto;
}
.cookie-banner p { margin: 0; font-size: 0.9rem; color: var(--text); flex: 1; min-width: 220px; }
.cookie-banner a { color: var(--accent); }
.cookie-accept {
    font-family: var(--font-head);
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border: none;
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .18s ease;
}
.cookie-accept:hover { background: var(--hover); }

/* ============================================================ *
 *  Адаптив
 * ============================================================ */
@media (max-width: 960px) {
    h1 { font-size: 2.6rem; }
    .single .entry-title, .page .entry-title { font-size: 2rem; }
    .front-section { padding: 80px 0; }
    .layout-with-sidebar { grid-template-columns: 1fr; gap: 2.6rem; }
    .layout-single { width: 100%; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rubricator-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-content { padding: 4.5rem 0; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.6rem; }
    .front-section { padding: 60px 0; }
    .header-inner { gap: 1rem; }
    .main-nav { margin-left: auto; width: auto; }
    .menu-toggle { display: inline-block; }
    .main-nav ul {
        display: none;
        position: absolute;
        left: 0; right: 0;
        top: 100%;
        flex-direction: column;
        gap: 0;
        background: #fff;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        padding: 0.6rem var(--shell-pad, 4%);
        z-index: 50;
    }
    .site-header { position: relative; }
    .main-nav.is-open ul { display: flex; }
    .main-nav ul li { width: 100%; }
    .stats-grid { grid-template-columns: 1fr; }
    .rubricator-grid { grid-template-columns: 1fr; }
    .timeline::before { left: 6px; }
    .timeline-item { grid-template-columns: 1fr; gap: 0.4rem; padding-left: 2rem; }
    .timeline-age { text-align: left; }
    .timeline-body::before { left: -26px; }
    .hero-content { padding: 3.4rem 0; }
    .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
    .footer-cols { grid-template-columns: 1fr; gap: 1.8rem; }
}
