/*
Theme Name: dds_domodedovo-nedvizhimost.ru
Theme URI: https://domodedovo-nedvizhimost.ru/
Author: Алексей Завьялов
Description: Тема для образовательной платформы и аналитического центра по рынку недвижимости и урбанистике.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: urbaned
*/

:root {
    --bg: #F4F7FA;
    --bg-alt: #E8EEF5;
    --ink: #1A2733;
    --deep: #1B2A3A;
    --accent: #2B6CB0;
    --accent-dark: #1E4E8C;
    --alert: #E53E3E;
    --muted: #6B7F94;
    --line: #C8D4E0;
    --line-soft: #DCE4EC;
    --grid: #E2E9F0;
    --grid-dark: #2A3F54;
    --serif: Georgia, "Times New Roman", "PT Serif", serif;
    --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Базовая типографика ---------- */

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--bg);
    background-image: repeating-linear-gradient(45deg, var(--grid) 0, var(--grid) 1px, transparent 1px, transparent 24px);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    color: var(--deep);
    line-height: 1.25;
    margin: 0 0 0.7em;
    letter-spacing: -0.01em;
}

h1 { font-size: 3.2rem; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }

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

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

figure { margin: 1.5rem 0; }

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

/* ---------- Ссылки с выезжающим подчёркиванием ---------- */

.entry-content a,
.page-intro a,
.card-excerpt a,
.crumbs a,
.widget a,
.footer-col a {
    position: relative;
    display: inline;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size 0.25s ease;
}

.entry-content a:hover,
.page-intro a:hover,
.card-excerpt a:hover,
.crumbs a:hover,
.widget a:hover,
.footer-col a:hover { background-size: 100% 1px; }

.meta-cat,
.meta-date { color: var(--muted); }

.meta-cat:hover { text-decoration: underline dotted; }

/* ---------- Контейнер ---------- */

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

.shell-front { width: min(85%, 1180px); }

.site-main { display: block; }

.page-wrap { padding: 2.2rem 0 4rem; }

/* ---------- Полоса-подпись сверху ---------- */

.topline {
    height: 4px;
    background: linear-gradient(to right,
        var(--accent) 0, var(--accent) 60%,
        var(--alert) 60%, var(--alert) 85%,
        var(--deep) 85%, var(--deep) 100%);
}

/* ---------- Шапка ---------- */

.masthead {
    background: #FFFFFF;
    border-bottom: 1px solid var(--line);
}

.masthead-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    padding: 1.3rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    flex: 1 1 320px;
}

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

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

.brand-mark { display: block; }

.brand-text { min-width: 0; display: flex; flex-direction: column; }

.brand-name {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--deep);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brand-desc {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.45;
    margin-top: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Навигация ---------- */

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.45rem;
    background: transparent;
    border: 1.5px solid var(--accent);
    border-radius: 2px;
    color: var(--accent);
    font-family: var(--sans);
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
}

.nav-toggle-icon {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
}

.nav-toggle-label { margin-left: 0.2rem; }

.primary-nav { flex: 0 0 auto; }

.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.6rem;
    margin: 0;
    padding: 0;
}

.nav-list li { position: relative; }

.nav-list a {
    display: inline-block;
    font-size: 0.97rem;
    color: var(--deep);
    padding: 0.2rem 0;
    position: relative;
}

.nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.25s ease;
}

.nav-list a:hover { color: var(--accent); }
.nav-list a:hover::after { width: 100%; }

.nav-list .current-menu-item > a { color: var(--accent); }
.nav-list .current-menu-item > a::after { width: 100%; }

.nav-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0.9rem;
    background: #FFFFFF;
    border: 1px solid var(--line);
    min-width: 200px;
}

@media (min-width: 961px) {
    .nav-list .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        display: none;
        z-index: 40;
    }
    .nav-list li:hover > .sub-menu { display: block; }
}

/* ---------- Кнопки ---------- */

.btn {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.93rem;
    line-height: 1.3;
    border-radius: 2px;
    padding: 0.7rem 1.4rem;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    background: var(--accent);
    border: 1.5px solid var(--accent);
    color: #FFFFFF;
}

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

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

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

/* ---------- Заголовки секций и точка-маркер ---------- */

.section-title {
    position: relative;
    font-size: 2rem;
    margin: 0 0 2.2rem;
    padding: 0 0 0.5rem 2.3rem;
    border-bottom: 1px solid var(--line);
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.18em;
    bottom: 0.7rem;
    width: 4px;
    background: var(--accent);
}

.section-title::after {
    content: "";
    position: absolute;
    left: 1.15rem;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--alert);
}

