/*
Theme Name: dds_limitlessscaling.com
Theme URI: https://limitlessscaling.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: lscale
*/

/* ---------- Шрифты ---------- */
@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+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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/pt-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: "PT Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/pt-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/pt-sans-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/pt-sans-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/pt-mono-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: "PT Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/pt-mono-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Переменные ---------- */
:root {
    --c-page: #1E2328;
    --c-grid: #2C343B;
    --c-axis: #4A555F;
    --c-navy: #16303F;
    --c-navy-2: #132A37;
    --c-paper: #D8D3C4;
    --c-ink: #12161A;
    --c-plate: #181E23;
    --c-text: #EDEAE2;
    --c-muted: #8C99A3;
    --c-brass: #C9A227;
    --c-brass-deep: #7A5F0E;
    --c-blue: #6FA8BF;
    --c-dark-text: #1E2328;
    --f-head: "Oswald", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
    --f-body: "PT Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --f-mono: "PT Mono", "Courier New", Consolas, monospace;
}

/* ---------- Скрытые элементы (до основных стилей) ---------- */
.cookie-banner[hidden] { display: none !important; }

/* ---------- Сброс и база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    overflow-x: hidden;
    color: var(--c-text);
    font-family: var(--f-body);
    font-size: 17px;
    line-height: 1.6;
    background-color: var(--c-page);
    background-image:
        linear-gradient(rgba(44, 52, 59, .9) 1px, transparent 1px),
        linear-gradient(90deg, rgba(44, 52, 59, .9) 1px, transparent 1px),
        linear-gradient(rgba(44, 52, 59, .35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(44, 52, 59, .35) 1px, transparent 1px);
    background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--c-blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s ease; }
a:hover { color: var(--c-brass); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--c-brass); outline-offset: 2px; }
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 .6em; color: var(--c-text); }
h1, h2, h3, h4, p, li, dd, dt, td, th, figcaption, blockquote, .card-title, .brand-name { overflow-wrap: break-word; hyphens: auto; }
.brand-name, .stamp-title, .page-title, .mainnav-list a, .btn { hyphens: manual; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
.visually-hidden, .screen-reader-text {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--c-brass); color: var(--c-ink); padding: .6rem 1rem; font-family: var(--f-head); text-transform: uppercase; }
.skip-link:focus { left: 1rem; top: 1rem; }

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

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: .55rem 1.6rem;
    border: 1px solid var(--c-brass); border-radius: 0;
    font-family: var(--f-head); font-weight: 500; font-size: .82rem;
    letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
    cursor: pointer; line-height: 1.2; text-align: center;
    transition: background-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn-ghost { background: transparent; color: var(--c-brass); }
.btn-ghost:hover { background: var(--c-brass); color: var(--c-ink); transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--c-axis); }
.btn-solid { background: var(--c-brass); color: var(--c-ink); }
.btn-solid:hover { background: transparent; color: var(--c-brass); transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--c-axis); }

/* ---------- Шапка ---------- */
.topbar { background: var(--c-ink); border-bottom: 1px solid var(--c-brass); position: relative; }
.topbar-in { display: flex; align-items: center; gap: 2rem; padding: 1.6rem 0; }
.brand { display: flex; align-items: center; gap: 1.6rem; flex: 1 1 auto; min-width: 0; color: var(--c-text); text-decoration: none; }
.brand:hover { color: var(--c-text); }
.brand-mark { flex: 0 0 auto; color: var(--c-muted); display: block; }
.brand-svg { display: block; width: 96px; height: 96px; transition: color .2s ease; }
.brand:hover .brand-svg { color: var(--c-brass); }
.brand-logo { display: block; max-height: 96px; width: auto; }
.brand-text { display: flex; flex-direction: column; gap: .45rem; min-width: 0; max-width: 560px; }
.brand-name { font-family: var(--f-head); font-weight: 500; font-size: 1.22rem; line-height: 1.25; letter-spacing: .03em; text-transform: uppercase; }
.brand-desc { font-size: .84rem; line-height: 1.45; color: var(--c-muted); }

