/*
Theme Name: dds_supportbattlepillars.com
Theme URI: https://supportbattlepillars.com/
Author: Артём Верещагин
Description: Тема аналитического блога о выборе между арендой и покупкой жилья: тёмный тактический планшет, координатная сетка, схемы и диаграммы.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hodplan
*/

/* ---------- Шрифты ---------- */
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/oswald-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/oswald-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/oswald-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/oswald-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Токены ---------- */
:root {
    --c-field: #0E1626;
    --c-grid: #1F3350;
    --c-head: #0A111E;
    --c-head-line: #2C4A73;
    --c-posts: #131F33;
    --c-emerald: #0F2A26;
    --c-wine: #2A1220;
    --c-notes: #04212D;
    --c-panel: #12233F;
    --c-aside: #101B2D;
    --c-text: #EDE6D6;
    --c-muted: #8FA3BF;
    --c-lime: #B6F25C;
    --c-teal: #45D9C8;
    --c-red: #FF6B5A;
    --c-line: #2C4A73;
    --c-ink: #0A111E;
    --seg-1: #B6F25C;
    --seg-2: #19B9BD;
    --seg-3: #8FDDB8;
    --seg-4: #F6C945;
    --seg-5: #FF8F3F;
    --seg-6: #F99B88;
    --f-head: "Oswald", "Arial Narrow", "Roboto Condensed", "Liberation Sans Narrow", sans-serif;
    --f-body: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
    --cut: 22px;
}

/* ---------- Правила hidden (до основных блоков) ---------- */
.cookie-banner[hidden] { display: none !important; }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--c-field);
    background-image:
        radial-gradient(circle at 82% 18%, rgba(69, 217, 200, 0.07), transparent 38%),
        radial-gradient(circle at 12% 64%, rgba(182, 242, 92, 0.04), transparent 32%),
        linear-gradient(rgba(31, 51, 80, 0.55) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 51, 80, 0.55) 1px, transparent 1px);
    background-size: auto, auto, 44px 44px, 44px 44px;
    color: var(--c-text);
    font-family: var(--f-body);
    font-size: 1rem;
    line-height: 1.65;
    overflow-wrap: break-word;
    hyphens: auto;
}

p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-weight: 600;
    line-height: 1.2;
    margin: 1.4em 0 0.6em;
    color: var(--c-text);
    hyphens: manual;
}
img { max-width: 100%; height: auto; }
a {
    color: var(--c-text);
    text-decoration: underline;
    text-decoration-color: var(--c-lime);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color .15s ease, text-decoration-color .15s ease;
}
a:hover { color: var(--c-lime); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--c-teal);
    outline-offset: 2px;
}
::selection { background: var(--c-lime); color: var(--c-ink); }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    white-space: nowrap;
}
.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: .6rem 1rem;
    background: var(--c-lime);
    color: var(--c-ink);
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Единственный контейнер ширины */
.shell {
    width: min(92%, 1240px);
    margin-inline: auto;
}
@media (min-width: 961px) {
    .shell { width: min(85%, 1240px); }
}

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    padding: .7em 1.4em;
    border: 1px solid transparent;
    border-radius: 0;
    font-family: var(--f-body);
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, transform .15s ease, border-color .15s ease;
}
.btn-lime { background: var(--c-lime); color: var(--c-ink); }
.btn-lime:hover { background: var(--c-teal); color: var(--c-ink); transform: translate(-2px, -2px); box-shadow: 2px 2px 0 var(--c-lime); }
.btn-ghost { background: transparent; color: var(--c-teal); border-color: var(--c-teal); }
.btn-ghost:hover { background: var(--c-teal); color: var(--c-ink); }

/* ---------- Шапка ---------- */
.topbar {
    background: var(--c-head);
    border-bottom: 1px solid var(--c-head-line);
}
.topbar-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.4rem 0 1.5rem;
}
.brand {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    min-width: 0;
    max-width: 640px;
    text-decoration: none;
    color: var(--c-text);
}
.brand:hover { color: var(--c-text); }
.brand-mark { flex: 0 0 auto; display: block; padding-top: .2rem; }
.brand-svg, .brand-logo { display: block; width: 64px; height: auto; }
.brand-text { min-width: 0; display: flex; flex-direction: column; gap: .55rem; }
.brand-name {
    font-family: var(--f-body);
    font-weight: 600;
    font-size: 1.12rem;
    line-height: 1.3;
}
.brand-desc {
    font-size: .8rem;
    line-height: 1.5;
    color: var(--c-muted);
}
.topnav { flex: 0 0 auto; position: relative; padding-top: .9rem; }
.topnav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 2.4rem;
}
.topnav-list a {
    position: relative;
    display: inline-block;
    padding: .35rem 0;
    color: var(--c-muted);
    text-decoration: none;
    font-size: .95rem;
}
.topnav-list a::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: -.35rem;
    height: 3px;
    background: var(--c-lime);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}
