/*
Theme Name: dds_sportzmagazine.com
Theme URI: https://sportzmagazine.com
Author: Алексей Градов
Author URI: https://sportzmagazine.com
Description: Тема для информационного портала об инфраструктуре жилых комплексов и автомобилей. Современный «умный» минимализм с индустриальными акцентами: графитовый фон, электролюминесцентный зелёный акцент, тёмно-синие границы карточек.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: parkhub
*/

/* ============================================================
   1. ПЕРЕМЕННЫЕ И ТЕМЫ
   ============================================================ */
:root {
    --graphite: #1E262C;
    --steel: #4A5B66;
    --paper: #F4F7FA;
    --accent: #00E5A0;
    --accent-blue: #0A2E5A;

    --page-bg: #1E262C;
    --surface: #252F37;
    --surface-2: #2C3842;
    --text: #F4F7FA;
    --text-muted: #9FB0BC;
    --border: #38454F;
    --link: #5BD0FF;
    --radius: 4px;
    --shell: 1180px;
}

html[data-theme="light"] {
    --page-bg: #F4F7FA;
    --surface: #FFFFFF;
    --surface-2: #ECF1F5;
    --text: #1E262C;
    --text-muted: #5A6B76;
    --border: #D4DEE5;
    --link: #0A2E5A;
}

/* ============================================================
   2. БАЗА
   ============================================================ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    background: var(--page-bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Golos Text', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.22;
    color: var(--text);
    margin: 0 0 0.6em;
    letter-spacing: -0.01em;
}

h1 { font-size: 2.15rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.05em; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

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

ul, ol { padding-left: 1.3em; }

blockquote {
    margin: 1.4em 0;
    padding: 1em 1.2em;
    border-left: 3px solid var(--accent);
    background: var(--surface-2);
    border-radius: 0 var(--radius) var(--radius) 0;
}
blockquote p:last-child { margin-bottom: 0; }

code, pre {
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    background: var(--surface-2);
    border-radius: var(--radius);
}
code { padding: 0.12em 0.4em; font-size: 0.92em; }
pre {
    padding: 1em;
    overflow-x: auto;
    border: 1px solid var(--border);
}
pre code { background: none; padding: 0; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    border: 1px solid var(--border);
}
th, td {
    border: 1px solid var(--border);
    padding: 0.6em 0.8em;
    text-align: left;
}
th {
    background: var(--surface-2);
    font-family: 'Golos Text', sans-serif;
}

hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }

/* ============================================================
   3. КОНТЕЙНЕР
   ============================================================ */
.shell {
    width: min(92%, var(--shell));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: var(--graphite);
    padding: 0.6em 1em;
    z-index: 999;
}
.skip-link:focus { left: 0; }

/* ============================================================
   4. КНОПКИ
   ============================================================ */
.btn {
    display: inline-block;
    font-family: 'Golos Text', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.62em 1.3em;
    border-radius: var(--radius);
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
    text-decoration: none;
    line-height: 1.3;
}
.btn:hover {
    background: var(--accent);
    color: var(--graphite);
    text-decoration: none;
}

.btn-solid {
    background: var(--accent-blue);
    border: 1px solid var(--accent-blue);
    border-radius: 0;
    color: #FFFFFF;
}
.btn-solid:hover {
    background: #0d3c78;
    color: #FFFFFF;
}

.btn-small { padding: 0.4em 0.95em; font-size: 0.85rem; }

/* ============================================================
   5. ШАПКА
   ============================================================ */
.site-header {
    background: var(--graphite);
    border-bottom: 1px solid #2C3842;
    color: var(--paper);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.1rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}