.mainnav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 2rem; justify-content: flex-end; }
.mainnav-list a {
    display: inline-block; padding: .3rem 0; color: var(--c-text); text-decoration: none;
    font-family: var(--f-head); font-weight: 500; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase;
    border-bottom: 2px solid transparent; transition: color .15s ease, border-color .15s ease;
}
.mainnav-list a:hover { color: var(--c-brass); }
.mainnav-list .current-menu-item > a, .mainnav-list .current_page_item > a { color: var(--c-brass); border-bottom-color: var(--c-brass); }
.nav-toggle {
    display: none; align-items: center; gap: .6rem; background: transparent; color: var(--c-brass);
    border: 1px solid var(--c-brass); border-radius: 0; padding: .5rem .9rem; min-height: 44px;
    font-family: var(--f-head); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

/* ---------- Штампы разделов ---------- */
.stamp-head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.1rem; margin-bottom: 2rem; }
.stamp-tag {
    display: inline-block; padding: .28rem .7rem; border: 1.5px solid var(--c-brass);
    font-family: var(--f-head); font-weight: 500; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--c-brass); line-height: 1.3; background: rgba(18, 22, 26, .35);
}
.stamp-title { margin: 0; font-size: clamp(1.45rem, 2.4vw, 1.9rem); text-transform: uppercase; letter-spacing: .05em; font-weight: 500; }
.stamp-dark .stamp-tag { color: var(--c-dark-text); border-color: var(--c-dark-text); background: transparent; }
.stamp-dark .stamp-title { color: var(--c-dark-text); }

