/*
Theme Name: dds_eventgroup18.ru
Theme URI: https://eventgroup18.ru/
Author: Горохов Владислав Горохов Владислав
Description: Информационная тема о строительстве и рынке новостроек. Дизайн-концепция «Строительная аналитика»: холодная стальная палитра, бруталистская сетка и журнальная типографика.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: btrend
*/

/* ============================================================
   1. Переменные и база
   ============================================================ */

:root {
    --bg: #F4F6F9;
    --bg-alt: #E8ECF1;
    --head-bg: #1A202C;
    --foot-bg: #121720;
    --side-bg: #FFFFFF;
    --text: #1E293B;
    --accent: #EAB308;
    --accent-2: #3B82F6;
    --muted: #64748B;
    --line: #CBD5E1;
    --sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --serif: 'Merriweather', Georgia, 'Times New Roman', serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(45deg, rgba(30, 41, 59, 0.04) 0 1px, transparent 1px 24px),
        repeating-linear-gradient(-45deg, rgba(30, 41, 59, 0.04) 0 1px, transparent 1px 24px);
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.72;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sans);
    font-weight: 900;
    line-height: 1.14;
    letter-spacing: 0.03em;
    color: var(--text);
    margin: 0 0 0.7em;
}

h1 { font-size: 3.75rem; text-transform: uppercase; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.15em; }

a {
    color: var(--accent-2);
    text-decoration: none;
    background-image: linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 3px;
    transition: background-size 0.25s ease, color 0.2s ease;
}

a:hover, a:focus { background-size: 100% 3px; color: var(--text); }

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: var(--head-bg);
    padding: 0.6rem 1rem;
    z-index: 60;
}
.skip-link:focus { left: 0; }

/* ============================================================
   2. Кнопки
   ============================================================ */

.btn {
    display: inline-block;
    font-family: var(--sans);
    font-weight: 900;
    font-size: 0.9rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 0.85rem 1.7rem;
    border-radius: 4px;
    border: 2px solid var(--accent);
    background: var(--accent);
    background-image: none;
    color: var(--head-bg);
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.btn:hover, .btn:focus {
    background: var(--accent-2);
    border-color: var(--accent-2);
    color: #fff;
    transform: translateY(2px);
}

.btn-ghost {
    background: transparent;
    border: 2px solid var(--accent-2);
    outline: 2px dashed var(--accent);
    outline-offset: -7px;
    color: var(--text);
}

.btn-ghost:hover, .btn-ghost:focus {
    background: var(--accent-2);
    border-color: var(--accent-2);
    outline-color: var(--accent);
    color: #fff;
}

/* ============================================================
   3. Служебные скрытия (до основных блоков — см. A11)
   ============================================================ */

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

/* ============================================================
   4. Шапка
   ============================================================ */

.top {
    background: var(--head-bg);
    color: #fff;
    border-bottom: 6px solid var(--accent);
}

.top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    padding: 1.3rem 0;
    flex-wrap: wrap;
}

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

.brand-mark { display: flex; background-image: none; }

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

.brand svg { display: block; flex: 0 0 auto; }

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

.brand-name {
    display: block;
    font-family: var(--sans);
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #fff;
    background-image: none;
    line-height: 1.15;
}

.brand-name:hover { color: var(--accent); }

.brand-tagline {
    display: block;
    margin-top: 0.25rem;
    font-family: var(--sans);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    color: #94A3B8;
}

.nav-toggle {
    display: none;
    font-family: var(--sans);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 4px;
    padding: 0.6rem 1rem;
    cursor: pointer;
}

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

.nav-list a {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.86rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #E2E8F0;
}

.nav-list a:hover, .nav-list .current-menu-item > a { color: #fff; }

.nav-list .current-menu-item > a { background-size: 100% 3px; }

/* ============================================================
   5. Секции и разделители
   ============================================================ */

.page-body { padding: 2.8rem 0 3.4rem; }

.section-title {
    position: relative;
    padding-left: 1.3rem;
    letter-spacing: 0.06em;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.12em;
    width: 8px;
    height: 0.92em;
    background: var(--accent);
}

.rule {
    position: relative;
    height: 1px;
    background: var(--line);
    margin: 2.6rem 0;
}

.rule::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    background: var(--accent);
}

