/*
Theme Name: dds_caknowledges.com
Author: Алексей Громов
Description: Тема для информационного проекта о рефинансировании ипотеки: расчёты, сравнение банковских условий, инструкции по снижению ставки и платежа.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: refimap
*/

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

:root {
    --bg: #F8F6FC;
    --bg-alt: #EFEBF5;
    --bg-side: #F2EFF9;
    --foot: #2A2636;
    --ink: #1E1A2B;
    --accent: #FF5E5E;
    --accent-hot: #FF3B3B;
    --amber: #FFB347;
    --muted: #8A83A0;
    --line: #D6D0E4;
    --line-soft: #E6E1EF;
    --edge: #C8C0D9;
    --deep: #5A4B7A;
    --card-shadow: 0 4px 20px rgba(42, 38, 54, 0.08);
    --card-shadow-hi: 0 8px 30px rgba(42, 38, 54, 0.15);
    --sans: "Inter", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='260' viewBox='0 0 420 260'%3E%3Cpath d='M10 220 L70 150 L120 190 L180 90 L240 140 L300 50 L360 100 L410 30' fill='none' stroke='%235A4B7A' stroke-width='6' stroke-linecap='round' stroke-linejoin='round' opacity='0.03'/%3E%3Ccircle cx='410' cy='30' r='9' fill='%235A4B7A' opacity='0.03'/%3E%3C/svg%3E"),
        repeating-linear-gradient(to right, rgba(230, 225, 239, 0.4) 0 1px, transparent 1px 40px),
        repeating-linear-gradient(to bottom, rgba(230, 225, 239, 0.4) 0 1px, transparent 1px 40px);
    background-repeat: no-repeat, repeat, repeat;
    background-position: right 0 top 90px, 0 0, 0 0;
    background-attachment: fixed, scroll, scroll;
}

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

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

p { background-color: transparent; margin: 0 0 1.1em; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sans);
    color: var(--ink);
    line-height: 1.25;
    letter-spacing: 0.01em;
    margin: 1.8rem 0 0.9rem;
    font-weight: 700;
}

h1 { font-size: 3.5rem; letter-spacing: 0.005em; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

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

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

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

/* ------------------------------------------------------------------
   2. Кнопки и ссылки
   ------------------------------------------------------------------ */

.btn {
    display: inline-block;
    border-radius: 8px;
    padding: 0.78rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, color .2s, box-shadow .2s, transform .2s;
}

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

.btn-solid:hover, .btn-solid:focus-visible {
    background: var(--accent-hot);
    border-color: var(--accent-hot);
    box-shadow: 0 4px 14px rgba(255, 94, 94, 0.4);
}

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

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

.u-link, .entry-content a, .page-sub a, .card-link, .widget a, .crumbs a {
    position: relative;
    color: var(--accent);
    text-decoration: none;
}

.u-link::after, .entry-content a::after, .page-sub a::after,
.card-link::after, .widget a::after, .crumbs a::after {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: -3px;
    height: 2px;
    background: var(--amber);
    transition: left .25s ease, right .25s ease;
}

.u-link:hover::after, .entry-content a:hover::after, .page-sub a:hover::after,
.card-link:hover::after, .widget a:hover::after, .crumbs a:hover::after {
    left: 0;
    right: 0;
}

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

.rate-bar {
    display: flex;
    width: 100%;
    height: 4px;
}

.rate-bar-hot { flex: 0 0 60%; background: var(--accent); }
.rate-bar-warm { flex: 0 0 40%; background: var(--amber); }

.site-head {
    position: relative;
    background: rgba(248, 246, 252, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--edge);
}

.head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    padding: 1.1rem 0;
    flex-wrap: wrap;
}

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

.brand-mark { display: block; line-height: 0; flex: 0 0 auto; }
.brand-logo { max-height: 56px; width: auto; display: block; }
.brand-svg { display: block; }

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

.brand-name {
    display: block;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.55rem;
    background: transparent;
    border: 2px solid var(--accent);
    border-radius: 8px;
    color: var(--accent);
    font: 600 0.95rem/1 var(--sans);
    padding: 0.6rem 1rem;
    cursor: pointer;
}

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