/* ---------- Секции главной ---------- */
.sheet { position: relative; padding: 3.2rem 0 3.4rem; border-top: 1px solid var(--c-axis); }
.sheet:first-child { border-top: 0; }
.sheet::before {
    content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 7px; pointer-events: none;
    background: repeating-linear-gradient(90deg, var(--c-axis) 0 1px, transparent 1px 120px);
}
.sheet-map { background-color: var(--c-navy); background-image: linear-gradient(rgba(111, 168, 191, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(111, 168, 191, .07) 1px, transparent 1px); background-size: 40px 40px; }
.sheet-object { background-color: var(--c-navy-2); background-image: linear-gradient(rgba(111, 168, 191, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(111, 168, 191, .06) 1px, transparent 1px); background-size: 40px 40px; }
.sheet-latest { background: transparent; }
.sheet-paper {
    color: var(--c-dark-text);
    background-color: var(--c-paper);
    background-image: linear-gradient(rgba(216, 211, 196, .5), rgba(216, 211, 196, .5)), url("images/paper-tile.webp");
    background-repeat: repeat, repeat;
    background-blend-mode: normal, luminosity;
    box-shadow: inset 0 0 80px rgba(120, 100, 60, .18);
}
.sheet-paper::before { background: repeating-linear-gradient(90deg, rgba(30, 35, 40, .35) 0 1px, transparent 1px 120px); }
.sheet-strategy { background: var(--c-ink); }
.home .shell { width: min(85%, 1320px); }

/* Карта портфеля */
.map-grid { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 300px); gap: 2rem; align-items: stretch; }
.map-tools { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; color: var(--c-muted); gap: 2rem; }
.compass { display: block; width: 110px; height: 110px; }
.scale-bar { font-family: var(--f-mono); font-size: .66rem; color: var(--c-muted); width: 230px; max-width: 100%; }
.scale-nums { display: flex; justify-content: space-between; margin-bottom: .25rem; white-space: nowrap; }
.scale-line { display: flex; border-bottom: 1px solid var(--c-muted); height: 8px; }
.scale-line i { flex: 1; border-left: 1px solid var(--c-muted); }
.scale-line i:last-child { flex: 0 0 0; }
.map-figure { margin: 0; min-width: 0; }
.map-canvas { position: relative; }
.map-figure img { display: block; width: 100%; aspect-ratio: 1690 / 780; object-fit: cover; }
.pin {
    position: absolute; transform: translate(-50%, -50%);
    width: 34px; height: 34px; display: grid; place-items: center;
    font-family: var(--f-head); font-weight: 500; font-size: .82rem; letter-spacing: .02em; color: var(--c-ink);
    box-shadow: 0 0 0 4px rgba(22, 48, 63, .55);
    transition: transform .15s ease;
}
.pin-sq { background: var(--c-brass); border: 1px solid #E3C55C; }
.pin-ci { background: var(--c-blue); border-radius: 50%; border: 1px solid #A9D0DF; }
.pin:hover { transform: translate(-50%, -50%) scale(1.12); }
.map-caption { margin-top: .9rem; font-size: .84rem; color: var(--c-muted); max-width: 640px; }
.map-legend { min-width: 0; border-left: 1px solid var(--c-axis); padding-left: 2rem; display: flex; flex-direction: column; }
.legend-keys { list-style: none; margin: 0; padding: 0 0 1.4rem; border-bottom: 1px solid var(--c-axis); display: grid; gap: 1rem; }
.legend-keys li { display: flex; align-items: center; gap: 1rem; font-size: .95rem; }
.key { flex: 0 0 30px; width: 30px; height: 30px; }
.key-sq { background: var(--c-brass); opacity: .85; }
.key-ci { background: var(--c-blue); border-radius: 50%; }
.legend-figs { margin: 0; }
.legend-fig { padding: 1.2rem 0; border-bottom: 1px solid var(--c-axis); }
.legend-fig:last-child { border-bottom: 0; }
.legend-fig dt { font-size: .88rem; color: var(--c-muted); }
.legend-fig dd { margin: .2rem 0 0; font-family: var(--f-head); font-weight: 600; font-size: 2.9rem; line-height: 1.05; color: var(--c-brass); }

/* Разбор объекта */
.object-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 2.5rem; align-items: stretch; }
.object-draw { display: grid; grid-template-columns: 40px minmax(0, 1.45fr) minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 0; min-width: 0; }
.dim-v { grid-column: 1; grid-row: 1; position: relative; border-right: 1px solid var(--c-text); margin: 4% 12px 3% 0; }
.dim-v::before, .dim-v::after { content: ""; position: absolute; right: -6px; width: 11px; border-top: 1px solid var(--c-text); }
.dim-v::before { top: 0; }
.dim-v::after { bottom: 0; }
.dim-v span { position: absolute; top: 50%; left: -14px; transform: translateY(-50%) rotate(-90deg); transform-origin: center; font-family: var(--f-mono); font-size: .72rem; color: var(--c-text); white-space: nowrap; }
.object-figure { grid-column: 2; grid-row: 1; margin: 0; min-width: 0; }
.object-figure img { display: block; width: 100%; aspect-ratio: 900 / 630; object-fit: cover; }
.dim-h { grid-column: 2; grid-row: 2; position: relative; margin: 1.1rem 4% 0 5%; border-top: 1px solid var(--c-text); text-align: center; }
.dim-h::before, .dim-h::after { content: ""; position: absolute; top: -6px; height: 11px; border-left: 1px solid var(--c-text); }
.dim-h::before { left: 0; }
.dim-h::after { right: 0; }
.dim-h span { position: relative; top: -.75em; padding: 0 .6rem; background: var(--c-navy-2); font-family: var(--f-mono); font-size: .72rem; }
.object-callouts { grid-column: 3; grid-row: 1; position: relative; list-style: none; margin: 0; padding: 0; min-width: 0; }
.object-callouts li { position: absolute; left: 0; right: 0; transform: translateY(-50%); display: flex; align-items: center; gap: 1rem; }
.lead { position: relative; flex: 0 0 34%; height: 1px; background: var(--c-brass); }
.lead::after { content: ""; position: absolute; right: -5px; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--c-brass); }
.lead-text { font-size: .95rem; line-height: 1.35; min-width: 0; }
.object-callouts .is-hot .lead-text { color: var(--c-brass); }
.object-stats { min-width: 0; border-left: 1px solid var(--c-axis); padding-left: 2rem; }
.object-note { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); margin: 0 0 .6rem; }
.object-stats dl { margin: 0; border-top: 1px solid var(--c-axis); }
.ostat { padding: .9rem 0; border-bottom: 1px solid var(--c-axis); position: relative; }
.ostat::after { content: ""; position: absolute; right: 0; bottom: -4px; height: 7px; border-left: 1px solid var(--c-axis); }
.ostat dt { font-size: .88rem; color: var(--c-muted); }
.ostat dd { margin: .1rem 0 0; font-family: var(--f-head); font-weight: 500; font-size: 2.1rem; line-height: 1.1; color: var(--c-blue); }