.fs {
    position: relative;
    overflow: hidden;
    padding: 3.6rem 0 4rem;
    background-color: var(--bg);
}

.fs-alt {
    background-color: var(--bg-alt);
    background-image: radial-gradient(rgba(30, 41, 59, 0.10) 1px, transparent 1px);
    background-size: 13px 13px;
}

.fs::after {
    content: '';
    position: absolute;
    left: 12px;
    bottom: 14px;
    width: 260px;
    height: 220px;
    opacity: 0.03;
    pointer-events: none;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='220' viewBox='0 0 260 220'%3E%3Cpath d='M10 210 L250 210 L10 20 Z' fill='none' stroke='%233B82F6' stroke-width='7'/%3E%3Cpath d='M45 210 L45 184 M75 210 L75 192 M105 210 L105 184 M135 210 L135 192 M165 210 L165 184 M195 210 L195 192' stroke='%233B82F6' stroke-width='5'/%3E%3C/svg%3E");
}

.fs-inner {
    position: relative;
    z-index: 1;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.zigzag {
    height: 12px;
    background-repeat: repeat-x;
    background-position: center bottom;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12' viewBox='0 0 24 12'%3E%3Cpath d='M0 11 L6 2 L12 11 L18 2 L24 11' fill='none' stroke='%23CBD5E1' stroke-width='2'/%3E%3C/svg%3E");
}

.lead {
    font-size: 1.08rem;
    color: var(--muted);
    max-width: 70ch;
}

/* ============================================================
   6. Блок 1 — hero
   ============================================================ */

.hero {
    position: relative;
    overflow: hidden;
    background: var(--head-bg);
}

.hero-media { position: absolute; inset: 0; }

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(18, 23, 32, 0.92) 0%, rgba(26, 32, 44, 0.78) 48%, rgba(59, 130, 246, 0.34) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    padding: 5.2rem 0 5.6rem;
    min-width: 0;
}

.hero h1 { color: #fff; max-width: 18ch; margin-bottom: 1.1rem; }

.hero p {
    color: #DCE3EC;
    font-size: 1.16rem;
    max-width: 62ch;
    margin-bottom: 2rem;
}

.hero-badge {
    position: absolute;
    right: 0;
    top: 2.4rem;
    z-index: 3;
    background: var(--accent);
    color: var(--head-bg);
    font-family: var(--sans);
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.95rem;
    padding: 1rem 1.4rem;
    box-shadow: 6px 6px 0 rgba(18, 23, 32, 0.75);
}

/* ============================================================
   7. Блок 2 — сетка трендов
   ============================================================ */

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

.trend {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 6px 6px 0 var(--text);
    padding: 1.7rem 1.6rem 1.9rem;
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.trend:hover { box-shadow: 2px 2px 0 var(--text); border-color: var(--accent); }

.trend svg { display: block; margin-bottom: 1rem; }

.trend h3 { margin-bottom: 0.5rem; font-size: 1.18rem; }

.trend p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.trend-tag {
    display: inline-block;
    font-family: var(--sans);
    font-weight: 900;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 0.7rem;
}

/* ============================================================
   8. Блок 3 — цитата-статистика
   ============================================================ */

.fs-quote {
    background: var(--head-bg);
    background-image: none;
    color: #fff;
}

.fs-quote::after { opacity: 0.06; }

.quote-band {
    position: relative;
    background: var(--head-bg);
    border: 1px solid #2C3949;
    padding: 2.8rem 2.4rem;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
    gap: 2.4rem;
    align-items: center;
}

.quote-band::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 10px;
    background: var(--accent);
    z-index: 0;
}

.quote-figure, .quote-words { position: relative; z-index: 1; min-width: 0; }

.quote-figure strong {
    display: block;
    font-family: var(--sans);
    font-weight: 900;
    font-size: 5.4rem;
    line-height: 0.95;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.quote-figure span {
    display: block;
    margin-top: 0.5rem;
    font-family: var(--sans);
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #94A3B8;
}

.quote-words p {
    font-family: var(--serif);
    font-size: 1.22rem;
    color: #F1F5F9;
    background: var(--head-bg);
    padding: 0.4rem 0.6rem;
    margin: 0 0 0.9rem;
}

.quote-words cite {
    display: block;
    font-style: normal;
    font-family: var(--sans);
    font-size: 0.8rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--accent-2);
    background: var(--head-bg);
    padding: 0.3rem 0.6rem;
}

.fs-quote .section-title { color: #fff; }

/* ============================================================
   9. Блок 4 — таймлайн шагов
   ============================================================ */

.steps { margin-top: 2.4rem; list-style: none; padding: 0; }

.step {
    position: relative;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 1.5rem;
    padding-bottom: 2.2rem;
    align-items: start;
}

.step:last-child { padding-bottom: 0; }

.step::before {
    content: '';
    position: absolute;
    left: 38px;
    top: 74px;
    bottom: 0;
    border-left: 3px dashed var(--accent-2);
}

.step:last-child::before { display: none; }

.step-num {
    width: 78px;
    height: 78px;
    border: 4px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--sans);
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--text);
    background: var(--bg);
}

