/*
Theme Name: dds_sbvauto.ru
Theme URI: https://sbvauto.ru/
Author: Дмитрий Савельев
Description: Тема для онлайн-автошколы: курсы по ПДД, устройству автомобиля, шинам и дискам и блог для водителей. Концепция «Стальной контраст».
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sbvauto
*/

:root {
    --bg: #F4F7FA;
    --bg-alt: #E4EBF2;
    --ink: #132433;
    --navy: #0B1E33;
    --red: #E63946;
    --teal: #2A9D8F;
    --muted: #6B7C8C;
    --white: #FFFFFF;
    --f-head: "Unbounded", "Arial Black", "Segoe UI", sans-serif;
    --f-body: "Golos Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
    margin: 0;
    font-family: var(--f-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--bg);
    background-image: repeating-linear-gradient(45deg, #E4EBF2 0 1px, transparent 1px 24px);
    overflow-x: hidden;
    position: relative;
}
body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -1;
    pointer-events: none;
    opacity: 0.03;
    background-repeat: no-repeat;
    background-size: contain;
}
body::before {
    top: 40px;
    right: -60px;
    width: 420px;
    height: 420px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ccircle cx='100' cy='100' r='88' fill='none' stroke='%230B1E33' stroke-width='16'/%3E%3Ccircle cx='100' cy='100' r='24' fill='%230B1E33'/%3E%3Cpath d='M12 100h64M124 100h64M100 124v64' stroke='%230B1E33' stroke-width='18'/%3E%3C/svg%3E");
}
body::after {
    left: -40px;
    bottom: -40px;
    width: 340px;
    height: 340px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M100 6 194 100 100 194 6 100Z' fill='%230B1E33'/%3E%3Cpath d='M100 34 166 100 100 166 34 100Z' fill='none' stroke='%23F4F7FA' stroke-width='10'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; }
a { color: var(--red); text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    color: var(--ink);
    line-height: 1.2;
    font-weight: 700;
    margin: 1.6em 0 0.6em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }

table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; background: var(--white); }
table, th, td { border: 1px solid #B9C6D3; }
th, td { padding: 0.6em 0.8em; text-align: left; vertical-align: top; }
th { background: var(--bg-alt); font-weight: 600; }

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

/* ---------- Контейнер ---------- */
.shell { width: min(92%, 1180px); margin-inline: auto; }
.home .shell { width: min(85%, 1180px); }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    font-family: var(--f-body);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    padding: 0.85em 1.5em;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}
.btn-main { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-main:hover { color: var(--white); transform: translateY(-2px); box-shadow: 4px 4px 0 var(--red); }
.btn-line { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-line:hover { background: var(--teal); color: var(--white); transform: translateY(-2px); }

/* ---------- Верхняя полоса ---------- */
.signal-bar { height: 6px; background: linear-gradient(90deg, var(--red), var(--teal)); }

/* ---------- Шапка ---------- */
.masthead { background: var(--navy); color: var(--white); }
.masthead-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.1rem 0;
}
.brand { display: flex; align-items: center; gap: 1rem; color: var(--white); min-width: 0; }
.brand-mark { flex: 0 0 auto; display: block; }
.brand-logo { display: block; width: 56px; height: 56px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: var(--f-head); font-weight: 700; font-size: 0.95rem; line-height: 1.35; color: var(--white); }
.brand-desc { font-size: 0.85rem; line-height: 1.45; color: #A9B8C6; margin-top: 0.25rem; max-width: 70ch; }

.nav-toggle {
    display: none;
    flex: 0 0 auto;
    width: 46px; height: 46px;
    background: transparent;
    border: 2px solid var(--teal);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}
.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
    position: absolute;
    left: 50%;
    width: 22px; height: 2px;
    background: var(--white);
    transform: translateX(-50%);
    content: "";
}
.nav-toggle-lines { top: 50%; }
.nav-toggle-lines::before { top: -7px; }
.nav-toggle-lines::after { top: 7px; }

.topnav { border-top: 1px dashed rgba(107, 124, 140, .55); }
.topnav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 2rem; }
.topnav-list li { position: relative; }
.topnav-list a {
    display: inline-block;
    padding: 0.85rem 0;
    color: var(--white);
    font-weight: 500;
    position: relative;
}
.topnav-list a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0.55rem;
    height: 2px; width: 100%;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}
.topnav-list a:hover::after,
.topnav-list .current-menu-item > a::after { transform: scaleX(1); }
.topnav-list .sub-menu { list-style: none; margin: 0; padding: 0.4rem 1rem; }

