/*
Theme Name: dds_simplyfreeblog.com
Theme URI: https://simplyfreeblog.com/
Author: Алексей Морозов
Author URI: https://simplyfreeblog.com/
Description: Информационная тема о фотографии природы: съёмка животных и пейзажей, оптика, свет. Японский минимализм с текстурой старой фотобумаги.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: grano
*/

/* ==========================================================================
   Переменные
   ========================================================================== */
:root {
    --bg:            #F7F5F0;
    --bg-alt:        #EDEAE3;
    --footer-bg:     #2B2A28;
    --ink:           #2B2A28;
    --accent:        #A63C3C;
    --bronze:        #8C6B4A;
    --muted:         #8C8A86;
    --footer-ink:    #E6E2D8;
    --footer-muted:  #A6A29A;
    --footer-line:   #45423E;
    --hairline:      #DAD5CB;
    --shell:         1180px;

    --font-head: "Futura PT", "Century Gothic", "Jost", "Trebuchet MS", "Segoe UI", -apple-system, Roboto, sans-serif;
    --font-body: "Helvetica Neue", "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background-color: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
    min-height: 100vh;
}

/* Зерно старой фотобумаги — тонкий шумовой слой поверх фона */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}

/* Полупрозрачный контурный силуэт сосны и гор в правом нижнем углу */
body::after {
    content: "";
    position: fixed;
    right: -20px;
    bottom: -10px;
    width: 340px;
    height: 300px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.03;
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 300'%3E%3Cg fill='none' stroke='%232B2A28' stroke-width='2'%3E%3Cpath d='M10 260 L90 150 L140 210 L200 120 L270 220 L330 160'/%3E%3Cpath d='M10 285 L120 190 L180 240 L250 165 L330 235'/%3E%3Cpath d='M235 300 L235 150'/%3E%3Cpath d='M235 165 L205 200 M235 165 L265 200 M235 195 L200 235 M235 195 L270 235 M235 225 L195 270 M235 225 L275 270'/%3E%3C/g%3E%3C/svg%3E");
}

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

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

p { margin: 0 0 1.1em; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.2;
    font-weight: 700;
}

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: #fff;
    padding: 10px 16px;
    z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Фирменная «красная точка» справа от заголовков */
.dot-mark {
    display: inline-block;
    width: 0.42em;
    height: 0.42em;
    margin-left: 0.4em;
    background: var(--accent);
    vertical-align: 0.5em;
}

/* Короткая бронзовая линия под заголовком секции */
.section-rule {
    display: block;
    width: 68px;
    height: 2px;
    margin: 0.7rem 0 1.6rem;
    background: var(--bronze);
}

.section-head { position: relative; }
.section-title {
    margin: 0;
    font-size: 2rem;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   Кнопки и ссылки
   ========================================================================== */
.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    padding: 0.7em 1.5em;
    color: var(--accent);
    background: transparent;
    border: 1.5px solid var(--accent);
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.12s ease;
}
.btn:hover,
.btn:focus {
    background: var(--accent);
    color: #fff;
    transform: translateX(2px);
}

.text-link {
    display: inline-block;
    color: var(--accent);
    background-image: linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size 0.18s ease;
}
.text-link:hover,
.text-link:focus { background-size: 100% 1px; }

/* Ссылки внутри контента */
.entry-content a {
    color: var(--accent);
    border-bottom: 1px solid transparent;
}
.entry-content a:hover { border-bottom-color: var(--accent); }

/* ==========================================================================
   Шапка
   ========================================================================== */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--hairline);
    padding: 1.1rem 0;
}
.site-header-inner {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    margin-right: auto;
}
.brand-logo-link { display: inline-flex; flex: 0 0 auto; }
.brand-logo { display: block; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.site-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.01em;
    color: var(--ink);
    line-height: 1.25;
}
a.site-title:hover { color: var(--accent); }
.site-desc {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.4;
    max-width: 46ch;
}

