/*
Theme Name: dds_oldrobo.com
Theme URI: https://oldrobo.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: oldrobo
*/

/* ---------- Шрифты ---------- */
@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: 700; font-display: swap; src: url(fonts/oswald-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: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/oswald-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+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: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/jetbrains-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: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/jetbrains-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+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: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/jetbrains-mono-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: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/jetbrains-mono-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+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-bg: #16181C;
    --c-panel: #1D2026;
    --c-panel-2: #23272E;
    --c-deep: #101216;
    --c-foot: #0C0D10;
    --c-paper: #E8E4D8;
    --c-paper-grid: #B9C4CE;
    --c-text: #E6E3DA;
    --c-muted: #8C9199;
    --c-ink: #23272E;
    --c-accent: #FF6B2C;
    --c-tech: #4FC3D9;
    --c-line: #3A4048;
    --c-grid: #2A2E36;
    --c-warn: #D8E04A;
    --c-tape: rgba(214, 208, 192, .78);
    --f-head: "Oswald", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
    --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
    --grid-bg: linear-gradient(var(--c-grid) 1px, transparent 1px), linear-gradient(90deg, var(--c-grid) 1px, transparent 1px);
    --cut: 18px;
}

/* ---------- Сброс и база ---------- */
.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;
    background-color: var(--c-bg);
    background-image: var(--grid-bg);
    background-size: 24px 24px;
    color: var(--c-text);
    font-family: var(--f-mono);
    font-size: 15px;
    line-height: 1.7;
    overflow-wrap: break-word;
}
@media (min-width: 960px) { body { font-size: 16px; } }
img, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--c-tech); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
a:hover { color: var(--c-accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-head); font-weight: 700; line-height: 1.12; margin: 1.4em 0 .6em; color: var(--c-text); hyphens: auto; overflow-wrap: break-word; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }
p, li, dd, blockquote, td, th { hyphens: auto; }
ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
hr { border: 0; border-top: 1px dashed var(--c-line); margin: 2rem 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--c-accent); color: var(--c-foot); padding: .6rem 1rem; font-weight: 700; }
.skip-link:focus { left: 1rem; top: 1rem; }

.shell { width: min(85%, 1240px); margin-inline: auto; }
@media (max-width: 600px) { .shell { width: min(92%, 1240px); } }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    padding: .6rem 1.3rem;
    border: 2px solid var(--c-accent);
    border-radius: 0;
    background: transparent;
    color: var(--c-accent);
    font-family: var(--f-mono);
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn:hover, .btn:focus-visible { background: var(--c-accent); color: var(--c-foot); transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--c-tech); }
.btn:active { transform: none; box-shadow: none; }
.btn-small { padding: .35rem .85rem; font-size: .8rem; }

/* ---------- Заголовки секций ---------- */
.sec-tag, .sec-head {
    display: flex;
    align-items: baseline;
    gap: .65rem;
    margin: 0 0 1rem;
    font-family: var(--f-mono);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--c-text);
}
.sec-tag { font-size: clamp(1rem, 2vw, 1.45rem); }
.sec-head { font-size: clamp(1.15rem, 2.4vw, 1.75rem); line-height: 1.25; }
.sec-tag::before, .sec-head::before { content: ""; flex: 0 0 22px; height: 3px; background: var(--c-accent); align-self: center; }
.sec-num { color: var(--c-accent); }