.nav-toggle-bar::before, .nav-toggle-bar::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: currentColor;
}

.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

.site-nav[hidden] { display: none !important; }

.site-nav { flex: 0 1 auto; }

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

.nav-list a {
    display: inline-block;
    padding: 0.35rem 0;
    color: var(--ink);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
}

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

.nav-list .sub-menu {
    list-style: none;
    margin: 0.2rem 0 0;
    padding: 0 0 0 0.9rem;
}

/* ------------------------------------------------------------------
   4. Общая раскладка контента
   ------------------------------------------------------------------ */

.site-main { display: block; padding-bottom: 3.5rem; }

.crumbs {
    padding: 1.6rem 0 0.4rem;
    font-size: 0.9rem;
    color: var(--muted);
}

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

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

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

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

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

.page-title {
    font-size: 2.6rem;
    margin: 0.4rem 0 0.7rem;
}

.page-sub { color: var(--muted); }
.page-sub p:last-child { margin-bottom: 0; }

.empty-note {
    padding: 1.6rem 1.5rem;
    background: var(--bg-alt);
    border-radius: 12px;
    color: var(--muted);
}

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

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.card::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: var(--amber);
    opacity: 0;
    transition: opacity .25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hi);
}

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

.card-thumb { display: block; }

.card-thumb a { display: block; }

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

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

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

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

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

.meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.83rem;
    color: var(--muted);
    margin-bottom: 0.7rem;
}

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

.meta-cat {
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px dashed var(--edge);
}

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

.card-excerpt { font-size: 0.95rem; color: #4A4459; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

.card-more { margin: 0.9rem 0 0; }

.card-link { font-weight: 600; font-size: 0.95rem; }

.card-list .card { border-bottom: 1px dashed var(--line); }

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

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

.fs { padding: 80px 0; }

.fs-hero {
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
    padding-top: 64px;
}

.fs-facts {
    background-image: linear-gradient(135deg, rgba(255, 94, 94, 0.07), rgba(255, 179, 71, 0.07));
    background-color: var(--bg-alt);
}

.fs-latest { background: var(--bg); }
.fs-zig { background: var(--bg-alt); }
.fs-faq { background: var(--bg); }

.sec-title {
    position: relative;
    padding-left: 1.15rem;
    margin: 0 0 2.2rem;
    font-size: 2rem;
}

.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 2px;
    height: 2.5em;
    background: var(--accent);
}

.dot-rule {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 58px;
    background: var(--bg);
}

.dot-rule::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: min(92%, 1180px);
    height: 1px;
    background: linear-gradient(to right,
        var(--line) 0, var(--line) 39%,
        transparent 39%, transparent 61%,
        var(--line) 61%, var(--line) 100%);
}

.dot-rule span {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--deep);
    opacity: 0;
    transform: translateY(7px);
    transition: opacity .5s ease, transform .5s ease;
}

.dot-rule.is-visible span { opacity: 0.7; transform: none; }
.dot-rule.is-visible span:nth-child(2) { transition-delay: .12s; }
.dot-rule.is-visible span:nth-child(3) { transition-delay: .24s; }

/* Блок 1 — hero */

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

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

.hero-title {
    margin: 0 0 1.1rem;
    font-size: 3.5rem;
}

.hero-lead {
    font-size: 1.12rem;
    color: #423C55;
    max-width: 34em;
}

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

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

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

/* Блок 2 — статистика */

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

.fact {
    min-width: 0;
    padding: 0.4rem 1.6rem;
    border-left: 1px solid var(--edge);
}

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

.fact-num {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--accent);
}

.fact-cap {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: var(--ink);
}

/* Блок 3 — чередующиеся строки */

.zig-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 2.2rem;
    align-items: center;
    padding: 1.9rem 2rem;
    margin-bottom: 1.5rem;
    background: #FBFAFE;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: box-shadow .25s ease, transform .25s ease;
}

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

.zig-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 179, 71, 0.22);
}

.zig-row.zig-flip { grid-template-columns: 140px minmax(0, 1fr); }
.zig-row.zig-flip .zig-text { order: 2; }
.zig-row.zig-flip .zig-icon { order: 1; }