.brand-logo,
.brand-mark {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    display: block;
}
.brand-text { min-width: 0; }
.brand-name {
    font-family: 'Golos Text', sans-serif;
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--paper);
    line-height: 1.25;
    text-decoration: none;
    display: block;
}
.brand-name:hover { text-decoration: none; color: var(--accent); }
.brand-desc {
    font-size: 0.78rem;
    color: #8FA3AE;
    line-height: 1.4;
    margin: 0.2rem 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.main-nav a {
    display: block;
    padding: 0.5em 0.85em;
    color: var(--paper);
    font-family: 'Golos Text', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: color 0.16s ease, background-color 0.16s ease;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: var(--accent);
    background: #2C3842;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-toggle,
.nav-toggle {
    background: transparent;
    border: 1px solid #3A4750;
    color: var(--paper);
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: border-color 0.16s ease, color 0.16s ease;
}
.theme-toggle:hover,
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle { display: none; }
.theme-toggle svg { width: 20px; height: 20px; }

/* динамическая строка */
.header-ticker {
    background: #161C21;
    border-bottom: 1px solid #2C3842;
    color: var(--text-muted);
    font-size: 0.82rem;
    overflow: hidden;
}
.header-ticker .shell {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0;
}
.ticker-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex: 0 0 auto;
    animation: pulse 1.8s infinite ease-in-out;
}
.ticker-label { color: #8FA3AE; }
.ticker-region { color: var(--accent); font-weight: 600; }

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 229, 160, 0.55); }
    50% { box-shadow: 0 0 0 7px rgba(0, 229, 160, 0); }
}

/* ============================================================
   6. РАСКЛАДКА КОНТЕНТА
   ============================================================ */
.site-main { 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-left: auto;
    margin-right: auto;
}
.content-area { min-width: 0; }

/* ============================================================
   7. ХЛЕБНЫЕ КРОШКИ
   ============================================================ */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 1.5rem;
    line-height: 1.6;
}
.breadcrumbs a { color: var(--accent); }
.breadcrumbs .sep { color: var(--steel); margin: 0 0.15rem; }
.breadcrumbs span:last-child { color: var(--text-muted); }

/* ============================================================
   8. КАРТОЧКИ ЗАПИСЕЙ
   ============================================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.6rem;
}

.card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--accent-blue);
    border-radius: var(--radius);
    transition: transform 0.16s ease, border-color 0.16s ease;
}
.card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}

.card-thumb-wrap {
    overflow: hidden;
    background: var(--surface-2);
}
.card-thumb-wrap a { display: block; }
.card-thumb-wrap img,
.card-thumb-wrap .thumb-ph {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.thumb-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2C3842 0%, #1E262C 100%);
}
.thumb-ph svg { width: 56px; height: 56px; opacity: 0.85; }

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.15rem 1.25rem 1.35rem;
    min-width: 0;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}
.card-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-family: 'Golos Text', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent);
    background: rgba(0, 229, 160, 0.1);
    border: 1px solid rgba(0, 229, 160, 0.3);
    padding: 0.18em 0.55em;
    border-radius: var(--radius);
}
.card-tag svg { width: 13px; height: 13px; }

.card-title {
    font-size: 1.18rem;
    margin: 0 0 0.5rem;
}
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--accent); }

.card-excerpt {
    color: var(--text-muted);
    font-size: 0.94rem;
}
.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.4rem 0 0.9rem;
}
.card-meta svg { width: 14px; height: 14px; flex: 0 0 auto; }

.card-foot { margin-top: auto; }

/* режим списка («Умный дом») */
.posts-grid.mode-list {
    grid-template-columns: 1fr;
    gap: 1.2rem;
}
.posts-grid.mode-list .card { flex-direction: row; }
.posts-grid.mode-list .card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
}
.posts-grid.mode-list .card-thumb-wrap a {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}
.posts-grid.mode-list .card-thumb-wrap img,
.posts-grid.mode-list .card-thumb-wrap .thumb-ph {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
}

/* переключатель режимов сетки */
.grid-switch {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1.4rem;
}
.grid-switch button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Golos Text', sans-serif;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 0.42em 0.85em;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    border-radius: var(--radius);
    cursor: pointer;
    transition: color 0.16s ease, border-color 0.16s ease;
}
.grid-switch button svg { width: 15px; height: 15px; }
.grid-switch button[aria-pressed="true"] {
    color: var(--accent);
    border-color: var(--accent);
}

