/*
Theme Name: dds_verdivurdering-bergen.com
Theme URI: https://verdivurdering-bergen.com/
Author: Волков Билал
Author URI: https://verdivurdering-bergen.com/
Description: Тема для информационного сайта об инвестициях в коммерческую недвижимость.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: dds_verdivurdering-bergen
*/

/* ------- БАЗОВЫЕ ПЕРЕМЕННЫЕ И СБРОС ------- */
:root {
    --bg-deep: #0F1117;
    --bg-panel: #1A1D27;
    --bg-soft: #232735;
    --text-base: #EAECF0;
    --text-muted: #9099AC;
    --gold: #D4AF37;
    --gold-deep: #C49A2E;
    --emerald: #2A7F6E;
    --emerald-glow: #34a08c;
    --warn: #B65F50;
    --line: #2A2F3D;
    --mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    background: var(--bg-deep);
    color: var(--text-base);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--gold-deep); }

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

p { margin: 0 0 1em; line-height: 1.7; }

h1, h2, h3, h4, h5, h6 {
    margin: 1.4em 0 0.6em;
    line-height: 1.25;
    color: var(--text-base);
    font-weight: 600;
}
h1 { font-size: 2.1rem; letter-spacing: -0.01em; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

ul, ol { padding-left: 1.4em; line-height: 1.7; }
li { margin: 0.3em 0; }

blockquote {
    margin: 1.5em 0;
    padding: 1em 1.4em;
    border-left: 3px solid var(--gold);
    background: var(--bg-panel);
    color: var(--text-base);
    font-style: italic;
}

code, pre {
    font-family: var(--mono);
    background: var(--bg-soft);
    color: var(--gold);
    border-radius: 3px;
}
code { padding: 2px 6px; font-size: 0.92em; }
pre { padding: 1em; overflow: auto; }
pre code { background: none; padding: 0; color: inherit; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    border: 1px solid var(--line);
}
th, td {
    padding: 0.7em 0.9em;
    border: 1px solid var(--line);
    text-align: left;
}
th {
    background: var(--bg-soft);
    color: var(--gold);
    font-weight: 600;
}

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

/* ------- ВСПОМОГАТЕЛЬНОЕ ------- */
.shell { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 60px 0; }
.text-mono { font-family: var(--mono); }

/* Cookie-баннер: правило display:none с !important должно идти ДО основного блока (A11) */
.cookie-banner[hidden] { display: none !important; }

/* ------- ШАПКА ------- */
.site-top {
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #0F1117 0%, #13161F 100%);
}
.site-top-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 18px 24px;
    max-width: 1240px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text-base);
}
.brand-logo {
    width: 48px;
    height: 48px;
    flex: none;
    display: block;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 700; font-size: 1.05rem; color: var(--text-base); }
.brand-tagline { font-size: 0.78rem; color: var(--text-muted); margin-top: 3px; max-width: 360px; }

.primary-nav { margin-left: auto; }
.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.primary-nav a {
    display: block;
    padding: 10px 14px;
    color: var(--text-base);
    font-size: 0.95rem;
    border-radius: 4px;
    transition: background .15s ease, color .15s ease;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a {
    background: var(--bg-soft);
    color: var(--gold);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text-base);
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: auto;
}

@media (max-width: 880px) {
    .nav-toggle { display: inline-block; }
    .primary-nav {
        display: none;
        flex-basis: 100%;
        margin-left: 0;
    }
    .primary-nav.is-open { display: block; }
    .primary-nav ul { flex-direction: column; gap: 0; }
    .primary-nav a { padding: 12px 14px; border-bottom: 1px solid var(--line); border-radius: 0; }
}

/* ------- ХЛЕБНЫЕ КРОШКИ ------- */
.crumbs {
    padding: 14px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--line);
}
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--gold); }
.crumbs .sep { margin: 0 8px; color: var(--line); }
.crumbs .here { color: var(--text-base); }

