/*
Theme Name: dds_tinyadventuresrc.com
Theme URI: https://tinyadventuresrc.com
Author: Сергей Волков
Author URI: https://tinyadventuresrc.com
Description: Информационная тема для сайта о радиоуправляемых моделях: сборка, детали, настройка. Индустриальный техно-минимализм.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: tarc
*/

/* ==========================================================================
   Переменные и базовый сброс
   ========================================================================== */
:root {
    --bg: #1A1E24;
    --bg-alt: #232830;
    --bg-header: #0F1217;
    --bg-footer: #0F1217;
    --bg-sidebar: #1E232A;
    --text: #E8EDF2;
    --accent: #FF5722;
    --accent2: #00BCD4;
    --muted: #7A828A;
    --line: #4A525B;
    --heat: #3A1C10;
    --font-head: 'Oswald', 'Arial Narrow', 'Roboto Condensed', sans-serif;
    --font-body: 'Inter', 'PT Sans', 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'Roboto Mono', 'Consolas', 'SFMono-Regular', monospace;
    --shell: min(92%, 1180px);
}

* { box-sizing: border-box; }

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background-color: var(--bg);
    background-image: radial-gradient(rgba(122,130,138,0.10) 1px, transparent 1px);
    background-size: 18px 18px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

/* Декоративный SVG-силуэт шестерни поверх подвала, правый нижний угол */
.gear-watermark {
    position: fixed;
    right: -60px;
    bottom: -60px;
    width: 340px;
    height: 340px;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

/* ==========================================================================
   Контейнер ширины (единственный источник ограничения ширины)
   ========================================================================== */
.shell {
    width: var(--shell);
    margin-inline: auto;
}

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

h1 { font-size: 3.2rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }

a {
    color: var(--accent2);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
    transition: transform .15s ease, text-decoration-color .15s ease;
    display: inline-block;
}
a:hover {
    text-decoration-style: solid;
    transform: translateX(2px);
}

/* Заголовки секций — декоративная линия + оранжевый квадратный маркер */
.section-title {
    position: relative;
    padding-left: 0;
    margin-bottom: 1.4rem;
}
.section-title::before {
    content: "";
    display: block;
    width: 46px;
    height: 3px;
    background: var(--line);
    margin-bottom: 0.7rem;
    position: relative;
}
.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    top: -1px;
    width: 9px;
    height: 9px;
    background: var(--accent);
}

/* ==========================================================================
   Кнопки — строгие прямоугольники, радиус 0, механическое нажатие
   ========================================================================== */
.btn {
    display: inline-block;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.95rem;
    padding: 0.7em 1.5em;
    border-radius: 0;
    border: 1px solid var(--accent);
    text-decoration: none;
    cursor: pointer;
    transition: transform .12s ease, background-color .12s ease, color .12s ease;
    line-height: 1.2;
}
.btn:hover { transform: translate(2px, 2px); }

.btn-primary {
    background: var(--accent);
    color: #0F1217;
}
.btn-primary:hover { background: #ff6d3f; }

.btn-ghost {
    background: transparent;
    color: var(--accent);
}
.btn-ghost:hover {
    background: var(--accent);
    color: #0F1217;
}

/* ==========================================================================
   Шапка
   ========================================================================== */
.site-header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 2;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.1rem 0;
    flex-wrap: wrap;
}
.branding {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}
.branding .brand-logo,
.branding .brand-mark {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    display: block;
}
.branding .brand-text { min-width: 0; }
.branding .site-name {
    font-family: var(--font-head);
    text-transform: uppercase;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.02em;
    margin: 0;
}
.branding .site-name a { color: var(--text); text-decoration: none; }
.branding .site-name a:hover { color: var(--accent); transform: none; }
.branding .site-desc {
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.35;
    max-width: 46ch;
}

/* Навигация — не липкая */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.main-nav a {
    font-family: var(--font-head);
    text-transform: uppercase;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    color: var(--text);
    text-decoration: none;
    padding: 0.5em 0.9em;
    border: 1px solid transparent;
    transition: color .15s ease, border-color .15s ease, transform 0s;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: var(--accent);
    border-color: var(--line);
    transform: none;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text);
    padding: 0.5em 0.7em;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border-radius: 0;
}

/* ==========================================================================
   Основная раскладка
   ========================================================================== */
