/*
Theme Name: dds_24x7closer.com
Theme URI: https://24x7closer.com/
Author: Артем Зорин
Description: Тема для гида по выбору и внедрению CRM в агентствах недвижимости: тёмная «диспетчерская» консоль с мятными и оранжевыми сигналами, схемами воронок и разборами систем.
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: dealpult
*/

/* ---------- Шрифты ---------- */
@font-face { font-family: "Pult Head"; src: url("fonts/fsec-cyrillic-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Pult Head"; src: url("fonts/fsec-latin-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; 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: "Pult Head"; src: url("fonts/fsec-cyrillic-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Pult Head"; src: url("fonts/fsec-latin-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; 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: "Pult Text"; src: url("fonts/plex-cyrillic-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Pult Text"; src: url("fonts/plex-latin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; 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: "Pult Text"; src: url("fonts/plex-cyrillic-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Pult Text"; src: url("fonts/plex-latin-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; 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: "Pult Mono"; src: url("fonts/plexmono-cyrillic-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Pult Mono"; src: url("fonts/plexmono-latin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; 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 {
    --bg: #101820;
    --bg-grid: #1C2A38;
    --head: #0B1117;
    --band-1: #14202B;
    --band-2: #12261F;
    --band-3: #101820;
    --sand: #F2C14E;
    --ink: #101820;
    --text: #E8EDF2;
    --muted: #8A9BA8;
    --mint: #35E0A1;
    --mint-deep: #1F8F66;
    --orange: #FF7A3D;
    --line: #2C3E4C;
    --panel: #172431;
    --panel-2: #1A2A38;
    --side: #0E161D;
    --green-panel: #18392D;
    --f-head: "Pult Head", "Arial Narrow", "Roboto Condensed", "Liberation Sans Narrow", sans-serif;
    --f-text: "Pult Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --f-mono: "Pult Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --glow: 0 0 0 1px rgba(53, 224, 161, .35), 0 0 14px rgba(53, 224, 161, .28);
}

/* ---------- Служебное: скрытые элементы ---------- */
.cookie-banner[hidden] { display: none !important; }
.console-pane[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; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(0deg, transparent 0 79px, rgba(44, 62, 76, .35) 79px 80px),
        linear-gradient(var(--bg-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
    background-size: 100% 80px, 20px 20px, 20px 20px;
    background-attachment: fixed;
    color: var(--text);
    font-family: var(--f-text);
    font-size: 15px;
    line-height: 1.6;
    overflow-wrap: break-word;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 0%, rgba(16, 24, 32, .2) 0%, rgba(16, 24, 32, .72) 70%);
    z-index: 0;
}
.masthead, .site-main, .sitefoot { position: relative; z-index: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mint); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
a:hover { color: #7CF0C5; text-decoration-color: var(--orange); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-head); font-weight: 800; line-height: 1.1; margin: 1.4em 0 .55em; color: var(--text); hyphens: manual; }
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.shell { width: min(92%, 1180px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--mint); color: var(--ink); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .72rem 1.4rem;
    border: 1px solid var(--mint);
    border-radius: 0;
    background: transparent;
    color: var(--mint);
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.2;
    cursor: pointer;
    transition: background .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: rgba(53, 224, 161, .12); color: var(--mint); box-shadow: var(--glow); transform: translate(-2px, -2px); }
.btn-fill { background: var(--mint); color: var(--ink); }
.btn-fill:hover { background: #5EEBB8; color: var(--ink); }

/* ---------- Шапка ---------- */
.masthead {
    background-color: var(--head);
    background-image:
        linear-gradient(rgba(28, 42, 56, .55) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 42, 56, .55) 1px, transparent 1px);
    background-size: 80px 40px;
    background-position: right top;
    border-bottom: 1px solid var(--mint);
    box-shadow: 0 1px 0 rgba(53, 224, 161, .35), 0 4px 18px -4px rgba(53, 224, 161, .35);
}
.masthead-in { padding: 1rem 0 1.8rem; }
.masthead-bar { display: flex; justify-content: flex-end; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: .8rem; margin-bottom: 1.3rem; }
.topnav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.8rem; }
.topnav-list a { color: var(--text); text-decoration: none; font-size: .95rem; padding: .2rem 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.topnav-list a:hover, .topnav-list .current-menu-item > a { color: var(--mint); border-bottom-color: var(--mint); }
.nav-toggle { display: none; align-items: center; gap: .6rem; background: transparent; color: var(--text); border: 1px solid var(--line); padding: .5rem .8rem; font-family: var(--f-head); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.nav-toggle-lines { position: relative; width: 18px; height: 2px; background: var(--mint); }
.nav-toggle-lines::before, .nav-toggle-lines::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--mint); }
.nav-toggle-lines::before { top: -6px; }
.nav-toggle-lines::after { top: 6px; }

.brand { display: flex; align-items: flex-start; gap: 1.6rem; }
.brand-mark { flex: 0 0 auto; display: block; text-decoration: none; }
.brand-svg { width: 92px; height: 92px; display: block; filter: drop-shadow(0 0 8px rgba(53, 224, 161, .25)); }
.brand-logo { width: 92px; height: auto; }
.brand-text { min-width: 0; }
.brand-name {
    display: block;
    font-family: var(--f-head);
    font-weight: 800;
    font-size: clamp(1.4rem, 2.7vw, 2.35rem);
    line-height: 1.08;
    color: var(--text);
    text-decoration: none;
    max-width: 34ch;
    hyphens: manual;
}
.brand-name:hover { color: var(--mint); }
.brand-desc { margin: .7rem 0 0; color: var(--muted); font-size: .98rem; max-width: 72ch; }

/* ---------- Хлебные крошки ---------- */
.crumbs { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); padding: 1.6rem 0 .4rem; letter-spacing: .02em; }
.crumbs a { color: var(--mint); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs-sep { color: var(--orange); margin: 0 .35rem; }
.crumbs-here { color: var(--text); }

/* ---------- Главная: общие зоны ---------- */
.shell-front { padding: 1.6rem 0 2.4rem; }
.zone {
    position: relative;
    border: 1px solid var(--line);
    padding: 2.6rem 2.6rem;
    margin-bottom: 1.4rem;
}
.zone-title {
    margin: 0 0 1.6rem;
    padding-bottom: .7rem;
    font-size: clamp(1.9rem, 4.6vw, 3.4rem);
    text-transform: uppercase;
    letter-spacing: .06em;
    line-height: 1;
    border-bottom: 1px solid var(--line);
    position: relative;
}
.zone-title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 64px; height: 2px; background: var(--mint); }

/* Блок 1 — пульт */
.zone-console { background: var(--band-1); display: grid; grid-template-columns: 28px minmax(0, 1fr) 18px; gap: 1.2rem; padding: 1rem 1.2rem; }
.console-rail { border: 1px solid var(--line); background: repeating-linear-gradient(0deg, var(--line) 0 2px, transparent 2px 6px); background-size: 60% 100%; background-repeat: no-repeat; background-position: center; position: relative; }
.console-rail-scale { position: absolute; left: 50%; bottom: 10%; width: 6px; height: 34%; transform: translateX(-50%); background: repeating-linear-gradient(0deg, var(--mint) 0 2px, transparent 2px 6px); opacity: .55; }
.console-panel { background: var(--panel); border: 1px solid var(--line); padding: 2rem 2.2rem 2.2rem; min-width: 0; }
.console-panel .zone-title { border-bottom: 0; padding-bottom: 0; margin-bottom: 1.2rem; }
.console-panel .zone-title::after { display: none; }
.console-leds { display: flex; flex-direction: column; gap: .55rem; padding-top: .3rem; }
.led { width: 12px; height: 12px; background: #3A4B58; }
.led-on { background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.led-warn { background: var(--orange); box-shadow: 0 0 6px rgba(255, 122, 61, .7); }

.console-tabs { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); max-width: 100%; }
.console-tab {
    min-width: 0;
    flex: 1 1 auto;
    padding: .6rem 2.4rem;
    background: transparent;
    border: 0;
    border-right: 1px solid var(--line);
    color: var(--text);
    font-family: var(--f-text);
    font-size: 1.05rem;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.console-tab:last-child { border-right: 0; }
.console-tab:hover { background: rgba(53, 224, 161, .08); color: var(--mint); }
.console-tab.is-on { background: rgba(53, 224, 161, .1); color: var(--text); box-shadow: inset 0 0 0 2px var(--mint), 0 0 14px rgba(53, 224, 161, .3); }
.console-panes { margin: 1.1rem 0 2rem; max-width: 70ch; color: var(--muted); font-size: .96rem; }
.console-pane { margin: 0; padding-left: 1rem; border-left: 2px solid var(--orange); background: none; }

.route { list-style: none; margin: 0 0 2.4rem; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3.6rem; }
.route-node {
    position: relative;
    min-width: 0;
    border: 1px solid var(--line);
    background: var(--panel-2);
    padding: .8rem .6rem;
    text-align: center;
    font-size: 1.1rem;
}
.route-num { position: absolute; top: -.75rem; left: .5rem; font-family: var(--f-mono); font-size: .7rem; color: var(--muted); background: var(--panel); padding: 0 .3rem; }
.route-node:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    width: 3.6rem;
    height: 10px;
    margin-top: -5px;
    background:
        linear-gradient(var(--mint), var(--mint)) left center / calc(100% - 6px) 2px no-repeat,
        linear-gradient(45deg, transparent 45%, var(--mint) 45% 60%, transparent 60%) right top / 8px 5px no-repeat,
        linear-gradient(-45deg, transparent 45%, var(--mint) 45% 60%, transparent 60%) right bottom / 8px 5px no-repeat;
    filter: drop-shadow(0 0 3px rgba(53, 224, 161, .6));
}
.route-node-final { border-color: var(--mint); box-shadow: var(--glow); }

.readouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; border-top: 1px dashed var(--line); padding-top: 1.6rem; }
.readout { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.readout-num { font-family: var(--f-head); font-weight: 800; font-size: clamp(3rem, 6vw, 5.4rem); line-height: .9; color: var(--text); }
.readout-label { color: var(--muted); font-size: 1.15rem; line-height: 1.25; }

/* Блок 2 — карта внедрения */
.zone-map { background: var(--band-2); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, .6fr); gap: 2.4rem; align-items: start; }
.zone-map .zone-title { border-bottom-color: rgba(53, 224, 161, .25); }
.map-text { color: #C9D5DD; max-width: 46ch; }
.map-callout { display: flex; align-items: center; gap: .7rem; margin-top: 1.6rem; font-family: var(--f-head); font-weight: 700; font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mint); }
.map-callout-mark { flex: 0 0 auto; width: 46px; height: 2px; background: var(--mint); position: relative; }
.map-callout-mark::after { content: ""; position: absolute; right: -4px; top: -4px; width: 10px; height: 10px; border: 2px solid var(--mint); background: var(--band-2); }
.map-scheme { position: relative; padding: .4rem 2.6rem; min-width: 0; }
.layers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.6rem; position: relative; z-index: 1; }
.layer {
    position: relative;
    border: 1px solid var(--mint);
    background: var(--green-panel);
    padding: .65rem 1rem;
    text-align: center;
    font-size: 1.1rem;
    box-shadow: 0 0 10px rgba(53, 224, 161, .18);
}
.layer:not(:last-child)::after { content: "↓"; position: absolute; left: 50%; bottom: -1.45rem; transform: translateX(-50%); color: var(--muted); font-size: .9rem; line-height: 1; }
.layer-core { border-color: var(--orange); background: #3A2A1D; box-shadow: 0 0 10px rgba(255, 122, 61, .25); }
.layer-ctrl { background: #183428; }
.layer-idx { position: absolute; left: .6rem; top: 50%; transform: translateY(-50%); font-family: var(--f-mono); font-size: .7rem; color: var(--muted); }
.layers-bracket { position: absolute; top: 1.4rem; bottom: 1.4rem; width: 1.6rem; border: 1px solid #6F8B80; }
.layers-bracket-l { left: .6rem; border-right: 0; }
.layers-bracket-r { right: .6rem; border-left: 0; }
.legend { border-collapse: collapse; width: 100%; font-size: .85rem; align-self: end; }
.legend caption { text-align: left; font-family: var(--f-head); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text); padding-bottom: .5rem; }
.legend th, .legend td { border: 1px solid rgba(53, 224, 161, .22); padding: .4rem .55rem; text-align: left; vertical-align: top; }
.legend th { font-weight: 600; color: var(--text); white-space: nowrap; }
.legend td { color: var(--muted); }
.legend-chip { display: inline-block; width: 16px; height: 9px; margin-right: .45rem; border: 1px solid var(--mint); background: var(--green-panel); vertical-align: middle; }
.legend-chip-core { border-color: var(--orange); background: #3A2A1D; }
.legend-chip-ctrl { border-color: #6F8B80; background: transparent; }

/* Последние записи */
.zone-latest { background: var(--band-1); }
.latest-all { margin: 1.8rem 0 0; }

/* Карточки */
.cards { display: grid; gap: 1.4rem; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.layout-single .cards-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 0;
    transition: border-color .15s, transform .15s, box-shadow .15s;
}
.card:hover { border-color: var(--mint); transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--mint-deep); }
.card-thumb { position: relative; border-bottom: 1px solid var(--line); background: #0F1820; }
.card-thumb a { display: block; }
.card-thumb img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.card-thumb-blank {
    display: block;
    aspect-ratio: 16 / 9;
    background-color: #0F1820;
    background-image: linear-gradient(var(--bg-grid) 1px, transparent 1px), linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
    background-size: 16px 16px;
}
.card-thumb-blank svg { width: 100%; height: 100%; display: block; }
.card-date { position: absolute; right: 0; bottom: 0; font-family: var(--f-mono); font-size: .75rem; color: var(--mint); background: var(--head); border-top: 1px solid var(--line); border-left: 1px solid var(--line); padding: .2rem .55rem; }
.card-pin { position: absolute; left: 0; top: 0; background: var(--orange); color: var(--ink); font-family: var(--f-head); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; padding: .2rem .6rem; }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 1.2rem 1.3rem 1.3rem; min-width: 0; }
.card-title { hyphens: manual; margin: 0 0 .7rem; font-size: 1.45rem; line-height: 1.12; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--mint); }
.card-excerpt { hyphens: auto; color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: .8rem; color: var(--text); text-decoration: none; font-family: var(--f-head); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .9rem; }
.card-more-arrow { color: var(--mint); font-family: var(--f-mono); transition: transform .15s; }
.card-more:hover { color: var(--mint); }
.card-more:hover .card-more-arrow { transform: translateX(5px); }

/* Блок 3 — разбор по частям */
.zone-parts { background: var(--band-3); }
.parts-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 2.4rem; align-items: start; }
.parts-figure { margin: 0; position: relative; background: #131A25; padding: 1rem 0; min-width: 0; }
.parts-figure img { width: min(100%, 620px); height: auto; margin-inline: auto; aspect-ratio: 770 / 570; object-fit: contain; }
.parts-tags { position: absolute; inset: 0; pointer-events: none; }
.parts-tag {
    position: absolute;
    font-family: var(--f-mono);
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--mint);
    background: #131A25;
    border: 1px solid var(--line);
    padding: .2rem .5rem;
    white-space: nowrap;
}
.parts-tag-1 { right: 2%; top: 8%; }
.parts-tag-2 { left: 2%; top: 30%; }
.parts-tag-3 { right: 2%; top: 56%; color: var(--orange); }
.parts-tag-4 { left: 2%; top: 80%; }
.parts-check { border: 1px solid var(--line); background: var(--panel); padding: 1.5rem 1.4rem 1.6rem; min-width: 0; }
.parts-check-title { margin: 0 0 1rem; font-size: 1.4rem; }
.checklist { list-style: none; margin: 0 0 1.3rem; padding: 0; }
.checklist li { position: relative; padding-left: 1.6rem; margin-bottom: .7rem; font-size: .88rem; color: #C9D5DD; line-height: 1.45; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .2em; width: 12px; height: 12px; border: 1px solid var(--mint); }
.checklist li::after { content: ""; position: absolute; left: 3px; top: calc(.2em + 2px); width: 5px; height: 7px; border: solid var(--mint); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.parts-link { font-size: .9rem; }

/* Блок 4 — кейсы */
.zone-cases { background: var(--sand); color: var(--ink); border-color: var(--sand); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 2.4rem; align-items: start; }
.zone-cases .zone-title { color: var(--ink); border-bottom-color: rgba(16, 24, 32, .25); }
.zone-cases .zone-title::after { background: var(--ink); }
.cases-note { color: #3B3A2E; font-size: .95rem; max-width: 34ch; }
.cases-rows { border-top: 2px solid var(--ink); }
.case-row { margin: 0; display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr); gap: 1.6rem; align-items: center; padding: 1.1rem 0; border-bottom: 2px solid var(--ink); }
.case-num { margin: 0; font-family: var(--f-head); font-weight: 800; font-size: clamp(3.6rem, 7vw, 5.6rem); line-height: .9; color: var(--ink); text-align: center; letter-spacing: -.01em; }
.case-label { margin: 0 0 .25rem; font-family: var(--f-head); font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.05; color: var(--ink); }
.case-quote { margin: 0; font-size: .92rem; color: #2A2F2A; max-width: 56ch; }

/* ---------- Внутренние страницы ---------- */
.layout { padding: 1rem 0 3.4rem; }
.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 { margin-bottom: 1.8rem; }
.page-title {
    margin: .4rem 0 .9rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding-bottom: .7rem;
    border-bottom: 1px solid var(--line);
    position: relative;
}
.page-title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 64px; height: 2px; background: var(--mint); }
.page-lead { color: var(--muted); }
.entry { background: rgba(20, 32, 43, .82); border: 1px solid var(--line); padding: 2.2rem 2.4rem; }
.entry-head { margin-bottom: 1.4rem; }
.entry-meta { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); margin: 0; }
.entry-meta a { color: var(--mint); }
.entry-meta-sep { color: var(--orange); margin: 0 .4rem; }
.entry-cover { margin: 0 0 1.8rem; border: 1px solid var(--line); }
.entry-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.entry-content { font-size: 1rem; line-height: 1.72; hyphens: auto; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { text-transform: uppercase; letter-spacing: .04em; font-size: 1.8rem; border-bottom: 1px solid var(--line); padding-bottom: .4rem; }
.entry-content h3 { font-size: 1.4rem; color: var(--mint); }
.entry-content ul { list-style: none; padding-left: 0; }
.entry-content ul li { position: relative; padding-left: 1.4rem; margin-bottom: .45rem; }
.entry-content ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--mint); }
.entry-content ol { padding-left: 1.6rem; }
.entry-content ol li::marker { font-family: var(--f-mono); color: var(--orange); }
.entry-content blockquote { margin: 1.8rem 0; padding: 1.3rem 1.6rem; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--orange); font-size: 1.08rem; color: var(--text); }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content .wp-block-table { overflow-x: auto; margin: 1.6rem 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: .92rem; }
.entry-content .wp-block-table table { margin: 0; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; }
.entry-content th { background: var(--panel-2); font-family: var(--f-head); letter-spacing: .06em; text-transform: uppercase; color: var(--mint); }
.entry-content pre, .entry-content code { font-family: var(--f-mono); font-size: .88rem; background: var(--head); border: 1px solid var(--line); }
.entry-content code { padding: .1rem .35rem; }
.entry-content pre { padding: 1rem; overflow-x: auto; }
.entry-content pre code { border: 0; padding: 0; }
.entry-content img { border: 1px solid var(--line); }
.entry-content figcaption { font-family: var(--f-mono); font-size: .78rem; color: var(--muted); margin-top: .4rem; }
.entry-content .alignleft { float: left; margin: .3rem 1.4rem 1rem 0; }
.entry-content .alignright { float: right; margin: .3rem 0 1rem 1.4rem; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-tags { margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.entry-tags a { font-family: var(--f-mono); font-size: .8rem; text-decoration: none; border: 1px solid var(--line); padding: .2rem .6rem; }
.entry-tags a:hover { border-color: var(--mint); }
.entry-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.6rem 0; }
.entry-nav-link { display: block; border: 1px solid var(--line); background: var(--panel); padding: 1rem 1.2rem; color: var(--text); text-decoration: none; font-family: var(--f-head); font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.entry-nav-link:hover { border-color: var(--mint); color: var(--mint); }
.entry-nav-next { grid-column: 2; text-align: right; }
.entry-nav-dir { display: block; font-family: var(--f-mono); font-weight: 400; font-size: .72rem; color: var(--orange); margin-bottom: .3rem; letter-spacing: .04em; }

/* Пустые состояния и 404 */
.empty { color: var(--muted); }
.empty-box { border: 1px dashed var(--line); padding: 1.6rem 1.8rem; }
.lost { text-align: left; padding: 1rem 0 2rem; }
.lost-code { margin: 0; font-family: var(--f-head); font-weight: 800; font-size: clamp(5rem, 16vw, 11rem); line-height: .85; color: transparent; -webkit-text-stroke: 2px var(--mint); text-shadow: 0 0 22px rgba(53, 224, 161, .25); }
.lost-text { color: var(--muted); max-width: 60ch; }
.lost-home { margin-top: 1.6rem; }

/* Поиск */
.seek { margin: 1rem 0; }
.seek-label { display: block; font-family: var(--f-head); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; color: var(--muted); margin-bottom: .4rem; }
.seek-row { display: flex; gap: 0; }
.seek-field { flex: 1; min-width: 0; padding: .7rem .9rem; background: var(--head); color: var(--text); border: 1px solid var(--line); border-right: 0; border-radius: 0; font: inherit; }
.seek-field::placeholder { color: #61727F; }
.seek-btn { flex: 0 0 auto; }
.seek-btn:hover { transform: none; }

/* Пагинация (type => plain) */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 2.2rem 0 0; }
.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(--line); background: var(--panel); color: var(--text); text-decoration: none; font-family: var(--f-mono); font-size: .9rem; }
.pager a.page-numbers:hover { border-color: var(--mint); color: var(--mint); }
.pager .page-numbers.current { background: var(--mint); border-color: var(--mint); color: var(--ink); font-weight: 600; }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; }
.pager .post-page-numbers { display: inline-flex; padding: .3rem .7rem; border: 1px solid var(--line); text-decoration: none; }
.pager .post-page-numbers.current { background: var(--mint); color: var(--ink); }

/* Комментарии */
.notes { margin-top: 2rem; background: rgba(20, 32, 43, .82); border: 1px solid var(--line); padding: 2rem 2.4rem; }
.notes-title { margin-top: 0; text-transform: uppercase; letter-spacing: .05em; font-size: 1.6rem; }
.notes-list, .notes-list .children { list-style: none; margin: 0; padding: 0; }
.notes-list .children { margin-left: 1.6rem; border-left: 1px solid var(--line); padding-left: 1rem; }
.note-body { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.note-head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: .5rem; }
.note-head img { border: 1px solid var(--line); }
.note-author { font-weight: 600; }
.note-date { font-family: var(--f-mono); font-size: .75rem; color: var(--muted); }
.note-wait { color: var(--orange); font-size: .85rem; }
.note-reply a { font-family: var(--f-head); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .82rem; text-decoration: none; }
.comment-respond { margin-top: 1.6rem; }
.comment-reply-title { font-size: 1.4rem; text-transform: uppercase; letter-spacing: .05em; }
.comment-reply-title small a { font-family: var(--f-text); font-size: .8rem; margin-left: .6rem; }
.form-note { color: var(--muted); font-size: .85rem; }
.comment-form label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: .7rem .9rem; background: var(--head); border: 1px solid var(--line); border-radius: 0; color: var(--text); font: inherit; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--mint); }
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; margin: 0; }
.req { color: var(--orange); }
.comments-pagination, .comment-navigation { margin: 1rem 0; display: flex; justify-content: space-between; gap: 1rem; }

/* Сайдбар */
.sidebar { background: var(--side); border: 1px solid var(--line); border-top: 2px solid var(--mint); padding: 1.6rem 1.5rem; min-width: 0; color: #C9D5DD; }
.sidebar .widget { margin-bottom: 2rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title { margin: 0 0 1rem; font-size: 1.15rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text); padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { border-bottom: 1px dashed var(--line); padding: .6rem 0; font-size: .9rem; }
.sidebar li a { color: var(--text); text-decoration: none; }
.sidebar li a:hover { color: var(--mint); }
.sidebar .post-date { display: block; font-family: var(--f-mono); font-size: .72rem; color: var(--muted); }
.sidebar a { color: var(--mint); }
.sidebar p { color: #C9D5DD; }

/* ---------- Подвал ---------- */
.sitefoot { background: var(--head); border-top: 1px solid var(--line); color: var(--muted); padding: 3rem 0 1.6rem; margin-top: 1rem; }
.sitefoot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.sitefoot-col { min-width: 0; }
.sitefoot .widget { margin-bottom: 1.4rem; }
.sitefoot .widget-title { margin: 0 0 .9rem; color: var(--text); font-size: 1.35rem; letter-spacing: .02em; }
.sitefoot .widget p, .sitefoot .textwidget { color: var(--muted); font-size: .9rem; }
.sitefoot ul { list-style: none; margin: 0; padding: 0; }
.sitefoot li { margin-bottom: .35rem; font-size: .9rem; }
.sitefoot a { color: #B5C3CD; text-decoration: none; }
.sitefoot a:hover { color: var(--mint); text-decoration: underline; }
.sitefoot-copy { margin: 1.4rem 0 0; font-size: .82rem; color: var(--muted); font-family: var(--f-mono); }

/* ---------- 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;
    background: var(--head);
    border: 1px solid var(--mint);
    box-shadow: 0 0 22px rgba(53, 224, 161, .2);
    padding: 1rem 1.4rem;
}
.cookie-text { margin: 0; color: #C9D5DD; font-size: .88rem; }
.cookie-accept { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (min-width: 960px) {
    .shell-front { width: min(85%, 1320px); }
}

@media (max-width: 1100px) {
    .route { gap: 2.2rem; }
    .route-node:not(:last-child)::after { width: 2.2rem; }
    .zone-map { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
    .legend { grid-column: 1 / -1; max-width: 520px; }
}

@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 2.4rem; }
    .layout-single .content-area { width: 100%; }
    .layout-single .cards-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .zone { padding: 2.2rem 1.8rem; }
    .zone-console { grid-template-columns: minmax(0, 1fr); padding: 1rem; }
    .console-rail, .console-leds { display: none; }
    .route { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; max-width: 360px; }
    .route-node:not(:last-child)::after { top: 100%; left: 50%; width: 2px; height: 1.6rem; margin: 0 0 0 -1px; background: var(--mint); }
    .zone-map { grid-template-columns: minmax(0, 1fr); }
    .map-scheme { max-width: 520px; }
    .parts-grid { grid-template-columns: minmax(0, 1fr); }
    .zone-cases { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .sitefoot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
    .nav-toggle { display: inline-flex; }
    .masthead-bar { justify-content: flex-start; flex-wrap: wrap; }
    .topnav { width: 100%; }
    .topnav-list { display: none; flex-direction: column; gap: 0; padding-top: .8rem; }
    .topnav.is-open .topnav-list { display: flex; }
    .topnav-list a { display: block; padding: .6rem 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 600px) {
    body { font-size: 15px; }
    .masthead-in { padding-bottom: 1.4rem; }
    .brand { gap: 1rem; }
    .brand-svg, .brand-logo { width: 60px; height: 60px; }
    .brand-desc { font-size: .9rem; }
    .zone { padding: 1.8rem 1.2rem; }
    .zone-console { padding: .7rem; }
    .console-panel { padding: 1.5rem 1.2rem; }
    .console-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
    .console-tab { padding: .6rem .5rem; border-bottom: 1px solid var(--line); }
    .console-tab:nth-child(2n) { border-right: 0; }
    .readouts { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .map-scheme { padding: .4rem 2rem; }
    .cards-3, .cards-list, .layout-single .cards-list { grid-template-columns: minmax(0, 1fr); }
    .parts-tag { font-size: .6rem; padding: .15rem .35rem; }
    .case-row { grid-template-columns: minmax(0, 90px) minmax(0, 1fr); gap: 1rem; }
    .entry, .notes { padding: 1.5rem 1.2rem; }
    .entry-nav { grid-template-columns: minmax(0, 1fr); }
    .entry-nav-next { grid-column: auto; }
    .sitefoot-cols { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
    .cookie-banner { flex-direction: column; align-items: stretch; left: .6rem; right: .6rem; bottom: .6rem; padding: 1rem; }
    .seek-row { flex-direction: column; }
    .seek-field { border-right: 1px solid var(--line); }
}