/* ------- КНОПКИ ------- */
.btn-primary {
    position: relative;
    display: inline-block;
    min-height: 52px;
    padding: 14px 38px 14px 24px;
    background: linear-gradient(95deg, var(--gold) 0%, var(--gold-deep) 100%);
    color: var(--bg-deep);
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: filter .2s ease;
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    right: -14px;
    width: 30px;
    height: 100%;
    background: linear-gradient(95deg, var(--gold-deep) 0%, var(--gold) 100%);
    transform: skewX(-18deg);
    transform-origin: top right;
    transition: background .2s ease;
}
.btn-primary:hover {
    background: linear-gradient(95deg, var(--gold-deep) 0%, var(--gold) 100%);
    color: var(--bg-deep);
    filter: brightness(1.1);
}
.btn-primary:hover::after {
    background: linear-gradient(95deg, var(--gold) 0%, var(--gold-deep) 100%);
}

.btn-ghost {
    display: inline-block;
    padding: 13px 22px;
    min-height: 52px;
    background: transparent;
    color: var(--emerald-glow);
    border: 1px solid var(--emerald);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background .2s ease, color .2s ease;
    line-height: 1.4;
}
.btn-ghost:hover {
    background: rgba(42, 127, 110, 0.18);
    color: var(--text-base);
}

.btn-report {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 13px 22px;
    min-height: 52px;
    background: var(--bg-panel);
    border: 1px solid var(--gold);
    color: var(--gold);
    overflow: hidden;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background .2s ease;
}
.btn-report .arrow {
    transition: transform .25s ease;
    display: inline-block;
}
.btn-report:hover { background: rgba(212, 175, 55, 0.12); }
.btn-report:hover .arrow { transform: translateX(8px); }

/* ------- ГЛАВНАЯ СТРАНИЦА ------- */
.lead-block {
    padding: 70px 0 50px;
    background: radial-gradient(ellipse at top, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
    border-bottom: 1px solid var(--line);
}
.lead-title {
    font-size: 2.6rem;
    margin: 0 0 16px;
    max-width: 880px;
}
.lead-title em { font-style: normal; color: var(--gold); }
.lead-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 0 30px;
}

/* Панель доходности */
.metrics-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 36px;
}
.metric-tile {
    background: var(--bg-panel);
    border: 1px solid var(--line);
    padding: 22px 24px;
    position: relative;
    overflow: hidden;
}
.metric-tile::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, var(--gold) 0%, var(--emerald) 100%);
}
.metric-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.metric-value {
    font-family: var(--mono);
    font-size: 2.1rem;
    color: var(--gold);
    font-weight: 600;
    line-height: 1;
}
.metric-value.positive { color: var(--emerald-glow); }
.metric-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 6px; }

@media (max-width: 720px) {
    .metrics-panel { grid-template-columns: 1fr; }
    .lead-title { font-size: 1.9rem; }
}

/* Тематические блоки */
.topic-block {
    padding: 56px 0;
    border-bottom: 1px solid var(--line);
}
.topic-block h2 {
    font-size: 1.9rem;
    margin: 0 0 14px;
}
.topic-block .lead-line {
    color: var(--text-muted);
    max-width: 760px;
    font-size: 1.02rem;
    margin: 0 0 36px;
}

/* Стратегии — ступенчатая диаграмма */
.strategy-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 30px;
}
.strategy-step {
    background: var(--bg-panel);
    border: 1px solid var(--line);
    padding: 22px 20px;
    position: relative;
    cursor: pointer;
    transition: transform .25s ease, border-color .25s ease;
}
.strategy-step:nth-child(2) { transform: translateY(18px); }
.strategy-step:nth-child(3) { transform: translateY(36px); }
.strategy-step:nth-child(4) { transform: translateY(54px); }
.strategy-step:hover { border-color: var(--gold); transform: translateY(-4px); }
.strategy-step:nth-child(2):hover { transform: translateY(14px); }
.strategy-step:nth-child(3):hover { transform: translateY(32px); }
.strategy-step:nth-child(4):hover { transform: translateY(50px); }

