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

/* ============================================================= *
 * Переменные
 * ============================================================= */
:root {
    --bg:          #F4F6FA;
    --bg-alt:      #EBEEF5;
    --footer-bg:   #0B0E1A;
    --card-bg:     #FFFFFF;
    --ink:         #1A1F2E;
    --accent:      #6C4DFF;
    --accent-2:    #00D4B6;
    --accent-deep: #3A1C9E;
    --muted:       #7A8299;
    --border:      #DDE2EC;
    --shell:       1180px;
    --radius:      12px;
    --font: 'Inter', 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(108, 77, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 77, 255, 0.045) 1px, transparent 1px);
    background-size: 26px 26px;
    background-attachment: fixed;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Декоративный blob в правом нижнем углу */
body::after {
    content: "";
    position: fixed;
    right: -140px;
    bottom: -140px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 182, 0.16) 0%, rgba(0, 212, 182, 0) 70%);
    filter: blur(30px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

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);
    color: var(--ink);
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h1 { font-size: 2.6rem; margin: 0 0 0.5em; }
h2 { font-size: 1.9rem; margin: 0 0 0.6em; }
h3 { font-size: 1.3rem; margin: 0 0 0.5em; }

.shell {
    width: min(92%, var(--shell));
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

.site-content { padding: 2.4rem 0 3.4rem; }

/* Контентные ссылки — пунктирное подчёркивание при наведении */
.entry-content a,
.widget-text a,
.crumbs a {
    background-image: linear-gradient(to right, currentColor 0, currentColor 100%);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size 0.25s ease;
    padding-bottom: 1px;
}
.entry-content a:hover,
.widget-text a:hover,
.crumbs a:hover {
    background-size: 100% 1px;
    background-image: repeating-linear-gradient(to right, currentColor 0, currentColor 4px, transparent 4px, transparent 7px);
}

/* ============================================================= *
 * Кнопки
 * ============================================================= */
.btn {
    display: inline-block;
    padding: 0.85em 1.8em;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.2s ease;
    text-align: center;
}
.btn-primary {
    color: #fff;
    background: linear-gradient(120deg, var(--accent), var(--accent-deep));
    border-color: rgba(255, 255, 255, 0.15);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(108, 77, 255, 0.4);
}
.btn-outline {
    color: var(--accent);
    background: transparent;
    border: 1px solid var(--accent);
}
.btn-outline:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(108, 77, 255, 0.22);
}

/* ============================================================= *
 * Шапка
 * ============================================================= */
.site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 5;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    text-decoration: none;
    color: var(--ink);
}
.brand-logo { display: block; height: 52px; width: auto; }
.brand svg.brand-logo { height: 52px; width: 52px; }
.brand-text { min-width: 0; }
.brand-name {
    display: block;
    font-weight: 700;
    font-size: 1.12rem;
    line-height: 1.25;
    color: var(--ink);
}
.brand-desc {
    display: block;
    font-size: 0.82rem;
    color: var(--muted);
    max-width: 520px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.6rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.main-nav a {
    color: var(--ink);
    font-weight: 500;
    position: relative;
    padding: 0.3em 0;
}
.main-nav a:hover,
.main-nav .current-menu-item > a { color: var(--accent); }
.main-nav .current-menu-item > a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: var(--accent);
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5em 0.7em;
    cursor: pointer;
    font-size: 1rem;
    color: var(--ink);
}

/* ============================================================= *
 * Заголовки секций — цветная полоса + «ломаный край»
 * ============================================================= */
.section-title {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 1.4rem;
}
.section-title::before {
    content: "";
    position: absolute;
    left: 0; top: 0.15em; bottom: 0.15em;
    width: 4px;
    background: var(--accent);
    border-radius: 2px;
}
.section-title .lead-letter {
    display: inline-block;
    transform: translateY(5px);
}

/* «Цифровой отпечаток» — порядковый номер за заголовком */
.numbered {
    position: relative;
    padding-top: 0.2em;
}
.numbered[data-num]::before {
    content: attr(data-num);
    position: absolute;
    top: -0.55em;
    left: -0.2em;
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
    opacity: 0.07;
    z-index: 0;
    pointer-events: none;
}
.numbered > * { position: relative; z-index: 1; }

