/*
Theme Name: dds_54-fz.ru
Author: Илья Рябинин
Description: Информационная тема для образовательного портала по фискальному праву и кассовой дисциплине. Дизайн «Нормативный техно-минимализм»: холодная палитра, строгая сетка, бирюзовые акценты.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: fiskurs
*/

/* =========================================================
   Переменные
   ========================================================= */
:root {
    --bg:            #F0F4F8;
    --bg-alt:        #E8EEF5;
    --white:         #FFFFFF;
    --ink:           #1A2634;
    --dark:          #0F172A;
    --dark-2:        #1E293B;
    --indigo:        #1E3A8A;
    --accent:        #00B4D8;
    --accent-dark:   #0098b8;
    --amber:         #FFB703;
    --muted:         #64748B;
    --line:          #E2E8F0;
    --shell:         min(92%, 1180px);
    --radius:        8px;
    --shadow:        0 8px 20px rgba(15, 23, 42, 0.06);
    --shadow-hover:  0 16px 34px rgba(15, 23, 42, 0.12);
    --sans:          'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --head:          'Manrope', 'Inter', system-ui, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 44px 44px;
    overflow-x: hidden;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--head);
    color: var(--ink);
    line-height: 1.2;
    margin: 0 0 .6em;
    font-weight: 800;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }

p { margin: 0 0 1.1em; }

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

.site-main { padding: 2.6rem 0 3.4rem; }

/* =========================================================
   Кнопки
   ========================================================= */
.btn {
    display: inline-block;
    font-family: var(--head);
    font-weight: 700;
    font-size: .98rem;
    line-height: 1;
    padding: .85rem 1.6rem;
    border-radius: 4px;
    border: 2px solid var(--accent);
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
    transform: translateY(2px);
    box-shadow: 0 -5px 14px rgba(0, 180, 216, .35);
}
.btn--outline {
    background: transparent;
    color: var(--accent);
}
.btn--outline:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: none;
    box-shadow: none;
}

/* Ссылки в тексте — подчёркивание слева направо */
.entry-content a,
.widget a,
.breadcrumbs a {
    background-image: linear-gradient(var(--accent), var(--accent));
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size .3s ease;
}
.entry-content a:hover,
.widget a:hover,
.breadcrumbs a:hover { background-size: 100% 2px; }

/* =========================================================
   Шапка
   ========================================================= */
.site-header {
    background: var(--dark);
    color: #cdd7e5;
    border-bottom: 3px solid var(--accent);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    padding: 1.1rem 0;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-width: 0;
    text-decoration: none;
}
.brand-logo { display: block; height: 46px; width: auto; }
.brand-text { min-width: 0; }
.brand-name {
    font-family: var(--head);
    font-weight: 800;
    font-size: 1.12rem;
    color: #fff;
    line-height: 1.2;
    display: block;
    letter-spacing: -0.01em;
}
.brand-desc {
    font-size: .8rem;
    color: #7d8ba0;
    line-height: 1.35;
    display: block;
    margin-top: .15rem;
    max-width: 46ch;
}

/* Навигация */
.main-nav { margin-left: auto; }
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid #33415a;
    border-radius: 4px;
    color: #fff;
    padding: .5rem .7rem;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: .4rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.main-nav a {
    display: block;
    color: #cdd7e5;
    font-family: var(--head);
    font-weight: 600;
    font-size: .96rem;
    padding: .5rem .85rem;
    border-radius: 4px;
    transition: background .18s ease, color .18s ease;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
    background: rgba(0, 180, 216, .16);
    color: #fff;
}

/* =========================================================
   Хлебные крошки
   ========================================================= */
.breadcrumbs {
    font-size: .88rem;
    color: var(--muted);
    padding: 1.1rem 0 0;
}
.breadcrumbs a { color: var(--accent); }
.breadcrumbs .sep { margin: 0 .35rem; color: #9aa7b8; }
.breadcrumbs span { color: var(--muted); }

/* =========================================================
   Раскладки контента
   ========================================================= */
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 2.48fr) minmax(0, 1fr);
    gap: 2.6rem;
    align-items: start;
}
.layout-single { display: block; }
.layout-single .content-area { max-width: 860px; margin-inline: auto; }

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

/* Записи и страницы */
.entry {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.2rem 2.4rem 2.6rem;
    margin-bottom: 2rem;
}
.entry-header { margin-bottom: 1.4rem; }
.entry-title { margin: .3rem 0 .5rem; }
.entry-meta {
    font-size: .86rem;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.entry-meta a { color: var(--muted); }
.entry-thumb { margin: 0 0 1.6rem; }
.entry-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius);
}