.step-text { min-width: 0; padding-top: 0.4rem; }

.step-text h3 { margin-bottom: 0.35rem; }

.step-text p { margin: 0; color: var(--muted); }

/* ============================================================
   10. Карточки записей
   ============================================================ */

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

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0;
    box-shadow: 6px 6px 0 var(--text);
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover { box-shadow: 2px 2px 0 var(--text); border-color: var(--accent); }

.card-thumb { display: block; background-image: none; }

.card-thumb img {
    display: block;
    width: 100%;
    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(59, 130, 246, 0.14) 0 2px, transparent 2px 16px),
        linear-gradient(180deg, #E8ECF1 0%, #D8DEE7 100%);
}

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

.card-title { font-size: 1.22rem; margin: 0 0 0.5rem; }

.card-title a { color: var(--text); }

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

.card-excerpt { color: var(--muted); font-size: 0.97rem; }

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

.card-foot { margin-top: auto; padding-top: 1rem; }

.post-meta {
    font-family: var(--sans);
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.6rem;
}

.post-meta a { color: var(--accent-2); }

.post-meta-sep { color: var(--accent); }

.card-more {
    font-family: var(--sans);
    font-weight: 900;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
}

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

/* ============================================================
   11. Раскладки внутренних страниц
   ============================================================ */

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    justify-content: space-between;
    gap: 2.4rem;
    align-items: start;
}

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

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

.crumbs {
    font-family: var(--sans);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.6rem;
}

.crumbs a { color: var(--accent-2); }

.crumbs-sep { color: var(--accent); margin: 0 0.35rem; }

.page-head { margin-bottom: 2rem; }

.page-head h1 { font-size: 2.6rem; }

.entry {
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 6px 6px 0 var(--text);
    padding: 2.2rem 2rem 2.4rem;
}

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

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

.entry-title { font-size: 2.5rem; }

.entry-content h2 { font-size: 1.75rem; margin-top: 1.8rem; }

.entry-content h3 { font-size: 1.32rem; margin-top: 1.5rem; }

.entry-content ul { list-style: none; padding-left: 0; }

.entry-content ul li {
    position: relative;
    padding-left: 1.7rem;
    margin-bottom: 0.5rem;
}

.entry-content ul li::before {
    content: '⎔';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-family: var(--sans);
    font-weight: 900;
}

.entry-content ol { padding-left: 1.3rem; }

.entry-content ol li::marker { color: var(--accent-2); font-family: var(--sans); font-weight: 900; }