/* Карточки записей */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.2rem; }
.card {
    display: flex; flex-direction: column; overflow: hidden; min-width: 0;
    border: 1px solid var(--c-axis); background: rgba(18, 22, 26, .78);
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.card:hover { border-color: var(--c-brass); transform: translate(-3px, -3px); box-shadow: 6px 6px 0 rgba(201, 162, 39, .25); }
.card-thumb { position: relative; padding: 2.4rem 1rem 0; }
.card-thumb a { display: block; }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.card-no { position: absolute; top: .7rem; left: 1rem; font-family: var(--f-head); font-size: 1.15rem; color: var(--c-blue); letter-spacing: .04em; }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 1.2rem 1.25rem 1.4rem; min-width: 0; }
.card-title { margin: 0 0 .7rem; font-family: var(--f-body); font-weight: 700; font-size: 1.12rem; line-height: 1.3; }
.card-title a { color: var(--c-text); text-decoration: none; }
.card-title a:hover { color: var(--c-brass); }
.card-excerpt { font-size: .92rem; color: #C9CDD0; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-meta { margin: .4rem 0 1rem; font-size: .82rem; color: var(--c-muted); }
.card-btn { margin-top: auto; align-self: flex-start; }
.latest-more { margin: 2.2rem 0 0; text-align: center; }
.empty-note { color: var(--c-muted); }

/* Журнал масштабирования */
.journal-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 2.5rem; align-items: stretch; }
.journal-main { min-width: 0; }
.scale-line-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.scale-line-steps::before {
    content: ""; position: absolute; left: 1.5rem; right: 0; top: calc(1.6rem + 12px + 24px); height: 1px;
    background: var(--c-dark-text);
}
.scale-line-steps::after { content: ""; position: absolute; right: -2px; top: calc(1.6rem + 12px + 20px); border-left: 9px solid var(--c-dark-text); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.scale-line-steps > li { position: relative; min-width: 0; padding-right: 1rem; }
.step-no { display: block; margin-bottom: 12px; width: 48px; text-align: center; font-family: var(--f-head); font-size: 1.15rem; line-height: 1.6rem; color: var(--c-dark-text); }
.step-ring {
    position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
    border: 2px solid var(--c-dark-text); background: var(--c-paper); font-family: var(--f-head); font-size: 1.2rem; color: var(--c-dark-text);
}
.step-ring::before, .step-ring::after { content: ""; position: absolute; left: 50%; border-left: 1px solid var(--c-dark-text); height: 8px; }
.step-ring::before { top: -10px; }
.step-ring::after { bottom: -10px; }
.step-name { display: block; margin: 1.1rem 0 .5rem; font-family: var(--f-body); font-weight: 700; font-size: 1.05rem; color: var(--c-dark-text); }
.step-notes { list-style: none; margin: 0; padding: 0; font-family: var(--f-mono); font-size: .76rem; line-height: 1.5; color: #3A4148; }
.step-notes li::before { content: "· "; color: var(--c-brass-deep); }
.journal-goal { min-width: 0; border-left: 1px solid var(--c-dark-text); padding-left: 2rem; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.goal-num { position: relative; padding: 1.4rem 1.8rem .6rem; }
.goal-num span {
    display: block; font-family: var(--f-head); font-weight: 600; font-size: clamp(5rem, 9vw, 8rem); line-height: .9; color: var(--c-brass);
    text-shadow: 2px 2px 0 rgba(122, 95, 14, .45);
    background-image: linear-gradient(rgba(30, 35, 40, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(30, 35, 40, .18) 1px, transparent 1px);
    background-size: 12px 12px;
}
.goal-num::before { content: ""; position: absolute; top: .5rem; left: 1.8rem; right: 1.8rem; border-top: 1px solid var(--c-dark-text); }
.goal-num::after { content: ""; position: absolute; top: 1.4rem; bottom: .6rem; right: .6rem; border-left: 1px solid var(--c-dark-text); }
.goal-text { margin: .8rem 0 0; font-family: var(--f-body); font-weight: 700; font-size: 1.15rem; line-height: 1.35; color: var(--c-dark-text); }

/* Стратегии управления */
.strategy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 2.5rem; align-items: center; }
.strategy-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--c-axis); min-width: 0; }
.strategy-col { min-width: 0; }
.strategy-col + .strategy-col { border-left: 1px solid var(--c-axis); }
.strategy-head {
    display: flex; align-items: center; gap: .8rem; margin: 0; padding: 1rem 1.4rem;
    border-bottom: 1px solid var(--c-axis); font-family: var(--f-body); font-weight: 400; font-size: 1.3rem; color: var(--c-blue);
}
.strategy-head svg { flex: 0 0 24px; color: var(--c-muted); }
.strategy-list { list-style: none; margin: 0; padding: 1.1rem 1.4rem 1.3rem 2.6rem; display: grid; gap: .45rem; }
.strategy-list li { position: relative; font-size: 1rem; }
.strategy-list li::before { content: ""; position: absolute; left: -1rem; top: .72em; width: 5px; height: 1px; background: var(--c-brass); }
.strategy-col + .strategy-col .strategy-list li { color: var(--c-blue); }
.strategy-stamp { min-width: 0; display: flex; justify-content: center; }
.strategy-stamp span {
    display: inline-block; padding: 1rem 1.6rem; border: 2px solid var(--c-brass); outline: 1px solid rgba(201, 162, 39, .4); outline-offset: 5px;
    font-family: var(--f-head); font-weight: 500; font-size: 1.15rem; letter-spacing: .3em; text-transform: uppercase; color: var(--c-brass); text-align: center;
}

/* ---------- Внутренние страницы ---------- */
.inner { padding: 2rem 0 4rem; }
.crumbs { font-family: var(--f-mono); font-size: .8rem; color: var(--c-muted); margin-bottom: 2rem; padding-bottom: .9rem; border-bottom: 1px solid var(--c-axis); }
.crumbs a { color: var(--c-blue); }
.crumbs-sep { color: var(--c-brass); margin: 0 .25rem; }
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); column-gap: 6%; align-items: start; }
.layout-single { display: block; }
.layout-single > .content-area { width: 85%; margin-left: auto; margin-right: auto; }
.content-area { min-width: 0; }
.page-head, .doc-head { margin-bottom: 2rem; }
.page-head .stamp-tag, .doc-head .stamp-tag, .nf .stamp-tag { margin-bottom: 1rem; }
.page-title { margin: 0; font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 500; text-transform: uppercase; letter-spacing: .03em; }
.page-lead { margin-top: 1rem; color: #C9CDD0; }
.cards-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem; }
.layout-single .cards-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.doc-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 1rem 0 0; font-family: var(--f-mono); font-size: .82rem; color: var(--c-muted); }
.doc-cat a { color: var(--c-brass); text-decoration: none; border: 1px solid var(--c-brass); padding: .05rem .5rem; }
.doc-cover { margin: 0 0 2rem; border: 1px solid var(--c-axis); padding: .6rem; background: var(--c-ink); }
.doc-cover img { display: block; width: 100%; }
.doc-tags { margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-family: var(--f-mono); font-size: .85rem; }
.doc-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin: 3rem 0; }
.doc-nav-link { display: block; padding: 1rem 1.2rem; border: 1px solid var(--c-axis); background: var(--c-plate); color: var(--c-text); text-decoration: none; min-width: 0; }
.doc-nav-link span { display: block; font-family: var(--f-head); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-brass); margin-bottom: .3rem; }
.doc-nav-link:hover { border-color: var(--c-brass); color: var(--c-text); }
.doc-nav-next { grid-column: 2; text-align: right; }