.entry-content { font-size: 1.02rem; }
.entry-content > * { max-width: 100%; }
.entry-content p { margin: 0 0 1.2em; }
.entry-content h2, .entry-content h3, .entry-content h4 {
    position: relative;
    padding-left: .95rem;
    margin-top: 1.8em;
}
.entry-content h2::before,
.entry-content h3::before,
.entry-content h4::before {
    content: "";
    position: absolute;
    left: 0; top: .12em; bottom: .12em;
    width: 4px;
    background: var(--accent);
    border-radius: 2px;
}
.entry-content ul, .entry-content ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .4em; }
.entry-content img { border-radius: var(--radius); height: auto; }

/* Стальной акцент — цитаты */
.entry-content blockquote {
    margin: 1.6em 0;
    padding: 1.1rem 1.5rem;
    background: var(--bg);
    border-left: 6px solid var(--accent);
    border-radius: 5px;
    color: var(--ink);
    font-size: 1.06rem;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }

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

.entry-content pre {
    background: var(--dark);
    color: #cbd5e1;
    padding: 1rem 1.2rem;
    border-radius: 6px;
    overflow-x: auto;
    min-width: 0;
}
.entry-content code { background: var(--bg-alt); padding: .1em .35em; border-radius: 3px; }

/* Разбивка постраничной навигации внутри записи */
.entry-footer { margin-top: 1.6rem; font-size: .9rem; color: var(--muted); }
.entry-footer a { color: var(--accent); }
.tag-links a {
    display: inline-block;
    background: var(--bg-alt);
    padding: .25rem .6rem;
    border-radius: 4px;
    margin: 0 .3rem .3rem 0;
    font-size: .82rem;
}

/* =========================================================
   Карточки записей (лента)
   ========================================================= */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1.6rem;
}
.card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease;
}
.card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
    z-index: 2;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card:hover::before { transform: scaleX(1); }

.card-thumb { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.card-thumb--placeholder {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--dark) 0%, var(--indigo) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-thumb--placeholder svg { width: 64px; height: 64px; opacity: .7; }

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.3rem 1.4rem 1.5rem;
    min-width: 0;
}
.card-meta { font-size: .8rem; color: var(--muted); margin-bottom: .5rem; }
.card-title { font-size: 1.22rem; margin: 0 0 .55rem; line-height: 1.25; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent); }
.card-excerpt { color: #43536a; font-size: .96rem; margin-bottom: 1.1rem; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-more {
    margin-top: auto;
    align-self: flex-start;
    font-family: var(--head);
    font-weight: 700;
    font-size: .92rem;
    color: var(--accent);
}
.card-more:hover { color: var(--accent-dark); }

/* =========================================================
   Пагинация
   ========================================================= */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
    margin: 2.4rem 0 .5rem;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 .7rem;
    border-radius: 4px;
    background: var(--white);
    border: 1px solid #d3dced;
    color: var(--ink);
    font-family: var(--head);
    font-weight: 600;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.pagination a.page-numbers:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .page-numbers.current { background: var(--dark); border-color: var(--dark); color: #fff; }
.pagination .page-numbers.dots { border: none; background: transparent; }

/* =========================================================
   Сайдбар и виджеты
   ========================================================= */
.sidebar { min-width: 0; }
.sidebar .widget {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.4rem 1.5rem 1.6rem;
    margin-bottom: 1.6rem;
    color: var(--ink);
}
.sidebar .widget-title {
    font-size: 1.1rem;
    margin: 0 0 1rem;
    position: relative;
    padding-top: .8rem;
    color: var(--ink);
}
.sidebar .widget-title::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 42px; height: 2px;
    background: var(--accent);
}
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.sidebar .widget li:last-child { border-bottom: none; }
.sidebar .widget a { color: var(--ink); }
.sidebar .widget a:hover { color: var(--accent); }
.sidebar .widget .post-date { display: block; font-size: .78rem; color: var(--muted); margin-top: .15rem; }

/* =========================================================
   Подвал
   ========================================================= */