.entry-content h2,
.entry-content h3,
.widget-title,
.comments-title,
.card-title {
    position: relative;
    padding-left: 1.1rem;
}

.entry-content h2::before,
.entry-content h3::before,
.widget-title::before,
.comments-title::before,
.card-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--alert);
}

/* ---------- Раскладки ---------- */

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

.layout-single { display: block; }

.layout-single .content-area {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
}

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

/* ---------- Хлебные крошки ---------- */

.crumbs {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
    line-height: 1.6;
}

.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs-sep { color: var(--line); margin: 0 0.25rem; }

/* ---------- Заголовки страниц ---------- */

.page-title {
    font-size: 2.6rem;
    margin-bottom: 1rem;
}

.page-intro {
    color: var(--muted);
    margin-bottom: 2rem;
}

.single-meta {
    font-size: 0.87rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
}

.meta-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--alert);
    vertical-align: middle;
    margin: 0 0.35rem;
}

.single-thumb { margin-bottom: 1.8rem; }
.single-thumb img { display: block; width: 100%; height: auto; }

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

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

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

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

.entry-content blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-alt);
    border-left: 4px solid var(--accent);
    font-family: var(--serif);
    font-size: 1.12rem;
    color: var(--deep);
}

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

.entry-content img { display: block; height: auto; }

.entry-content table,
.comments-area table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
    border: 1px solid var(--line);
    font-size: 0.95rem;
}

.entry-content th,
.entry-content td {
    border: 1px solid var(--line);
    padding: 0.7rem 0.9rem;
    text-align: left;
}

.entry-content th {
    background: var(--bg-alt);
    font-family: var(--serif);
    color: var(--deep);
}

.entry-content code,
.entry-content pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.9rem;
    background: var(--bg-alt);
}

.entry-content pre {
    padding: 1rem 1.2rem;
    overflow-x: auto;
    border: 1px solid var(--line-soft);
}

.entry-content code { padding: 0.1rem 0.35rem; }

.single-tags { margin-top: 2rem; }

.tag-chip {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 0.25rem 0.7rem;
    margin: 0 0.4rem 0.4rem 0;
}

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

.empty-note { color: var(--muted); }

/* ---------- Карточки записей ---------- */

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #FFFFFF;
    border: 1px solid var(--line-soft);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(27, 42, 58, 0.06);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(27, 42, 58, 0.1);
}

.card:hover::before { opacity: 1; }

.card-thumb { padding: 1rem 1rem 0; }

.card-thumb a { display: block; }

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

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

.card-meta {
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0 0 0.6rem;
}

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

.card-title a { color: var(--deep); }
.card-title a:hover { color: var(--accent); }

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

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

.card-more { margin: auto 0 0; }

.latest-more { margin-top: 2.2rem; }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    background: var(--deep);
    min-height: 480px;
    display: flex;
    align-items: center;
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-veil {
    position: absolute;
    inset: 0;
    background-color: rgba(27, 42, 58, 0.75);
    background-image: repeating-linear-gradient(45deg, var(--grid-dark) 0, var(--grid-dark) 1px, transparent 1px, transparent 24px);
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding: 5.5rem 0;
}

.hero-text {
    max-width: 780px;
    padding-left: 1.6rem;
    border-left: 4px solid var(--alert);
}

.hero-title {
    color: #FFFFFF;
    font-size: 3.2rem;
    line-height: 1.15;
    margin: 0 0 1.2rem;
}

.hero-rule {
    display: block;
    width: 120px;
    height: 1px;
    background: var(--line);
    margin: 0 0 1.2rem;
}

.hero-sub {
    color: var(--line);
    font-size: 1.08rem;
    margin: 0;
    max-width: 640px;
}

/* ---------- Секции главной ---------- */

.front-section {
    position: relative;
    padding: 4rem 0;
    background: var(--bg);
}

.front-section-alt {
    background-color: var(--bg-alt);
    background-image: repeating-linear-gradient(45deg, #DCE5EF 0, #DCE5EF 1px, transparent 1px, transparent 24px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.front-section-alt::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background-image: repeating-linear-gradient(to bottom, var(--line) 0, var(--line) 4px, transparent 4px, transparent 8px);
}

/* ---------- Блок статистики ---------- */

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.stat-cell {
    position: relative;
    min-width: 0;
    padding: 0.4rem 1.6rem;
}

.stat-cell + .stat-cell {
    border-left: 1px dashed var(--line);
}

.stat-num {
    display: block;
    position: relative;
    font-family: var(--serif);
    font-size: 3rem;
    line-height: 1.1;
    color: var(--deep);
    padding-left: 1rem;
}

.stat-num::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--alert);
}