/* Навигация — не липкая */
.primary-nav { flex: 0 0 auto; }
.nav-list {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-list a {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    color: var(--ink);
    padding: 0.3em 0;
    border-bottom: 1.5px solid transparent;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-list a:hover,
.nav-list .current-menu-item > a {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1.5px solid var(--ink);
    border-radius: 4px;
    padding: 0.5em 0.8em;
    cursor: pointer;
    font-family: var(--font-head);
    color: var(--ink);
}
.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    margin: 3px 0;
}
.nav-toggle-label { font-size: 0.85rem; letter-spacing: 0.04em; }

/* ==========================================================================
   Секции главной
   ========================================================================== */
.site-content { display: block; }

.front-section { padding: 3.4rem 0; }
.front-section--alt {
    background: var(--bg-alt);
    position: relative;
}
.front-section--alt::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n2'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n2)'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}
.front-section--alt .shell { position: relative; z-index: 1; }

/* Hero */
.fs-hero {
    position: relative;
    width: 100%;
    min-height: min(78vh, 640px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.fs-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.fs-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20,18,16,0.82) 0%, rgba(20,18,16,0.35) 45%, rgba(20,18,16,0.05) 100%);
}
.fs-hero-caption {
    position: relative;
    z-index: 2;
    padding-bottom: 3rem;
    color: #F7F5F0;
}
.fs-hero-kicker {
    font-family: var(--font-head);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin: 0 0 0.7rem;
    color: #EDEAE3;
}
.fs-hero-kicker .dot-mark {
    margin-left: 0;
    margin-right: 0.55em;
    vertical-align: 0.05em;
}
.fs-hero-title {
    margin: 0 0 0.5rem;
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 700;
    letter-spacing: 0.03em;
    max-width: 20ch;
    color: #fff;
}
.fs-hero-sub {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: #D8D3C8;
}

/* Рубрики */
.rubric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}
.rubric {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 1.6rem 1.4rem;
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--ink);
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.rubric:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}
.rubric-icon { width: 48px; height: 48px; }
.rubric-icon svg { width: 100%; height: 100%; display: block; }
.rubric-name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.02em;
}
.rubric-desc { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

/* Текст + иллюстрация */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    gap: 3rem;
    align-items: start;
}
.split-text { min-width: 0; }
.split-media { min-width: 0; padding-top: 2.4rem; }
.split-media img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 4px;
}

/* Статистика */
.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    align-items: flex-start;
}
.stat { display: flex; flex-direction: column; min-width: 0; }
.stat-num {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(3rem, 7vw, 5rem);
    line-height: 1;
    color: var(--ink);
    letter-spacing: 0.01em;
}
.stat-label {
    margin-top: 0.6rem;
    color: var(--muted);
    font-size: 0.92rem;
    max-width: 22ch;
}
.stat--i0 { padding-left: 0; margin-top: 0; }
.stat--i1 { padding-left: 1.4rem; margin-top: 1.3rem; }
.stat--i2 { padding-left: 2.8rem; margin-top: 0.5rem; }

.section-cta { margin-top: 2.2rem; }

/* ==========================================================================
   Карточки записей
   ========================================================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.4rem;
}
.card {
    display: flex;
    flex-direction: column;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.25s ease;
}
.card:hover { transform: translateY(-6px); }
.card-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 2;
}
.card-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: opacity 0.25s ease, filter 0.25s ease;
}
.card:hover .card-thumb img {
    opacity: 0.92;
    filter: sepia(0.16) saturate(1.05);
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.1rem 0 0;
    min-width: 0;
}
.card-meta {
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-bottom: 0.5rem;
}
.card-title {
    font-size: 1.3rem;
    line-height: 1.3;
    margin: 0 0 0.6rem;
}
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent); }
.card-excerpt {
    color: #4a4844;
    font-size: 0.95rem;
    margin-bottom: 0.9rem;
}
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    margin-top: auto;
    align-self: flex-start;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    color: var(--accent);
    border-bottom: 1px solid transparent;
}
.card-more:hover { border-bottom-color: var(--accent); }

/* ==========================================================================
   Раскладки контента
   ========================================================================== */
.page-shell { padding: 2.4rem 0 3.6rem; }

.layout-single { display: block; }
.layout-single .content-area {
    width: 85%;
    margin-inline: auto;
    min-width: 0;
}

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

.page-head { margin-bottom: 2rem; }
.page-title { font-size: 2.4rem; margin: 0; letter-spacing: 0.02em; }
.page-lead { color: var(--muted); margin-top: 0.4rem; }
.empty-note { color: var(--muted); }