/* ============================================================
   9. ПАГИНАЦИЯ
   ============================================================ */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 2.4rem 0 0;
    justify-content: center;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.6em;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: 'Golos Text', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.pagination a.page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.pagination .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--graphite);
}
.pagination .page-numbers.dots { border: none; }

/* ============================================================
   10. ОДИНОЧНАЯ ЗАПИСЬ / СТРАНИЦА
   ============================================================ */
.entry {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem;
}
.entry-header { margin-bottom: 1.4rem; }
.entry-title { margin-bottom: 0.5rem; }
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.84rem;
    color: var(--text-muted);
}
.entry-meta svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 0.25rem; }

.entry-thumb {
    margin: 0 0 1.5rem;
    border-radius: var(--radius);
    overflow: hidden;
}
.entry-thumb img { width: 100%; display: block; }

.entry-content { font-size: 1.02rem; }
.entry-content img { border-radius: var(--radius); }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }

.entry-footer {
    margin-top: 1.6rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag-list a {
    font-size: 0.78rem;
    padding: 0.2em 0.7em;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
}
.tag-list a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.6rem;
    flex-wrap: wrap;
}
.post-nav a {
    flex: 1 1 220px;
    min-width: 0;
    padding: 0.9rem 1.1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
}
.post-nav a:hover { border-color: var(--accent); text-decoration: none; }
.post-nav .nav-dir { font-size: 0.76rem; color: var(--accent); display: block; }
.post-nav .nav-next { text-align: right; }

/* ============================================================
   11. САЙДБАР И ВИДЖЕТЫ
   ============================================================ */
.sidebar { min-width: 0; }

.widget {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.3rem 1.35rem;
    margin-bottom: 1.6rem;
    color: var(--text);
}
.widget:last-child { margin-bottom: 0; }
.widget-title {
    font-family: 'Golos Text', sans-serif;
    font-size: 1.05rem;
    margin: 0 0 0.95rem;
    padding-bottom: 0.55rem;
    border-bottom: 2px solid var(--accent);
    color: var(--text);
}
.widget a { color: var(--link); }
.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.widget li {
    padding: 0.42rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.widget li:last-child { border-bottom: none; }
.widget .post-date,
.widget .rss-date {
    display: block;
    font-size: 0.76rem;
    color: var(--text-muted);
}

/* парковочный калькулятор (информационный блок) */
.calc-widget .calc-row {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.calc-widget .calc-row:last-of-type { border-bottom: none; }
.calc-widget .calc-row span:last-child { color: var(--accent); font-weight: 600; }
.calc-note { font-size: 0.78rem; color: var(--text-muted); margin: 0.7rem 0 0; }

/* ============================================================
   12. ТЕМАТИЧЕСКИЕ БЛОКИ ГЛАВНОЙ
   ============================================================ */
.section { padding: 2.6rem 0; }
.section-head { margin-bottom: 1.8rem; max-width: 760px; }
.section-eyebrow {
    font-family: 'Golos Text', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    display: block;
    margin-bottom: 0.5rem;
}
.section-title { margin: 0 0 0.5rem; }
.section-lead { color: var(--text-muted); margin: 0; }

/* hero */
.hero {
    background: linear-gradient(135deg, #1E262C 0%, #182025 60%, #0A2E5A 160%);
    border-bottom: 1px solid #2C3842;
    padding: 3.4rem 0 3.6rem;
}
.hero-inner { max-width: 740px; }
.hero h1 { font-size: 2.5rem; margin-bottom: 0.7rem; }
.hero-sub { color: var(--text-muted); font-size: 1.08rem; margin-bottom: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2.2rem;
    padding-top: 1.6rem;
    border-top: 1px solid #2C3842;
}
.hero-stat strong {
    font-family: 'Golos Text', sans-serif;
    font-size: 1.8rem;
    color: var(--accent);
    display: block;
    line-height: 1;
}
.hero-stat span { font-size: 0.84rem; color: var(--text-muted); }

/* сетка фич */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.4rem;
}
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.4rem 1.3rem;
    min-width: 0;
}
.feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 229, 160, 0.1);
    border-radius: var(--radius);
    margin-bottom: 0.9rem;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.12rem; margin-bottom: 0.4rem; }