/* ---------- Анимированное подчёркивание ссылок ---------- */
.entry-content a,
.page-lead a,
.crumbs a,
.card-excerpt a,
.talk-text a,
.empty-note a {
    color: var(--red);
    background-image: linear-gradient(var(--red), var(--red));
    background-size: 0 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size .25s ease;
}
.entry-content a:hover,
.page-lead a:hover,
.crumbs a:hover,
.card-excerpt a:hover,
.talk-text a:hover,
.empty-note a:hover { background-size: 100% 2px; }

/* ---------- Заголовки секций ---------- */
.sec-title {
    margin: 0;
    padding-left: 16px;
    border-left: 4px solid var(--red);
    line-height: 1.25;
}
.sec-title::before,
.entry-content h2::before {
    content: "";
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--red);
    margin-right: 12px;
    vertical-align: 0.18em;
}
.sec-title-light { color: var(--white); }
.sec-rule { border-top: 1px dashed var(--muted); margin: 1.4rem 0 2.2rem; }

.lane {
    border: 0;
    height: 2px;
    margin: 0;
    background-image: repeating-linear-gradient(90deg, var(--red) 0 28px, transparent 28px 48px);
}

/* ---------- Зоны главной ---------- */
.zone-base, .zone-alt, .zone-dark { padding: 80px 0; }
.zone-base { background-color: var(--bg); }
.zone-alt { background-color: var(--bg-alt); }
.zone-dark {
    background-color: var(--navy);
    background-image: radial-gradient(rgba(42, 157, 143, .15) 1.5px, transparent 1.6px);
    background-size: 16px 16px;
    color: var(--white);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--navy);
    min-height: 560px;
    display: flex;
    align-items: center;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(100deg, rgba(11, 30, 51, .92) 0%, rgba(11, 30, 51, .72) 48%, rgba(11, 30, 51, .25) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 90px 0; }
.hero-copy { max-width: 760px; min-width: 0; }
.hero-title { color: var(--white); margin: 0 0 1.2rem; }
.hero-sub { color: var(--bg-alt); font-size: 1.15rem; max-width: 58ch; margin: 0 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn-line-light { background: rgba(11, 30, 51, .35); }
.hero-wheel {
    position: absolute;
    z-index: 1;
    right: -40px; bottom: -50px;
    width: 300px; height: 300px;
    opacity: 0.1;
}

/* ---------- Статистика ---------- */
.stats-row {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stats-item {
    padding: 0.5rem 1.6rem;
    border-left: 2px dashed var(--teal);
    min-width: 0;
}
.stats-item:first-child { border-left: 0; padding-left: 0; }
.stats-num {
    display: block;
    font-family: var(--f-head);
    font-weight: 800;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 0.5rem;
}
.stats-cap { display: block; color: var(--muted); font-size: 0.98rem; line-height: 1.45; }

/* ---------- Карточки ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.2rem;
}
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 2px solid var(--navy);
    border-radius: 6px;
    box-shadow: 6px 6px 0 var(--navy);
    overflow: hidden;
    min-width: 0;
    transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--red); }
.card-thumb {
    display: block;
    border-bottom: 2px solid var(--navy);
    background: var(--bg-alt);
}
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.3rem 1.4rem 1.5rem;
    min-width: 0;
}
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.6rem;
}
.card-cat { color: var(--teal); font-weight: 600; }
.card-title { font-size: 1.12rem; margin: 0 0 0.7rem; line-height: 1.35; overflow-wrap: anywhere; }
.card-title::before {
    content: "";
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--red);
    margin-right: 10px;
    vertical-align: 0.15em;
}
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--red); }
.card-excerpt { color: var(--ink); font-size: 0.97rem; flex: 1; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    align-self: flex-start;
    margin-top: 0.8rem;
    font-weight: 600;
    color: var(--red);
    background-image: linear-gradient(var(--red), var(--red));
    background-size: 0 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size .25s ease;
}
.card-more:hover { background-size: 100% 2px; }
.latest-more { margin: 2.6rem 0 0; }

/* ---------- Zigzag ---------- */
.zig-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}
.zig-row-flip .zig-pic { order: 2; }
.zig-pic { margin: 0; min-width: 0; }
.zig-pic img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    border: 2px solid var(--navy);
    border-radius: 6px;
    background: var(--white);
}
.zig-text { min-width: 0; }
.zig-title {
    margin: 0 0 1rem;
    padding-left: 16px;
    border-left: 4px solid var(--red);
}
.zig-sep {
    border: 0;
    border-top: 2px dashed var(--red);
    margin: 3rem 0;
}

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--muted); }
.faq-item { border-bottom: 1px solid var(--muted); }
.faq-q {
    list-style: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.08rem;
    color: var(--ink);
    padding: 1.2rem 3rem 1.2rem 0;
    position: relative;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::before {
    content: "";
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--red);
    margin-right: 14px;
    vertical-align: 0.15em;
}
.faq-q::after {
    content: "+";
    position: absolute;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--f-head);
    font-size: 1.4rem;
    color: var(--red);
    line-height: 1;
}
.faq-item[open] .faq-q::after { content: "−"; }
.faq-a {
    background: var(--white);
    border-left: 3px solid var(--teal);
    padding: 1.1rem 1.4rem;
    margin: 0 0 1.2rem;
}
.faq-a p { margin: 0; }