.topnav-list a:hover { color: var(--c-text); }
.topnav-list a:hover::before { transform: scaleX(.5); }
.topnav-list .current-menu-item > a,
.topnav-list .current_page_item > a { color: var(--c-lime); }
.topnav-list .current-menu-item > a::before,
.topnav-list .current_page_item > a::before { transform: scaleX(1); }
.topnav-list .current-menu-item > a::after,
.topnav-list .current_page_item > a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--c-lime);
}
.topnav-toggle {
    display: none;
    align-items: center;
    gap: .6rem;
    padding: .55rem .9rem;
    background: transparent;
    border: 1px solid var(--c-teal);
    border-radius: 0;
    color: var(--c-teal);
    font: 600 .9rem/1 var(--f-body);
    cursor: pointer;
}
.topnav-bars, .topnav-bars::before, .topnav-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    position: relative;
}
.topnav-bars::before, .topnav-bars::after { content: ""; position: absolute; left: 0; }
.topnav-bars::before { top: -6px; }
.topnav-bars::after { top: 6px; }

/* ---------- Секции главной ---------- */
.zone { padding: 3.6rem 0; position: relative; }
.zone-head { display: block; margin-bottom: 2rem; }
.zone-head--split {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}
.zone-head--split > * { min-width: 0; }
.zone-title {
    margin: 0;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: .02em;
    display: flex;
    align-items: baseline;
    gap: .55em;
}
.zone-title--huge { font-size: clamp(2rem, 5vw, 3.9rem); line-height: 1.02; letter-spacing: .01em; max-width: 21ch; display: block; }
.zone-num {
    position: relative;
    flex: 0 0 auto;
    display: inline-block;
    padding-top: .35em;
    font-size: .55em;
    font-weight: 500;
    color: var(--c-lime);
    letter-spacing: .05em;
}
.zone-num::before {
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 1.9em;
    height: 3px;
    background: var(--c-lime);
}
.zone-title--huge .zone-num { display: inline-block; margin-right: .3em; font-size: .42em; vertical-align: .9em; }

/* Блок 1 — карта решения */
.zone-map { border-bottom: 1px solid var(--c-line); }
.chip-note { flex: 0 0 auto; text-align: left; }
.chip {
    margin: 0 0 .7rem;
    padding: .7rem 2.2rem .7rem 1rem;
    background: var(--c-lime);
    color: var(--c-ink);
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 1.35rem;
    line-height: 1.15;
    max-width: 12em;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}
.chip-sub { margin: 0; font-size: .85rem; color: var(--c-text); letter-spacing: .04em; }
.map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 2rem;
    align-items: center;
}
.map-scroll { min-width: 0; overflow-x: auto; scrollbar-color: var(--c-line) transparent; }
.decision-board { position: relative; margin: 0; min-width: 680px; }
.decision-board img { display: block; width: 100%; height: auto; }
.node-label {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 18%;
    padding: .2rem .4rem;
    background: rgba(14, 22, 38, 0.82);
    color: var(--c-text);
    font-size: clamp(.68rem, 1.05vw, .9rem);
    line-height: 1.25;
    text-align: center;
    hyphens: manual;
}
.node-label--rent { border-bottom: 1px solid rgba(69, 217, 200, .55); }
.node-label--buy { border-bottom: 1px solid rgba(182, 242, 92, .55); }
.map-side { min-width: 0; }
.map-side img { display: block; width: 100%; height: auto; }
.map-legend {
    list-style: none;
    margin: 1.6rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 2.4rem;
    font-size: .9rem;
    color: var(--c-muted);
}
.map-legend-item { position: relative; padding-left: 2.6rem; }
.map-legend-item strong { color: var(--c-text); font-weight: 600; }
.map-legend-item::before {
    content: "";
    position: absolute;
    left: 0; top: .72em;
    width: 1.8rem;
    height: 3px;
}
.map-legend-item--rent::before { background: var(--c-teal); box-shadow: 0 0 8px rgba(69, 217, 200, .6); }
.map-legend-item--buy::before { background: var(--c-lime); box-shadow: 0 0 8px rgba(182, 242, 92, .6); }