.strategy-num {
    font-family: var(--mono);
    color: var(--gold);
    font-size: 0.85rem;
    margin-bottom: 8px;
    display: block;
}
.strategy-step h3 { font-size: 1.05rem; margin: 0 0 8px; color: var(--text-base); }
.strategy-step p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

.strategy-detail {
    grid-column: 1 / -1;
    background: var(--bg-soft);
    border-left: 3px solid var(--gold);
    padding: 18px 22px;
    margin-top: 16px;
    font-size: 0.95rem;
    color: var(--text-base);
}

.strategy-svg {
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px;
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 880px) {
    .strategy-track { grid-template-columns: 1fr 1fr; }
    .strategy-step:nth-child(n) { transform: none; }
    .strategy-step:nth-child(n):hover { transform: translateY(-4px); }
    .strategy-svg { display: none; }
}
@media (max-width: 520px) {
    .strategy-track { grid-template-columns: 1fr; }
}

/* Калькулятор доходности */
.calc-block {
    background: var(--bg-panel);
    border: 1px solid var(--line);
    padding: 36px 32px;
    margin-top: 28px;
}
.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}
.calc-row { margin-bottom: 22px; }
.calc-row label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.calc-row .row-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.calc-value {
    font-family: var(--mono);
    color: var(--gold);
    font-size: 1.1rem;
}
.lever-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--bg-soft);
    border-radius: 0;
    outline: none;
    margin: 6px 0;
}
.lever-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid var(--bg-deep);
    cursor: pointer;
    box-shadow: 0 0 0 1px var(--gold);
}
.lever-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid var(--bg-deep);
    cursor: pointer;
}
.calc-output {
    background: var(--bg-deep);
    border: 1px solid var(--line);
    padding: 22px;
}
.output-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.output-value {
    font-family: var(--mono);
    font-size: 2rem;
    color: var(--emerald-glow);
    margin-bottom: 18px;
}
.output-note { font-size: 0.85rem; color: var(--text-muted); }

@media (max-width: 720px) {
    .calc-grid { grid-template-columns: 1fr; gap: 24px; }
    .calc-block { padding: 24px 20px; }
}

/* Анализ рынка — таймлайн */
.market-line {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin-top: 30px;
    border-top: 2px solid var(--line);
}
.market-zone {
    padding: 24px 18px 24px;
    position: relative;
    text-decoration: none;
    color: var(--text-base);
    transition: background .2s ease;
    border-right: 1px solid var(--line);
}
.market-zone:last-child { border-right: 0; }
.market-zone::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0; right: 0;
    height: 2px;
}
.market-zone.zone-low::before { background: var(--emerald); }
.market-zone.zone-mid::before { background: var(--gold); }
.market-zone.zone-high::before { background: var(--warn); }
.market-zone.zone-watch::before { background: #5e7cb0; }
.market-zone:hover { background: var(--bg-panel); color: var(--text-base); }

.zone-period {
    font-family: var(--mono);
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 4px;
}
.zone-title { font-size: 1.02rem; font-weight: 600; margin-bottom: 6px; }
.zone-desc { font-size: 0.85rem; color: var(--text-muted); }

@media (max-width: 880px) {
    .market-line { grid-template-columns: 1fr 1fr; }
    .market-zone { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ------- КАРТОЧКИ ЗАПИСЕЙ ------- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 30px;
}
@media (max-width: 880px) { .posts-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .posts-grid { grid-template-columns: 1fr; } }

.card {
    display: flex;
    flex-direction: column;
    background: var(--bg-panel);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--gold); transform: translateY(-3px); }

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

.card-body {
    flex: 1;
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
}
.card-meta {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.card-meta a { color: var(--text-muted); }
.card-meta a:hover { color: var(--gold); }
.card-title {
    font-size: 1.1rem;
    margin: 0 0 10px;
    line-height: 1.3;
}
.card-title a { color: var(--text-base); }
.card-title a:hover { color: var(--gold); }
.card-excerpt {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin: 0 0 16px;
    flex: 1;
}
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    font-size: 0.85rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--gold);
    align-self: flex-start;
    padding-bottom: 2px;
}

