/*
Theme Name: dds_kingmakertoken.com
Theme URI: https://kingmakertoken.com/
Author: Дмитрий Зимин
Description: Информационная тема для портала о токенизированной недвижимости. Холодная швейцарская сетка, бирюзовый акцент, строгая типографика.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: kmtok
*/

/* =========================================================
   1. Переменные и базовый слой
   ========================================================= */

:root {
    --bg:        #F4F6F8;
    --bg-alt:    #E8ECF0;
    --ink:       #101828;
    --ink-soft:  #667085;
    --line:      #D3DAE1;
    --dark:      #0B1220;
    --accent:    #00C2A8;
    --accent-2:  #3B6FE0;
    --white:     #FFFFFF;
    --shell:     1180px;
    --font-head: "Space Grotesk", "Inter Tight", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, -apple-system, 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.65;
    color: var(--ink);
    background-color: var(--bg);
    background-image: repeating-linear-gradient(45deg, rgba(211, 218, 225, 0.35) 0, rgba(211, 218, 225, 0.35) 1px, transparent 1px, transparent 24px);
    background-attachment: fixed;
}

body::after {
    content: "";
    position: fixed;
    right: -6%;
    bottom: -8%;
    width: 40vw;
    height: 40vw;
    max-width: 640px;
    max-height: 640px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.06;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right bottom;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpolygon points='100,6 182,53 182,147 100,194 18,147 18,53' fill='none' stroke='%2300C2A8' stroke-width='3'/%3E%3Cpolygon points='100,42 150,71 150,129 100,158 50,129 50,71' fill='none' stroke='%2300C2A8' stroke-width='2'/%3E%3C/svg%3E");
}

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

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

.entry a:not(.btn),
.widget a,
.trail a,
.card-title a,
.site-foot a {
    position: relative;
}

.entry a:not(.btn)::after,
.trail a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: var(--accent-2);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.18s ease;
}

.entry a:not(.btn):hover::after,
.trail a:hover::after { transform: scaleY(1); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 0.6em;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }

.entry h2,
.entry h3 {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    margin-top: 1.8em;
}

.entry h2::before,
.entry h3::before {
    content: "";
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    background: var(--accent);
    transform: translateY(-0.15em);
}

.top-line {
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
}

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

.skip-link {
    position: absolute;
    left: -9999px;
}

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

.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    padding: 0.85rem 1.6rem;
    border-radius: 2px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-fill {
    background: var(--accent);
    color: var(--dark);
}

.btn-line {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}

.btn-fill:hover,
.btn-line:hover {
    background: var(--accent-2);
    color: var(--white);
    border-color: var(--accent-2);
    transform: translateY(-2px);
}

.btn-on-dark.btn-line {
    color: var(--bg);
    border-color: rgba(244, 246, 248, 0.5);
}

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

.site-head {
    background: var(--dark);
    color: var(--bg);
    background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 24px);
}

.head-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.4rem;
    padding: 1.6rem 0;
}

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

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

.brand-mark { width: 46px; height: 46px; }

.brand-logo { width: auto; height: 46px; }

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
    color: var(--white);
    letter-spacing: -0.01em;
}

.brand-desc {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #98A2B3;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(244, 246, 248, 0.35);
    color: var(--bg);
    font-family: var(--font-head);
    font-size: 0.9rem;
    padding: 0.55rem 1rem;
    border-radius: 2px;
    cursor: pointer;
}

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

.main-nav a {
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 0.97rem;
    color: var(--bg);
    padding: 0.2rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

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

/* =========================================================
   4. Каркас страницы
   ========================================================= */

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

.layout-single { display: block; }

.layout-single .content-area {
    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; }

.trail {
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin-bottom: 1.8rem;
    line-height: 1.7;
}

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

.trail-sep { color: var(--line); margin: 0 0.15rem; }

.page-title {
    font-size: 2rem;
    margin-bottom: 1.4rem;
}

.section-head {
    margin-bottom: 1.8rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.section-head h2,
.bar-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0;
}

.section-head h2::before,
.bar-title::before {
    content: "";
    flex: 0 0 auto;
    width: 4px;
    align-self: stretch;
    min-height: 1.1em;
    background: var(--accent);
}

.section-lead {
    margin: 0.8rem 0 0;
    color: var(--ink-soft);
    max-width: 62ch;
}

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

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    border-left-width: 1px;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, border-left-width 0.16s ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    border-left-width: 3px;
    box-shadow: 0 6px 0 rgba(11, 18, 32, 0.08);
}

.card-thumb { display: block; }

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

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

.card-title {
    font-size: 1.12rem;
    margin: 0 0 0.6rem;
}

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

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