/* Блок 2 — три числа */
.zone-numbers {
    background-color: var(--c-emerald);
    background-image:
        linear-gradient(rgba(69, 217, 200, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(69, 217, 200, 0.06) 1px, transparent 1px),
        repeating-linear-gradient(-45deg, transparent 0 22px, rgba(69, 217, 200, 0.035) 22px 23px);
    background-size: 44px 44px, 44px 44px, auto;
}
.numbers-frame {
    border: 1px solid var(--c-teal);
    padding: 1.8rem 2rem 1.4rem;
    background: rgba(10, 17, 30, 0.18);
}
.numbers-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.6rem;
}
.number-cell {
    min-width: 0;
    border: 1px solid var(--c-teal);
    padding: 1.4rem 1.4rem 1.2rem;
    background: rgba(15, 42, 38, 0.65);
    transition: border-color .15s ease, transform .15s ease;
}
.number-cell:hover { border-color: var(--c-lime); transform: translateY(-3px); }
.number-value {
    margin: 0 0 .4rem;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: clamp(2.6rem, 5vw, 4.1rem);
    line-height: 1;
    color: var(--c-lime);
    text-shadow: 0 0 22px rgba(182, 242, 92, .25);
}
.number-caption { margin: 0 0 .7rem; font-size: 1.05rem; font-weight: 600; color: var(--c-text); }
.number-hint { margin: 0; font-size: .84rem; color: var(--c-muted); line-height: 1.5; }
.numbers-note {
    margin: 1.3rem 0 0;
    font-size: .82rem;
    color: var(--c-muted);
    letter-spacing: .02em;
}

/* Блок записей */
.zone-posts {
    background-color: var(--c-posts);
    background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(44, 74, 115, 0.22) 14px 15px);
    border-top: 1px solid var(--c-line);
    border-bottom: 1px solid var(--c-line);
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 2rem;
}
.card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; }