/* Разорванный разделитель секций */
.divider {
    position: relative;
    height: 1px;
    background: var(--border);
    margin: 2.6rem 0;
}
.divider::after {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 16px; height: 16px;
    background: var(--bg);
    border: 1px solid var(--accent);
    border-radius: 50%;
}
.divider::before {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 4px; height: 4px;
    background: var(--accent);
    border-radius: 50%;
    z-index: 1;
}

/* ============================================================= *
 * Раскладки
 * ============================================================= */
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 3%;
    align-items: start;
}
.layout-single {
    display: block;
    width: 85%;
    margin-inline: auto;
}
.content-area { min-width: 0; }

.sidebar {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem 1.4rem 0.6rem;
}
.sidebar .widget { margin-bottom: 1.6rem; }
.sidebar .widget-title {
    font-size: 1.05rem;
    margin: 0 0 0.9rem;
    color: var(--ink);
    padding-left: 0.7rem;
    position: relative;
}
.sidebar .widget-title::before {
    content: "";
    position: absolute; left: 0; top: 0.1em; bottom: 0.1em;
    width: 3px; background: var(--accent-2); border-radius: 2px;
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { margin-bottom: 0.7rem; line-height: 1.4; }
.sidebar a { color: var(--ink); }
.sidebar a:hover { color: var(--accent); }
.sidebar .post-date { color: var(--muted); font-size: 0.8rem; }

/* ============================================================= *
 * Карточки записей
 * ============================================================= */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.6rem;
}
.card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(108, 77, 255, 0.08);
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.card:hover {
    border-color: var(--accent);
    box-shadow: 0 14px 34px rgba(108, 77, 255, 0.18);
    transform: translateY(-2px);
}
.card-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--bg-alt);
}
.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
/* эффект зернистости поверх миниатюры */
.card-thumb::after {
    content: "";
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    opacity: 0.06;
    pointer-events: none;
    mix-blend-mode: multiply;
}
.card-thumb-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    background: linear-gradient(120deg, var(--bg-alt), #fff);
    color: var(--accent);
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.2rem 1.3rem 1.4rem;
}
.card-title { font-size: 1.18rem; margin: 0 0 0.5rem; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent); }
.card-meta {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.6rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}
.card-excerpt { color: #454b5c; font-size: 0.94rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    margin-top: auto;
    padding-top: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    align-self: flex-start;
}
.card-more:hover { color: var(--accent-deep); }

/* ============================================================= *
 * Главная — секции
 * ============================================================= */
.front-section { padding: 3rem 0; }
.front-section.alt {
    background: var(--bg-alt);
    padding: 3.4rem 0;
}

/* Блок 1 — текст + иллюстрация */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.6rem;
    align-items: center;
}
.split-text p { font-size: 1.05rem; }
.split .hl { color: var(--accent); font-weight: 700; }
.split-media { justify-self: center; width: 100%; }
.split-media svg { width: 100%; height: auto; display: block; }