.site-footer {
    background: var(--dark);
    color: #a9b6c9;
    margin-top: 3rem;
    border-top: 3px solid var(--accent);
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.2rem;
    padding: 3rem 0 2.4rem;
}
.site-footer .widget { margin: 0; }
.site-footer .widget-title {
    font-size: 1.05rem;
    color: #fff;
    margin: 0 0 1rem;
    position: relative;
    padding-top: .8rem;
}
.site-footer .widget-title::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 40px; height: 2px;
    background: var(--accent);
}
.site-footer .widget,
.site-footer .widget p { color: #a9b6c9; }
.site-footer .widget ul { list-style: none; margin: 0; padding: 0; }
.site-footer .widget li { padding: .35rem 0; }
.site-footer .widget a { color: #cdd7e5; }
.site-footer .widget a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid #1e2b45;
    padding: 1.3rem 0;
    font-size: .84rem;
    color: #6f7d93;
    text-align: center;
}

/* =========================================================
   Форма поиска
   ========================================================= */
.search-form { display: flex; gap: .5rem; }
.search-form .search-field {
    flex: 1;
    min-width: 0;
    padding: .7rem .9rem;
    border: 1px solid #cbd6e6;
    border-radius: 4px;
    font: inherit;
    background: #fff;
    color: var(--ink);
}
.search-form .search-field:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.search-form .search-submit {
    border: none;
    background: var(--accent);
    color: #fff;
    font-family: var(--head);
    font-weight: 700;
    padding: 0 1.2rem;
    border-radius: 4px;
    cursor: pointer;
}
.search-form .search-submit:hover { background: var(--accent-dark); }

/* =========================================================
   Комментарии
   ========================================================= */
.comments-area {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem 2.2rem;
    margin-top: 2rem;
}
.comments-title, .comment-reply-title { font-size: 1.35rem; margin-bottom: 1.2rem; }
.comment-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.comment-list ol.children { list-style: none; margin: 1rem 0 0; padding-left: 1.6rem; }
.comment-item { margin-bottom: 1.2rem; }
.comment-inner {
    background: var(--bg);
    border-radius: 6px;
    padding: 1.1rem 1.3rem;
    border-left: 4px solid var(--accent);
}
.comment-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-bottom: .5rem; }
.comment-author { font-family: var(--head); font-weight: 700; }
.comment-date { font-size: .8rem; color: var(--muted); }
.comment-await { color: var(--amber); font-size: .85rem; }
.comment-reply a { font-size: .85rem; font-weight: 600; }
.comment-respond { margin-top: 1.5rem; }
.comment-form label { display: block; font-family: var(--head); font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .65rem .8rem;
    border: 1px solid #cbd6e6;
    border-radius: 4px;
    font: inherit;
    margin-bottom: 1rem;
    background: #fff;
}
.comment-form textarea { min-height: 130px; resize: vertical; }
.comment-form .submit {
    border: none;
    background: var(--accent);
    color: #fff;
    font-family: var(--head);
    font-weight: 700;
    padding: .8rem 1.6rem;
    border-radius: 4px;
    cursor: pointer;
}
.comment-form .submit:hover { background: var(--accent-dark); }

/* =========================================================
   Cookie-баннер
   ========================================================= */
.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;
    background: var(--dark);
    color: #dce4f0;
    border: 1px solid #24324c;
    border-radius: 10px;
    padding: 1.1rem 1.4rem;
    box-shadow: 0 12px 40px rgba(15, 23, 42, .35);
    max-width: 720px;
    margin-inline: auto;
}
.cookie-banner p { margin: 0; font-size: .9rem; flex: 1; min-width: 220px; }
.cookie-banner a { color: var(--accent); }
.cookie-accept {
    border: none;
    background: var(--accent);
    color: #fff;
    font-family: var(--head);
    font-weight: 700;
    padding: .7rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}
.cookie-accept:hover { background: var(--accent-dark); }

/* =========================================================
   404
   ========================================================= */
.error-404 {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 3rem 2.4rem;
    text-align: center;
    max-width: 640px;
    margin-inline: auto;
}
.error-404 .code {
    font-family: var(--head);
    font-weight: 800;
    font-size: clamp(4rem, 14vw, 8rem);
    color: var(--accent);
    line-height: 1;
    margin-bottom: .5rem;
}
.error-404 .search-form { max-width: 420px; margin: 1.6rem auto 0; }

.page-intro { margin-bottom: 1.6rem; }
.page-intro .archive-title { margin-bottom: .3rem; }
.page-intro .archive-desc { color: var(--muted); }

/* =========================================================
   ГЛАВНАЯ — тематические секции
   ========================================================= */
.front-section { padding: 3.6rem 0; }
.fs-inner { width: var(--shell); margin-inline: auto; }

.fs-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.fs-title {
    position: relative;
    padding-top: 1rem;
    margin: 0;
    max-width: 34ch;
}
.fs-title::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 52px; height: 2px;
    background: var(--accent);
}
.fs-num {
    font-family: var(--head);
    font-weight: 800;
    font-size: 1.4rem;
    color: #b7c3d4;
    letter-spacing: .05em;
}
.fs-lead { color: var(--muted); max-width: 60ch; margin-top: -1rem; }