/* Горизонтальные карточки в архивах/поиске */
.posts-list .card {
    flex-direction: row;
    align-items: stretch;
}
.posts-list .card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
}
.posts-list .card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}
.posts-list .card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.posts-list .card-body { padding: 24px 28px; }

@media (max-width: 600px) {
    .posts-list .card { flex-direction: column; }
    .posts-list .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }
    .posts-list .card-thumb-wrap a { position: static; }
    .posts-list .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

/* ------- ОСНОВНОЙ КАРКАС ------- */
.layout {
    display: grid;
    gap: 40px;
    padding: 40px 0;
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}
.layout.has-sidebar { grid-template-columns: 67fr 27fr; }
.layout.no-sidebar { grid-template-columns: minmax(0, 85%); justify-content: center; }
.layout.full { grid-template-columns: minmax(0, 85%); justify-content: center; }

@media (max-width: 880px) {
    .layout.has-sidebar { grid-template-columns: 1fr; }
    .layout.no-sidebar, .layout.full { grid-template-columns: 1fr; }
}

.main-content { min-width: 0; }
.sidebar { min-width: 0; }

/* ------- САЙДБАР ------- */
.widget-area .widget {
    background: var(--bg-panel);
    border: 1px solid var(--line);
    padding: 22px 22px;
    margin-bottom: 22px;
}
.widget-area .widget h2,
.widget-area .widget .widget-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gold);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}
.widget-area ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget-area ul li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--line);
    margin: 0;
}
.widget-area ul li:last-child { border-bottom: 0; }
.widget-area ul li a { color: var(--text-base); font-size: 0.95rem; }
.widget-area ul li a:hover { color: var(--gold); }

/* ------- ОДИНОЧНАЯ ЗАПИСЬ ------- */
.entry-header { margin-bottom: 24px; }
.entry-meta {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.entry-title {
    font-size: 2.1rem;
    margin: 0 0 8px;
    line-height: 1.2;
}
.entry-thumb {
    margin: 24px 0;
    display: block;
    width: 100%;
    height: auto;
}
.entry-content { font-size: 1.02rem; line-height: 1.75; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content img { display: block; margin: 1.4em 0; }

.entry-footer {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
    color: var(--text-muted);
}
.entry-tags a {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg-soft);
    margin: 4px 6px 4px 0;
    border-radius: 2px;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.entry-tags a:hover { background: var(--gold); color: var(--bg-deep); }

/* ------- КОММЕНТАРИИ ------- */
.comments-area {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}
.comments-title {
    font-size: 1.4rem;
    margin: 0 0 24px;
    color: var(--gold);
}
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}
.comment-body {
    background: var(--bg-panel);
    border: 1px solid var(--line);
    padding: 18px 22px;
    margin-bottom: 16px;
}
.comment-author {
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 6px;
    font-size: 0.95rem;
}
.comment-meta {
    font-family: var(--mono);
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 10px;
}
.comment-list .children {
    list-style: none;
    padding-left: 30px;
    margin-top: 10px;
}
.comment-respond {
    background: var(--bg-panel);
    border: 1px solid var(--line);
    padding: 24px;
}
.comment-respond label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    margin-top: 12px;
}
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    background: var(--bg-deep);
    border: 1px solid var(--line);
    color: var(--text-base);
    padding: 10px 12px;
    font-family: var(--sans);
    font-size: 0.95rem;
}
.comment-respond textarea { min-height: 120px; resize: vertical; }
.comment-respond .form-submit { margin-top: 18px; }
.comment-respond input[type="submit"] {
    background: var(--gold);
    color: var(--bg-deep);
    border: 0;
    padding: 12px 26px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.comment-respond input[type="submit"]:hover { background: var(--gold-deep); }

/* ------- ПАГИНАЦИЯ ------- */
.pagination {
    display: flex;
    gap: 6px;
    margin: 40px 0 10px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: inline-block;
    min-width: 40px;
    padding: 8px 12px;
    text-align: center;
    background: var(--bg-panel);
    border: 1px solid var(--line);
    color: var(--text-base);
    font-family: var(--mono);
    font-size: 0.9rem;
}
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination .current {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bg-deep);
    font-weight: 600;
}