/* Карточка-планшет */
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1px;
    background: var(--c-line);
    clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
    overflow: hidden;
    transition: background-color .15s ease, transform .15s ease;
}
.card:hover { background: var(--c-lime); transform: translateY(-4px); }
.card-frame {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--c-panel);
    clip-path: polygon(0 0, calc(100% - var(--cut) + 0.5px) 0, 100% calc(var(--cut) - 0.5px), 100% 100%, 0 100%);
}
.card-thumb {
    display: block;
    background-color: #0F1D33;
    background-image:
        linear-gradient(rgba(44, 74, 115, .35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(44, 74, 115, .35) 1px, transparent 1px);
    background-size: 22px 22px;
    border-bottom: 1px solid var(--c-line);
}
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.card-thumb-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
}
.card-thumb-fallback svg { display: block; width: 46%; height: auto; }
.card-coord {
    position: absolute;
    top: .55rem;
    right: 1.9rem;
    font-size: .68rem;
    letter-spacing: .06em;
    color: var(--c-muted);
    background: rgba(10, 17, 30, .6);
    padding: .05rem .35rem;
    pointer-events: none;
}
.card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 1.3rem 1.3rem 0;
}
.card-flag {
    align-self: flex-start;
    margin-bottom: .6rem;
    padding: .1rem .5rem;
    border: 1px solid var(--c-teal);
    color: var(--c-teal);
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.card-title {
    margin: 0 0 .8rem;
    font-family: var(--f-body);
    font-weight: 600;
    font-size: 1.15rem;
    line-height: 1.35;
}
.card-title a { color: var(--c-text); text-decoration: none; }
.card-title a:hover { color: var(--c-lime); }
.card-excerpt { flex: 1; font-size: .92rem; color: #D6D0C2; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt a { color: var(--c-text); }
.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1rem -1.3rem 0 0;
}
.card-foot .post-date { font-size: .82rem; color: var(--c-muted); padding-bottom: .1rem; }
.card-more {
    flex: 0 0 auto;
    padding: .6rem 1.1rem;
    background: var(--c-lime);
    color: var(--c-ink);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .15s ease;
}
.card-more:hover { background: var(--c-teal); color: var(--c-ink); }

/* Блок 4 — разбор платежа */
.zone-payment {
    background-color: var(--c-wine);
    background-image:
        linear-gradient(rgba(255, 107, 90, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 90, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
}
.payment-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 3rem;
    align-items: center;
}
.payment-main { min-width: 0; }
.payment-caption {
    position: relative;
    margin: 0 0 1.2rem;
    padding-top: .8rem;
    font-size: .92rem;
    color: var(--c-text);
}
.payment-caption::before {
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 2.6rem;
    height: 2px;
    background: var(--c-lime);
}
.payment-bar {
    display: flex;
    height: 48px;
    border: 1px solid rgba(237, 230, 214, .15);
}
.pay-seg { display: block; min-width: 0; flex-grow: 0; flex-shrink: 0; transition: filter .15s ease; }
.pay-seg + .pay-seg { box-shadow: inset 2px 0 0 rgba(42, 18, 32, .55); }
.pay-seg:hover { filter: brightness(1.12); }
.pay-seg--1 { background: var(--seg-1); }
.pay-seg--2 { background: var(--seg-2); }
.pay-seg--3 { background: var(--seg-3); }
.pay-seg--4 { background: var(--seg-4); }
.pay-seg--5 { background: var(--seg-5); }
.pay-seg--6 { background: var(--seg-6); }
.payment-legend {
    list-style: none;
    margin: .9rem 0 0;
    padding: 0;
    display: flex;
}
.pay-item {
    flex-grow: 0;
    flex-shrink: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding-right: .4rem;
}
.pay-name { font-size: .84rem; color: var(--c-text); line-height: 1.3; hyphens: manual; }
.pay-share { font-family: var(--f-head); font-weight: 600; font-size: 1.5rem; line-height: 1; }
.pay-item--1 .pay-share { color: var(--seg-1); }
.pay-item--2 .pay-share { color: var(--seg-2); }
.pay-item--3 .pay-share { color: var(--seg-3); }
.pay-item--4 .pay-share { color: var(--seg-4); }
.pay-item--5 .pay-share { color: var(--seg-5); }
.pay-item--6 .pay-share { color: var(--seg-6); }
.payment-note { margin: 1.8rem 0 0; max-width: 60ch; font-size: .86rem; color: #C9B8C2; }

.risk-scale {
    position: relative;
    display: grid;
    grid-template-columns: 14px auto auto;
    gap: .7rem;
    height: 230px;
    min-width: 0;
}
.risk-track {
    height: 100%;
    background: linear-gradient(to bottom, #C8242F 0%, #FF6B5A 30%, #E8A08C 55%, #8FDDB8 80%, #6FD28F 100%);
    border: 1px solid rgba(237, 230, 214, .2);
    position: relative;
}
.risk-track::before {
    content: "";
    position: absolute;
    left: -1px; right: -1px; top: -1px;
    height: 22%;
    background: #9B1C2A;
}
.risk-ticks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: .72rem;
    color: var(--c-muted);
}
.risk-ticks li { position: relative; padding-left: .7rem; line-height: 1; }
.risk-ticks li::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    width: .45rem;
    height: 1px;
    background: var(--c-muted);
}
.risk-bracket {
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 1rem;
    border: 1px solid var(--c-red);
    border-left: 0;
    width: 1.1rem;
    height: 55%;
    align-self: start;
    margin: 0 0 0 .2rem;
}
.risk-bracket span {
    position: absolute;
    left: 1.6rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4.5rem;
    color: var(--c-red);
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.2;
}
.risk-bracket::before {
    content: "";
    position: absolute;
    right: -0.55rem;
    top: 50%;
    width: .5rem;
    height: 1px;
    background: var(--c-red);
}

/* Блок 5 — полевые заметки */
.zone-notes {
    background-color: var(--c-notes);
    background-image:
        linear-gradient(rgba(69, 217, 200, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(69, 217, 200, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
}
.notes-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.6rem;
    align-items: center;
}
.notes-quote { margin: 0; min-width: 0; }
.notes-quote blockquote { margin: 0; padding: 0; border: 0; background: none; }
.notes-quote blockquote p {
    margin: 0;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: clamp(2.4rem, 4.6vw, 4rem);
    line-height: 1.05;
    color: var(--c-text);
    hyphens: manual;
}
.notes-quote figcaption {
    position: relative;
    display: inline-block;
    margin-top: 1.3rem;
    padding-bottom: .6rem;
    font-size: .88rem;
    color: var(--c-text);
}
.notes-quote figcaption::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 70%;
    height: 2px;
    background: var(--c-lime);
}
.notes-list { list-style: none; margin: 0; padding: 0; min-width: 0; }
.notes-list li {
    position: relative;
    padding: .55rem 0 .55rem 2rem;
    font-size: 1rem;
    font-weight: 600;
}
.notes-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    width: 13px;
    height: 13px;
    margin-top: -6px;
    background: var(--c-lime);
}
.notes-art { min-width: 0; background: var(--c-notes); }
.notes-art img { display: block; width: 100%; height: auto; aspect-ratio: 888 / 516; object-fit: cover; }

.empty-state {
    margin: 0;
    padding: 1.4rem 1.6rem;
    border: 1px dashed var(--c-line);
    color: var(--c-muted);
    background: rgba(10, 17, 30, .35);
}

/* ---------- Внутренние страницы ---------- */
.page-wrap { padding: 2rem 0 4rem; }
.crumbs {
    margin-bottom: 1.8rem;
    font-size: .82rem;
    color: var(--c-muted);
    letter-spacing: .02em;
}
.crumbs a { color: var(--c-muted); text-decoration-color: rgba(182, 242, 92, .6); }
.crumbs a:hover { color: var(--c-lime); }
.crumbs-sep { color: var(--c-teal); margin: 0 .25rem; }
.crumbs-current { color: var(--c-text); }

.layout-single { display: block; }
.layout-single > .content-area { width: 100%; }
.layout-with-sidebar { display: block; }
.content-area { min-width: 0; }

@media (min-width: 961px) {
    .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);
        column-gap: 6%;
        align-items: start;
    }
}