.stat-label {
    display: block;
    margin-top: 0.6rem;
    padding-left: 1rem;
    font-size: 0.88rem;
    color: var(--muted);
}

/* ---------- Таймлайн ---------- */

.timeline {
    position: relative;
    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: 46%;
    min-width: 0;
    margin-bottom: 2.4rem;
}

.tl-left { margin-right: auto; text-align: right; padding-right: 2.2rem; }
.tl-right { margin-left: auto; padding-left: 2.2rem; }

.tl-dot {
    position: absolute;
    top: 0.55rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--alert);
    box-shadow: 0 0 0 2px #FFFFFF;
}

.tl-left .tl-dot { right: -1.85rem; }
.tl-right .tl-dot { left: -1.85rem; }

.tl-year {
    display: block;
    font-family: var(--serif);
    font-size: 1.6rem;
    color: var(--accent);
    line-height: 1.2;
    margin-bottom: 0.4rem;
}

.tl-desc { margin: 0 0 0.5rem; color: var(--ink); font-size: 0.98rem; }

.tl-tag {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ---------- FAQ ---------- */

.faq {
    background: #FFFFFF;
    border: 1px solid var(--line-soft);
    border-radius: 4px;
    padding: 0.6rem 1.8rem;
}

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

.faq-q {
    position: relative;
    list-style: none;
    cursor: pointer;
    font-family: var(--serif);
    font-size: 1.15rem;
    color: var(--ink);
    padding: 1.1rem 0 1.1rem 1.4rem;
}

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

.faq-q::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.65rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--alert);
    transition: background-color 0.2s ease, width 0.2s ease, height 0.2s ease, left 0.2s ease, top 0.2s ease;
}

.faq-item[open] .faq-q::before {
    background: var(--accent);
    width: 10px;
    height: 10px;
    left: -2px;
    top: 1.5rem;
}

.faq-item[open] .faq-q { color: var(--accent); }

.faq-a {
    padding: 0 0 1.2rem 1.4rem;
    border-left: 2px solid var(--accent);
    margin-left: 0.15rem;
    color: var(--muted);
}

.faq-a p { margin: 0; }

/* ---------- Сайдбар и виджеты ---------- */

.sidebar {
    min-width: 0;
    background: #FFFFFF;
    border-left: 3px solid var(--accent);
    padding: 1.6rem 1.5rem;
}

.sidebar .widget { margin-bottom: 2rem; }
.sidebar .widget:last-child { margin-bottom: 0; }

.widget-title {
    font-size: 1.15rem;
    margin: 0 0 1rem;
    color: var(--deep);
}

.sidebar .widget,
.sidebar .widget p { color: var(--ink); }

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

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

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

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

.sidebar .post-date { display: block; font-size: 0.8rem; color: var(--muted); }

/* ---------- Форма поиска ---------- */

.searchform {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.2rem 0;
}

.search-label { flex: 1 1 200px; min-width: 0; }

.search-input {
    width: 100%;
    font-family: var(--sans);
    font-size: 0.95rem;
    padding: 0.62rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #FFFFFF;
    color: var(--ink);
}

.search-input:focus { outline: 2px solid var(--accent); outline-offset: -2px; }

/* ---------- Пагинация ---------- */

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2.6rem 0 0;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #FFFFFF;
    color: var(--accent);
    font-size: 0.92rem;
    line-height: 1.2;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pager .page-numbers:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
}

.pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
}

.pager .page-numbers.dots {
    border: 0;
    background: transparent;
    color: var(--muted);
}

.comments-pager { margin-top: 1.5rem; }

.comments-pager .page-numbers {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--line);
    margin-right: 0.4rem;
    font-size: 0.9rem;
}

/* ---------- Комментарии ---------- */

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

.comments-title { font-size: 1.5rem; margin-bottom: 1.5rem; }

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

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

.comment-item {
    background: #FFFFFF;
    border: 1px solid var(--line-soft);
    border-radius: 4px;
    padding: 1.1rem 1.3rem;
    margin-bottom: 1rem;
}

.comment-head { margin-bottom: 0.5rem; }

.comment-author {
    font-family: var(--serif);
    font-weight: 700;
    color: var(--deep);
}

.comment-date { font-size: 0.82rem; color: var(--muted); margin-left: 0.5rem; }

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

.comment-reply a { font-size: 0.85rem; }

.comments-closed { color: var(--muted); }

.comment-respond {
    background: #FFFFFF;
    border: 1px solid var(--line-soft);
    border-radius: 4px;
    padding: 1.6rem 1.7rem;
}