/* ---------- Шапка ---------- */
.masthead { background: var(--c-panel); border-bottom: 1px solid var(--c-line); }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem 2.5rem; padding: 1.8rem 0; flex-wrap: wrap; }
.brand { display: flex; align-items: flex-start; gap: 1rem; text-decoration: none; color: var(--c-text); flex: 1 1 460px; min-width: 0; max-width: 760px; }
.brand:hover { color: var(--c-text); }
.brand-mark { flex: 0 0 auto; color: var(--c-text); transition: transform .4s; }
.brand:hover .brand-mark { transform: rotate(30deg); }
.brand-logo { width: 72px; height: 72px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.brand-name { font-family: var(--f-head); font-weight: 700; font-size: clamp(1.1rem, 1.9vw, 1.5rem); line-height: 1.18; letter-spacing: .01em; overflow-wrap: break-word; hyphens: manual; }
.brand-desc { font-family: var(--f-mono); font-size: .74rem; line-height: 1.55; color: var(--c-muted); }

.topnav { position: relative; flex: 0 1 auto; }
.topnav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; }
.topnav-list a { display: inline-block; padding: .35rem 0; color: var(--c-text); text-decoration: none; font-size: .95rem; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.topnav-list a:hover { color: var(--c-accent); }
.topnav-list .current-menu-item > a, .topnav-list .current_page_item > a { color: var(--c-accent); border-bottom-color: var(--c-accent); }
.topnav-toggle { display: none; align-items: center; gap: .6rem; padding: .55rem .9rem; background: transparent; border: 2px solid var(--c-line); color: var(--c-text); font-family: var(--f-mono); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.topnav-bars, .topnav-bars::before, .topnav-bars::after { display: block; width: 18px; height: 2px; background: var(--c-accent); position: relative; }
.topnav-bars::before, .topnav-bars::after { content: ""; position: absolute; left: 0; }
.topnav-bars::before { top: -6px; }
.topnav-bars::after { top: 6px; }
@media (max-width: 960px) {
    .masthead-row { padding: 1.2rem 0; }
    .brand { flex-basis: 100%; }
    .topnav { width: 100%; }
    .topnav-toggle { display: inline-flex; }
    .topnav-list { display: none; flex-direction: column; gap: 0; margin-top: .8rem; border-top: 1px solid var(--c-line); }
    .topnav.is-open .topnav-list { display: flex; }
    .topnav-list a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--c-line); }
    .topnav-list .current-menu-item > a { border-bottom-color: var(--c-accent); }
}
@media (max-width: 600px) {
    .brand-logo { width: 54px; height: 54px; }
    .brand-desc { font-size: .7rem; }
}