.feature-card p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

/* шаги */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.4rem;
    counter-reset: step;
}
.step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem 1.3rem;
    position: relative;
    min-width: 0;
}
.step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    font-family: 'Golos Text', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    margin-bottom: 0.5rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.step p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* чек-лист */
.checklist {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem 1.7rem;
}
.checklist h3 { margin-bottom: 0.9rem; }
.checklist ul { list-style: none; margin: 0; padding: 0; }
.checklist li {
    position: relative;
    padding: 0.4rem 0 0.4rem 2rem;
    color: var(--text);
}
.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 3px;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* слайдер «тест-драйв подземного этажа» */
.testdrive {
    background: var(--surface);
    border: 1px solid var(--accent-blue);
    border-radius: var(--radius);
    overflow: hidden;
}
.slider {
    position: relative;
    min-width: 0;
}
.slider-track {
    display: flex;
    transition: transform 0.4s ease;
}
.slide {
    flex: 0 0 100%;
    min-width: 0;
}
.slide img,
.slide svg {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 7;
    object-fit: cover;
}
.slide-caption {
    padding: 1rem 1.4rem 1.3rem;
}
.slide-caption h3 { margin: 0 0 0.3rem; font-size: 1.1rem; }
.slide-caption p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }
.slider-controls {
    position: absolute;
    top: 50%;
    left: 0; right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 0.7rem;
    pointer-events: none;
}
.slider-controls button {
    pointer-events: auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    background: rgba(30, 38, 44, 0.78);
    color: var(--accent);
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider-controls button:hover { background: var(--accent); color: var(--graphite); }
.slider-dots {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    padding: 0 0 1rem;
}
.slider-dots button {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    cursor: pointer;
    padding: 0;
}
.slider-dots button[aria-current="true"] { background: var(--accent); }

/* индикатор комфорта (информационный, не форма) */
.comfort-meter { margin-top: 1.1rem; }
.comfort-bar {
    height: 10px;
    background: var(--surface-2);
    border-radius: 6px;
    overflow: hidden;
}
.comfort-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent));
}
.comfort-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

/* бортжурнал */
.logbook {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.4rem;
}
.log-entry {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.3rem 1.35rem;
    min-width: 0;
}
.log-date {
    font-family: 'Golos Text', sans-serif;
    font-size: 0.78rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.log-entry h3 { font-size: 1.05rem; margin: 0.3rem 0 0.4rem; }
.log-entry p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

/* контакты */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}
.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.3rem 1.35rem;
    min-width: 0;
}
.contact-card h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.contact-card a { font-weight: 600; }

/* ============================================================
   13. ФОРМА ПОИСКА
   ============================================================ */
.search-form {
    display: flex;
    gap: 0.5rem;
}
.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 0.6em 0.85em;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
}
.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--accent);
}
.search-form button {
    flex: 0 0 auto;
}

/* ============================================================
   14. КОММЕНТАРИИ
   ============================================================ */
.comments-area {
    margin-top: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem;
}
.comments-title { margin-bottom: 1.2rem; }
.comment-list {
    list-style: none;
    margin: 0 0 1.6rem;
    padding: 0;
}
.comment-list ul.children {
    list-style: none;
    margin: 0;
    padding-left: 1.6rem;
}
.comment-item { margin-bottom: 1rem; }
.comment-inner {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
}
.comment-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.6rem;
}
.comment-head img { border-radius: 50%; }
.comment-author {
    font-family: 'Golos Text', sans-serif;
    font-weight: 600;
    display: block;
}
.comment-date { font-size: 0.78rem; color: var(--text-muted); }
.comment-text { font-size: 0.95rem; }
.comment-text p:last-child { margin-bottom: 0; }
.comment-await { font-size: 0.82rem; color: var(--accent); }
.comment-reply a {
    font-size: 0.82rem;
    font-weight: 600;
}