/* Блок 1 — Hero */
.hero {
    position: relative;
    background: var(--dark);
    color: #fff;
    overflow: hidden;
    padding: 4.4rem 0 4.8rem;
}
.hero::before {
    content: "";
    position: absolute;
    top: -30%; right: -8%;
    width: 620px; height: 620px;
    border-radius: 50%;
    background: var(--dark-2);
    opacity: .3;
    filter: blur(10px);
}
.hero-inner {
    width: var(--shell);
    margin-inline: auto;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 2.6rem;
    align-items: center;
}
.hero-eyebrow {
    display: inline-block;
    font-family: var(--head);
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid rgba(0, 180, 216, .4);
    border-radius: 4px;
    padding: .35rem .7rem;
    margin-bottom: 1.2rem;
}
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero-sub { color: #b3c0d4; font-size: 1.12rem; max-width: 46ch; margin-bottom: 1.8rem; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero-art { min-width: 0; }
.hero-art svg { display: block; width: 100%; height: auto; }

/* Блок 2 — Статистика */
.stats { background: var(--white); }
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
}
.stat {
    padding: 1rem 1.6rem;
    text-align: center;
    border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }
.stat-num {
    font-family: var(--head);
    font-weight: 800;
    font-size: clamp(2.6rem, 6vw, 5rem);
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.02em;
}
.stat-label { color: var(--muted); font-size: .95rem; margin-top: .6rem; }

/* Блок 3 — Чек-лист */
.checklist { background: var(--bg); }
.checklist-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.3rem 2.2rem;
}
.check-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.2rem 1.4rem;
    min-width: 0;
}
.check-mark {
    flex: 0 0 auto;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
}
.check-mark svg { width: 20px; height: 20px; display: block; }
.check-text {
    font-family: var(--head);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink);
    line-height: 1.35;
}

/* Блок 4 — Zigzag */
.zigzag { background: var(--white); }
.zz-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.4rem;
    align-items: center;
    margin-bottom: 2.6rem;
}
.zz-row:last-child { margin-bottom: 0; }
.zz-row:nth-child(even) .zz-media { order: 2; }
.zz-media { min-width: 0; }
.zz-media svg { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.zz-body { min-width: 0; position: relative; }
.zz-num {
    font-family: var(--head);
    font-weight: 800;
    font-size: 3.4rem;
    color: var(--bg-alt);
    line-height: 1;
    margin-bottom: .3rem;
}
.zz-body h3 { margin-bottom: .5rem; }
.zz-body p { color: #43536a; margin: 0; }

/* Секция «последние записи» на главной */
.front-latest { background: var(--bg-alt); }
.front-latest .cards-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

/* Разделитель-шеврон между секциями свет/серый */
.section-chevron {
    height: 22px;
    background:
        repeating-linear-gradient(135deg, transparent 0 14px, rgba(0,180,216,.12) 14px 15px);
    opacity: .7;
}

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); }
    .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-inner { grid-template-columns: minmax(0, 1fr); }
    .hero-art { max-width: 460px; }
    .zz-row { gap: 1.6rem; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .site-main { padding: 1.6rem 0 2.4rem; }
    .front-section { padding: 2.6rem 0; }
    .hero { padding: 3rem 0 3.4rem; }

    .main-nav { margin-left: auto; }
    .nav-toggle { display: block; }
    .main-nav ul {
        display: none;
        position: absolute;
        left: 0; right: 0;
        top: 100%;
        flex-direction: column;
        gap: 0;
        background: var(--dark);
        border-top: 1px solid #24324c;
        padding: .5rem 0;
        z-index: 50;
    }
    .site-header { position: relative; }
    .main-nav.is-open ul { display: flex; }
    .main-nav a { padding: .7rem 1rem; border-radius: 0; }

    .header-inner { padding: .9rem 0; }
    .brand-desc { display: none; }

    .stats-row { grid-template-columns: minmax(0, 1fr); }
    .stat { border-left: none; border-top: 1px solid var(--line); padding: 1.2rem; }
    .stat:first-child { border-top: none; }

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

    .zz-row { grid-template-columns: minmax(0, 1fr); }
    .zz-row:nth-child(even) .zz-media { order: 0; }

    .entry { padding: 1.5rem 1.3rem 1.8rem; }
    .comments-area { padding: 1.4rem 1.3rem; }

    .cookie-banner { left: .6rem; right: .6rem; bottom: .6rem; padding: 1rem 1.1rem; }
    .cookie-banner p { min-width: 100%; }
    .cookie-accept { width: 100%; }
}
