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

/* ============================================================
   Переменные
   ============================================================ */
:root {
    --bg: #F4F7FB;
    --bg-alt: #E8EDF4;
    --dark: #0F172A;
    --graphite: #1E293B;
    --sidebar-bg: #FFFFFF;
    --text: #1E293B;
    --accent: #FF5A13;
    --accent-dark: #e04a08;
    --accent2: #3B82F6;
    --muted: #64748B;
    --card-shadow: #E2E8F0;
    --line: #D6DEE9;
    --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", "JetBrains Mono", "Consolas", monospace;
    --sans: "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(--sans);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%230F172A' stroke-width='1' opacity='0.05'%3E%3Cpath d='M-20 60 Q60 20 120 60 T260 60'/%3E%3Cpath d='M-20 100 Q60 60 120 100 T260 100'/%3E%3Cpath d='M-20 140 Q60 100 120 140 T260 140'/%3E%3Cpath d='M-20 180 Q60 140 120 180 T260 180'/%3E%3C/g%3E%3C/svg%3E");
    overflow-x: hidden;
}

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

a { color: var(--accent); }

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

/* ============================================================
   Типографика
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--sans);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: 0 0 0.6em;
}

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; }

/* Индикатор опасности: вертикальная оранжевая полоса слева у H2 в контенте */
.entry-content h2,
.page-content h2,
.rich h2 {
    position: relative;
    padding-left: 16px;
}
.entry-content h2::before,
.page-content h2::before,
.rich h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 4px;
    height: 1em;
    background: var(--accent);
}

/* Заголовок секции: жирная точка слева + оранжевая черта под текстом (2/3 ширины) */
.section-title {
    display: inline-block;
    position: relative;
    padding-left: 22px;
    padding-bottom: 14px;
    margin-bottom: 1.6rem;
}
.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--accent);
}
.section-title::after {
    content: "";
    position: absolute;
    left: 22px;
    bottom: 0;
    width: 66%;
    height: 3px;
    background: var(--accent);
}

/* ============================================================
   Ссылки в тексте — пунктирное подчёркивание в акцент
   ============================================================ */
.rich a,
.entry-content a,
.page-content a,
.widget-text a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dashed var(--accent);
    transition: border-color .15s ease;
}
.rich a:hover,
.entry-content a:hover,
.page-content a:hover,
.widget-text a:hover {
    border-bottom-style: solid;
}

/* ============================================================
   Кнопки
   ============================================================ */
.btn {
    display: inline-block;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    padding: 0.7rem 1.4rem;
    border-radius: 4px;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease, color .15s ease;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    box-shadow: 0 6px 16px rgba(255, 90, 19, 0.28);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    color: var(--graphite);
    border-color: var(--graphite);
}
.btn-outline:hover {
    background: var(--graphite);
    color: #fff;
}

/* ============================================================
   Шапка
   ============================================================ */
.site-header {
    background: var(--dark);
    color: #fff;
    padding: 1.4rem 0;
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    text-decoration: none;
    color: #fff;
}
.brand-logo,
.brand-logo-svg {
    display: block;
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
}
.brand-text { min-width: 0; }
.brand-name {
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.25;
    color: #fff;
    display: block;
    max-width: 640px;
}
.brand-desc {
    display: block;
    font-size: 0.82rem;
    color: #9fb0c8;
    line-height: 1.4;
    margin-top: 4px;
    max-width: 640px;
}
.main-nav { margin-left: auto; }
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.4rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.main-nav a {
    color: #cdd8e8;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: color .15s ease, border-color .15s ease;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: #fff;
    border-bottom-color: var(--accent);
}
.nav-toggle {
    display: none;
    margin-left: auto;
    background: transparent;
    border: 2px solid #33415a;
    color: #fff;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 1rem;
    cursor: pointer;
}

/* ============================================================
   Раскладка контента
   ============================================================ */