.entry-content blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem 1.4rem 2.1rem;
    background: var(--bg-alt);
    border-radius: 0;
    background-image:
        repeating-linear-gradient(180deg, var(--accent) 0 14px, transparent 14px 22px),
        repeating-linear-gradient(180deg, var(--accent-2) 0 8px, transparent 8px 22px);
    background-repeat: no-repeat;
    background-size: 5px 100%, 5px 100%;
    background-position: 0 0, 8px 0;
    font-family: var(--serif);
    font-size: 1.06rem;
}

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

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

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
    border: 1px solid var(--text);
    background: #fff;
}

.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(--sans);
    font-weight: 900;
    letter-spacing: 0.05em;
}

.entry-foot {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    font-family: var(--sans);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.entry-foot a { color: var(--accent-2); }

/* ============================================================
   12. Сайдбар
   ============================================================ */

.sidebar { min-width: 0; }

.side-block {
    background: var(--side-bg);
    border: 1px solid var(--line);
    box-shadow: 6px 6px 0 var(--text);
    padding: 1.5rem 1.4rem 1.6rem;
    margin-bottom: 2rem;
    color: var(--text);
}

.side-block-title {
    font-size: 1.05rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text);
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 1rem;
}

.side-block-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 8px;
    height: 0.9em;
    background: var(--accent);
}

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

.side-block li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }

.side-block li:last-child { border-bottom: none; }

.side-block a { color: var(--text); font-size: 0.98rem; }

.side-block a:hover { color: var(--accent-2); }

.side-block .post-date {
    display: block;
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 0.2rem;
}

.side-block p { color: var(--text); }

/* ============================================================
   13. Формы поиска и комментариев
   ============================================================ */

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

.searchform input[type="search"] {
    flex: 1 1 200px;
    min-width: 0;
    font-family: var(--serif);
    font-size: 1rem;
    padding: 0.75rem 0.9rem;
    border: 2px solid var(--text);
    border-radius: 4px;
    background: #fff;
    color: var(--text);
}

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

.talk {
    margin-top: 2.4rem;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 6px 6px 0 var(--text);
    padding: 1.8rem 1.8rem 2rem;
}

.talk-title { font-size: 1.35rem; }

.talk-list { list-style: none; margin: 0 0 1.6rem; padding: 0; }

.talk-list .children { list-style: none; padding-left: 1.4rem; border-left: 3px solid var(--line); }

.talk-item { margin-bottom: 1.2rem; }

.talk-body { border-bottom: 1px solid var(--line); padding-bottom: 1rem; }