.site-main { position: relative; z-index: 1; }
.page-wrap { padding: 2.4rem 0 3rem; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 2.4rem;
    align-items: start;
}
.layout-single .content-area { width: 85%; margin-inline: auto; }
.layout-single .content-area.full { width: 100%; }

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

/* Сайдбар */
.sidebar {
    background: var(--bg-sidebar);
    border: 1px solid var(--line);
    padding: 1.4rem 1.3rem;
    min-width: 0;
}
.sidebar .widget { margin-bottom: 1.8rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.widget-title {
    font-family: var(--font-head);
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 0.03em;
    color: var(--text);
    margin: 0 0 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li {
    padding: 0.45rem 0 0.45rem 1.1rem;
    position: relative;
    border-bottom: 1px solid rgba(74,82,91,0.4);
}
.sidebar li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.95rem;
    width: 7px;
    height: 7px;
    background: var(--accent2);
}
.sidebar a { color: var(--text); text-decoration: none; }
.sidebar a:hover { color: var(--accent2); }
.sidebar .post-date,
.sidebar .rss-date { color: var(--muted); font-size: 0.82rem; display: block; }

/* ==========================================================================
   Хлебные крошки
   ========================================================================== */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0 0 1.6rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.breadcrumbs a { color: var(--accent2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: var(--line); margin: 0 0.4rem; }
.breadcrumbs span { color: var(--muted); }

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

.card {
    display: flex;
    flex-direction: column;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 0;
    box-shadow: 4px 4px 0 var(--line);
    transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
    min-width: 0;
    overflow: hidden;
}
.card:hover {
    border-color: var(--accent);
    box-shadow: 6px 6px 0 var(--accent);
}

.card-thumb {
    position: relative;
    display: block;
    overflow: hidden;
}
.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
/* Градиент внизу миниатюры для читаемости заголовка */
.card-thumb::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 45%;
    background: linear-gradient(to top, rgba(15,18,23,0.75), transparent);
    pointer-events: none;
}
/* Техническая бирка категории — заводской шильдик */
.tech-tag {
    position: absolute;
    top: 0; left: 0;
    z-index: 2;
    background: var(--accent);
    color: #0F1217;
    font-family: var(--font-head);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    padding: 0.3em 0.7em;
    text-decoration: none;
    border-right: 1px solid #0F1217;
    border-bottom: 1px solid #0F1217;
}
.tech-tag:hover { color: #0F1217; transform: none; background: #ff6d3f; }

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.1rem 1.2rem 1.3rem;
    min-width: 0;
}
.card-title {
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.25;
}
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--accent); transform: none; }

.card-meta {
    color: var(--muted);
    font-size: 0.8rem;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.7rem;
}
.card-excerpt { color: #c7cdd3; font-size: 0.95rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    margin-top: auto;
    padding-top: 0.9rem;
}
.card-more a {
    font-family: var(--font-head);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--accent);
    text-decoration: none;
}
.card-more a:hover { color: var(--accent2); }

/* ==========================================================================
   Одиночная запись / страница
   ========================================================================== */
.entry-header { margin-bottom: 1.6rem; }
.entry-title { text-transform: none; letter-spacing: 0; }
.entry-meta {
    color: var(--muted);
    font-family: var(--font-head);
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    margin-top: 0.5rem;
}
.entry-thumb { margin-bottom: 1.6rem; position: relative; overflow: hidden; }
.entry-thumb img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

.entry-content { font-size: 1.05rem; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; text-transform: none; letter-spacing: 0; }
.entry-content img { display: block; margin: 1.4rem 0; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content li { margin-bottom: 0.4rem; }
.entry-content blockquote {
    margin: 1.6rem 0;
    padding: 1rem 1.4rem;
    border-left: 4px solid var(--accent);
    background: var(--bg-alt);
    color: #d8dee4;
}
.entry-content a { color: var(--accent2); }

/* Списки с LED-маркерами */
.led-list { list-style: none; padding-left: 0; }
.led-list li { position: relative; padding-left: 1.5rem; margin-bottom: 0.6rem; }
.led-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.6em;
    width: 9px; height: 9px;
}
.led-list.pros li::before { background: var(--accent2); }
.led-list.cons li::before { background: var(--accent); }

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