.comment-respond {
    margin-top: 1.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--border);
}
.comment-form label {
    display: block;
    font-size: 0.86rem;
    font-family: 'Golos Text', sans-serif;
    margin-bottom: 0.3rem;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.6em 0.8em;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.comment-form .comment-form-cookies-consent {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}
.comment-form .comment-form-cookies-consent input { width: auto; margin: 0.35rem 0 0; }

/* ============================================================
   15. ПОДВАЛ (всегда тёмный)
   ============================================================ */
.site-footer {
    background: #161C21;
    border-top: 1px solid #2C3842;
    color: #C4D0D8;
    margin-top: 2rem;
}
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.2rem;
    padding: 2.8rem 0 2.2rem;
}
.site-footer .widget {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    color: #C4D0D8;
}
.site-footer .widget-title {
    color: #FFFFFF;
    border-bottom-color: var(--accent);
    font-size: 1rem;
}
.site-footer .widget a { color: #00E5A0; }
.site-footer .widget a:hover { color: #58f0c6; }
.site-footer .widget li {
    color: #C4D0D8;
    border-bottom-color: #2C3842;
}
.site-footer .widget .post-date,
.site-footer .widget .rss-date { color: #8FA3AE; }
.site-footer .footer-charge {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.86rem;
    color: #8FA3AE;
    margin-top: 0.5rem;
}
.site-footer .footer-charge .ticker-dot { margin: 0; }

.footer-bottom {
    border-top: 1px solid #2C3842;
    padding: 1.2rem 0;
    font-size: 0.82rem;
    color: #8FA3AE;
    text-align: center;
}

/* ============================================================
   16. 404 / ПОИСК
   ============================================================ */
.page-404 {
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem 1.6rem;
}
.page-404 .big-code {
    font-family: 'Golos Text', sans-serif;
    font-size: 5rem;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 0.4rem;
}
.page-404 .search-form { max-width: 420px; margin: 1.6rem auto 1rem; }

.archive-header { margin-bottom: 1.8rem; }
.archive-header .archive-desc { color: var(--text-muted); }

.no-results {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

/* ============================================================
   17. COOKIE-БАННЕР
   ============================================================ */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 200;
    background: #161C21;
    border-top: 1px solid var(--accent);
    color: #E3EBF0;
}
.cookie-inner {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 0;
    flex-wrap: wrap;
}
.cookie-text {
    flex: 1 1 320px;
    min-width: 0;
    font-size: 0.88rem;
    margin: 0;
}
.cookie-text a { color: var(--accent); }

/* ============================================================
   18. АДАПТИВ
   ============================================================ */
@media (max-width: 960px) {
    .layout-with-sidebar {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-widgets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.8rem;
    }
    .hero h1 { font-size: 2.1rem; }
    h1 { font-size: 1.9rem; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }

    .nav-toggle { display: flex; }
    .main-nav {
        display: none;
        width: 100%;
        margin-top: 0.8rem;
    }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0.2rem; }
    .header-inner { flex-wrap: wrap; }

    .layout-single .content-area { width: 100%; }

    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }

    .posts-grid.mode-list .card { flex-direction: column; }
    .posts-grid.mode-list .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }
    .posts-grid.mode-list .card-thumb-wrap a { position: static; }
    .posts-grid.mode-list .card-thumb-wrap img,
    .posts-grid.mode-list .card-thumb-wrap .thumb-ph {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .entry, .comments-area { padding: 1.3rem; }
    .hero { padding: 2.4rem 0; }
    .hero h1 { font-size: 1.8rem; }
    .post-nav .nav-next { text-align: left; }
}