/* ------- ФОРМА ПОИСКА ------- */
.search-form {
    display: flex;
    gap: 0;
    margin: 14px 0;
}
.search-form input[type="search"] {
    flex: 1;
    background: var(--bg-deep);
    border: 1px solid var(--line);
    color: var(--text-base);
    padding: 11px 14px;
    font-size: 0.95rem;
}
.search-form button {
    background: var(--gold);
    color: var(--bg-deep);
    border: 0;
    padding: 11px 18px;
    cursor: pointer;
    font-weight: 600;
}
.search-form button:hover { background: var(--gold-deep); }

/* ------- 404 ------- */
.error-404 {
    padding: 80px 0;
    text-align: center;
}
.error-404 .big-num {
    font-family: var(--mono);
    font-size: 7rem;
    color: var(--gold);
    line-height: 1;
    margin: 0 0 16px;
}
.error-404 h1 { font-size: 1.8rem; margin: 0 0 12px; }
.error-404 p { color: var(--text-muted); max-width: 520px; margin: 0 auto 24px; }
.error-404 .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ------- ПЛАВАЮЩАЯ ВЕРТИКАЛЬНАЯ ПЛАШКА «СОВЕТЫ» ------- */
.side-tab {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gold);
    color: var(--bg-deep);
    padding: 18px 12px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    text-decoration: none;
    z-index: 50;
    transition: padding-right .2s ease;
}
.side-tab:hover { padding-right: 16px; color: var(--bg-deep); }

@media (max-width: 720px) { .side-tab { display: none; } }

/* ------- ПОДВАЛ ------- */
.site-bottom {
    background: #0B0D13;
    border-top: 1px solid var(--line);
    padding: 50px 0 22px;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}
.footer-grid .widget {
    background: transparent;
    border: 0;
    padding: 0;
}
.footer-grid .widget h2,
.footer-grid .widget .widget-title {
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.footer-grid ul li { border-bottom: 0; padding: 4px 0; }

@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

.footer-rights {
    max-width: 1240px;
    margin: 30px auto 0;
    padding: 22px 24px 0;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

/* ------- COOKIE-БАННЕР ------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-panel);
    border-top: 2px solid var(--gold);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 22px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
}
.cookie-banner p {
    margin: 0;
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-base);
    line-height: 1.5;
    background: none;
}
.cookie-banner button {
    background: var(--gold);
    color: var(--bg-deep);
    border: 0;
    padding: 11px 22px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    flex: none;
}
.cookie-banner button:hover { background: var(--gold-deep); }

@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 12px;
    }
}

/* ------- ЭФФЕКТ «ПЕЧАТНОЙ МАШИНКИ» ------- */
.typed { display: inline-block; }

/* ------- ПОСТ-БЛОК НА ГЛАВНОЙ ------- */
.recent-block { padding: 56px 0; border-bottom: 1px solid var(--line); }
.recent-block h2 { font-size: 1.9rem; margin: 0 0 14px; }
.recent-block .lead-line { color: var(--text-muted); margin: 0 0 20px; }

/* ------- ВЫРАВНИВАНИЕ КАРТИНОК WP ------- */
.aligncenter { display: block; margin: 1em auto; }
.alignleft { float: left; margin: 0.4em 1.2em 1em 0; }
.alignright { float: right; margin: 0.4em 0 1em 1.2em; }
.alignwide, .alignfull { margin: 1.2em 0; }

.wp-caption {
    max-width: 100%;
    margin: 1em 0;
    background: var(--bg-panel);
    padding: 6px;
}
.wp-caption-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin: 6px 0 4px;
}
