/*
Theme Name: dds_businessnews101.com
Description: Аналитическая тема для новостного портала о рынке недвижимости. Швейцарская модульная сетка, холодная стальная палитра.
Author: Дмитрий Савельев
Version: 1.1
Text Domain: steelfr
*/

:root {
    --bg: #F4F7FA;
    --bg-alt: #E8EEF4;
    --dark: #0F1B2D;
    --text: #1B2A3A;
    --accent: #1E6FD9;
    --accent-dark: #0F4C9E;
    --accent2: #00A6A6;
    --muted: #6B7C8F;
    --line: #C9D6E2;
    --light: #F4F7FA;
    --font-head: "Inter Tight", "Archivo", "Manrope", "Segoe UI", Arial, sans-serif;
    --font-body: "Inter", "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    background-image: repeating-linear-gradient(
        45deg,
        rgba(217, 226, 236, 0.35) 0,
        rgba(217, 226, 236, 0.35) 0.5px,
        transparent 0.5px,
        transparent 24px
    );
}

/* Служебные */
.cookie-banner[hidden] { display: none !important; }
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* Верхняя градиентная полоса */
.top-stripe {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent2) 100%);
}

/* Фоновый силуэт дома */
.page-mark {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 340px;
    height: 340px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.08;
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%231E6FD9' stroke-width='2'%3E%3Crect x='30' y='70' width='60' height='120'/%3E%3Crect x='100' y='40' width='70' height='150'/%3E%3Cpath d='M30 70 L60 45 L90 70'/%3E%3Cpath d='M42 90h12M42 110h12M42 130h12M42 150h12M66 90h12M66 110h12M66 130h12M66 150h12'/%3E%3Cpath d='M114 60h14M114 85h14M114 110h14M114 135h14M114 160h14M142 60h14M142 85h14M142 110h14M142 135h14M142 160h14'/%3E%3C/svg%3E");
}

.site-wrap { position: relative; z-index: 1; }

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

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

h1 { font-size: 3.25rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1.1em; }

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

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

figure { margin: 1.5rem 0; }

blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-alt);
    border-left: 3px solid var(--accent);
    font-size: 1.05rem;
}

