/*
Theme Name: dds_vse-o-trubah.ru
Description: Тема для информационного сайта о трубах и трубопроводных материалах.
Author: Олег Ковалёв
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: trubgid
*/

/* ---------- Переменные ---------- */
:root {
    --bg: #F5F3F9;
    --bg-alt: #EDEAF5;
    --head-bg: #FFFFFF;
    --foot-bg: #1E1B2E;
    --side-bg: #FAF8FF;
    --text: #1F1B2B;
    --accent: #7C6DF0;
    --accent-2: #B8A9F5;
    --muted: #8E85A3;
    --line: #D6CFE8;
    --hover-bg: #F0EDFA;
    --dark-1: #2A2542;
    --font-head: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    --font-body: "IBM Plex Sans", "Roboto", "Segoe UI", Arial, sans-serif;
}

/* ---------- Скрытие через атрибут hidden ---------- */
.cookie-note[hidden] { display: none !important; }
.nav-list[hidden] { display: none !important; }

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image:
        linear-gradient(to right, rgba(124, 109, 240, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(124, 109, 240, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(124, 109, 240, 0.5);
    text-underline-offset: 3px;
}
a:hover {
    color: #5F4FD6;
    text-decoration-color: rgba(124, 109, 240, 1);
}

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

h1 { font-size: 3.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.2em; }
li { margin-bottom: 0.45em; }

blockquote {
    margin: 1.6rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-alt);
    border-left: 4px solid var(--accent);
    font-size: 1.05rem;
}
blockquote p:last-child { margin-bottom: 0; }

code, pre {
    font-family: "IBM Plex Mono", "Consolas", monospace;
    font-size: 0.92em;
    background: var(--bg-alt);
}
pre { padding: 1rem 1.2rem; overflow-x: auto; border: 1px solid var(--line); }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.5rem;
    border: 1px solid var(--line);
    font-size: 0.96rem;
}
th, td { border: 1px solid var(--line); padding: 0.65rem 0.8rem; text-align: left; }
th { background: var(--bg-alt); font-family: var(--font-head); }

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

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    border: 2px solid var(--accent);
    color: var(--accent);
    background: transparent;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover {
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(124, 109, 240, 0.25);
}
.btn-filled {
    background: var(--accent);
    color: #fff;
}
.btn-filled:hover {
    background: #5F4FD6;
    border-color: #5F4FD6;
    color: #fff;
}
.btn-light {
    border-color: #fff;
    color: #fff;
}
.btn-light:hover {
    background: #fff;
    color: var(--dark-1);
    box-shadow: none;
}

/* ---------- Шапка ---------- */
.site-head {
    background: var(--head-bg);
    border-bottom: 1px solid var(--line);
    position: relative;
}
.head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.1rem 0;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    text-decoration: none;
    color: var(--text);
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand-logo, .brand-mark { display: block; width: 48px; height: 48px; flex: 0 0 48px; }
.brand-text { min-width: 0; }
.brand-name {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.02rem;
    line-height: 1.25;
    display: block;
}
.brand-desc {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.35;
    margin-top: 2px;
    max-width: 460px;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--line);
    border-radius: 4px;
    padding: 0.5rem 0.8rem;
    font-family: var(--font-head);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text);
    cursor: pointer;
}