.card-excerpt {
    color: #3B4658;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

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

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

.meta {
    font-size: 0.8rem;
    color: var(--ink-soft);
    font-family: var(--font-head);
    letter-spacing: 0.02em;
    margin-bottom: 0.7rem;
}

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

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

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

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

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

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

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.85rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 0.92rem;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

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

.pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--dark);
    font-weight: 600;
}

.pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
}

/* =========================================================
   7. Главная
   ========================================================= */

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

.front-section.tone-alt { background: var(--bg-alt); }

.front-section.tone-dark {
    background: var(--dark);
    color: var(--bg);
    background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 24px);
}

.fs-inner {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.tone-dark h1,
.tone-dark h2,
.tone-dark h3 { color: var(--bg); }

/* --- Hero --- */

.hero { padding: 5.6rem 0; }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3.2rem;
    align-items: center;
}

.hero h1 {
    font-size: 3.25rem;
    letter-spacing: -0.035em;
    margin: 0 0 1.1rem;
}

.hero-sub {
    color: #98A2B3;
    font-size: 1.05rem;
    max-width: 52ch;
    margin-bottom: 2rem;
}

.hero-kicker {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.4rem;
}

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

.hero-art img {
    display: block;
    width: 100%;
    height: auto;
}

/* --- Статистика --- */

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

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

.stat:first-child { border-left: none; }

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

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--ink-soft);
    line-height: 1.5;
}

/* --- Zigzag --- */

.zig-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
    gap: 2.6rem;
    align-items: center;
    background: var(--white);
    border-left: 4px solid var(--accent-2);
    padding: 2.2rem 2.4rem;
    margin-bottom: 1.6rem;
}

.zig-row:last-child { margin-bottom: 0; }

.zig-row.flip .zig-text { order: 2; }

.zig-row.flip .zig-art { order: 1; }

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

.zig-text h3 { margin-bottom: 0.6rem; }

.zig-text p { margin: 0; color: #3B4658; }

.zig-index {
    display: block;
    font-family: var(--font-head);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.zig-art { min-width: 0; }

.zig-art img {
    display: block;
    width: min(100%, 240px);
    height: auto;
    margin-left: auto;
}

.zig-row.flip .zig-art img { margin-left: 0; margin-right: auto; }

/* --- FAQ --- */

.faq-item {
    border-bottom: 1px dashed var(--line);
    padding: 1.1rem 1.2rem;
    border-left: 4px solid transparent;
    background: transparent;
}

.faq-item[open] {
    border-left-color: var(--accent);
    background: var(--white);
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    font-family: var(--font-head);
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--ink);
}

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

.faq-item summary::before {
    content: "";
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    background: var(--accent);
    transform: translateY(-0.15em);
}

.faq-item .faq-answer {
    color: var(--ink-soft);
    margin: 0.9rem 0 0.2rem 1.2rem;
}

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

/* --- CTA внутри главной --- */

.front-cta {
    background: var(--dark);
    color: var(--bg);
    padding: 2.6rem 2.4rem;
    border-radius: 4px;
    margin-top: 2.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    align-items: center;
    justify-content: space-between;
}

.front-cta p { margin: 0; color: #98A2B3; max-width: 60ch; }

.front-cta h3 { margin: 0 0 0.4rem; color: var(--bg); }

/* =========================================================
   8. Контент записи и страницы
   ========================================================= */

.entry { min-width: 0; }

.entry-head { margin-bottom: 1.6rem; }

.entry-thumb {
    display: block;
    margin-bottom: 1.8rem;
}

.entry-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.entry-content > *:first-child { margin-top: 0; }

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

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

.entry-content blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--white);
    border-left: 4px solid var(--accent);
    border-radius: 4px;
    color: #3B4658;
}

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

.entry-content img { border-radius: 4px; }

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

.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(--font-head);
}

.entry-content code,
.entry-content pre {
    background: var(--bg-alt);
    font-size: 0.92em;
}

.entry-content pre {
    padding: 1rem 1.2rem;
    overflow-x: auto;
    border-radius: 4px;
}

.table-scroll { overflow-x: auto; }

.entry-foot {
    margin-top: 2.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
    color: var(--ink-soft);
}

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

.post-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 1.4rem;
    font-family: var(--font-head);
    font-size: 0.92rem;
}

/* =========================================================
   9. Сайдбар и виджеты
   ========================================================= */

.sidebar {
    min-width: 0;
    background: var(--white);
    border-left: 1px solid var(--line);
    padding: 1.6rem 1.5rem;
}

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

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

.sidebar .widget-title {
    font-size: 1.02rem;
    color: var(--ink);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--line);
}

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

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

.sidebar .widget li {
    padding: 0.5rem 0 0.5rem 0.95rem;
    position: relative;
    border-bottom: 1px dashed var(--line);
    font-size: 0.95rem;
    line-height: 1.5;
}