blockquote p:last-child { margin-bottom: 0; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

table, th, td { border: 1px solid var(--line); }

th, td { padding: 0.65rem 0.8rem; text-align: left; }

th { background: var(--bg-alt); font-family: var(--font-head); font-weight: 600; }

code, pre {
    font-family: "IBM Plex Mono", "Consolas", monospace;
    font-size: 0.92em;
    background: var(--bg-alt);
}

pre { padding: 1rem; overflow-x: auto; }

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

/* Заголовки секций */
.section-title {
    position: relative;
    padding-left: 48px;
    margin-bottom: 1.6rem;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.42em;
    width: 32px;
    height: 3px;
    background: var(--accent);
}

/* Текстовые ссылки с анимированным подчёркиванием */
.entry-content a,
.card-excerpt a,
.widget .textwidget a,
.comment-text a {
    color: var(--accent);
    text-decoration: none;
    background-image: linear-gradient(var(--accent2), var(--accent2));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 2px;
    transition: background-size 0.25s ease;
}

.entry-content a:hover,
.card-excerpt a:hover,
.widget .textwidget a:hover,
.comment-text a:hover {
    background-size: 100% 2px;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 0.85rem 1.7rem;
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-radius: 0;
    border: 2px solid var(--accent);
    background: var(--accent);
    color: #FFFFFF;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #FFFFFF; }

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-outline:hover { background: var(--accent); color: #FFFFFF; border-color: var(--accent); }

.btn-light { border-color: #FFFFFF; background: #FFFFFF; color: var(--dark); }
.btn-light:hover { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }

.btn-ghost-light {
    background: transparent;
    border: 2px solid var(--accent2);
    color: var(--accent2);
}

.btn-ghost-light:hover { background: var(--accent2); color: var(--dark); border-color: var(--accent2); }

/* Метка рубрики */
.cat-label {
    display: inline-block;
    padding-left: 0.6rem;
    border-left: 3px solid var(--accent2);
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    line-height: 1.2;
}

.cat-label:hover { color: var(--accent2); }

/* ==================================================================
   ШАПКА
   ================================================================== */

.site-header {
    background: var(--dark);
    color: #FFFFFF;
    padding: 1.6rem 0;
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    text-decoration: none;
    color: #FFFFFF;
    flex: 1 1 320px;
}

.brand-logo { display: block; max-height: 56px; width: auto; }

.brand-mark { display: block; flex: 0 0 auto; }

.brand-text { min-width: 0; }

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
    color: #FFFFFF;
}

.brand-desc {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #9FB3C8;
}

.nav-toggle {
    display: none;
    padding: 0.55rem 0.9rem;
    background: transparent;
    border: 2px solid var(--accent);
    color: #FFFFFF;
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0;
}

.nav-main ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-main a {
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 600;
    color: #DCE6F0;
    text-decoration: none;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-main a:hover,
.nav-main .current-menu-item > a {
    color: #FFFFFF;
    border-bottom-color: var(--accent2);
}

/* ==================================================================
   ОБЩАЯ РАСКЛАДКА
   ================================================================== */

.site-main { padding: 2.6rem 0 4rem; }

body.home .site-main { padding: 0; }

.layout-single {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 6%;
    align-items: start;
}

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

.breadcrumbs {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
    font-family: var(--font-head);
}

.breadcrumbs a { color: var(--accent); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent2); }
.breadcrumbs .sep { margin: 0 0.4rem; color: var(--line); }

.page-title {
    font-size: 2.4rem;
    margin-bottom: 1.8rem;
    position: relative;
    padding-left: 48px;
}

.page-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.42em;
    width: 32px;
    height: 3px;
    background: var(--accent);
}

/* ==================================================================
   КАРТОЧКИ ЗАПИСЕЙ
   ================================================================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.8rem;
}

.card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1.8rem;
    margin-bottom: 2.6rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.card:hover { border-color: var(--accent); }

.card-thumb { display: block; width: 100%; }

.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.card-thumb-empty {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: var(--bg-alt);
    background-image: repeating-linear-gradient(
        45deg,
        rgba(30, 111, 217, 0.12) 0,
        rgba(30, 111, 217, 0.12) 1px,
        transparent 1px,
        transparent 14px
    );
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.3rem 1.4rem 1.5rem;
    min-width: 0;
}

.card-title {
    font-size: 1.2rem;
    line-height: 1.3;
    margin: 0.7rem 0 0.6rem;
}

.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--accent); }

.card-excerpt {
    font-size: 0.93rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.card-excerpt p { margin: 0 0 0.5em; background: none; }

.card-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--line);
}

.card-date { font-size: 0.8rem; color: var(--muted); font-family: var(--font-head); }

.card-more {
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

.card-more:hover { color: var(--accent2); }

.post-meta { font-size: 0.85rem; color: var(--muted); font-family: var(--font-head); }

/* ==================================================================
   ГЛАВНАЯ
   ================================================================== */

.front-wrap { padding-bottom: 0; }

.front-section { padding: 80px 0; }

.front-section .shell-narrow {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.fs-light { background: var(--bg); }
.fs-alt { background: var(--bg-alt); }

.fs-dark {
    background-color: var(--dark);
    background-image: repeating-linear-gradient(
        45deg,
        rgba(42, 63, 90, 0.2) 0,
        rgba(42, 63, 90, 0.2) 0.5px,
        transparent 0.5px,
        transparent 24px
    );
    color: var(--light);
}

.fs-dark h1, .fs-dark h2, .fs-dark h3 { color: #FFFFFF; }

/* Блок 1 — Hero */
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: center;
}

.hero-copy { min-width: 0; }

.hero-kicker {
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent2);
    margin-bottom: 1.2rem;
    display: block;
}

.hero-title { font-size: 3.25rem; line-height: 1.05; margin-bottom: 1.2rem; }

.hero-lead {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #C9D6E2;
    margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-art { min-width: 0; }
.hero-art svg { display: block; width: 100%; height: auto; }

/* Блок 2 — Статистика */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 2.4rem;
}

.stat-cell {
    min-width: 0;
    padding: 0 1.6rem;
    border-left: 1px solid var(--line);
}

.stat-cell:first-child { padding-left: 0; border-left: 0; }

.stat-num {
    display: block;
    font-family: var(--font-head);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
    letter-spacing: -0.03em;
}

.stat-cap {
    display: block;
    margin-top: 0.8rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--muted);
}

/* Блок 3 — Таймлайн */
.timeline {
    position: relative;
    margin-top: 3rem;
    padding: 0.5rem 0;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    margin-left: -1px;
    background: var(--accent);
}

.tl-item {
    position: relative;
    width: 50%;
    padding: 0 3rem 2.6rem 0;
    min-width: 0;
}

.tl-item:nth-child(even) {
    margin-left: 50%;
    padding: 0 0 2.6rem 3rem;
    text-align: left;
}

.tl-item:nth-child(odd) { text-align: right; }

.tl-item::after {
    content: "";
    position: absolute;
    top: 0.45rem;
    width: 10px;
    height: 10px;
    background: var(--accent);
}

.tl-item:nth-child(odd)::after { right: -6px; }
.tl-item:nth-child(even)::after { left: -6px; }

.tl-year {
    display: block;
    font-family: var(--font-head);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.tl-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.5rem;
}

.tl-text { font-size: 0.9375rem; color: var(--text); margin: 0; }

/* Блок 4 — FAQ */
.faq-list { margin-top: 2.4rem; border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-item summary {
    position: relative;
    list-style: none;
    cursor: pointer;
    padding: 1.3rem 3rem 1.3rem 0;
    font-family: var(--font-head);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    line-height: 24px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.faq-item[open] summary::after { content: "−"; }

.faq-answer {
    padding: 0 3rem 1.5rem 0;
    font-size: 0.9375rem;
    color: var(--text);
}

.faq-answer p:last-child { margin-bottom: 0; }

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

.latest-head .section-title { margin-bottom: 0; }

/* ==================================================================
   ЗАПИСЬ И СТРАНИЦА
   ================================================================== */

.entry-header { margin-bottom: 1.8rem; }

.entry-title { font-size: 2.6rem; margin-bottom: 0.8rem; }

.entry-thumb { margin: 0 0 2rem; }

.entry-thumb img { display: block; width: 100%; height: auto; }

.entry-content { font-size: 1.02rem; }

.entry-content h2 {
    font-size: 1.8rem;
    margin-top: 2.2rem;
    position: relative;
    padding-left: 48px;
}

.entry-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.42em;
    width: 32px;
    height: 3px;
    background: var(--accent);
}

.entry-content h3 { margin-top: 1.8rem; }

.entry-content ul, .entry-content ol { padding-left: 1.4rem; margin-bottom: 1.2rem; }

.entry-content li { margin-bottom: 0.5rem; }

/* Буквица */
.single-post .entry-content > p:first-of-type::first-letter {
    float: left;
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 700;
    line-height: 0.85;
    color: var(--accent);
    margin: 0.12em 0.5rem 0 0;
}

.entry-foot {
    margin-top: 2.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--muted);
}

.entry-foot a { color: var(--accent); text-decoration: none; }
.entry-foot a:hover { color: var(--accent2); }

.post-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
    margin-top: 2.2rem;
}