/* ==========================================================================
   Пагинация
   ========================================================================== */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 2.4rem;
    justify-content: center;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 0.55em 0.8em;
    border: 1px solid var(--line);
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-head);
    background: var(--bg-alt);
    transition: transform .12s ease, background .12s ease, border-color .12s ease, color .12s ease;
    line-height: 1;
}
.pagination a.page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translate(2px, 2px);
}
.pagination .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #0F1217;
}
.pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
}

/* ==========================================================================
   Форма поиска
   ========================================================================== */
.search-form {
    display: flex;
    gap: 0;
    max-width: 460px;
}
.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 0.6em 0.9em;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border-radius: 0;
}
.search-form input[type="search"]:focus { outline: none; border-color: var(--accent2); }
.search-form button {
    background: var(--accent);
    color: #0F1217;
    border: 1px solid var(--accent);
    border-left: none;
    padding: 0.6em 1.1em;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border-radius: 0;
    transition: background .12s ease;
}
.search-form button:hover { background: #ff6d3f; }

/* ==========================================================================
   Главная страница
   ========================================================================== */
.front-section { padding: 3.2rem 0; border-bottom: 1px solid var(--line); position: relative; }
.front-section.bg-alt { background: var(--bg-alt); }

/* Блок 1 — Hero */
.hero {
    position: relative;
    padding: 0;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}
.hero-media { position: relative; }
.hero-media img {
    display: block;
    width: 100%;
    height: 480px;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15,18,23,0.55), rgba(15,18,23,0.85));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero-inner { width: var(--shell); }
.hero h1 {
    font-size: 3.2rem;
    margin: 0 0 0.6rem;
    text-shadow: 0 2px 18px rgba(0,0,0,0.6);
}
.hero p {
    color: #d5dbe1;
    font-size: 1.15rem;
    max-width: 60ch;
    margin: 0 auto 1.6rem;
}
/* Оранжевая полоса, "подрезающая" угол — гоночная ливрея */
.hero-stripe {
    position: absolute;
    left: 0; bottom: 0;
    width: 100%;
    height: 8px;
    background: var(--accent);
}
.hero-stripe::after {
    content: "";
    position: absolute;
    right: 0; bottom: 8px;
    border-style: solid;
    border-width: 0 0 34px 120px;
    border-color: transparent transparent var(--accent) transparent;
}

/* Блок 2 — Сетка карточек-рубрик с иконками */
.rubric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.6rem;
    margin-top: 1.6rem;
}
.rubric-card {
    background: var(--bg);
    border: 1px solid var(--line);
    box-shadow: 4px 4px 0 var(--line);
    padding: 1.8rem 1.4rem;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
    min-width: 0;
}
.front-section.bg-alt .rubric-card { background: var(--bg); }
.rubric-card:hover {
    border-color: var(--accent);
    box-shadow: 6px 6px 0 var(--accent);
    transform: none;
}
.rubric-card .rubric-icon {
    width: 64px; height: 64px;
    margin: 0 auto 1rem;
    display: block;
    color: var(--accent2);
    transition: color .18s ease;
}
.rubric-card:hover .rubric-icon { color: var(--accent); }
.rubric-card .rubric-name {
    font-family: var(--font-head);
    text-transform: uppercase;
    font-size: 1.15rem;
    letter-spacing: 0.03em;
    margin: 0 0 0.4rem;
}
.rubric-card .rubric-note { color: var(--muted); font-size: 0.88rem; margin: 0; }

/* Блок последних записей на главной */
.latest-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.6rem;
}
.latest-head .btn { flex: 0 0 auto; }

/* Блок 3 — Цитата / акцентный тезис */
.quote-block {
    position: relative;
    background: radial-gradient(ellipse at center, var(--heat) 0%, var(--bg) 72%);
    border: 1px solid var(--line);
    padding: 3rem 2.6rem 3rem 3.2rem;
    border-radius: 0;
}
.quote-block::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 8px;
    background: var(--accent);
}
.quote-mark {
    font-family: var(--font-head);
    color: var(--accent);
    font-size: 4rem;
    line-height: 0.6;
    display: block;
    margin-bottom: 0.4rem;
}
.quote-text {
    font-family: var(--font-head);
    font-size: 2rem;
    line-height: 1.25;
    text-transform: uppercase;
    color: var(--text);
    margin: 0 0 1rem;
    max-width: 30ch;
}
.quote-author {
    color: var(--accent2);
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.95rem;
}