.list-head { margin-bottom: 2rem; }
.list-title, .entry-title {
    margin: 0 0 .6rem;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: clamp(2rem, 4.4vw, 3.1rem);
    line-height: 1.08;
    text-transform: uppercase;
    letter-spacing: .015em;
}
.title-dash {
    display: inline-block;
    width: .9em;
    height: 4px;
    margin-right: .4em;
    vertical-align: .3em;
    background: var(--c-lime);
}
.list-intro { color: var(--c-muted); max-width: 70ch; }
.list-search { margin-top: 1.2rem; max-width: 520px; }

.entry {
    border: 1px solid var(--c-line);
    background: rgba(18, 35, 63, .55);
    padding: 2rem 2.2rem;
}
.entry-head { margin-bottom: 1.6rem; }
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.2rem;
    font-size: .85rem;
    color: var(--c-muted);
}
.entry-cats { display: inline-flex; flex-wrap: wrap; gap: .5rem; }
.entry-cats a {
    padding: .05rem .5rem;
    border: 1px solid var(--c-teal);
    color: var(--c-teal);
    text-decoration: none;
    font-size: .78rem;
}
.entry-cats a:hover { background: var(--c-teal); color: var(--c-ink); }
.entry-cover { margin: 0 0 1.8rem; }
.entry-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--c-line); }