/* Блок 2 — таймлайн */
.timeline { position: relative; margin-top: 1rem; padding-left: 2.4rem; }
.timeline::before {
    content: "";
    position: absolute;
    left: 8px; top: 6px; bottom: 6px;
    width: 2px;
    background: linear-gradient(var(--accent), var(--accent-2));
}
.tl-item { position: relative; margin-bottom: 1.8rem; }
.tl-item::before {
    content: "";
    position: absolute;
    left: -2.4rem; top: 4px;
    width: 16px; height: 16px;
    margin-left: 1px;
    background: #fff;
    border: 3px solid var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(108, 77, 255, 0.12);
}
.tl-year { font-weight: 800; color: var(--accent); font-size: 1.15rem; }
.tl-body { margin: 0.2rem 0 0; color: #3d4356; }

/* Блок 3 — статистика / табло */
.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: 1rem;
}
.stat {
    background: #fff;
    border: 1px solid var(--border);
    border-bottom: 3px solid var(--accent);
    border-radius: 10px;
    padding: 1.6rem 1.2rem;
    text-align: left;
}
.stat-num {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.stat-label { color: var(--muted); font-size: 0.9rem; margin-top: 0.5rem; }

/* Блок 4 — CTA */
.cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, var(--accent), var(--accent-deep));
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(120deg, var(--accent), var(--accent-deep));
    background-size: 30px 30px, 30px 30px, 100% 100%;
    color: #fff;
    border-radius: 14px;
    padding: 3rem 2.6rem;
    text-align: center;
}
.cta::after {
    content: "";
    position: absolute;
    right: -60px; top: -60px;
    width: 220px; height: 220px;
    background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.12) 0 10px, transparent 10px 20px);
    transform: rotate(8deg);
    pointer-events: none;
}
.cta h2 { color: #fff; font-size: 2.1rem; position: relative; z-index: 1; }
.cta p { color: rgba(255, 255, 255, 0.9); max-width: 620px; margin-inline: auto; position: relative; z-index: 1; }
.cta .btn {
    position: relative;
    z-index: 1;
    margin-top: 1.4rem;
    background: #fff;
    color: var(--accent-deep);
    font-size: 1.05rem;
}
.cta .btn:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28); }

.front-latest .cards-grid { margin-top: 0.6rem; }

/* ============================================================= *
 * Контент записи / страницы
 * ============================================================= */
.entry-header { margin-bottom: 1.4rem; }
.entry-title { font-size: 2.3rem; }
.entry-meta { color: var(--muted); font-size: 0.9rem; margin-top: 0.4rem; }
.entry-thumb { margin: 0 0 1.6rem; }
.entry-thumb img { display: block; width: 100%; border-radius: var(--radius); }
.entry-content { font-size: 1.04rem; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.3em; }
.entry-content img { border-radius: 8px; height: auto; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: 0.4em; }

/* Цитаты — «вырезанный» блок */
.entry-content blockquote {
    margin: 1.6em 0;
    padding: 1.2rem 1.4rem;
    border-left: 6px solid var(--accent);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #fff;
    font-size: 1.08rem;
    color: #2b3040;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }

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

.tags-line { margin-top: 1.6rem; font-size: 0.9rem; color: var(--muted); }
.tags-line a {
    display: inline-block;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.2em 0.7em;
    margin: 0.2em 0.2em 0.2em 0;
    color: var(--ink);
}
.tags-line a:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================= *
 * Хлебные крошки
 * ============================================================= */
.crumbs {
    font-size: 0.86rem;
    color: var(--muted);
    padding: 1rem 0 0.4rem;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { margin: 0 0.35rem; color: var(--accent); }
.crumbs span { color: var(--ink); }

/* ============================================================= *
 * Пагинация (type => plain, стили на .page-numbers)
 * ============================================================= */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 2.4rem 0 0.5rem;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 0.5em 0.8em;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-weight: 600;
    transition: all 0.2s ease;
}
.pager a.page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.pager .page-numbers.current {
    background: linear-gradient(120deg, var(--accent), var(--accent-deep));
    border-color: transparent;
    color: #fff;
}
.pager .page-numbers.dots {
    border: none;
    background: none;
    min-width: auto;
}

/* ============================================================= *
 * Комментарии
 * ============================================================= */
.comments-area { margin-top: 2.6rem; }
.comments-title { font-size: 1.5rem; }
.comment-list { list-style: none; margin: 1.4rem 0; padding: 0; }
.comment-list .children { list-style: none; margin: 0 0 0 1.6rem; padding: 0; }
.comment-inner {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
}
.comment-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.4rem;
}
.comment-author { font-weight: 700; }
.comment-date { color: var(--muted); font-size: 0.82rem; }
.comment-reply a { font-size: 0.85rem; font-weight: 600; }
.comment-await { color: var(--accent); font-size: 0.85rem; }
.comment-respond {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.4rem 1.5rem;
    margin-top: 1.4rem;
}
.comment-form label { display: block; font-weight: 600; 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.7em 0.9em;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 1rem;
    background: var(--bg);
}
.comment-form textarea:focus,
.comment-form input:focus,
.search-field:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}
.comment-form .submit,
.search-submit {
    display: inline-block;
    padding: 0.75em 1.6em;
    border: none;
    border-radius: 8px;
    background: linear-gradient(120deg, var(--accent), var(--accent-deep));
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.comment-form .submit:hover,
.search-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(108, 77, 255, 0.3);
}