/* ---------- Зоны главной ---------- */
.zone { position: relative; padding: 4.5rem 0; }
.zone-drafting {
    background-color: var(--c-panel);
    background-image: url(images/gear.svg), url(images/gear.svg), var(--grid-bg);
    background-size: 680px 600px, 520px 460px, 24px 24px, 24px 24px;
    background-position: -330px 40px, calc(100% + 260px) 0, 0 0, 0 0;
    background-repeat: no-repeat, no-repeat, repeat, repeat;
}
.zone-latest { background: var(--c-deep); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.zone-archive {
    background-color: var(--c-bg);
    background-image: url(images/gear.svg), var(--grid-bg);
    background-size: 680px 600px, 24px 24px, 24px 24px;
    background-position: calc(100% + 300px) 120px, 0 0, 0 0;
    background-repeat: no-repeat, repeat, repeat;
}

/* Блок 1 — Анатомия района */
.anatomy { margin-bottom: 5rem; }
.anatomy-title { font-size: clamp(2.3rem, 6vw, 5.4rem); line-height: 1.02; margin: 0 0 2rem; max-width: 14ch; letter-spacing: .005em; }
.anatomy-stage { display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 1.6rem; align-items: end; }
.anatomy-figure { position: relative; margin: 0; min-width: 0; }
.anatomy-figure img { width: 100%; height: auto; aspect-ratio: 1934 / 712; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 7%); mask-image: linear-gradient(to bottom, transparent 0, #000 7%); }
.callout { position: absolute; display: none; flex-direction: column; gap: .2rem; max-width: 19%; line-height: 1.35; }
.callout-title { font-family: var(--f-mono); font-weight: 700; font-size: clamp(.82rem, 1.25vw, 1.05rem); color: var(--c-text); }
.callout-text { font-size: clamp(.64rem, .85vw, .76rem); color: var(--c-muted); letter-spacing: .02em; }
.callout-infra { left: 26.2%; top: 3.2%; }
.callout-transport { left: 50.5%; top: 3.2%; }
.callout-neighbours { left: 74%; top: 3.2%; max-width: 16.5%; }
.callout-safety { right: 1.05%; left: 72%; bottom: calc(100% - 2px); max-width: none; padding: 0 1.2rem 1.6rem 0; }
.callout-safety::before { content: ""; position: absolute; right: 0; top: .72em; bottom: 0; width: 1px; background: var(--c-tech); }
.callout-safety .callout-title { display: flex; align-items: center; gap: .6rem; margin-right: -1.2rem; }
.callout-safety .callout-title::after { content: ""; flex: 1; height: 1px; background: var(--c-tech); }
.gauge { position: relative; display: flex; align-items: center; justify-content: center; height: 72%; min-height: 180px; }
.gauge-ruler {
    position: absolute; left: 6px; top: 0; bottom: 0; width: 26px;
    border-left: 2px solid var(--c-warn);
    background:
        repeating-linear-gradient(to bottom, var(--c-warn) 0 2px, transparent 2px 60px) left top / 26px 100% no-repeat,
        repeating-linear-gradient(to bottom, var(--c-warn) 0 1px, transparent 1px 12px) left top / 14px 100% no-repeat;
}
.gauge-ruler::before, .gauge-ruler::after { content: ""; position: absolute; left: -2px; width: 30px; height: 2px; background: var(--c-warn); }
.gauge-ruler::before { top: 0; }
.gauge-ruler::after { bottom: 0; }
.gauge-label { position: absolute; right: 0; top: 50%; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; font-size: .8rem; letter-spacing: .1em; color: var(--c-text); white-space: nowrap; }
.anatomy-legend { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1.6rem; font-size: .88rem; color: var(--c-muted); }
.anatomy-legend li { padding-left: 1rem; border-left: 2px solid var(--c-tech); }
.anatomy-legend strong { color: var(--c-text); }
@media (min-width: 960px) {
    .anatomy-stage { padding-top: 6.5rem; margin-top: -7rem; }
    .callout { display: flex; }
    .anatomy-legend { display: none; }
}
@media (max-width: 960px) {
    .anatomy-stage { grid-template-columns: minmax(0, 1fr); }
    .gauge { display: none; }
}
@media (max-width: 600px) {
    .anatomy-legend { grid-template-columns: minmax(0, 1fr); }
    .anatomy { margin-bottom: 3.5rem; }
}

/* Блок 2 — Пять факторов */
.factors-list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; align-items: end; counter-reset: none; }
.factor {
    display: flex; flex-direction: column; justify-content: flex-start;
    min-width: 0;
    min-height: 178px;
    padding: 1.1rem 1.1rem 1.3rem;
    background: var(--c-panel-2);
    border: 1px solid rgba(79, 195, 217, .75);
    transition: transform .15s, box-shadow .15s;
}
.factor:nth-child(2) { min-height: 186px; }
.factor:nth-child(3) { min-height: 182px; }
.factor:nth-child(5) { min-height: 192px; }
.factor:hover { transform: translateY(-4px); box-shadow: 0 4px 0 var(--c-tech); }
.factor-num { font-family: var(--f-mono); font-size: clamp(2rem, 3.2vw, 2.7rem); font-weight: 700; line-height: 1; color: #6E737B; margin-bottom: .9rem; }
.factor-name { font-family: var(--f-mono); font-size: 1.02rem; margin: 0 0 .5rem; line-height: 1.25; }
.factor-text { font-size: .78rem; line-height: 1.55; color: var(--c-muted); margin: 0; }
.factor-key { background: var(--c-accent); border-color: var(--c-accent); min-height: 206px; }
.factor-key .factor-num, .factor-key .factor-name { color: var(--c-foot); }
.factor-key .factor-text { color: #2B1A10; }
.factor-key:hover { box-shadow: 0 4px 0 var(--c-text); }
@media (max-width: 960px) {
    .factors-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
    .factor, .factor:nth-child(n), .factor-key { min-height: 0; }
    .factor-key { grid-column: span 2; }
}
@media (max-width: 600px) {
    .factors-list { grid-template-columns: minmax(0, 1fr); }
    .factor-key { grid-column: auto; }
}

/* Последние записи */
.latest-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.latest-head .sec-head { margin: 0; }
.latest-all { font-size: .9rem; }

/* ---------- Карточки-перфокарты ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.cards-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.layout-single .cards-feed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background:
        linear-gradient(225deg, transparent 12.2px, rgba(79, 195, 217, .55) 12.2px 13.6px, transparent 13.6px) right top / var(--cut) var(--cut) no-repeat,
        var(--c-panel);
    border: 1px solid rgba(79, 195, 217, .55);
    clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
    transition: transform .15s, border-color .15s;
}
.card:hover { transform: translateY(-3px); border-color: var(--c-tech); }
.card-thumb { display: block; margin: 1.1rem 1.1rem 0; border: 1px solid var(--c-tech); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); background: var(--c-panel); overflow: hidden; }
.card-thumb img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform .35s; }
.card:hover .card-thumb img { transform: scale(1.03); }
.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 1.1rem 1.2rem 1.2rem; }
.card-flag { align-self: flex-start; margin-bottom: .6rem; padding: .1rem .5rem; border: 1px solid var(--c-warn); color: var(--c-warn); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.card-title { font-family: var(--f-mono); font-size: 1.05rem; line-height: 1.35; margin: 0 0 .6rem; }
.card-title a { color: var(--c-text); text-decoration: none; }
.card-title a:hover { color: var(--c-accent); }
.card-excerpt { flex: 1; font-size: .82rem; line-height: 1.6; color: var(--c-muted); margin-bottom: 1rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-top: auto; }
.card-date { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.empty-state { color: var(--c-muted); padding: 1.4rem 1.6rem; border: 1px dashed var(--c-line); background: var(--c-panel); }
@media (min-width: 1200px) {
    .zone-latest .cards:has(> .card:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
}
@media (max-width: 960px) {
    .cards, .layout-single .cards-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .cards, .cards-feed, .layout-single .cards-feed { grid-template-columns: minmax(0, 1fr); }
}

/* Блок 3 — Чек-лист на кальке */
.checklist { margin-bottom: 5rem; }
.sheet {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 2rem 3rem;
    align-items: start;
    margin-top: 1.4rem;
    padding: 3.2rem 3.4rem 4.6rem;
    background-color: var(--c-paper);
    background-image:
        linear-gradient(rgba(185, 196, 206, .85) 1px, transparent 1px),
        linear-gradient(90deg, rgba(185, 196, 206, .85) 1px, transparent 1px),
        linear-gradient(rgba(185, 196, 206, .35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(185, 196, 206, .35) 1px, transparent 1px);
    background-size: 20px 20px, 20px 20px, 5px 5px, 5px 5px;
    color: var(--c-ink);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.sheet-lead { min-width: 0; }
.sheet-title { font-family: var(--f-head); font-weight: 700; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.04; text-transform: uppercase; letter-spacing: .02em; margin: 0 0 1.2rem; color: var(--c-ink); }
.sheet-note { font-size: .86rem; line-height: 1.6; color: #4A505A; max-width: 34ch; margin: 0; }
.sheet-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; min-width: 0; }
.sheet-list li { display: flex; align-items: flex-start; gap: .7rem; font-size: 1.06rem; font-weight: 700; line-height: 1.45; color: var(--c-ink); }
.tick { position: relative; flex: 0 0 18px; width: 18px; height: 18px; margin-top: .18em; border: 2px solid var(--c-ink); background: rgba(255, 255, 255, .35); }
.is-done .tick::after { content: ""; position: absolute; left: 3px; top: -7px; width: 8px; height: 16px; border-right: 3px solid var(--c-accent); border-bottom: 3px solid var(--c-accent); transform: rotate(40deg); }
.stamp {
    position: absolute; right: 3rem; bottom: 1.6rem;
    padding: .3rem 1rem;
    border: 3px solid var(--c-accent);
    color: var(--c-accent);
    font-family: var(--f-head); font-weight: 700; font-size: 1.6rem; letter-spacing: .06em; text-transform: uppercase;
    transform: rotate(-8deg);
    opacity: .9;
    box-shadow: inset 0 0 0 2px rgba(255, 107, 44, .25);
}
.tape { position: absolute; width: 118px; height: 36px; background: var(--c-tape); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.tape-tl { left: -34px; top: 6px; transform: rotate(-40deg); }
.tape-tr { right: -34px; top: 6px; transform: rotate(40deg); }
.tape-bl { left: -34px; bottom: 6px; transform: rotate(40deg); }
.tape-br { right: -34px; bottom: 6px; transform: rotate(-40deg); }
@media (max-width: 960px) {
    .sheet { grid-template-columns: minmax(0, 1fr); padding: 2.6rem 2.2rem 4.8rem; }
    .tape { width: 84px; height: 28px; }
    .tape-tl, .tape-bl { left: -24px; }
    .tape-tr, .tape-br { right: -24px; }
}
@media (max-width: 600px) {
    .sheet { padding: 2.2rem 1.4rem 1.6rem; }
    .stamp { position: static; justify-self: end; font-size: 1.25rem; }
    .tape { width: 64px; height: 22px; }
    .tape-tl, .tape-bl { left: -16px; }
    .tape-tr, .tape-br { right: -16px; }
    .checklist { margin-bottom: 3.5rem; }
}

/* Блок 4 — Архив наблюдений */
.log { margin-top: 1.4rem; border: 1px solid rgba(79, 195, 217, .75); background: rgba(22, 24, 28, .88); }
.log-row { display: grid; grid-template-columns: minmax(0, 10.5rem) minmax(0, 13rem) minmax(0, 1fr) 6.5rem; border-top: 1px solid rgba(79, 195, 217, .5); transition: background-color .15s; }
.log-row:first-child { border-top: 0; }
.log-row:hover { background: var(--c-panel); }
.log-row > span { padding: 1rem 1.2rem; min-width: 0; display: flex; align-items: center; border-left: 1px solid rgba(79, 195, 217, .5); }
.log-row > span:first-child { border-left: 0; }
.log-date { font-size: .98rem; letter-spacing: .04em; color: var(--c-text); }
.log-area { font-weight: 700; color: var(--c-text); }
.log-note { font-size: .92rem; color: var(--c-text); }
.log-icon { justify-content: center; color: var(--c-tech); }
.log-icon svg { width: 44px; height: auto; }
@media (max-width: 960px) {
    .log-row { grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr) 4.5rem; }
    .log-note { grid-column: 1 / -1; grid-row: 2; border-left: 0 !important; border-top: 1px dashed var(--c-line); }
    .log-icon { grid-row: 1; }
}
@media (max-width: 600px) {
    .log-row > span { padding: .7rem .9rem; overflow-wrap: anywhere; }
    .log-row { grid-template-columns: minmax(0, 1fr) 3.6rem; }
    .log-date { grid-column: 1; grid-row: 1; font-size: .82rem; color: var(--c-muted); }
    .log-icon { grid-column: 2; grid-row: 1 / span 2; }
    .log-area { grid-column: 1; grid-row: 2; border-left: 0 !important; padding-top: 0 !important; }
    .log-note { grid-row: 3; }
}

@media (max-width: 600px) {
    .zone { padding: 3rem 0; }
}

/* ---------- Внутренние страницы ---------- */
.page-wrap { padding: 2rem 0 4.5rem; }
.crumbs { font-size: .78rem; letter-spacing: .04em; color: var(--c-muted); margin-bottom: 1.8rem; padding: .7rem 1rem; border: 1px solid var(--c-line); background: var(--c-panel); overflow-wrap: anywhere; }
.crumbs a { color: var(--c-tech); }
.crumbs-sep { color: var(--c-accent); margin: 0 .25rem; }
.crumbs span:last-child { color: var(--c-text); }

.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); gap: 6%; align-items: start; }
.layout-single { display: block; }
.content-area { min-width: 0; }
@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
}

.page-head { margin-bottom: 2rem; }
.page-title { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.05; margin: 0 0 .8rem; }
.page-intro { color: var(--c-muted); max-width: 70ch; }

.entry {
    position: relative;
    background: var(--c-panel);
    border: 1px solid var(--c-line);
    border-top: 3px solid var(--c-accent);
    padding: 2.4rem 2.6rem;
}
.entry-head { margin-bottom: 1.6rem; padding-bottom: 1.2rem; border-bottom: 1px dashed var(--c-line); }
.entry-meta { margin: 0 0 .7rem; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); }
.entry-meta-sep { margin: 0 .5rem; color: var(--c-accent); }
.entry-title { font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.08; margin: 0; }
.entry-cover { margin: 0 0 1.8rem; border: 1px solid var(--c-tech); }
.entry-cover img { width: 100%; height: auto; }
.entry-content { min-width: 0; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: clamp(1.5rem, 3vw, 2rem); padding-left: .9rem; border-left: 3px solid var(--c-accent); }
.entry-content h3 { font-size: 1.35rem; color: var(--c-tech); }
.entry-content img { max-width: 100%; height: auto; }
.entry-content figure { margin: 1.6rem 0; }
.entry-content figcaption, .wp-element-caption { font-size: .78rem; color: var(--c-muted); margin-top: .5rem; }
.entry-content ul { list-style: none; padding-left: 0; }
.entry-content ul li { position: relative; padding-left: 1.6rem; margin-bottom: .4rem; }
.entry-content ul li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 2px; background: var(--c-accent); }
.entry-content ol li { margin-bottom: .4rem; }
.entry-content ol li::marker { color: var(--c-accent); font-weight: 700; }
.entry-content blockquote, .wp-block-quote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem 1.4rem 1.8rem;
    background: var(--c-paper);
    color: var(--c-ink);
    border-left: 5px solid var(--c-accent);
    font-weight: 700;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: .6rem; font-size: .8rem; font-style: normal; font-weight: 400; color: #4A505A; }