/* Текст записи */
.entry { font-size: 1.05rem; }
.entry h2 { font-size: 1.6rem; text-transform: uppercase; letter-spacing: .03em; padding-top: .5rem; border-top: 1px solid var(--c-axis); }
.entry h3 { font-size: 1.3rem; }
.entry h4 { font-size: 1.1rem; }
.entry img { display: block; }
.entry figure { margin: 1.5rem 0; }
.entry figcaption { font-size: .85rem; color: var(--c-muted); margin-top: .4rem; }
.entry ul li::marker { color: var(--c-brass); }
.entry ol li::marker { color: var(--c-brass); font-family: var(--f-head); }
.entry li { margin-bottom: .35em; }
.entry blockquote {
    margin: 1.8rem 0; padding: 1.4rem 1.6rem 1.2rem 1.8rem;
    background: var(--c-ink); border: 1px solid var(--c-axis); border-left: 4px solid var(--c-brass);
    font-size: 1.12rem;
}
.entry blockquote p:last-child { margin-bottom: 0; }
.entry blockquote cite { display: block; margin-top: .6rem; font-size: .85rem; font-style: normal; color: var(--c-muted); }
.entry table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; border: 1px solid var(--c-axis); font-size: .95rem; display: block; overflow-x: auto; }
.entry th, .entry td { border: 1px solid var(--c-axis); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.entry th { background: var(--c-ink); font-family: var(--f-head); font-weight: 500; letter-spacing: .04em; color: var(--c-blue); }
.entry tr:nth-child(even) td { background: rgba(18, 22, 26, .4); }
.entry code { font-family: var(--f-mono); background: var(--c-ink); padding: .1em .35em; font-size: .9em; }
.entry pre { font-family: var(--f-mono); background: var(--c-ink); border: 1px solid var(--c-axis); padding: 1rem 1.2rem; overflow-x: auto; }
.entry hr { border: 0; border-top: 1px solid var(--c-axis); margin: 2rem 0; }
.entry .wp-block-button__link { border-radius: 0; background: var(--c-brass); color: var(--c-ink); }
.alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: .85rem; color: var(--c-muted); }
.sticky .card { border-color: var(--c-brass); }