/* ============================================================= *
 * Форма поиска
 * ============================================================= */
.search-form {
    display: flex;
    gap: 0.5rem;
}
.search-field {
    flex: 1;
    min-width: 0;
    padding: 0.7em 0.9em;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
}

/* ============================================================= *
 * Подвал
 * ============================================================= */
.site-footer {
    background: var(--footer-bg);
    color: #C7CDDC;
    margin-top: 3rem;
    padding: 3rem 0 1.4rem;
    position: relative;
    z-index: 1;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
}
.site-footer .widget-title {
    color: #fff;
    font-size: 1.05rem;
    margin: 0 0 1rem;
    padding-left: 0.7rem;
    position: relative;
}
.site-footer .widget-title::before {
    content: "";
    position: absolute; left: 0; top: 0.1em; bottom: 0.1em;
    width: 3px; background: var(--accent-2); border-radius: 2px;
}
.site-footer .widget { font-size: 0.94rem; }
.site-footer p { color: #B4BBCC; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.6rem; }
.site-footer a { color: #C7CDDC; }
.site-footer a:hover { color: var(--accent-2); }
.site-footer .post-date { color: #838BA1; font-size: 0.8rem; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2.4rem;
    padding-top: 1.4rem;
    font-size: 0.85rem;
    color: #8B92A8;
}

/* ============================================================= *
 * Cookie-баннер
 * ============================================================= */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 1rem; right: 1rem; bottom: 1rem;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    background: var(--footer-bg);
    color: #E6E9F2;
    border: 1px solid rgba(108, 77, 255, 0.4);
    border-radius: 12px;
    padding: 1rem 1.4rem;
    box-shadow: 0 14px 40px rgba(11, 14, 26, 0.4);
    max-width: 880px;
    margin-inline: auto;
}
.cookie-banner p { margin: 0; font-size: 0.9rem; }
.cookie-banner a { color: var(--accent-2); }
.cookie-accept {
    border: none;
    border-radius: 8px;
    padding: 0.6em 1.4em;
    background: linear-gradient(120deg, var(--accent), var(--accent-deep));
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.cookie-accept:hover { box-shadow: 0 8px 20px rgba(108, 77, 255, 0.4); }

/* ============================================================= *
 * 404
 * ============================================================= */
.error-404 { text-align: center; padding: 2rem 0 3rem; }
.error-404 .code {
    font-size: 6rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.2;
    line-height: 1;
}
.error-404 .search-form { max-width: 460px; margin: 1.6rem auto 0; }

/* ============================================================= *
 * Адаптив
 * ============================================================= */
@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: 1fr; gap: 2rem; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    h1 { font-size: 2.2rem; }
    .split { grid-template-columns: 1fr; gap: 1.6rem; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .header-inner { flex-direction: column; align-items: flex-start; }
    .nav-toggle { display: inline-block; align-self: flex-end; margin-top: -2.6rem; }
    .main-nav { width: 100%; }
    .main-nav ul {
        flex-direction: column;
        gap: 0.2rem;
        display: none;
    }
    .main-nav.open ul { display: flex; }
    .main-nav a { display: block; padding: 0.6em 0; border-bottom: 1px solid var(--border); }
    .stats { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr; }
    .layout-single { width: 100%; }
    .cta { padding: 2rem 1.4rem; }
    .cta h2 { font-size: 1.6rem; }
    .front-section { padding: 2.2rem 0; }
    .front-section.alt { padding: 2.4rem 0; }
    .numbered[data-num]::before { font-size: 4rem; }
    .cookie-banner { flex-direction: column; align-items: stretch; text-align: left; }
    .cookie-accept { width: 100%; }
}