/* ---------- Внутренние страницы ---------- */
.page-wrap { padding: 2rem 0 80px; }
.crumbs {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0 0 1.6rem;
    overflow-wrap: anywhere;
}
.crumbs-sep { margin: 0 0.35rem; color: var(--red); }
.crumbs span:last-child { color: var(--ink); }

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

.page-head { margin-bottom: 2.2rem; padding-bottom: 1.2rem; border-bottom: 1px dashed var(--muted); }
.page-title { margin: 0; overflow-wrap: anywhere; }
.page-lead { margin-top: 1rem; }

.entry {
    background: var(--white);
    border: 2px solid var(--navy);
    border-radius: 6px;
    padding: 2.4rem 2.6rem;
}
.entry-head { margin-bottom: 1.6rem; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; color: var(--muted); font-size: 0.9rem; margin-top: 0.9rem; }
.entry-cover { margin: 0 0 1.8rem; }
.entry-cover img { display: block; width: 100%; height: auto; border-radius: 4px; }
.entry-content { overflow-wrap: break-word; }
.entry-content h2 { margin-top: 1.8em; }
.entry-content h3 { padding-left: 12px; border-left: 3px solid var(--red); }
.entry-content img { display: block; height: auto; border-radius: 4px; }
.entry-content blockquote {
    margin: 1.6em 0;
    padding: 1.2rem 1.5rem;
    background: var(--bg-alt);
    border-left: 4px solid var(--red);
    border-radius: 4px;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content pre { overflow-x: auto; background: var(--navy); color: var(--bg-alt); padding: 1rem 1.2rem; border-radius: 4px; }
.entry-content ul li::marker { color: var(--red); }
.entry-content figure { margin: 1.6em 0; max-width: 100%; }
.entry-tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.entry-tags a {
    padding: 0.3rem 0.7rem;
    border: 2px solid var(--teal);
    border-radius: 4px;
    color: var(--teal);
    font-size: 0.88rem;
}
.entry-tags a:hover { background: var(--teal); color: var(--white); }

.empty-note {
    background: var(--white);
    border: 2px dashed var(--muted);
    border-radius: 6px;
    padding: 1.4rem 1.6rem;
}

/* ---------- Пагинация ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 3rem;
    align-items: center;
}
.pager .page-numbers,
.pager > span,
.pager > a {
    display: inline-block;
    min-width: 44px;
    padding: 0.55rem 0.9rem;
    text-align: center;
    border: 2px solid var(--navy);
    border-radius: 4px;
    background: var(--white);
    color: var(--ink);
    font-weight: 600;
    transition: transform .15s ease, box-shadow .15s ease;
}
.pager a.page-numbers:hover,
.pager > a:hover { transform: translateY(-2px); box-shadow: 4px 4px 0 var(--red); color: var(--ink); }
.pager .page-numbers.current { background: var(--red); border-color: var(--red); color: var(--white); }
.pager .page-numbers.dots { border: 0; background: none; min-width: 0; }

/* ---------- Сайдбар ---------- */
.sidebar { min-width: 0; }
.sidebar .wbox {
    background: var(--white);
    color: var(--ink);
    border: 2px solid var(--navy);
    border-radius: 6px;
    box-shadow: 6px 6px 0 var(--navy);
    padding: 1.4rem 1.5rem;
    margin-bottom: 2rem;
}
.sidebar .wbox-title {
    font-size: 1rem;
    margin: 0 0 1rem;
    padding: 0 0 0.8rem 12px;
    border-left: 4px solid var(--red);
    border-bottom: 1px dashed var(--muted);
    color: var(--ink);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 0.55rem 0; border-bottom: 1px solid var(--bg-alt); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--ink); font-weight: 500; }
.sidebar a:hover { color: var(--red); }
.sidebar .post-date { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 0.15rem; }
.sidebar p { color: var(--ink); }

/* ---------- Поиск ---------- */
.finder { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 1.2rem 0; }
.finder-field {
    flex: 1 1 220px;
    min-width: 0;
    font: inherit;
    padding: 0.75rem 1rem;
    border: 2px solid var(--navy);
    border-radius: 4px;
    background: var(--white);
    color: var(--ink);
}