.site-main { padding: 2.5rem 0 3.5rem; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 3%;
    align-items: start;
}
.layout-single {
    display: block;
}
.layout-single .content-area,
.front-page .content-area {
    width: 85%;
    max-width: 100%;
    margin-inline: auto;
}
.content-area { min-width: 0; }

.sidebar {
    min-width: 0;
    background: var(--sidebar-bg);
    padding: 1.5rem 1.4rem;
    border-radius: 4px;
    box-shadow: 6px 6px 0 var(--card-shadow);
}

/* ============================================================
   Хлебные крошки
   ============================================================ */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--muted);
    padding: 0.5rem 0 1.6rem;
}
.breadcrumbs a {
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px dashed transparent;
}
.breadcrumbs a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.breadcrumbs .sep { margin: 0 0.4rem; color: var(--line); }

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 8px 8px 0 var(--card-shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 8px 12px 0 rgba(255, 90, 19, 0.2);
}
.card-thumb {
    display: block;
    overflow: hidden;
}
.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.card-thumb-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.2rem 1.3rem 1.4rem;
    min-width: 0;
}
.card-label {
    display: inline-block;
    align-self: flex-start;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent2);
    border: 1px solid var(--accent2);
    padding: 2px 8px;
    margin-bottom: 0.7rem;
}
.card-title {
    font-size: 1.2rem;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}
.card-title a {
    color: var(--text);
    text-decoration: none;
}
.card-title a:hover { color: var(--accent); }
.card-meta {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.6rem;
}
.card-excerpt {
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}
.card-more {
    margin-top: auto;
    align-self: flex-start;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.card-more:hover { border-bottom-color: var(--accent); }

/* ============================================================
   Одиночная запись / страница
   ============================================================ */
.entry-header .entry-title,
.page-header .entry-title { font-size: 2.4rem; margin-bottom: 0.4rem; }
.entry-meta {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
}
.post-thumb-full {
    margin: 0 0 1.8rem;
    overflow: hidden;
}
.post-thumb-full img {
    display: block;
    width: 100%;
    max-height: 460px;
    object-fit: cover;
}
.rich { min-width: 0; }
.rich img { display: block; height: auto; margin: 1.2rem 0; }
.rich ul, .rich ol { padding-left: 1.4rem; }
.rich li { margin-bottom: 0.4rem; }
.rich blockquote {
    margin: 1.6rem 0;
    padding: 1.2rem 1.4rem;
    background: var(--graphite);
    color: #fff;
    border-radius: 4px;
    border-left: 4px solid var(--accent);
}
.rich blockquote p { margin: 0; }
.rich table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.4rem 0;
    font-size: 0.95rem;
}
.rich table th,
.rich table td {
    border: 1px solid var(--line);
    padding: 0.6rem 0.8rem;
    text-align: left;
}
.rich table th {
    background: var(--bg-alt);
    font-weight: 700;
}

.post-tags {
    margin-top: 1.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}
.tag-pill {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    background: var(--accent2);
    padding: 4px 12px 4px 16px;
    position: relative;
    clip-path: polygon(8px 0, 100% 0, 100% 100%, 8px 100%, 0 50%);
}
.tag-pill:hover { background: var(--accent); }

/* ============================================================
   Пагинация (type => plain, .page-numbers)
   ============================================================ */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2.6rem;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--graphite);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 3px 3px 0 var(--card-shadow);
    transition: background-color .15s ease, color .15s ease;
}
.pagination a.page-numbers:hover {
    background: var(--bg-alt);
    color: var(--accent);
}
.pagination .page-numbers.current {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 3px 3px 0 rgba(255, 90, 19, 0.25);
}
.pagination .page-numbers.dots {
    border: none;
    box-shadow: none;
    background: transparent;
}

/* ============================================================
   Виджеты — общие
   ============================================================ */
.widget { margin-bottom: 1.8rem; }
.widget:last-child { margin-bottom: 0; }
.widget-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 0.9rem;
    padding-left: 14px;
    position: relative;
}
.widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 4px;
    height: 1em;
    background: var(--accent);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { margin-bottom: 0.6rem; line-height: 1.4; }