.main-nav { min-width: 0; }
.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.6rem;
    margin: 0;
    padding: 0;
}
.nav-list li { margin: 0; }
.nav-list a {
    font-family: var(--font-head);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
}
.nav-list a:hover,
.nav-list .current-menu-item > a {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ---------- Хлебные крошки ---------- */
.crumbs {
    font-size: 0.83rem;
    color: var(--muted);
    padding: 1.1rem 0 0;
    font-family: var(--font-head);
}
.crumbs a { color: var(--muted); text-decoration-color: rgba(142, 133, 163, 0.4); }
.crumbs a:hover { color: var(--accent); }
.crumbs-sep { color: var(--line); margin: 0 0.15rem; }

/* ---------- Раскладки ---------- */
.page-body { padding: 2rem 0 3.5rem; }

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

.sidebar {
    min-width: 0;
    background: var(--side-bg);
    border: 1px solid var(--line);
    padding: 1.4rem 1.3rem;
}

/* ---------- Виджеты ---------- */
.widget { margin-bottom: 1.8rem; }
.widget:last-child { margin-bottom: 0; }
.widget-title {
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin: 0 0 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li {
    margin: 0 0 0.6rem;
    padding-left: 1.6rem;
    position: relative;
    font-size: 0.94rem;
    line-height: 1.45;
}
.widget li::before {
    content: "[•]";
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--accent);
}
.sidebar .widget,
.sidebar .widget p,
.sidebar .widget li { color: var(--text); }
.sidebar .widget-title { color: var(--text); }
.sidebar .widget a { color: var(--text); text-decoration-color: rgba(124, 109, 240, 0.45); }
.sidebar .widget a:hover { color: var(--accent); }
.sidebar .post-date, .sidebar .rss-date { color: var(--muted); font-size: 0.8rem; }

/* ---------- Подвал ---------- */
.site-foot {
    background: var(--foot-bg);
    color: #D9D3EC;
    padding: 3rem 0 1.6rem;
    margin-top: 2rem;
}
.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.2rem;
}
.foot-col { min-width: 0; }
.site-foot .widget-title {
    color: #FFFFFF;
    border-bottom-color: var(--accent-2);
}
.site-foot .widget,
.site-foot .widget p,
.site-foot .widget li,
.site-foot .widget td { color: #D9D3EC; }
.site-foot .widget a { color: #EFEBFA; text-decoration-color: rgba(184, 169, 245, 0.5); }
.site-foot .widget a:hover { color: var(--accent-2); text-decoration-color: var(--accent-2); }
.site-foot .widget li::before { color: var(--accent-2); }
.site-foot .post-date, .site-foot .rss-date { color: #A79FC0; }

.foot-bottom {
    margin-top: 2.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(184, 169, 245, 0.25);
    font-size: 0.82rem;
    color: #A79FC0;
    font-family: var(--font-head);
    letter-spacing: 0.03em;
}

/* ---------- Заголовки секций ---------- */
.sec-title {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 1.6rem;
}
.sec-title::after {
    content: "";
    height: 2px;
    background: var(--accent);
    width: 33%;
    flex: 0 0 auto;
}
.sec-title.on-dark { color: #fff; }
.sec-title.on-dark::after { background: var(--accent-2); }

.diamond-h h2::before,
.diamond-h h3::before {
    content: "◇";
    color: var(--accent);
    margin-right: 0.5rem;
    font-weight: 400;
}

/* ---------- Списки в контенте ---------- */
.entry-body ul { list-style: none; padding-left: 0; }
.entry-body ul > li {
    position: relative;
    padding-left: 1.9rem;
}
.entry-body ul > li::before {
    content: "[•]";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-size: 0.85rem;
}
.entry-body ol { padding-left: 1.4rem; }
.entry-body h2::before,
.entry-body h3::before {
    content: "◇";
    color: var(--accent);
    margin-right: 0.5rem;
    font-weight: 400;
}
.entry-body h2 { margin-top: 2rem; }
.entry-body h3 { margin-top: 1.6rem; }
.entry-body img { display: block; margin: 1.4rem 0; }

/* ---------- Карточки записей ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.6rem;
}
.cards.cards-1 { grid-template-columns: minmax(0, 1fr); }

.card {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 0;
    overflow: hidden;
    min-width: 0;
    box-shadow: inset 4px 0 0 transparent;
    transition: background-color .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
    box-shadow: inset 4px 0 0 var(--accent);
    border-color: var(--accent-2);
    background: var(--hover-bg);
}
.card-thumb { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0;
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.2rem 1.3rem 1.4rem;
    min-width: 0;
}
.card-title {
    font-size: 1.15rem;
    margin: 0 0 0.6rem;
    line-height: 1.28;
}
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-excerpt { color: #453D5A; font-size: 0.95rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-foot { margin-top: auto; padding-top: 1rem; }
.card-more {
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--accent);
    border-bottom: 2px solid rgba(124, 109, 240, 0.5);
    padding-bottom: 2px;
}
.card-more:hover { border-bottom-color: var(--accent); text-decoration: none; }

.post-meta {
    font-family: var(--font-head);
    font-size: 0.76rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.6rem;
}
.post-meta a { color: var(--muted); text-decoration-color: rgba(142, 133, 163, 0.4); }
.post-meta a:hover { color: var(--accent); }
.meta-cat::before { content: "[ "; }
.meta-cat::after { content: " ]"; }

/* ---------- Пагинация ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.4rem;
    align-items: center;
}
.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--text);
    font-family: var(--font-head);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}
.pager a.page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
}

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

.dot-div {
    height: 4px;
    background-image: radial-gradient(circle, var(--line) 2px, transparent 2px);
    background-size: 14px 4px;
    background-repeat: repeat-x;
    margin-top: 3rem;
}

/* Блок 1 — Hero */
.fs-hero {
    background: linear-gradient(135deg, var(--dark-1) 0%, var(--foot-bg) 100%);
    padding: 4.5rem 0 4.8rem;
    position: relative;
    overflow: hidden;
}
.hero-art {
    position: absolute;
    right: -60px;
    bottom: -70px;
    width: 420px;
    height: 420px;
    opacity: 0.03;
    pointer-events: none;
}
.hero-plate {
    position: relative;
    background: #FFFFFF;
    border-radius: 4px;
    padding: 2.6rem 2.6rem 2.4rem;
    max-width: 780px;
    border-left: 6px solid var(--accent);
}
.hero-kicker {
    font-family: var(--font-head);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
    margin: 0 0 0.9rem;
}
.hero-plate h1 { margin: 0 0 1rem; }
.hero-lead {
    font-size: 1.08rem;
    color: #453D5A;
    margin: 0 0 1.7rem;
    max-width: 620px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Блок 2 — Статистика */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}
.stat-cell {
    min-width: 0;
    padding: 0.4rem 1.4rem;
    border-right: 1px solid var(--line);
    text-align: center;
}
.stat-cell:last-child { border-right: none; }
.stat-num {
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
    display: block;
    margin-bottom: 0.6rem;
}
.stat-cap {
    font-family: var(--font-body);
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    color: var(--muted);
    text-transform: uppercase;
    line-height: 1.4;
}

/* Блок 3 — Чек-лист */
.checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 2.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.check-item {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    min-width: 0;
    padding: 0.85rem 1rem;
    background: #FFFFFF;
    border: 1px solid var(--line);
    margin: 0;
}
.check-mark { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 3px; }
.check-text { min-width: 0; }
.check-text strong {
    display: block;
    font-family: var(--font-head);
    font-size: 1rem;
    margin-bottom: 0.2rem;
}
.check-text span {
    display: block;
    font-size: 0.92rem;
    color: #55506A;
    line-height: 1.5;
}

/* Блок 4 — Карта тем */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}
.topic-tile {
    display: block;
    min-width: 0;
    border: 1px solid var(--line);
    background: #FFFFFF;
    padding: 1.6rem 1.4rem;
    text-decoration: none;
    color: var(--text);
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.topic-tile:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}
.topic-tile svg { display: block; width: 44px; height: 44px; margin-bottom: 1rem; }
.topic-tile svg * { stroke: var(--accent); transition: stroke .18s ease; }
.topic-tile:hover svg * { stroke: #fff; }
.topic-name {
    font-family: var(--font-head);
    font-size: 1.08rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.4rem;
}
.topic-desc { font-size: 0.9rem; color: #55506A; line-height: 1.45; display: block; }
.topic-tile:hover .topic-desc { color: rgba(255, 255, 255, 0.88); }

/* Акцентная плашка на градиенте */
.accent-plate {
    background:
        linear-gradient(to right, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
    background-size: 40px 40px, 40px 40px, auto;
    color: #fff;
    padding: 2.6rem 2.4rem;
    border-radius: 4px;
}
.accent-plate .sec-title { color: #fff; }
.accent-plate .sec-title::after { background: rgba(255, 255, 255, 0.6); }

.front-latest .latest-foot { margin-top: 2rem; }

/* ---------- Записи и страницы ---------- */
.entry-head { margin-bottom: 1.6rem; }
.entry-title { font-size: 2.4rem; margin: 0 0 0.6rem; }
.entry-thumb { margin: 0 0 1.6rem; }
.entry-thumb img { display: block; width: 100%; height: auto; }
.entry-body { font-size: 1.03rem; }
.entry-body > *:last-child { margin-bottom: 0; }

.page-title-block { margin-bottom: 1.8rem; }
.archive-title { font-size: 2.2rem; margin: 0 0 0.4rem; }
.archive-desc { color: var(--muted); margin: 0; }

.no-posts {
    background: #fff;
    border: 1px solid var(--line);
    padding: 1.6rem 1.6rem;
}

/* ---------- Форма поиска ---------- */
.search-form {
    display: flex;
    gap: 0.6rem;
    max-width: 520px;
}
.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
}
.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--accent);
}
.search-form button {
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.7rem 1.2rem;
    border-radius: 4px;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--accent);
    cursor: pointer;
}
.search-form button:hover { background: var(--accent); color: #fff; }

/* ---------- Комментарии ---------- */
.comments-area {
    margin-top: 2.8rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}
.comments-title, .comment-reply-title {
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list .children { list-style: none; margin: 1rem 0 0; padding-left: 1.5rem; border-left: 1px solid var(--line); }
.comment-item {
    background: #fff;
    border: 1px solid var(--line);
    padding: 1.1rem 1.2rem;
    margin-bottom: 1rem;
}
.comment-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: baseline;
    margin-bottom: 0.5rem;
}
.comment-author { font-family: var(--font-head); font-weight: 700; }
.comment-date { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.comment-text p:last-child { margin-bottom: 0; }
.comment-actions { margin-top: 0.6rem; font-size: 0.85rem; }
.comment-hold { color: var(--muted); font-size: 0.9rem; }

.comment-form label {
    display: block;
    font-family: var(--font-head);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.35rem;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
}
.comment-form p { margin-bottom: 1rem; }
.comment-form .submit {
    font-family: var(--font-head);
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    border: 2px solid var(--accent);
    background: var(--accent);
    color: #fff;
    cursor: pointer;
}
.comment-form .submit:hover { background: #5F4FD6; border-color: #5F4FD6; }

/* ---------- 404 ---------- */
.err-block { padding: 1rem 0 2rem; }
.err-code {
    font-family: var(--font-head);
    font-size: 5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin: 0 0 0.6rem;
}

/* ---------- Cookie-баннер ---------- */
.cookie-note {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: var(--foot-bg);
    color: #E4DFF3;
    border-top: 2px solid var(--accent);
    padding: 1rem 0;
}
.cookie-inner {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: space-between;
}
.cookie-inner p { margin: 0; font-size: 0.9rem; min-width: 0; }
.cookie-inner a { color: var(--accent-2); }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    h1 { font-size: 2.4rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .layout-single { width: 100%; }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 0; }
    .stat-cell:nth-child(2n) { border-right: none; }
    .hero-plate { padding: 2rem 1.8rem; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.55rem; }
    .entry-title { font-size: 1.8rem; }
    .sec-title { font-size: 1.2rem; gap: 0.8rem; }
    .sec-title::after { width: 20%; }
    .nav-toggle { display: inline-block; }
    .main-nav { flex-basis: 100%; }
    .nav-list {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.9rem;
        padding: 1rem 0 0.4rem;
    }
    .nav-list.is-open { display: flex; }
    .head-inner { padding: 0.9rem 0; }
    .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
    .topic-grid { grid-template-columns: minmax(0, 1fr); }
    .checklist { grid-template-columns: minmax(0, 1fr); gap: 0.8rem; }
    .stats-row { grid-template-columns: minmax(0, 1fr); }
    .stat-cell { border-right: none; border-bottom: 1px solid var(--line); padding-bottom: 1.2rem; }
    .stat-cell:last-child { border-bottom: none; }
    .front-section { padding: 2.4rem 0; }
    .fs-hero { padding: 3rem 0 3.2rem; }
    .hero-art { width: 260px; height: 260px; right: -50px; bottom: -50px; }
    .accent-plate { padding: 1.8rem 1.4rem; }
    .hero-plate { padding: 1.6rem 1.3rem; border-left-width: 4px; }
    .cards { grid-template-columns: minmax(0, 1fr); }
    .cookie-inner { gap: 0.8rem; }
}