/* Блок 4 — Статистика / факты */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 1.6rem;
    background: radial-gradient(ellipse at center, var(--heat) 0%, var(--bg-alt) 78%);
    border: 1px solid var(--line);
}
.stat-cell {
    padding: 2rem 1.2rem;
    text-align: center;
    border-right: 1px solid var(--line);
    min-width: 0;
}
.stat-cell:last-child { border-right: none; }
.stat-num {
    font-family: var(--font-mono);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    display: block;
}
.stat-num small { font-size: 1.1rem; color: var(--accent); }
.stat-label {
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.6rem;
    font-family: var(--font-head);
}

.front-intro { max-width: 72ch; color: #ccd2d8; }

/* ==========================================================================
   Комментарии
   ========================================================================== */
.comments-area { margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list li { margin-bottom: 1.4rem; }
.comment-body {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    padding: 1rem 1.2rem;
}
.comment-author { font-family: var(--font-head); text-transform: uppercase; color: var(--text); }
.comment-meta { color: var(--muted); font-size: 0.8rem; margin-bottom: 0.5rem; }
.comment-respond { margin-top: 1.8rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 0.6em 0.8em;
    font-family: var(--font-body);
    border-radius: 0;
    margin-top: 0.3rem;
}
.comment-form label { font-family: var(--font-head); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.03em; }
.comment-form p { margin-bottom: 0.9rem; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--accent2); }

/* ==========================================================================
   404
   ========================================================================== */
.error-404 { text-align: center; padding: 2rem 0; }
.error-404 .big-code {
    font-family: var(--font-head);
    font-size: 6rem;
    color: var(--accent);
    line-height: 1;
    margin: 0;
}
.error-404 .search-form { margin: 1.6rem auto; }

/* ==========================================================================
   Подвал
   ========================================================================== */
.site-footer {
    background: var(--bg-footer);
    border-top: 1px solid var(--line);
    position: relative;
    z-index: 1;
    margin-top: 2rem;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    padding: 2.6rem 0 2rem;
}
.footer-col { min-width: 0; }
.footer-col .widget-title {
    color: var(--text);
    border-bottom-color: var(--accent);
}
.footer-col, .footer-col p, .footer-col li { color: #b6bcc2; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li {
    padding: 0.35rem 0 0.35rem 1rem;
    position: relative;
}
.footer-col li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.85rem;
    width: 6px; height: 6px;
    background: var(--accent2);
}
.footer-col a { color: #cfd5db; text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.footer-col .post-date { color: var(--muted); font-size: 0.8rem; display: block; }

.site-copyright {
    border-top: 1px solid var(--line);
    padding: 1.1rem 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ==========================================================================
   Cookie-баннер
   ========================================================================== */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    background: var(--bg-header);
    border-top: 2px solid var(--accent);
    padding: 1rem 0;
}
.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
}
.cookie-inner p { margin: 0; color: #c7cdd3; font-size: 0.9rem; flex: 1; min-width: 240px; }
.cookie-inner a { color: var(--accent2); }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 960px) {
    h1 { font-size: 2.5rem; }
    .hero h1 { font-size: 2.5rem; }
    .layout-with-sidebar { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-cell:nth-child(2) { border-right: none; }
    .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2rem; }
    .hero h1 { font-size: 2rem; }
    .hero-media img { height: 360px; }
    .layout-single .content-area,
    .layout-single .content-area.full { width: 100%; }
    .header-inner { flex-direction: column; align-items: flex-start; }
    .nav-toggle { display: inline-block; }
    .main-nav { width: 100%; }
    .main-nav ul { flex-direction: column; gap: 0; display: none; }
    .main-nav.open ul { display: flex; }
    .main-nav a { display: block; border-bottom: 1px solid var(--line); }
    .front-section { padding: 2.4rem 0; }
    .quote-block { padding: 2rem 1.4rem 2rem 1.8rem; }
    .quote-text { font-size: 1.5rem; }
    .stats-row { grid-template-columns: 1fr; }
    .stat-cell { border-right: none; border-bottom: 1px solid var(--line); }
    .stat-cell:last-child { border-bottom: none; }
    .footer-cols { grid-template-columns: 1fr; }
}