.comment-reply-title { font-size: 1.3rem; margin-bottom: 1rem; }

.comment-form label {
    display: block;
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

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

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

.comment-form .form-submit input[type="submit"],
.comment-form .submit {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.93rem;
    padding: 0.7rem 1.4rem;
    border-radius: 2px;
    background: var(--accent);
    border: 1.5px solid var(--accent);
    color: #FFFFFF;
    cursor: pointer;
}

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

/* ---------- 404 ---------- */

.notfound-back { margin-top: 1.5rem; }

/* ---------- Подвал ---------- */

.site-footer {
    background-color: var(--deep);
    background-image: repeating-linear-gradient(45deg, var(--grid-dark) 0, var(--grid-dark) 1px, transparent 1px, transparent 24px);
    color: var(--line);
    padding: 3.4rem 0 2rem;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

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

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

.footer-col .widget { margin-bottom: 1.6rem; }
.footer-col .widget:last-child { margin-bottom: 0; }

.footer-col .widget-title {
    color: #FFFFFF;
    font-size: 1.08rem;
    margin-bottom: 0.9rem;
}

.footer-col .widget-title::before { background: var(--alert); }

.footer-col,
.footer-col p,
.footer-col .widget { color: var(--line); font-size: 0.92rem; }

.footer-col a { color: #F4F7FA; }
.footer-col a:hover { color: #FFFFFF; }

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

.footer-col li {
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(200, 212, 224, 0.15);
}

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

.footer-col .post-date { display: block; font-size: 0.78rem; color: #A9BACB; }

.footer-skyline {
    display: flex;
    justify-content: flex-end;
    margin-top: 2.4rem;
    opacity: 0.3;
    pointer-events: none;
}

.footer-skyline svg { max-width: 100%; height: auto; }

.copyright {
    margin: 1.2rem 0 0;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(200, 212, 224, 0.2);
    font-size: 0.85rem;
    color: #A9BACB;
}

/* ---------- Cookie-баннер ---------- */

.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: 1rem 1.6rem;
    background: var(--deep);
    border-top: 3px solid var(--alert);
}

.cookie-text {
    margin: 0;
    color: var(--line);
    font-size: 0.87rem;
    max-width: 760px;
}

.cookie-accept { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */

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

    .nav-toggle { display: inline-flex; }

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

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

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        border-top: 1px solid var(--line);
        margin-top: 0.8rem;
        width: 100%;
    }

    .nav-list > li {
        width: 100%;
        border-bottom: 1px solid var(--line-soft);
    }

    .nav-list a { display: block; padding: 0.7rem 0; width: 100%; }

    .nav-list .sub-menu { border: 0; padding: 0 0 0.5rem 1rem; }

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

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

    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 0; }
    .stat-cell:nth-child(odd) { border-left: 0; }
    .stat-cell + .stat-cell { border-left: 1px dashed var(--line); }
    .stat-cell:nth-child(3) { border-left: 0; }

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

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

    h1 { font-size: 1.95rem; }
    .hero-title { font-size: 1.95rem; }
    .page-title { font-size: 1.8rem; }
    .section-title { font-size: 1.55rem; margin-bottom: 1.6rem; }

    .shell, .shell-front { width: 90%; }

    .page-wrap { padding: 1.6rem 0 3rem; }

    .front-section { padding: 2.6rem 0; }

    .hero { min-height: 380px; }
    .hero-inner { padding: 3.4rem 0; }
    .hero-text { padding-left: 1.1rem; }

    .stats-row { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
    .stat-cell, .stat-cell + .stat-cell { border-left: 0; padding: 0; }
    .stat-num { font-size: 2.4rem; }

    .timeline::before { left: 5px; margin-left: 0; }
    .tl-item {
        width: 100%;
        text-align: left;
        padding-left: 1.8rem;
        padding-right: 0;
        margin-bottom: 2rem;
    }
    .tl-left, .tl-right { margin: 0 0 2rem; text-align: left; padding-left: 1.8rem; padding-right: 0; }
    .tl-left .tl-dot, .tl-right .tl-dot { left: 1px; right: auto; }

    .faq { padding: 0.4rem 1.2rem; }
    .faq-q { font-size: 1.05rem; }

    .sidebar { padding: 1.3rem 1.2rem; }

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

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

    .cookie-banner { padding: 0.9rem 1.1rem; gap: 0.8rem; }
    .cookie-text { font-size: 0.82rem; }

    .comment-respond { padding: 1.2rem 1.1rem; }

    .entry-content blockquote { padding: 1.1rem 1.2rem; }
}