.post-nav a {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    max-width: 46%;
}

.post-nav a:hover { color: var(--accent2); }

/* ==================================================================
   САЙДБАР И ВИДЖЕТЫ
   ================================================================== */

.sidebar { min-width: 0; }

.widget {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    padding: 1.4rem 1.5rem;
    margin-bottom: 1.8rem;
    color: var(--text);
}

.widget-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.7rem;
    border-bottom: 2px solid var(--accent);
    color: var(--text);
}

.widget ul { list-style: none; margin: 0; padding: 0; }

.widget li { padding: 0.5rem 0; border-bottom: 1px solid var(--line); }

.widget li:last-child { border-bottom: 0; }

.widget a { color: var(--text); text-decoration: none; }

.widget a:hover { color: var(--accent); }

.widget .post-date { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 0.2rem; }

.widget p { color: var(--text); font-size: 0.93rem; margin-bottom: 0.8rem; }

.widget p:last-child { margin-bottom: 0; }

/* Виджеты в подвале */
.site-footer .widget {
    background: transparent;
    border: 0;
    padding: 0;
    margin-bottom: 0;
    color: #C9D6E2;
}

.site-footer .widget-title {
    color: #FFFFFF;
    border-bottom-color: var(--accent2);
    font-size: 1rem;
}