.entry-content { font-size: 1.04rem; line-height: 1.75; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 {
    position: relative;
    margin-top: 2em;
    padding-top: .55em;
    font-size: 1.75rem;
    text-transform: uppercase;
    letter-spacing: .01em;
}
.entry-content h2::before {
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 2.4rem;
    height: 3px;
    background: var(--c-lime);
}
.entry-content h3 { font-size: 1.35rem; color: var(--c-teal); }
.entry-content h4 { font-size: 1.12rem; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; padding-left: 1.6em; }
.entry-content li { margin-bottom: .4em; }
.entry-content ul { list-style: none; padding-left: 1.6em; }
.entry-content ul li { position: relative; }
.entry-content ul li::before {
    content: "";
    position: absolute;
    left: -1.3em;
    top: .62em;
    width: 8px;
    height: 8px;
    background: var(--c-lime);
}
.entry-content ol li::marker { color: var(--c-lime); font-family: var(--f-head); font-weight: 600; }
.entry-content blockquote {
    margin: 1.6em 0;
    padding: 1.2rem 1.6rem;
    border-left: 4px solid var(--c-teal);
    background: var(--c-posts);
    color: var(--c-text);
    font-size: 1.1rem;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: .5rem; font-size: .85rem; color: var(--c-muted); font-style: normal; }
.entry-content table {
    width: 100%;
    margin: 1.6em 0;
    border-collapse: collapse;
    border: 1px solid var(--c-line);
    font-size: .94rem;
    display: block;
    overflow-x: auto;
}
.entry-content th, .entry-content td {
    padding: .65rem .9rem;
    border: 1px solid var(--c-line);
    text-align: left;
    vertical-align: top;
}
.entry-content th { background: #172B4A; color: var(--c-lime); font-weight: 600; }
.entry-content tr:nth-child(even) td { background: rgba(19, 31, 51, .6); }
.entry-content img { display: block; height: auto; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { margin-top: .5rem; font-size: .84rem; color: var(--c-muted); }
.entry-content pre {
    overflow-x: auto;
    padding: 1rem 1.2rem;
    background: var(--c-head);
    border: 1px solid var(--c-line);
    font-size: .9rem;
    hyphens: manual;
}
.entry-content code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .92em; color: var(--c-teal); }
.entry-content hr { border: 0; height: 1px; background: var(--c-line); margin: 2em 0; }
.entry-pages { margin-top: 1.4rem; font-size: .9rem; }

.entry-tags { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px dashed var(--c-line); }
.entry-tags a { font-size: .85rem; color: var(--c-teal); text-decoration: none; }
.entry-tags a:hover { color: var(--c-lime); }

.post-navigation { margin-top: 2rem; }
.post-navigation .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}
.post-navigation .nav-next { grid-column: 2; text-align: right; }
.post-navigation a {
    display: block;
    height: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid var(--c-line);
    background: var(--c-posts);
    text-decoration: none;
    transition: border-color .15s ease;
}
.post-navigation a:hover { border-color: var(--c-lime); color: var(--c-text); }
.post-navigation .nav-label { display: block; font-size: .76rem; color: var(--c-lime); letter-spacing: .05em; text-transform: uppercase; margin-bottom: .3rem; }
.post-navigation .nav-title { display: block; font-weight: 600; }

/* ---------- Сайдбар ---------- */
.sidebar {
    min-width: 0;
    margin-top: 2.4rem;
    padding: 1.6rem 1.5rem;
    background: var(--c-aside);
    border: 1px solid var(--c-line);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
    color: var(--c-text);
}
@media (min-width: 961px) { .sidebar { margin-top: 0; } }
.sidebar .widget { margin-bottom: 2rem; color: var(--c-text); }
.sidebar .widget:last-child { margin-bottom: 0; }
.widget-title {
    position: relative;
    margin: 0 0 1rem;
    padding-top: .55rem;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.widget-title::before {
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 1.8rem;
    height: 3px;
    background: var(--c-lime);
}
.sidebar .widget-title { color: var(--c-text); }
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { padding: .6rem 0; border-bottom: 1px dashed var(--c-line); font-size: .92rem; }
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: var(--c-text); text-decoration: none; }
.sidebar .widget a:hover { color: var(--c-lime); }
.sidebar .widget .post-date, .sidebar .widget .rss-date { display: block; font-size: .78rem; color: var(--c-muted); }
.sidebar .widget p { color: var(--c-text); }
.sidebar .seek { flex-wrap: wrap; }

/* ---------- Поиск ---------- */
.seek { display: flex; gap: 0; width: 100%; }
.seek-field {
    flex: 1;
    min-width: 0;
    padding: .7rem .9rem;
    background: var(--c-head);
    border: 1px solid var(--c-line);
    border-right: 0;
    border-radius: 0;
    color: var(--c-text);
    font: 400 .95rem/1.3 var(--f-body);
}
.seek-field::placeholder { color: var(--c-muted); }
.seek-btn {
    flex: 0 0 auto;
    padding: .7rem 1.2rem;
    background: var(--c-lime);
    border: 1px solid var(--c-lime);
    border-radius: 0;
    color: var(--c-ink);
    font: 600 .92rem/1.3 var(--f-body);
    cursor: pointer;
}
.seek-btn:hover { background: var(--c-teal); border-color: var(--c-teal); }

/* ---------- Пагинация (type => plain) ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-top: 2.6rem;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 .8rem;
    border: 1px solid var(--c-line);
    background: var(--c-posts);
    color: var(--c-text);
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.pager a.page-numbers:hover { border-color: var(--c-teal); color: var(--c-teal); }
.pager .page-numbers.current { background: var(--c-lime); border-color: var(--c-lime); color: var(--c-ink); }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; padding: 0 .3rem; color: var(--c-muted); }

/* ---------- Комментарии ---------- */
.remarks { margin-top: 2.6rem; }
.remarks-title { font-size: 1.6rem; text-transform: uppercase; margin: 0 0 1.4rem; }
.remark-list, .remark-list .children { list-style: none; margin: 0; padding: 0; }
.remark-list .children { margin-left: 1.6rem; padding-left: 1rem; border-left: 1px solid var(--c-line); }
.remark-body {
    margin-bottom: 1rem;
    padding: 1.1rem 1.3rem;
    border: 1px solid var(--c-line);
    background: var(--c-posts);
}
.remark-head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; margin-bottom: .6rem; }
.remark-avatar { display: block; border-radius: 0; border: 1px solid var(--c-teal); }
.remark-author { font-weight: 600; }
.remark-date { font-size: .8rem; color: var(--c-muted); }
.remark-wait { color: var(--c-teal); font-size: .88rem; }
.remark-text p:last-child { margin-bottom: 0; }
.remark-reply { margin-top: .6rem; }
.remark-reply a { font-size: .85rem; font-weight: 600; color: var(--c-lime); }
.remarks-closed { color: var(--c-muted); }
.comment-respond {
    margin-top: 2rem;
    padding: 1.6rem 1.8rem;
    border: 1px solid var(--c-line);
    background: rgba(18, 35, 63, .55);
}
.comment-reply-title { margin: 0 0 1rem; font-size: 1.4rem; text-transform: uppercase; }
.comment-reply-title small { display: block; margin-top: .4rem; font-family: var(--f-body); font-size: .85rem; text-transform: none; }
.comment-notes, .logged-in-as, .must-log-in { font-size: .86rem; color: var(--c-muted); }
.comment-form label { display: block; margin-bottom: .35rem; font-size: .88rem; color: var(--c-text); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    padding: .7rem .85rem;
    background: var(--c-head);
    border: 1px solid var(--c-line);
    border-radius: 0;
    color: var(--c-text);
    font: 400 .95rem/1.5 var(--f-body);
}
.comment-form-cookies-consent { display: flex; gap: .6rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; font-size: .84rem; color: var(--c-muted); }
.comment-form .required { color: var(--c-red); }
.comment-form .submit {
    padding: .8rem 1.6rem;
    background: var(--c-lime);
    border: 0;
    border-radius: 0;
    color: var(--c-ink);
    font: 600 .95rem/1.2 var(--f-body);
    cursor: pointer;
}
.comment-form .submit:hover { background: var(--c-teal); }
.comments-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0; }