.talk-head {
    font-family: var(--sans);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.talk-author { color: var(--text); font-weight: 900; }

.talk-hold { color: var(--accent-2); font-size: 0.92rem; }

.talk-reply {
    font-family: var(--sans);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.comment-form label {
    display: block;
    font-family: var(--sans);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
    color: var(--muted);
}

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

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

.comment-form input:focus, .comment-form textarea:focus { border-color: var(--accent-2); outline: none; }

.comment-form .submit {
    font-family: var(--sans);
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 0.85rem 1.7rem;
    border: 2px solid var(--accent);
    border-radius: 4px;
    background: var(--accent);
    color: var(--head-bg);
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.comment-form .submit:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; transform: translateY(2px); }

/* ============================================================
   14. Пагинация
   ============================================================ */

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 2.4rem;
}

.pager .page-numbers {
    display: inline-block;
    font-family: var(--sans);
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    padding: 0.6rem 1rem;
    border: 2px solid var(--text);
    border-radius: 4px;
    background: #fff;
    background-image: none;
    color: var(--text);
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.pager a.page-numbers:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; transform: translateY(2px); }

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

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

/* ============================================================
   15. Подвал
   ============================================================ */

.bottom {
    background: var(--foot-bg);
    color: #CBD5E1;
    border-top: 6px solid var(--accent);
    padding: 3rem 0 0;
    margin-top: 3.2rem;
}

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

.foot-block { min-width: 0; color: #CBD5E1; }

.foot-block p { color: #CBD5E1; }

.foot-block-title {
    font-size: 1rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #FFFFFF;
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 1rem;
}

.foot-block-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 8px;
    height: 0.9em;
    background: var(--accent);
}

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

.foot-block li { padding: 0.4rem 0; }

.foot-block a { color: #E2E8F0; font-size: 0.96rem; }

.foot-block a:hover { color: #FFFFFF; }

.foot-block .post-date { display: block; color: #94A3B8; font-size: 0.75rem; }

.foot-contact { margin-top: 1rem; font-size: 0.95rem; }

.foot-contact a { color: var(--accent); }

.copyright {
    margin-top: 2.6rem;
    padding: 1.3rem 0 1.6rem;
    border-top: 1px solid #253044;
    font-family: var(--sans);
    font-size: 0.8rem;
    letter-spacing: 0.09em;
    color: #94A3B8;
}

/* ============================================================
   16. Cookie-баннер
   ============================================================ */

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    flex-wrap: wrap;
    padding: 1.1rem 1.6rem;
    background: var(--head-bg);
    border-top: 6px solid var(--accent);
    color: #E2E8F0;
}

.cookie-banner p { margin: 0; font-size: 0.95rem; min-width: 0; }

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

/* ============================================================
   17. Страница 404 и поиск
   ============================================================ */

.nf {
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 6px 6px 0 var(--text);
    padding: 2.4rem 2.2rem 2.6rem;
}

.nf-code {
    font-family: var(--sans);
    font-weight: 900;
    font-size: 6rem;
    line-height: 1;
    color: var(--accent);
    letter-spacing: 0.04em;
    margin-bottom: 0.6rem;
}

.nf-actions { margin-top: 1.6rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.empty-note {
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 6px 6px 0 var(--text);
    padding: 1.8rem;
}

/* ============================================================
   18. Адаптив
   ============================================================ */

@media (max-width: 960px) {
    h1 { font-size: 2.6rem; }
    .hero-inner { padding: 4rem 0 4.4rem; width: 100%; }
    .hero-badge { position: static; display: inline-block; margin-bottom: 1.6rem; }
    .fs-inner { width: 100%; }
    .layout-with-sidebar { display: block; }
    .sidebar { margin-top: 2.6rem; }
    .layout-single { width: 100%; }
    .trend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quote-band { grid-template-columns: minmax(0, 1fr); }
    .quote-band::before { display: none; }
    .nav-toggle { display: inline-block; }
    .nav-list {
        width: 100%;
        flex-direction: column;
        gap: 0.8rem;
        padding-top: 1rem;
        border-top: 1px solid #2C3949;
    }
    .top-inner { padding: 1.1rem 0; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2.05rem; }
    h2 { font-size: 1.62rem; }
    .fs { padding: 2.6rem 0 2.8rem; }
    .hero-inner { padding: 3.2rem 0 3.4rem; }
    .hero p { font-size: 1.02rem; }
    .quote-band { padding: 1.8rem 1.4rem; }
    .quote-figure strong { font-size: 3.6rem; }
    .trend-grid, .cards-3, .cards { grid-template-columns: minmax(0, 1fr); }
    .bottom-grid { grid-template-columns: minmax(0, 1fr); }
    .entry { padding: 1.5rem 1.2rem 1.7rem; }
    .entry-title { font-size: 1.8rem; }
    .page-head h1 { font-size: 1.9rem; }
    .talk { padding: 1.3rem 1.1rem 1.5rem; }
    .nf { padding: 1.6rem 1.3rem 1.8rem; }
    .nf-code { font-size: 4.2rem; }
    .cookie-banner { padding: 1rem 1.2rem; }
    .step { grid-template-columns: 58px minmax(0, 1fr); gap: 1rem; }
    .step-num { width: 58px; height: 58px; font-size: 1.35rem; }
    .step::before { left: 28px; top: 58px; }
    .trend { padding: 1.4rem 1.2rem 1.5rem; }
    .side-block { padding: 1.2rem 1.1rem 1.3rem; }
}