.site-footer .widget p { color: #C9D6E2; }

.site-footer .widget a { color: #C9D6E2; }

.site-footer .widget a:hover { color: var(--accent2); }

.site-footer .widget li { border-bottom-color: rgba(201, 214, 226, 0.18); }

.site-footer .widget .post-date { color: #8FA3B8; }

/* ==================================================================
   ПАГИНАЦИЯ
   ================================================================== */

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.6rem;
    align-items: center;
}

.pagination .page-numbers {
    display: inline-block;
    min-width: 44px;
    padding: 0.55rem 0.9rem;
    text-align: center;
    font-family: var(--font-head);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 0;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s 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: #FFFFFF;
}

.pagination .page-numbers.dots {
    border: 0;
    background: transparent;
    min-width: auto;
    padding: 0.55rem 0.3rem;
    color: var(--muted);
}

/* ==================================================================
   ФОРМЫ, ПОИСК, КОММЕНТАРИИ
   ================================================================== */

.search-form { display: flex; gap: 0; }

.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--line);
    border-right: 0;
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: #FFFFFF;
}

.search-form input[type="search"]:focus { outline: 2px solid var(--accent); outline-offset: -2px; }

.search-form button {
    padding: 0.7rem 1.2rem;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #FFFFFF;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 0;
}

.search-form button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.comments-area { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }

.comments-title, .comment-reply-title { font-size: 1.5rem; margin-bottom: 1.4rem; }

.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }

.comment-list ol.children { list-style: none; margin: 1rem 0 0 1.8rem; padding: 0; }

.comment-inner {
    background: #FFFFFF;
    border: 1px solid var(--line);
    padding: 1.2rem 1.4rem;
    margin-bottom: 1rem;
}

.comment-head { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: baseline; margin-bottom: 0.6rem; }

.comment-author { font-family: var(--font-head); font-weight: 700; }

.comment-date { font-size: 0.8rem; color: var(--muted); }

.comment-text p:last-child { margin-bottom: 0; }

.comment-actions { margin-top: 0.6rem; font-size: 0.85rem; }

.comment-actions a { color: var(--accent); text-decoration: none; font-family: var(--font-head); font-weight: 600; }

.comment-awaiting { color: var(--muted); font-size: 0.85rem; }

.comment-respond { margin-top: 1.5rem; }

.comment-form label { display: block; font-size: 0.88rem; font-family: var(--font-head); font-weight: 600; margin-bottom: 0.3rem; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: #FFFFFF;
    color: var(--text);
}

.comment-form textarea { min-height: 150px; }

.comment-form .form-submit input[type="submit"] {
    padding: 0.85rem 1.7rem;
    border: 2px solid var(--accent);
    background: var(--accent);
    color: #FFFFFF;
    font-family: var(--font-head);
    font-weight: 600;
    border-radius: 0;
    cursor: pointer;
}

.comment-form .form-submit input[type="submit"]:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* ==================================================================
   404
   ================================================================== */

.error-box {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    padding: 2.6rem 2.4rem;
    background: #FFFFFF;
    border: 1px solid var(--line);
}