/* ---------- 404 ---------- */
.lost { text-align: left; }
.lost-code {
    margin: 0;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: clamp(5rem, 16vw, 10rem);
    line-height: .9;
    color: transparent;
    -webkit-text-stroke: 2px var(--c-lime);
}
.lost-text { max-width: 60ch; color: var(--c-muted); margin: 1rem 0 1.6rem; }
.lost-search { max-width: 520px; margin-bottom: 1.6rem; }

/* ---------- Подвал ---------- */
.base {
    background: var(--c-head);
    border-top: 1px solid var(--c-line);
    padding: 3rem 0 1.6rem;
    color: var(--c-muted);
}
.base-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
}
.base-col { min-width: 0; padding: 0 2.4rem; }
.base-col:first-child { padding-left: 0; }
.base-col:last-child { padding-right: 0; }
.base-col + .base-col { border-left: 1px solid var(--c-line); }
.base .widget { margin-bottom: 1.4rem; color: var(--c-muted); font-size: .9rem; }
.base .widget:last-child { margin-bottom: 0; }
.base .widget-title {
    padding-top: 0;
    padding-left: 2.3rem;
    font-family: var(--f-body);
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--c-lime);
}
.base .widget-title::before { top: .55em; width: 1.6rem; height: 3px; }
.base .widget p { color: var(--c-muted); }
.base .widget a { color: var(--c-text); text-decoration: none; }
.base .widget a:hover { color: var(--c-lime); }
.base .widget ul { list-style: none; margin: 0; padding: 0; }
.base .widget li { padding: .22rem 0; }
.base .widget_nav_menu li a { position: relative; padding-left: 1rem; color: var(--c-text); }
.base .widget_nav_menu li a::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--c-teal);
}
.base .widget .post-date { color: var(--c-muted); font-size: .8rem; }
.base-copy {
    margin: 2.6rem 0 0;
    padding-top: 1.4rem;
    border-top: 1px solid var(--c-line);
    font-size: .76rem;
    text-align: center;
    color: var(--c-muted);
}

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    max-width: 920px;
    margin: 0 auto;
    padding: 1.1rem 1.4rem;
    background: var(--c-head);
    border: 1px solid var(--c-teal);
    box-shadow: 0 0 0 4px rgba(10, 17, 30, .6), 0 10px 30px rgba(0, 0, 0, .45);
    color: var(--c-text);
}
.cookie-text { margin: 0; font-size: .88rem; color: var(--c-text); min-width: 0; }
.cookie-accept { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .topbar-row { align-items: center; padding: 1rem 0; }
    .brand-desc { display: none; }
    .brand-name { font-size: 1rem; }
    .topnav { padding-top: 0; }
    .topnav-toggle { display: inline-flex; }
    .topnav-panel {
        display: none;
        position: absolute;
        right: 0;
        top: calc(100% + .7rem);
        z-index: 60;
        min-width: 230px;
        padding: 1rem 1.2rem;
        background: var(--c-head);
        border: 1px solid var(--c-line);
    }
    .topnav.is-open .topnav-panel { display: block; }
    .topnav-list { flex-direction: column; gap: .3rem; }
    .topnav-list a::before { top: auto; bottom: 0; }

    .zone { padding: 3rem 0; }
    .map-layout { grid-template-columns: minmax(0, 1fr); }
    .map-side { display: none; }
    .numbers-row { gap: 1.4rem; }
    .card-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; }
    .payment-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .risk-scale { height: 180px; }
    .notes-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .notes-quote { grid-column: 1 / -1; }
    .base-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 0; }
    .base-col:nth-child(3) { grid-column: 1 / -1; border-left: 0; padding-left: 0; padding-top: 1.6rem; border-top: 1px solid var(--c-line); }
}