/* Запись / страница */
.single-head { margin-bottom: 1.4rem; }
.single-title { font-size: 2.6rem; margin: 0; line-height: 1.15; letter-spacing: 0.01em; }
.single-meta {
    margin-top: 0.8rem;
    color: var(--muted);
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}
.meta-sep { margin: 0 0.5em; }
.single-thumb { margin: 0 0 1.8rem; }
.single-thumb img { display: block; width: 100%; border-radius: 4px; }

.entry-content { font-size: 1.05rem; }
.entry-content h2 { font-size: 1.7rem; margin: 2rem 0 0.8rem; }
.entry-content h3 { font-size: 1.35rem; margin: 1.6rem 0 0.6rem; }
.entry-content img { border-radius: 4px; }
.entry-content ul,
.entry-content ol { padding-left: 1.4rem; }
.entry-content li { margin-bottom: 0.4em; }

/* Цитата — массивная бронзовая черта слева, курсив */
.entry-content blockquote {
    margin: 1.8rem 0;
    padding: 0.4rem 0 0.4rem 1.4rem;
    border-left: 4px solid var(--bronze);
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #3a3835;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }

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

.single-tags {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.tag-chip {
    font-size: 0.85rem;
    padding: 0.3em 0.8em;
    border: 1px solid var(--bronze);
    border-radius: 4px;
    color: var(--bronze);
}
.tag-chip:hover { background: var(--bronze); color: #fff; }

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

/* ==========================================================================
   Сайдбар и виджеты (светлый фон → тёмный текст)
   ========================================================================== */
.sidebar { min-width: 0; }
.sidebar .widget { margin-bottom: 2.2rem; }
.widget-title {
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    margin: 0 0 1rem;
    color: var(--ink);
    position: relative;
    padding-bottom: 0.5rem;
}
.widget-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 44px;
    height: 2px;
    background: var(--bronze);
}
.sidebar .widget,
.sidebar .widget a,
.sidebar .widget li { color: var(--ink); }
.sidebar .widget a:hover { color: var(--accent); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--hairline);
    font-size: 0.95rem;
}
.sidebar li:last-child { border-bottom: none; }
.sidebar .post-date { display: block; color: var(--muted); font-size: 0.8rem; }

/* ==========================================================================
   Подвал (тёмный фон → светлый текст)
   ========================================================================== */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-ink);
    padding: 3rem 0 1.6rem;
    margin-top: 2rem;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
}
.footer-col { min-width: 0; }
.site-footer .widget-title { color: var(--footer-ink); }
.site-footer .widget-title::after { background: var(--bronze); }
.site-footer,
.site-footer p,
.site-footer li { color: var(--footer-ink); }
.site-footer .widget a { color: var(--footer-ink); border-bottom: 1px solid transparent; }
.site-footer .widget a:hover { color: #fff; border-bottom-color: var(--bronze); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 0.4rem 0; border-bottom: 1px solid var(--footer-line); font-size: 0.95rem; }
.site-footer li:last-child { border-bottom: none; }
.footer-bottom {
    margin-top: 2.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--footer-line);
}
.copyright { margin: 0; color: var(--footer-muted); font-size: 0.85rem; letter-spacing: 0.03em; }

/* ==========================================================================
   Хлебные крошки
   ========================================================================== */
.breadcrumbs {
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    color: var(--muted);
    margin-bottom: 1.6rem;
}
.breadcrumbs a { color: var(--bronze); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .crumb-sep { color: var(--muted); margin: 0 0.15em; }

/* ==========================================================================
   Пагинация (type => plain, стили на .page-numbers)
   ========================================================================== */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 3rem;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.7em;
    font-family: var(--font-head);
    font-size: 0.95rem;
    color: var(--ink);
    border: 1px solid var(--hairline);
    border-radius: 4px;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s 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;
    min-width: auto;
}

/* ==========================================================================
   Форма поиска
   ========================================================================== */