.sidebar .widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.95rem;
    width: 6px;
    height: 6px;
    background: var(--accent);
}

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

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

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

.sidebar .post-date {
    display: block;
    font-size: 0.78rem;
    color: var(--ink-soft);
    font-family: var(--font-head);
}

/* Поиск */

.search-form {
    display: flex;
    gap: 0.5rem;
    min-width: 0;
}

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

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--accent);
}

.search-form button {
    flex: 0 0 auto;
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 2px;
    background: var(--accent);
    color: var(--dark);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

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

/* =========================================================
   10. Комментарии
   ========================================================= */

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

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

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

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

.comment-body {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1.2rem 1.3rem;
}

.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: 600;
}

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

.comment-actions { font-size: 0.88rem; font-family: var(--font-head); }

.comment-respond {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1.6rem 1.8rem;
}

.comment-respond .comment-reply-title { margin-top: 0; }

.comment-form label {
    display: block;
    font-size: 0.88rem;
    font-family: var(--font-head);
    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: 2px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--bg);
    color: var(--ink);
}

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

.comment-form .submit {
    background: var(--accent);
    color: var(--dark);
    border: none;
    border-radius: 2px;
    font-family: var(--font-head);
    font-weight: 600;
    padding: 0.85rem 1.6rem;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.comment-form .submit:hover { background: var(--accent-2); color: var(--white); }

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

.site-foot {
    background: var(--dark);
    color: var(--bg);
    background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 24px);
    padding: 3.4rem 0 0;
}

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

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

.site-foot .widget-title {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(244, 246, 248, 0.14);
}

.site-foot .widget,
.site-foot .widget p,
.site-foot .widget li,
.site-foot .textwidget { color: #B7C0CC; font-size: 0.93rem; }

.site-foot .widget a { color: #D6DDE6; }

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

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

.site-foot .widget li {
    padding: 0.42rem 0 0.42rem 0.95rem;
    position: relative;
}

.site-foot .widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 6px;
    height: 6px;
    background: var(--accent);
}

.site-foot .post-date {
    display: block;
    font-size: 0.78rem;
    color: #8B95A3;
}

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

.foot-bottom {
    border-top: 1px solid rgba(244, 246, 248, 0.12);
    padding: 1.3rem 0;
    font-size: 0.85rem;
    color: #8B95A3;
    font-family: var(--font-head);
    letter-spacing: 0.01em;
}

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

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

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

.cookie-banner p { margin: 0; max-width: 78ch; color: #C3CBD6; }

.cookie-banner .btn { padding: 0.6rem 1.3rem; font-size: 0.88rem; }

/* =========================================================
   13. 404 и поиск
   ========================================================= */

.notfound {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 2.4rem 2.2rem;
}

.notfound-code {
    font-family: var(--font-head);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
    letter-spacing: -0.04em;
    margin-bottom: 0.6rem;
}

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

.empty-note {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1.8rem 2rem;
    color: var(--ink-soft);
}

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

@media (max-width: 960px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .hero h1 { font-size: 2.5rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.6rem; }
    .sidebar { border-left: none; border-top: 3px solid var(--accent); }
    .layout-single .content-area { width: 100%; }
    .fs-inner { width: 100%; }
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat:nth-child(3) { border-left: none; }
    .stat:nth-child(odd) { border-left: none; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 1.8rem; }
    .hero { padding: 3.4rem 0; }
    .hero h1 { font-size: 2rem; }
    .front-section { padding: 3rem 0; }
    .front-cta { padding: 1.8rem 1.4rem; }
    .zig-row { grid-template-columns: minmax(0, 1fr); padding: 1.6rem 1.4rem; gap: 1.4rem; }
    .zig-row.flip .zig-text { order: 0; }
    .zig-row.flip .zig-art { order: 0; }
    .zig-art img { margin-left: 0; width: min(100%, 180px); }
    .zig-row.flip .zig-art img { margin-right: 0; }
    .stats-row { grid-template-columns: minmax(0, 1fr); }
    .stat { border-left: none; border-top: 1px solid var(--line); }
    .stat:first-child { border-top: none; }
    .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
    .head-inner { padding: 1.2rem 0; }
    .nav-toggle { display: inline-block; }
    .main-nav {
        flex: 1 1 100%;
        display: none;
    }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0.2rem; }
    .main-nav li { border-bottom: 1px solid rgba(244, 246, 248, 0.12); }
    .main-nav a { display: block; padding: 0.7rem 0; }
    .notfound { padding: 1.8rem 1.4rem; }
    .comment-respond { padding: 1.3rem 1.2rem; }
    .cookie-banner { padding: 1rem 1.2rem; justify-content: flex-start; }
    .entry-content blockquote { padding: 1.2rem 1.2rem; }
    .sidebar { padding: 1.4rem 1.2rem; }
}