/* Пагинация */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 2.6rem 0 0; }
.pager .page-numbers, .pager .post-page-numbers {
    display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; padding: 0 .8rem;
    border: 1px solid var(--c-axis); background: var(--c-ink); color: var(--c-text); text-decoration: none;
    font-family: var(--f-head); font-size: .92rem; letter-spacing: .06em;
}
.pager a.page-numbers:hover, .pager a.post-page-numbers:hover { border-color: var(--c-brass); color: var(--c-brass); }
.pager .page-numbers.current, .pager .post-page-numbers.current { background: var(--c-brass); border-color: var(--c-brass); color: var(--c-ink); }
.pager .page-numbers.dots { border: 0; background: none; min-width: 20px; padding: 0; color: var(--c-muted); }

/* Сайдбар и виджеты */
.sidebar { min-width: 0; background: var(--c-plate); border: 1px solid var(--c-grid); border-top: 2px solid var(--c-brass); padding: 1.5rem 1.5rem 1rem; color: var(--c-text); }
.sidebar .wbox { margin-bottom: 1.8rem; color: var(--c-text); }
.sidebar .wbox-title { margin: 0 0 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--c-axis); font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-brass); font-weight: 500; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .55rem 0; border-bottom: 1px dashed var(--c-grid); line-height: 1.4; }
.sidebar a { color: var(--c-text); text-decoration: none; }
.sidebar a:hover { color: var(--c-brass); }
.sidebar .post-date { display: block; font-size: .8rem; color: var(--c-muted); }
.sidebar .wbox p { color: #C9CDD0; }

/* Поиск */
.finder { display: flex; gap: .6rem; margin: 1.2rem 0 1.6rem; max-width: 560px; }
.finder-input { flex: 1; min-width: 0; min-height: 44px; padding: .5rem .9rem; border: 1px solid var(--c-axis); border-radius: 0; background: var(--c-ink); color: var(--c-text); font: inherit; }
.finder-input::placeholder { color: var(--c-muted); }
.finder-btn { flex: 0 0 auto; }
.empty-box { padding: 1.6rem; border: 1px solid var(--c-axis); background: var(--c-plate); }
.nf { padding: 1rem 0 2rem; }
.nf-text { max-width: 640px; color: #C9CDD0; margin-top: 1rem; }

/* Комментарии */
.notes { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--c-axis); }
.notes-title, .comment-reply-title { font-size: 1.3rem; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 1.2rem; }
.notes-list, .notes-list .children { list-style: none; margin: 0; padding: 0; }
.notes-list .children { padding-left: 1.6rem; border-left: 1px solid var(--c-axis); margin-left: .6rem; }
.note-body { padding: 1rem 1.2rem; margin-bottom: 1rem; border: 1px solid var(--c-axis); background: var(--c-plate); }
.note-head { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-bottom: .5rem; }
.note-author { font-weight: 700; }
.note-date { font-family: var(--f-mono); font-size: .8rem; color: var(--c-muted); }
.note-wait { color: var(--c-brass); font-size: .9rem; }
.note-reply a { font-family: var(--f-head); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.comment-respond { margin-top: 2rem; padding: 1.4rem 1.5rem; border: 1px solid var(--c-axis); background: var(--c-plate); }
.comment-respond label { display: block; font-size: .9rem; color: var(--c-muted); margin-bottom: .3rem; }
.comment-respond input[type="text"], .comment-respond input[type="email"], .comment-respond input[type="url"], .comment-respond textarea {
    width: 100%; padding: .6rem .8rem; border: 1px solid var(--c-axis); border-radius: 0; background: var(--c-ink); color: var(--c-text); font: inherit;
}
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; }
.comment-respond .submit {
    min-height: 44px; padding: .55rem 1.6rem; border: 1px solid var(--c-brass); border-radius: 0; background: var(--c-brass); color: var(--c-ink);
    font-family: var(--f-head); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; cursor: pointer;
}
.comment-respond .submit:hover { background: transparent; color: var(--c-brass); }
.form-hint { font-size: .88rem; color: var(--c-muted); }
.req { color: var(--c-brass); }
.comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0; }