.entry-content blockquote a { color: #1F6E80; }
.entry-content pre, .entry-content code { font-family: var(--f-mono); background: var(--c-deep); color: var(--c-warn); }
.entry-content code { padding: .1em .35em; }
.entry-content pre { padding: 1rem 1.2rem; overflow-x: auto; border: 1px solid var(--c-line); }
.entry-content pre code { padding: 0; }
.entry-content table, table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: .88rem; border: 1px solid var(--c-line); }
.entry-content th, .entry-content td, th, td { border: 1px solid var(--c-line); padding: .6rem .8rem; text-align: left; vertical-align: top; }
th { background: var(--c-panel-2); color: var(--c-text); font-weight: 700; }
.wp-block-table { overflow-x: auto; }
.entry-content .wp-block-button__link { border-radius: 0; background: transparent; border: 2px solid var(--c-accent); color: var(--c-accent); text-decoration: none; font-weight: 700; }
.entry-content .wp-block-button__link:hover { background: var(--c-accent); color: var(--c-foot); }
.entry-pages, .entry-tags { margin-top: 1.8rem; font-size: .84rem; }
.entry-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.entry-tags a { padding: .2rem .6rem; border: 1px solid var(--c-tech); text-decoration: none; }
.entry-tags a:hover { border-color: var(--c-accent); }
.alignleft { float: left; margin: .3rem 1.4rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.4rem; }
.aligncenter { margin-inline: auto; }
@media (max-width: 600px) {
    .entry { padding: 1.6rem 1.3rem; }
    .alignleft, .alignright { float: none; margin: 1rem 0; }
}