/* Сайдбар (белый фон → тёмный текст) */
.sidebar .widget-title { color: var(--text); }
.sidebar .widget a { color: var(--graphite); text-decoration: none; border-bottom: 1px dashed var(--line); }
.sidebar .widget a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.sidebar .widget,
.sidebar .widget li { color: var(--text); }
.sidebar .post-date,
.sidebar .rss-date { color: var(--muted); font-size: 0.8rem; }

/* ============================================================
   Подвал (тёмный фон → светлый текст)
   ============================================================ */
.site-footer {
    background: var(--dark);
    color: #cbd5e1;
    padding: 3rem 0 1.6rem;
    margin-top: 2rem;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
}
.footer-col { min-width: 0; }
.site-footer .widget-title { color: #fff; }
.site-footer .widget,
.site-footer .widget li,
.site-footer p { color: #cbd5e1; }
.site-footer .widget a {
    color: #cbd5e1;
    text-decoration: none;
    border-bottom: 1px dashed #33415a;
}
.site-footer .widget a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.site-footer .post-date { color: #94a3b8; font-size: 0.8rem; }
.footer-bottom {
    margin-top: 2.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid #22314c;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* ============================================================
   Форма поиска
   ============================================================ */
.search-form {
    display: flex;
    gap: 8px;
    min-width: 0;
}
.search-form .search-field {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-family: var(--sans);
    font-size: 0.95rem;
    background: #fff;
    color: var(--text);
}
.search-form .search-submit {
    flex: 0 0 auto;
    padding: 0.6rem 1.1rem;
    border: 2px solid var(--accent);
    background: var(--accent);
    color: #fff;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
}
.search-form .search-submit:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* ============================================================
   Комментарии
   ============================================================ */
.comments-area { margin-top: 2.6rem; }
.comments-title, .comment-reply-title { font-size: 1.4rem; margin-bottom: 1.2rem; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list li { margin-bottom: 1.2rem; }
.comment-body {
    background: #fff;
    padding: 1.1rem 1.3rem;
    border-radius: 4px;
    box-shadow: 5px 5px 0 var(--card-shadow);
}
.comment-author { font-weight: 700; }
.comment-metadata { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.5rem; }
.comment-list .children { list-style: none; margin: 1rem 0 0 1.6rem; padding: 0; }
.comment-respond {
    margin-top: 1.8rem;
    background: #fff;
    padding: 1.4rem 1.5rem;
    border-radius: 4px;
    box-shadow: 6px 6px 0 var(--card-shadow);
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-family: var(--sans);
    font-size: 0.95rem;
    margin-top: 4px;
}
.comment-form label { font-weight: 600; font-size: 0.9rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form .submit,
.form-submit input {
    background: var(--accent);
    color: #fff;
    border: 2px solid var(--accent);
    border-radius: 4px;
    padding: 0.7rem 1.6rem;
    font-weight: 700;
    cursor: pointer;
}
.comment-form .submit:hover,
.form-submit input:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: var(--dark);
    color: #e2e8f0;
    padding: 1rem 0;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.25);
}
.cookie-inner {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}
.cookie-inner p {
    margin: 0;
    flex: 1;
    min-width: 220px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #cbd5e1;
}
.cookie-inner a { color: var(--accent); }
.cookie-accept {
    flex: 0 0 auto;
    background: var(--accent);
    color: #fff;
    border: 2px solid var(--accent);
    border-radius: 4px;
    padding: 0.6rem 1.5rem;
    font-weight: 700;
    cursor: pointer;
}
.cookie-accept:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* ============================================================
   ГЛАВНАЯ — секции
   ============================================================ */
.front-page { padding: 0; }
.front-section {
    padding: 5rem 0;
}
.front-section.bg-alt { background: var(--bg-alt); }

/* Hero (инвертированный тёмный фон + схема) */
.fs-hero {
    background-color: var(--dark);
    background-position: center right;
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
    padding: 5.5rem 0;
    position: relative;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}
.hero-kicker {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid rgba(255,90,19,0.5);
    padding: 4px 12px;
    margin-bottom: 1.2rem;
}
.hero-title {
    color: #fff;
    font-size: 3.4rem;
    line-height: 1.08;
    margin: 0 0 1rem;
    position: relative;
}
.hero-title span.underline {
    box-shadow: inset 0 -0.14em 0 var(--accent);
}
.hero-lead {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 460px;
}
.hero-actions { margin-top: 1.8rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stamp {
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 260px;
    height: 260px;
    opacity: 0.12;
    pointer-events: none;
}

/* Статистика */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 1rem;
}
.stat-item {
    min-width: 0;
    padding: 0.5rem 1.4rem;
    text-align: center;
    border-left: 1px solid var(--line);
}
.stat-item:first-child { border-left: none; }
.stat-num {
    font-family: var(--mono);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
}
.stat-cap {
    display: block;
    margin-top: 0.7rem;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Чек-лист */
.checklist {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 2.4rem;
}
.checklist li {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    font-size: 1rem;
    line-height: 1.5;
}
.checklist .cbox {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    background: var(--accent);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.checklist .cbox svg { width: 15px; height: 15px; display: block; }

/* Сетка материалов */
.material-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.8rem;
    margin-top: 1rem;
}
.material-card {
    min-width: 0;
    background: #fff;
    padding: 2rem 1.6rem;
    border-radius: 0;
    border: 2px solid transparent;
    box-shadow: 8px 8px 0 var(--card-shadow);
    transition: border-color .18s ease, transform .18s ease;
}
.material-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}
.material-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 1.1rem;
    color: var(--accent);
}
.material-icon svg { width: 100%; height: 100%; display: block; }
.material-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.material-card p { margin: 0; color: #475569; font-size: 0.95rem; }

/* Блок последних записей на главной */
.latest-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.latest-head .all-link {
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    font-size: 0.95rem;
}
.latest-head .all-link:hover { border-bottom-color: var(--accent); }

/* CTA внутри секции при необходимости */
.front-lead {
    font-size: 1.05rem;
    color: #475569;
    max-width: 760px;
}

/* ============================================================
   Прочее
   ============================================================ */
.page-title-block { margin-bottom: 1.4rem; }
.search-summary { color: var(--muted); margin-bottom: 1.4rem; }

.error-404 { text-align: left; }
.error-404 .big-code {
    font-family: var(--mono);
    font-size: 5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.error-404 .search-form { max-width: 460px; margin: 1.6rem 0; }

.no-posts {
    background: #fff;
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 6px 6px 0 var(--card-shadow);
}

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 960px) {
    h1 { font-size: 2.6rem; }
    .hero-title { font-size: 2.6rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 1.6rem; }
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 0; }
    .stat-item:nth-child(3) { border-left: none; }
    .material-grid { grid-template-columns: 1fr 1fr; }
    .layout-with-sidebar { grid-template-columns: 1fr; gap: 2.4rem; }
    .sidebar { box-shadow: 6px 6px 0 var(--card-shadow); }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.6rem; }
    .hero-title { font-size: 2.1rem; }
    .front-section { padding: 3.2rem 0; }
    .fs-hero { padding: 3.6rem 0; }
    .layout-single .content-area,
    .front-page .content-area { width: 100%; }

    .nav-toggle { display: inline-block; }
    .main-nav {
        display: none;
        width: 100%;
        margin-left: 0;
        margin-top: 1rem;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0.2rem; }
    .main-nav a { display: block; padding: 8px 0; }

    .checklist { grid-template-columns: 1fr; }
    .material-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .footer-cols { grid-template-columns: 1fr; gap: 1.8rem; }
    .stat-num { font-size: 2.4rem; }
}