/* ---------- Подвал ---------- */
.basement { background: var(--c-ink); border-top: 1px solid var(--c-grid); color: var(--c-text); padding: 2.6rem 0 1.6rem; }
.basement-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.basement-col { min-width: 0; padding: 0 2rem; border-left: 1px solid var(--c-grid); }
.basement-col:first-child { padding-left: 0; border-left: 0; }
.basement .wbox { margin-bottom: 1.2rem; color: var(--c-text); }
.basement .wbox-title { margin: 0 0 .7rem; font-family: var(--f-body); font-weight: 700; font-size: 1rem; color: var(--c-text); }
.basement .wbox p, .basement .textwidget { font-size: .92rem; color: #B9C2C8; }
.basement ul { list-style: none; margin: 0; padding: 0; }
.basement li { margin-bottom: .35rem; }
.basement a { color: var(--c-blue); }
.basement a:hover { color: var(--c-brass); }
.basement-copy { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--c-grid); font-size: .82rem; color: var(--c-muted); }

/* ---------- Cookie-баннер ---------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--c-ink); border-top: 2px solid var(--c-brass); box-shadow: 0 -6px 24px rgba(0, 0, 0, .35); }
.cookie-in { width: min(92%, 1320px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1rem 0; }
.cookie-text { margin: 0; font-size: .9rem; color: var(--c-text); min-width: 0; }
.cookie-accept { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
    .map-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 260px); }
    .map-tools { display: none; }
    .object-grid, .journal-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 240px); }
}

@media (max-width: 960px) {
    .topbar-in { flex-wrap: wrap; gap: 1rem; }
    .nav-toggle { display: inline-flex; }
    .mainnav { display: none; width: 100%; }
    .mainnav.is-open { display: block; }
    .mainnav-list { flex-direction: column; gap: 0; padding: .6rem 0; border-top: 1px solid var(--c-axis); }
    .mainnav-list a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--c-grid); }
    .brand-svg { width: 72px; height: 72px; }
    .home .shell { width: min(92%, 1320px); }
    .map-grid, .object-grid, .journal-grid, .strategy-grid { grid-template-columns: minmax(0, 1fr); }
    .map-legend { border-left: 0; padding-left: 0; border-top: 1px solid var(--c-axis); padding-top: 1.4rem; }
    .legend-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
    .legend-fig { border-bottom: 0; }
    .object-stats { border-left: 0; padding-left: 0; }
    .object-stats dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
    .journal-goal { border-left: 0; padding-left: 0; border-top: 1px solid var(--c-dark-text); padding-top: 1.6rem; }
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 2.5rem; }
    .layout-single > .content-area { width: 100%; }
    .layout-single .cards-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .basement-cols { grid-template-columns: minmax(0, 1fr); row-gap: 1.6rem; }
    .basement-col, .basement-col:first-child { padding: 0; border-left: 0; }
    .basement-col + .basement-col { padding-top: 1.4rem; border-top: 1px solid var(--c-grid); }
    .strategy-stamp { justify-content: flex-start; }
}

@media (max-width: 760px) {
    .object-draw { grid-template-columns: 32px minmax(0, 1fr); }
    .object-figure { grid-row: 1; }
    .dim-h { margin-bottom: 1.2rem; }
    .dim-v { margin-left: 8px; }
    .object-callouts { grid-column: 1 / -1; grid-row: 3; margin-top: 1.6rem; display: grid; gap: .7rem; }
    .object-callouts li { position: static; transform: none; }
    .lead { flex: 0 0 34px; }
    .scale-line-steps { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; padding-left: 0; }
    .scale-line-steps::before { left: 23px; right: auto; top: 1.6rem; bottom: 0; width: 1px; height: auto; }
    .scale-line-steps::after { display: none; }
    .scale-line-steps > li { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 1.2rem; padding-right: 0; }
    .step-no { display: none; }
    .step-ring { grid-row: 1 / 3; }
    .step-ring::before, .step-ring::after { display: none; }
    .step-name { margin: .2rem 0 .3rem; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .topbar-in { padding: 1rem 0; }
    .brand { gap: .9rem; align-items: flex-start; }
    .brand-svg { width: 56px; height: 56px; }
    .brand-name { font-size: 1rem; }
    .brand-desc { font-size: .78rem; }
    .sheet { padding: 2.4rem 0 2.6rem; }
    .stamp-head { margin-bottom: 1.4rem; }
    .pin { width: 26px; height: 26px; font-size: .66rem; box-shadow: 0 0 0 2px rgba(22, 48, 63, .55); }
    .legend-fig dd { font-size: 2.3rem; }
    .cards, .cards-list, .layout-single .cards-list { grid-template-columns: minmax(0, 1fr); }
    .strategy-table { grid-template-columns: minmax(0, 1fr); }
    .strategy-col + .strategy-col { border-left: 0; border-top: 1px solid var(--c-axis); }
    .strategy-head { padding: .9rem 1.1rem; font-size: 1.15rem; }
    .strategy-list { padding: 1rem 1.1rem 1.1rem 2.2rem; }
    .strategy-stamp span { letter-spacing: .18em; font-size: 1rem; padding: .9rem 1.2rem; }
    .doc-nav { grid-template-columns: minmax(0, 1fr); }
    .doc-nav-next { grid-column: auto; text-align: left; }
    .finder { flex-direction: column; }
    .cookie-in { flex-direction: column; align-items: stretch; text-align: left; }
    .comment-respond, .empty-box, .sidebar { padding: 1.1rem 1.1rem 1rem; }
    .entry blockquote { padding: 1.1rem 1.1rem 1rem 1.3rem; }
    .alignleft, .alignright { float: none; margin: 1rem 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