/* ---------- Пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.4rem; }
.pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem; height: 2.6rem; padding: 0 .8rem; border: 2px solid var(--c-line); background: var(--c-panel); color: var(--c-text); text-decoration: none; font-weight: 700; font-size: .88rem; transition: border-color .15s, color .15s, background-color .15s; }
.pager a.page-numbers:hover { border-color: var(--c-accent); color: var(--c-accent); }
.pager .page-numbers.current { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-foot); }
.pager .page-numbers.dots { border: 0; background: none; min-width: 1.4rem; padding: 0; color: var(--c-muted); }

/* ---------- Сайдбар ---------- */
.sidebar { min-width: 0; background: var(--c-panel-2); border: 1px solid var(--c-line); border-left: 3px solid var(--c-tech); padding: 1.6rem 1.5rem; color: var(--c-text); }
.sidebar .widget { margin-bottom: 2rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title { display: flex; align-items: center; gap: .55rem; font-family: var(--f-mono); font-size: .92rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 1rem; color: var(--c-text); }
.sidebar .widget-title::before { content: ""; flex: 0 0 16px; height: 3px; background: var(--c-accent); }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { padding: .6rem 0; border-bottom: 1px dashed var(--c-line); font-size: .86rem; line-height: 1.5; color: var(--c-text); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--c-text); text-decoration: none; }
.sidebar a:hover { color: var(--c-accent); }
.sidebar .post-date, .sidebar .rss-date { display: block; font-size: .72rem; color: var(--c-muted); }
.sidebar p, .sidebar .textwidget { font-size: .86rem; color: var(--c-text); }
.sidebar select, .sidebar input { max-width: 100%; }