.zig-text { min-width: 0; }
.zig-text h3 { margin: 0 0 0.6rem; }
.zig-text p { margin: 0; color: #423C55; }

.zig-icon { display: flex; justify-content: center; }
.zig-icon svg { display: block; }

/* Блок 4 — FAQ */

.faq-a[hidden] { display: none !important; }

.faq {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 0.6rem 1.8rem;
}

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

.faq-q {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    width: 100%;
    padding: 1.2rem 0;
    background: transparent;
    border: 0;
    text-align: left;
    font: 700 1.1rem/1.4 var(--sans);
    color: var(--ink);
    cursor: pointer;
}

.faq-q:hover { color: var(--accent); }

.faq-sign {
    position: relative;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 0.25em;
}

.faq-sign::before, .faq-sign::after {
    content: "";
    position: absolute;
    background: var(--accent);
    transition: transform .2s ease, opacity .2s ease;
}

.faq-sign::before { left: 0; top: 8px; width: 18px; height: 2px; }
.faq-sign::after { left: 8px; top: 0; width: 2px; height: 18px; }

.faq-q[aria-expanded="true"] .faq-sign::after { transform: scaleY(0); opacity: 0; }

.faq-a { padding: 0 0 1.3rem 1.9rem; }
.faq-a p { margin: 0; color: #423C55; }

/* ------------------------------------------------------------------
   7. Запись и страница
   ------------------------------------------------------------------ */

.entry-cover {
    margin: 0 0 1.8rem;
    border-radius: 12px;
    overflow: hidden;
}

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

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

.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.45em; }

.entry-content img { border-radius: 12px; display: block; }

.entry-content blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-alt);
    border-left: 6px solid var(--amber);
    border-radius: 0 12px 12px 0;
    line-height: 1.95;
}

.entry-content blockquote p:first-child::before { content: "• "; color: var(--amber); }
.entry-content blockquote p:last-child::after { content: " •"; color: var(--amber); }
.entry-content blockquote p:last-child { margin-bottom: 0; }

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

.entry-content th, .entry-content td {
    border: 1px solid var(--edge);
    padding: 0.65rem 0.8rem;
    text-align: left;
}

.entry-content th { background: var(--bg-alt); }

.entry-content code {
    background: var(--bg-alt);
    padding: 0.1em 0.35em;
    border-radius: 4px;
    font-size: 0.92em;
}

.entry-content pre {
    background: var(--bg-alt);
    padding: 1rem 1.2rem;
    border-radius: 12px;
    overflow-x: auto;
    min-width: 0;
}

.page-links { margin: 1.4rem 0; font-size: 0.95rem; }

.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 2rem;
}

.entry-tags a {
    padding: 0.35rem 0.8rem;
    border-radius: 8px;
    background: var(--bg-alt);
    color: var(--deep);
    font-size: 0.85rem;
    text-decoration: none;
}

.entry-tags a:hover { background: var(--amber); color: var(--ink); }

.post-switch {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1.2rem;
    margin: 2.6rem 0;
}

.post-switch a {
    min-width: 0;
    padding: 1.1rem 1.3rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    transition: box-shadow .25s ease, transform .25s ease;
}

.post-switch a:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hi); }

.post-switch span {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.switch-next { text-align: right; }

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

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

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 0.55rem 0.9rem;
    border: 2px solid var(--edge);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background-color .2s, border-color .2s, color .2s;
}

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

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

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

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

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

.search-field, .comment-form input[type="text"],
.comment-form input[type="email"], .comment-form input[type="url"],
.comment-form textarea {
    flex: 1 1 200px;
    min-width: 0;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--edge);
    border-radius: 8px;
    background: #fff;
    font: 400 1rem/1.5 var(--sans);
    color: var(--ink);
}

.search-field:focus, .comment-form textarea:focus,
.comment-form input:focus { outline: 2px solid var(--amber); outline-offset: 1px; }

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

.comments-title { margin-top: 0; font-size: 1.6rem; }

.comment-list, .comment-list .children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list .children { padding-left: 1.6rem; }