@media (max-width: 600px) {
    .brand { gap: .8rem; }
    .brand-svg, .brand-logo { width: 46px; }
    .brand-name { font-size: .88rem; }
    .zone { padding: 2.4rem 0; }
    .zone-head--split { flex-direction: column; }
    .chip { font-size: 1.1rem; }
    .map-legend { grid-template-columns: minmax(0, 1fr); }
    .numbers-frame { padding: 1.2rem 1rem 1rem; }
    .numbers-row { grid-template-columns: minmax(0, 1fr); }
    .number-cell { padding: 1.1rem 1.1rem 1rem; }
    .card-grid--three { grid-template-columns: minmax(0, 1fr); }
    .payment-bar { height: 34px; }
    .payment-legend { flex-direction: column; gap: .5rem; }
    .pay-item { flex-basis: auto !important; flex-direction: row; align-items: baseline; justify-content: space-between; padding: .35rem 0 .35rem 1.2rem; border-bottom: 1px dashed rgba(237, 230, 214, .15); position: relative; }
    .pay-item::before { content: ""; position: absolute; left: 0; top: .75rem; width: 10px; height: 10px; }
    .pay-item--1::before { background: var(--seg-1); }
    .pay-item--2::before { background: var(--seg-2); }
    .pay-item--3::before { background: var(--seg-3); }
    .pay-item--4::before { background: var(--seg-4); }
    .pay-item--5::before { background: var(--seg-5); }
    .pay-item--6::before { background: var(--seg-6); }
    .pay-share { font-size: 1.2rem; }
    .notes-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .entry { padding: 1.4rem 1.2rem; }
    .comment-respond { padding: 1.2rem 1.1rem; }
    .post-navigation .nav-links { grid-template-columns: minmax(0, 1fr); }
    .post-navigation .nav-next { grid-column: auto; }
    .sidebar { padding: 1.3rem 1.1rem; }
    .base-cols { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
    .base-col, .base-col:first-child, .base-col:last-child { padding: 0; border-left: 0; }
    .base-col + .base-col { border-left: 0; padding-top: 1.6rem; border-top: 1px solid var(--c-line); }
    .base-col:nth-child(3) { grid-column: auto; }
    .cookie-banner { flex-direction: column; align-items: stretch; padding: 1rem 1.1rem; left: .6rem; right: .6rem; bottom: .6rem; }
    .seek { flex-wrap: nowrap; }
}