/* ---------- Поиск ---------- */
.finder { margin: 1.4rem 0; }
.finder-label { display: block; margin-bottom: .45rem; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); }
.finder-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.finder-input { flex: 1 1 220px; min-width: 0; padding: .65rem .9rem; border: 2px solid var(--c-line); border-radius: 0; background: var(--c-deep); color: var(--c-text); font-family: var(--f-mono); font-size: .92rem; }
.finder-input::placeholder { color: var(--c-muted); }
.finder-input:focus { border-color: var(--c-tech); outline: none; }
.sidebar .finder-input { background: var(--c-bg); }

/* ---------- 404 ---------- */
.lost { max-width: 760px; padding: 2.6rem; background: var(--c-panel); border: 1px solid var(--c-line); border-top: 3px solid var(--c-accent); }
.lost-code { margin: 0 0 .5rem; font-family: var(--f-head); font-weight: 700; font-size: clamp(5rem, 16vw, 9rem); line-height: .9; color: transparent; -webkit-text-stroke: 2px var(--c-tech); }
.lost-text { color: var(--c-muted); }
.empty-block { padding: 1.6rem; background: var(--c-panel); border: 1px dashed var(--c-line); }
.empty-block .empty-state { border: 0; padding: 0; background: none; }
@media (max-width: 600px) { .lost { padding: 1.6rem 1.3rem; } }