.error-code {
    font-family: var(--font-head);
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 1rem;
}

.error-box .search-form { margin: 1.6rem 0; max-width: 460px; }

/* ==================================================================
   ПОДВАЛ
   ================================================================== */

.site-footer {
    background-color: var(--dark);
    background-image: repeating-linear-gradient(
        45deg,
        rgba(42, 63, 90, 0.2) 0,
        rgba(42, 63, 90, 0.2) 0.5px,
        transparent 0.5px,
        transparent 24px
    );
    color: #C9D6E2;
    padding: 3.4rem 0 2rem;
    margin-top: 0;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.6rem;
}

.footer-col { min-width: 0; }

.footer-bottom {
    margin-top: 2.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(201, 214, 226, 0.18);
    font-size: 0.85rem;
    color: #8FA3B8;
}

/* ==================================================================
   COOKIE-БАННЕР
   ================================================================== */

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.1rem 1.6rem;
    background: var(--dark);
    border-top: 3px solid var(--accent);
    color: #DCE6F0;
    font-size: 0.9rem;
}

.cookie-banner p { margin: 0; min-width: 0; flex: 1 1 320px; }

.cookie-banner a { color: var(--accent2); }

.cookie-banner button {
    padding: 0.65rem 1.5rem;
    border: 2px solid var(--accent);
    background: var(--accent);
    color: #FFFFFF;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 0;
    cursor: pointer;
}

.cookie-banner button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* ==================================================================
   АДАПТИВ
   ================================================================== */

@media (max-width: 960px) {
    h1 { font-size: 2.4rem; }
    .hero-title { font-size: 2.4rem; }
    .entry-title { font-size: 2rem; }
    .page-title { font-size: 1.9rem; }

    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.6rem; }

    .layout-single, .front-section .shell-narrow, .error-box { width: 100%; }

    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }

    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
    .stat-cell:nth-child(odd) { padding-left: 0; border-left: 0; }

    .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }

    .page-mark { width: 220px; height: 220px; }
}

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

    h1, .hero-title { font-size: 2rem; }
    h2 { font-size: 1.55rem; }

    .front-section { padding: 52px 0; }

    .header-inner { align-items: flex-start; }

    .nav-toggle { display: block; }

    .nav-main {
        flex: 1 1 100%;
        width: 100%;
        display: none;
    }

    .nav-main.is-open { display: block; }

    .nav-main ul { flex-direction: column; gap: 0.2rem; }

    .nav-main li { border-bottom: 1px solid rgba(201, 214, 226, 0.18); }

    .nav-main a { display: block; padding: 0.7rem 0; border-bottom: 0; }

    .brand-desc { display: none; }

    .section-title, .page-title, .entry-content h2 { padding-left: 0; padding-top: 1.1rem; }

    .section-title::before, .page-title::before, .entry-content h2::before { top: 0; }

    .stats-row { grid-template-columns: minmax(0, 1fr); }
    .stat-cell { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 1.2rem; }
    .stat-cell:first-child { border-top: 0; padding-top: 0; }
    .stat-num { font-size: 3rem; }

    .timeline::before { left: 5px; margin-left: 0; }

    .tl-item,
    .tl-item:nth-child(even),
    .tl-item:nth-child(odd) {
        width: 100%;
        margin-left: 0;
        padding: 0 0 2rem 2rem;
        text-align: left;
    }

    .tl-item:nth-child(odd)::after,
    .tl-item:nth-child(even)::after { left: 0; right: auto; }

    .faq-item summary { font-size: 1rem; padding-right: 2.4rem; }
    .faq-answer { padding-right: 0; }

    .footer-cols { grid-template-columns: minmax(0, 1fr); }

    .card-list, .card-grid { grid-template-columns: minmax(0, 1fr); }

    .error-box { padding: 1.8rem 1.4rem; }

    .cookie-banner { padding: 1rem 1.1rem; }

    .page-mark { display: none; }

    .post-nav a { max-width: 100%; }
}