.search-form { margin: 1rem 0; }
.search-label {
    display: block;
    font-family: var(--font-head);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.search-row { display: flex; gap: 0.6rem; }
.search-input {
    flex: 1;
    min-width: 0;
    padding: 0.6em 0.9em;
    border: 1px solid var(--hairline);
    border-radius: 4px;
    background: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
}
.search-input:focus { outline: none; border-color: var(--accent); }
.search-submit { flex: 0 0 auto; }
.sidebar .search-input { background: #fff; }

/* ==========================================================================
   Комментарии
   ========================================================================== */
.comments-area { margin-top: 3rem; }
.comments-title { font-size: 1.5rem; margin-bottom: 1.4rem; }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list ol.children { list-style: none; margin: 1rem 0 0 1.6rem; padding: 0; }
.comment-item { margin-bottom: 1.4rem; }
.comment-inner {
    padding: 1.2rem 1.4rem;
    background: var(--bg-alt);
    border-radius: 4px;
}
.comment-head { display: flex; gap: 0.8rem; align-items: baseline; margin-bottom: 0.5rem; }
.comment-author { font-family: var(--font-head); font-weight: 600; }
.comment-date { color: var(--muted); font-size: 0.8rem; }
.comment-pending { color: var(--accent); font-size: 0.85rem; }
.comment-actions { margin-top: 0.5rem; font-size: 0.85rem; }
.comment-actions a { color: var(--bronze); }
.comment-actions a:hover { color: var(--accent); }

.comment-respond {
    margin-top: 2rem;
    padding: 1.6rem 1.6rem 1.8rem;
    background: var(--bg-alt);
    border-radius: 4px;
}
.comment-reply-title { font-size: 1.3rem; margin: 0 0 0.4rem; }
.comment-notes { color: var(--muted); font-size: 0.85rem; }
.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.6em 0.8em;
    margin-bottom: 1rem;
    border: 1px solid var(--hairline);
    border-radius: 4px;
    background: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
}
.comment-form textarea:focus,
.comment-form input:focus { outline: none; border-color: var(--accent); }
.comments-closed { color: var(--muted); }

/* ==========================================================================
   Карта сайта
   ========================================================================== */
.sitemap h2 { font-size: 1.4rem; margin: 1.6rem 0 0.8rem; }
.sitemap ul { padding-left: 1.2rem; }
.sitemap li { margin-bottom: 0.4rem; }

/* ==========================================================================
   404
   ========================================================================== */
.error-404 { text-align: left; }
.error-lead { color: var(--muted); font-size: 1.1rem; max-width: 52ch; }
.error-search { margin: 1.6rem 0 2rem; max-width: 480px; }
.error-back { margin-top: 1rem; }

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: 1rem 1.4rem;
    background: var(--footer-bg);
    color: var(--footer-ink);
    border-top: 2px solid var(--bronze);
}
.cookie-text {
    margin: 0;
    flex: 1;
    min-width: 220px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--footer-ink);
}
.cookie-accept {
    flex: 0 0 auto;
    color: #F7F5F0;
    border-color: #F7F5F0;
}
.cookie-accept:hover {
    background: #F7F5F0;
    color: var(--footer-bg);
}

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 960px) {
    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.6rem;
    }
    .layout-single .content-area { width: 100%; }
    .split { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .split-media { padding-top: 0; max-width: 480px; }
    .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    body { font-size: 16px; }

    .site-header-inner { gap: 1rem; }
    .nav-toggle { display: inline-flex; }
    .primary-nav {
        flex-basis: 100%;
        display: none;
    }
    .primary-nav.is-open { display: block; }
    .nav-list {
        flex-direction: column;
        gap: 0.2rem;
        padding-top: 0.8rem;
    }
    .nav-list a { display: block; padding: 0.6em 0; }

    .front-section { padding: 2.4rem 0; }
    .rubric-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .card-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }

    .stats-row { flex-direction: column; gap: 1.6rem; }
    .stat--i0,
    .stat--i1,
    .stat--i2 { padding-left: 0; margin-top: 0; }
    .stat-label { max-width: none; }

    .fs-hero { min-height: 62vh; }
    .fs-hero-caption { padding-bottom: 2rem; }

    .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 2rem; }

    .single-title { font-size: 2rem; }
    .page-title { font-size: 1.9rem; }
    .section-title { font-size: 1.6rem; }

    .cookie-banner { padding: 0.9rem 1.1rem; gap: 0.8rem; }
}