/* ---------- Комментарии ---------- */
.remarks { margin-top: 2.4rem; padding: 2rem 2.2rem; background: var(--c-panel); border: 1px solid var(--c-line); }
.remarks-title, .comment-reply-title { font-family: var(--f-mono); font-size: 1.1rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 1.2rem; }
.comment-reply-title small { display: block; margin-top: .4rem; font-size: .76rem; text-transform: none; letter-spacing: 0; }
.remarks-list, .remarks-list .children { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.remarks-list .children { margin: 1rem 0 0 1.6rem; padding-left: 1rem; border-left: 1px dashed var(--c-line); }
.remarks-list > li { margin-bottom: 1rem; }
.note { padding: 1rem 1.2rem; background: var(--c-panel-2); border: 1px solid var(--c-line); }
.note-head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: .6rem; }
.note-head .avatar { width: 36px; height: 36px; border: 1px solid var(--c-tech); }
.note-author { font-weight: 700; }
.note-date { font-size: .72rem; color: var(--c-muted); }
.note-moderation { font-size: .8rem; color: var(--c-warn); }
.note-text { font-size: .9rem; }
.note-reply a { font-size: .78rem; }
.remarks-closed { color: var(--c-muted); }
.comment-form label { display: block; margin-bottom: .35rem; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; padding: .65rem .9rem; border: 2px solid var(--c-line); border-radius: 0; background: var(--c-deep); color: var(--c-text); font-family: var(--f-mono); font-size: .9rem;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--c-tech); outline: none; }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: .6rem; }
.comment-form-cookies-consent label { text-transform: none; letter-spacing: 0; margin: 0; }
.comment-notes, .logged-in-as, .must-log-in { font-size: .82rem; color: var(--c-muted); }
.form-submit .submit { padding: .65rem 1.4rem; border: 2px solid var(--c-accent); border-radius: 0; background: transparent; color: var(--c-accent); font-family: var(--f-mono); font-weight: 700; cursor: pointer; transition: background-color .15s, color .15s; }
.form-submit .submit:hover { background: var(--c-accent); color: var(--c-foot); }
.comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; font-size: .84rem; margin-bottom: 1.4rem; }
@media (max-width: 600px) { .remarks { padding: 1.4rem 1.2rem; } .remarks-list .children { margin-left: .6rem; } }

/* ---------- Подвал ---------- */
.basement { background: var(--c-foot); border-top: 1px solid var(--c-line); padding: 3.4rem 0 2rem; color: var(--c-text); }
.basement-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.basement-col { min-width: 0; }
.basement .widget { margin-bottom: 1.4rem; }
.basement .widget-title { font-family: var(--f-mono); font-size: 1rem; font-weight: 700; margin: 0 0 .9rem; color: var(--c-text); letter-spacing: .02em; }
.basement p, .basement .textwidget { font-size: .86rem; line-height: 1.65; color: var(--c-text); }
.basement ul { list-style: none; margin: 0; padding: 0; }
.basement li { margin-bottom: .3rem; font-size: .88rem; color: var(--c-text); }
.basement a { color: var(--c-tech); text-decoration: none; }
.basement a:hover { color: var(--c-accent); text-decoration: underline; }
.basement .post-date { display: block; font-size: .72rem; color: var(--c-muted); }
.basement-copy { margin: 2.2rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--c-line); font-size: .76rem; letter-spacing: .06em; color: var(--c-muted); }
@media (max-width: 960px) { .basement-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .basement-cols { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; } }

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.6rem; flex-wrap: wrap;
    max-width: 980px; margin-inline: auto;
    padding: 1.1rem 1.4rem;
    background: var(--c-panel-2);
    border: 1px solid var(--c-tech);
    border-top: 3px solid var(--c-accent);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .55);
    color: var(--c-text);
}
.cookie-text { margin: 0; flex: 1 1 320px; min-width: 0; font-size: .82rem; line-height: 1.55; color: var(--c-text); }
@media (max-width: 600px) { .cookie-banner { left: .6rem; right: .6rem; bottom: .6rem; padding: 1rem 1.1rem; } }

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