.comment-item {
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.1rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

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

.comment-author { font-weight: 700; }
.comment-date { font-size: 0.83rem; color: var(--muted); }
.comment-text p:last-child { margin-bottom: 0; }
.comment-actions { margin-top: 0.6rem; font-size: 0.9rem; }
.comment-actions a { color: var(--accent); }

.comment-respond {
    margin-top: 2rem;
    padding: 1.6rem 1.8rem;
    background: var(--bg-alt);
    border-radius: 12px;
}

.comment-respond .comment-reply-title { margin-top: 0; font-size: 1.3rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; margin-bottom: 0.35rem; font-size: 0.9rem; font-weight: 600; }
.comment-form textarea { width: 100%; min-height: 140px; }
.comment-form .form-submit { margin-bottom: 0; }
.comment-form input[type="submit"] { font-family: var(--sans); }

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

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

.sidebar {
    min-width: 0;
    padding: 1.6rem 1.5rem;
    background: var(--bg-side);
    border-radius: 12px;
}

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

.widget-title {
    position: relative;
    margin: 0 0 1rem;
    padding-left: 0.9rem;
    font-size: 1.15rem;
}

.widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 2px;
    height: 1.3em;
    background: var(--accent);
}

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

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

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

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

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

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

.site-foot {
    background: var(--foot);
    color: #E7E3F0;
    padding: 3.2rem 0 2rem;
    margin-top: 3rem;
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 2.4rem;
}

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

.site-foot .widget,
.site-foot .widget p,
.site-foot .widget li { color: #E7E3F0; }

.site-foot .widget-title { color: #fff; }
.site-foot .widget-title::before { background: var(--amber); }

.site-foot .widget li { border-bottom-color: rgba(231, 227, 240, 0.18); }

.site-foot .widget a { color: #E7E3F0; }
.site-foot .widget a:hover { color: var(--amber); }
.site-foot .widget a::after { background: var(--amber); }
.site-foot .widget .post-date { color: #B4ADC6; }

.foot-copy {
    margin: 2.6rem 0 0;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(231, 227, 240, 0.18);
    font-size: 0.85rem;
    color: #B4ADC6;
}

/* ------------------------------------------------------------------
   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: rgba(42, 38, 54, 0.97);
    color: #E7E3F0;
    box-shadow: 0 -4px 20px rgba(42, 38, 54, 0.25);
}

.cookie-text {
    margin: 0;
    max-width: 62ch;
    font-size: 0.9rem;
    line-height: 1.55;
}

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

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

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

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

    .site-nav { flex: 1 1 100%; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-list li { border-bottom: 1px dashed var(--line); }
    .nav-list a { display: block; padding: 0.7rem 0; }

    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .layout-single, .narrow { width: 100%; }

    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .hero-art { max-width: 520px; }

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

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

    h1, .hero-title { font-size: 2.05rem; }
    h2, .sec-title { font-size: 1.6rem; }
    .page-title { font-size: 1.8rem; }

    .fs { padding: 48px 0; }
    .fs-hero { padding-top: 40px; }

    .card-grid { gap: 1.4rem; }

    .facts-row { grid-template-columns: minmax(0, 1fr); }
    .fact { border-left: 0; padding-left: 0; padding-right: 0; }
    .fact-num { font-size: 2.5rem; }

    .zig-row, .zig-row.zig-flip { grid-template-columns: minmax(0, 1fr); padding: 1.5rem 1.3rem; gap: 1.2rem; }
    .zig-row.zig-flip .zig-text { order: 1; }
    .zig-row.zig-flip .zig-icon { order: 2; }
    .zig-icon { justify-content: flex-start; }

    .faq { padding: 0.4rem 1.2rem; }
    .faq-q { font-size: 1rem; }
    .faq-a { padding-left: 0; }

    .entry-content blockquote { padding: 1.2rem 1.2rem; }
    .comment-respond { padding: 1.3rem 1.2rem; }
    .sidebar { padding: 1.4rem 1.2rem; }
    .empty-note { padding: 1.3rem 1.2rem; }

    .cookie-banner { padding: 1rem 1.2rem; gap: 0.9rem; }

    .switch-next { text-align: left; }
}