/* ---------- 404 ---------- */
.nf { text-align: left; }
.nf-sign {
    display: inline-block;
    font-family: var(--f-head);
    font-weight: 800;
    font-size: clamp(3rem, 10vw, 6rem);
    line-height: 1;
    color: var(--white);
    background: var(--red);
    border: 4px solid var(--navy);
    box-shadow: 8px 8px 0 var(--navy);
    border-radius: 6px;
    padding: 0.2em 0.45em;
    margin-bottom: 2rem;
}
.nf-actions { margin-top: 1.5rem; }

/* ---------- Комментарии ---------- */
.talk {
    margin-top: 2.5rem;
    background: var(--white);
    border: 2px solid var(--navy);
    border-radius: 6px;
    padding: 2rem 2.2rem;
}
.talk-title { margin-top: 0; }
.talk-list, .talk-list .children { list-style: none; margin: 0; padding: 0; }
.talk-list .children { padding-left: 1.6rem; border-left: 2px dashed var(--bg-alt); }
.talk-item { padding: 1.2rem 0; border-bottom: 1px solid var(--bg-alt); }
.talk-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.6rem; }
.talk-head img { display: block; border-radius: 4px; }
.talk-author { display: block; font-weight: 600; }
.talk-date { display: block; font-size: 0.82rem; color: var(--muted); }
.talk-wait { color: var(--teal); font-size: 0.9rem; }
.talk-reply a { font-weight: 600; font-size: 0.9rem; }
.comment-respond { margin-top: 1.5rem; }
.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%;
    font: inherit;
    padding: 0.7rem 0.9rem;
    border: 2px solid var(--navy);
    border-radius: 4px;
    background: var(--bg);
    color: var(--ink);
}
.comment-form .comment-form-cookies-consent label { display: inline; font-weight: 400; }
.talk-note { color: var(--muted); font-size: 0.9rem; }

/* ---------- Подвал ---------- */
.basement {
    background: var(--navy);
    color: #C9D4DE;
    padding: 70px 0 1.5rem;
    border-top: 6px solid var(--red);
}
.basement-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
}
.basement-col { min-width: 0; }
.basement .wbox { color: #C9D4DE; margin-bottom: 1.5rem; }
.basement .wbox-title {
    color: var(--white);
    font-size: 1rem;
    margin: 0 0 1rem;
    padding-left: 12px;
    border-left: 4px solid var(--red);
}
.basement .wbox p, .basement .textwidget { color: #C9D4DE; }
.basement ul { list-style: none; margin: 0; padding: 0; }
.basement li { padding: 0.35rem 0; }
.basement a { color: var(--white); }
.basement a:hover { color: var(--red); }
.basement .post-date { color: #93A4B4; font-size: 0.82rem; display: block; }
.basement-copy {
    margin: 2.5rem 0 0;
    padding-top: 1.3rem;
    border-top: 1px dashed rgba(107, 124, 140, .6);
    font-size: 0.9rem;
    color: #93A4B4;
}

/* ---------- 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;
    justify-content: space-between;
    gap: 1.2rem;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    background: var(--navy);
    color: var(--bg-alt);
    border: 2px solid var(--teal);
    border-radius: 6px;
    box-shadow: 6px 6px 0 var(--red);
    padding: 1.1rem 1.4rem;
}
.cookie-text { margin: 0; font-size: 0.93rem; line-height: 1.5; min-width: 0; }
.cookie-accept { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
    .layout-single > .content-area { width: 100%; }
    .card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
    .stats-item:nth-child(3) { border-left: 0; padding-left: 0; }
    .zig-row { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
    .zig-row-flip .zig-pic { order: 0; }
    .basement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home .shell { width: min(92%, 1180px); }
    .brand-desc { display: none; }

    .nav-toggle { display: block; }
    .topnav { display: none; }
    .topnav.is-open { display: block; }
    .topnav-list { flex-direction: column; gap: 0; }
    .topnav-list a { padding: 0.75rem 0; }
    .topnav-list a::after { bottom: 0.45rem; }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    .zone-base, .zone-alt, .zone-dark { padding: 56px 0; }
    .hero { min-height: 480px; }
    .hero-inner { padding: 64px 0; }
    .hero-wheel { width: 180px; height: 180px; }
    .card-grid, .card-grid-3 { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
    .stats-row { grid-template-columns: minmax(0, 1fr); }
    .stats-item, .stats-item:nth-child(3) { border-left: 0; padding: 0 0 1.4rem; border-bottom: 2px dashed var(--teal); }
    .stats-item:last-child { border-bottom: 0; padding-bottom: 0; }
    .basement-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .entry { padding: 1.5rem 1.3rem; }
    .talk { padding: 1.5rem 1.3rem; }
    .faq-a { padding: 1rem 1.1rem; }
    .brand-logo { width: 44px; height: 44px; }
    .brand-name { font-size: 0.8rem; }
    .cookie-banner { flex-direction: column; align-items: stretch; padding: 1rem 1.2rem; }
    .page-wrap { padding-bottom: 56px; }
}
