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

/* ---------- Шрифты ---------- */
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/rcond-cyrillic-400.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/rcond-latin-400.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+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/rcond-cyrillic-500.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/rcond-latin-500.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+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/rcond-cyrillic-700.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/rcond-latin-700.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+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/plex-cyrillic-400.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/plex-latin-400.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+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/plex-cyrillic-500.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/plex-latin-500.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+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/plex-cyrillic-600.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/plex-latin-600.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+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Переменные ---------- */
:root {
    --paper: #E8EDF0;
    --grid: #A9BCC7;
    --head: #1B3A57;
    --foot: #12283C;
    --ink: #1B3A57;
    --muted: #5C7484;
    --signal: #E2552B;
    --signal-dark: #C2431D;
    --pass: #2E7D6B;
    --pencil: #4A6B80;
    --sheet: #F4F7F8;
    --aside: #DCE4E9;
    --foot-text: #C9D5DE;
    --f-head: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    --f-text: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Сброс и база ---------- */
.cookie-banner[hidden] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--f-text);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        linear-gradient(rgba(169, 188, 199, .78) 1px, transparent 1px),
        linear-gradient(90deg, rgba(169, 188, 199, .78) 1px, transparent 1px),
        linear-gradient(rgba(169, 188, 199, .38) 1px, transparent 1px),
        linear-gradient(90deg, rgba(169, 188, 199, .38) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: -1px -1px;
}
img { max-width: 100%; height: auto; }
a { color: #1F5D8C; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--signal); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-head); font-weight: 500; line-height: 1.15; margin: 1.4em 0 .55em; color: var(--ink); letter-spacing: .02em; }
h1, h2, h3, h4, h5, h6, p, li, dd, dt, td, th, a, span, blockquote { overflow-wrap: break-word; }
p, li, dd, blockquote, .card-title, .wdg { hyphens: auto; }
.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: 12px; top: -60px; z-index: 100; background: var(--signal); color: #fff; padding: .6em 1em; text-decoration: none; font-family: var(--f-head); text-transform: uppercase; letter-spacing: .08em; }
.skip-link:focus { top: 12px; color: #fff; }

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

/* ---------- Кнопки ---------- */
.btn-mark, .entry input[type="submit"], .search-row button, .comment-form .btn-mark {
    display: inline-flex;
    align-items: center;
    gap: .7em;
    padding: .72em 1.25em .72em .95em;
    border: 4px double var(--ink);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-family: var(--f-head);
    font-weight: 500;
    font-size: .95rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .15s, color .15s, transform .15s;
}
.btn-mark::before {
    content: "";
    flex: 0 0 13px;
    width: 13px;
    height: 13px;
    border: 2px solid var(--pass);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.3l2.6 2.5L10 3' fill='none' stroke='%232E7D6B' stroke-width='2'/%3E%3C/svg%3E") center / 9px no-repeat;
}
.btn-mark:hover, .search-row button:hover { background: var(--ink); color: #fff; transform: translate(-2px, -2px); box-shadow: 2px 2px 0 var(--signal); }
.btn-mark:hover::before { border-color: #8FD3BF; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.3l2.6 2.5L10 3' fill='none' stroke='%238FD3BF' stroke-width='2'/%3E%3C/svg%3E"); }

/* ---------- Шапка ---------- */
.site-header { background: var(--head); color: #fff; position: relative; }
.site-header .shell { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.15rem 0; }
.brand { display: flex; align-items: center; gap: 1rem; min-width: 0; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark { flex: 0 0 auto; width: 74px; height: 58px; display: block; }
.brand-logo { flex: 0 0 auto; display: block; max-height: 64px; width: auto; }
.brand-text { min-width: 0; max-width: 40rem; }
.brand-name { display: block; font-family: var(--f-head); font-weight: 500; font-size: 1.12rem; line-height: 1.25; letter-spacing: .05em; text-transform: uppercase; color: #fff; }
.brand-desc { display: block; margin-top: .35rem; font-size: .76rem; line-height: 1.45; color: rgba(255, 255, 255, .72); letter-spacing: .02em; }
.main-nav { flex: 0 0 auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2.1rem; }
.main-nav a { font-family: var(--f-head); font-size: 1.12rem; letter-spacing: .07em; text-transform: uppercase; color: #fff; text-decoration: none; padding: .3em 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.main-nav a:hover, .main-nav .current-menu-item > a { border-bottom-color: var(--signal); color: #fff; }
.nav-toggle { display: none; background: transparent; border: 1.5px solid rgba(255, 255, 255, .7); color: #fff; font-family: var(--f-head); letter-spacing: .1em; text-transform: uppercase; padding: .5em .9em; cursor: pointer; }
.nav-toggle-bars { display: inline-block; width: 18px; height: 12px; margin-right: .55em; vertical-align: -1px; background: linear-gradient(#fff, #fff) top / 100% 2px no-repeat, linear-gradient(#fff, #fff) center / 100% 2px no-repeat, linear-gradient(#fff, #fff) bottom / 100% 2px no-repeat; }

/* Размерная линейка под шапкой */
.ruler { display: flex; margin-top: 1.1rem; height: 26px; color: var(--pencil); font-family: var(--f-head); font-size: .7rem; letter-spacing: .06em; }
.ruler span { position: relative; flex: 1 1 0; text-align: center; border-bottom: 1px solid var(--pencil); line-height: 18px; }
.ruler span::before, .ruler span::after { content: ""; position: absolute; bottom: -4px; width: 1px; height: 12px; background: var(--pencil); }
.ruler span::before { left: 0; }
.ruler span::after { right: 0; }
.ruler span:nth-child(1) { flex-grow: 3.2; }
.ruler span:nth-child(5) { flex-grow: 1.4; }
.ruler span:last-child { flex-grow: 2.6; }

/* ---------- Хлебные крошки ---------- */
.crumbs { margin: 1.6rem 0 1.2rem; font-family: var(--f-head); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; border-bottom: 1px solid rgba(92, 116, 132, .45); }
.crumbs a:hover { color: var(--signal); border-color: var(--signal); }
.crumbs-sep { margin: 0 .35em; color: var(--signal); }
.crumbs-current { color: var(--ink); }

/* ---------- Главная: рамка-чертёж ---------- */
.plan-sheet { position: relative; margin: 1rem 0 3.5rem; padding: 2.6rem 2.4rem 3rem; border: 1.5px solid var(--pencil); }
.plan-sheet::before {
    content: "";
    position: absolute;
    left: -24px; top: 0; bottom: 0;
    width: 9px;
    border-left: 1px solid var(--pencil);
    background:
        linear-gradient(135deg, transparent 45%, var(--pencil) 46% 54%, transparent 55%) left top / 9px 9px no-repeat,
        linear-gradient(45deg, transparent 45%, var(--pencil) 46% 54%, transparent 55%) left bottom / 9px 9px no-repeat;
}
.plan-sheet::after {
    content: "";
    position: absolute;
    right: 3%; top: 32%;
    width: 46%; height: 520px;
    pointer-events: none;
    opacity: .16;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 520' fill='none' stroke='%234A6B80' stroke-width='3'%3E%3Cpath d='M10 10h580v500H10z'/%3E%3Cpath d='M10 200h250v310M260 10v120M260 200h330M420 200v310M420 360h170M120 200v-60M260 330h160'/%3E%3Cpath d='M180 200a40 40 0 0 1 40-40M300 200a40 40 0 0 0 40 40M420 300a40 40 0 0 1 40 40' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plan-sheet > * { position: relative; z-index: 1; }

.fp-sec { padding: 1.2rem 0 1.4rem; }
.dimline { position: relative; display: flex; align-items: center; justify-content: center; height: 34px; margin: 1.6rem 0; color: var(--muted); font-family: var(--f-head); font-size: .72rem; letter-spacing: .1em; }
.dimline::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--pencil); }
.dimline span { position: relative; background: var(--paper); padding: 0 .7em; }
.dimline i { position: absolute; top: 50%; width: 0; height: 0; margin-top: -4px; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.dimline i:first-child { left: 0; border-right: 9px solid var(--pencil); }
.dimline i:last-child { right: 0; border-left: 9px solid var(--pencil); }

.sec-head { margin: 0 0 1.4rem; }
.sec-title {
    display: inline-block;
    margin: 0;
    padding: .12em .35em .08em 0;
    background: var(--paper);
    font-family: var(--f-head);
    font-weight: 500;
    font-size: clamp(2rem, 4.7vw, 4.3rem);
    line-height: 1.02;
    letter-spacing: .035em;
    text-transform: uppercase;
    color: var(--ink);
    border-bottom: 1px solid var(--ink);
}
.sec-num { color: var(--ink); }
.sec-num b { font-weight: 500; color: var(--signal); margin: 0 .12em; }
.sec-sub { display: inline-block; margin: .8rem 0 0; padding: .1em .3em .1em 0; background: var(--paper); font-family: var(--f-head); font-size: 1.35rem; letter-spacing: .08em; text-transform: uppercase; }
.sec-lead { max-width: 36rem; color: var(--muted); background: rgba(232, 237, 240, .88); padding: .2em 0; }

/* Блок 01 — проверка по нормативам */
.audit { display: grid; grid-template-columns: minmax(0, 30fr) minmax(0, 43fr) minmax(0, 27fr); gap: 2rem; align-items: start; }
.audit-intro { min-width: 0; }
.audit-intro .sec-title { font-size: clamp(2rem, 3.9vw, 3.7rem); }
.audit-fig { position: relative; margin: 0; min-width: 0; padding-right: 22%; }
.audit-fig img { display: block; width: 100%; height: auto; aspect-ratio: 848 / 728; }
.audit-fig ul { list-style: none; margin: 0; padding: 0; }
.audit-fig li {
    position: absolute;
    left: 78%;
    right: 0;
    transform: translateY(-50%);
    padding: .05em .2em .1em .45em;
    font-family: var(--f-head);
    font-size: clamp(.62rem, 1vw, .82rem);
    letter-spacing: .06em;
    line-height: 1.15;
    text-transform: uppercase;
    background: var(--paper);
    border-bottom: 1px solid var(--pencil);
}
.audit-fig figcaption { margin-top: .5rem; font-family: var(--f-head); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.checklist { list-style: none; margin: 0; padding: 1.3rem 1.3rem 1.1rem; background: rgba(244, 247, 248, .9); border: 1px solid rgba(74, 107, 128, .35); min-width: 0; }
.checklist li { display: flex; align-items: flex-start; gap: .75em; margin: 0 0 .85em; font-family: var(--f-head); font-size: 1.06rem; line-height: 1.25; letter-spacing: .05em; text-transform: uppercase; }
.checklist li:last-child { margin-bottom: 0; }
.checklist li::before {
    content: "";
    flex: 0 0 24px;
    height: 24px;
    margin-top: -2px;
    border: 2.5px solid var(--pass);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L21 4' fill='none' stroke='%232E7D6B' stroke-width='3.4' stroke-linecap='square'/%3E%3C/svg%3E") 3px -3px / 22px no-repeat;
}

/* Блок 02 — карта города */
.geo { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 1.4rem; align-items: stretch; }
.geo-map { position: relative; margin: 0; min-width: 0; border-bottom: 1.5px solid var(--pencil); }
.geo-canvas { position: relative; }
.geo-map img { display: block; width: 100%; height: auto; aspect-ratio: 1576 / 964; }
.pin { position: absolute; width: 4.4%; aspect-ratio: 1; min-width: 16px; background: var(--signal); transform: translate(-50%, -50%); box-shadow: 0 0 0 3px rgba(226, 85, 43, .18); }
.pin-label {
    position: absolute;
    left: calc(100% + 12px);
    bottom: 55%;
    padding: .35em .7em;
    background: #fff;
    border: 1.5px solid var(--ink);
    font-family: var(--f-head);
    font-size: clamp(.62rem, 1.15vw, 1rem);
    letter-spacing: .05em;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--ink);
}
.pin-label::before { content: ""; position: absolute; left: -9px; bottom: 6px; width: 9px; height: 1.5px; background: var(--ink); }
.geo-map figcaption { position: absolute; left: 0; bottom: .6rem; max-width: 42%; padding: .45rem .7rem; background: rgba(244, 247, 248, .92); border: 1px solid rgba(74, 107, 128, .4); font-size: .8rem; line-height: 1.45; color: var(--muted); }
.districts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 1fr 1fr; border: 1.5px solid var(--pencil); background: rgba(244, 247, 248, .75); }
.districts li { display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--pencil); border-bottom: 1px solid var(--pencil); padding: .6rem 0; font-family: var(--f-head); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.districts li:nth-child(3n + 1) { border-right: 0; }
.districts li:nth-child(n + 4) { border-bottom: 0; }
.districts b { font-weight: 500; color: var(--signal); }

/* Блок 03 — последние записи */
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.posts-more { margin-top: 2rem; text-align: center; }
.empty-note { padding: 1.4rem; background: var(--sheet); border: 1.5px dashed var(--pencil); color: var(--muted); }

/* Карточка записи */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    padding: 14px;
    background: var(--sheet);
    border: 1.5px solid var(--pencil);
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--signal); border-color: var(--ink); }
.card-thumb { position: relative; display: block; border: 1px solid var(--pencil); background: #fff; }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.card-code { position: absolute; top: -1px; right: -1px; padding: .2em .65em .25em; background: var(--sheet); border-left: 1.5px solid var(--pencil); border-bottom: 1.5px solid var(--pencil); font-family: var(--f-head); font-size: 1.05rem; letter-spacing: .06em; color: var(--ink); }
.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 1rem .25rem .2rem; }
.card-title { margin: 0 0 .5rem; font-family: var(--f-head); font-weight: 500; font-size: 1.32rem; line-height: 1.18; letter-spacing: .04em; text-transform: uppercase; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--signal); }
.card-excerpt { color: #33505F; font-size: .95rem; line-height: 1.6; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-foot { margin-top: auto; padding-top: .8rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px dashed rgba(74, 107, 128, .5); }
.card-date { font-family: var(--f-head); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card-more { font-family: var(--f-head); font-size: .86rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); text-decoration: none; border: 1.5px solid var(--ink); padding: .3em .7em; }
.card-more:hover { background: var(--ink); color: #fff; }
.sticky-tag { display: inline-block; margin-bottom: .45rem; padding: .1em .5em; background: var(--signal); color: #fff; font-family: var(--f-head); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; align-self: flex-start; }

/* Блок 04 — паспорт объекта */
.passport { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); border: 1.5px solid var(--pencil); background: var(--sheet); }
.passport > * { min-width: 0; }
.passport-photo { margin: 0; padding: 1rem; border-right: 1.5px solid var(--pencil); }
.passport-photo img { display: block; width: 100%; height: 100%; min-height: 220px; aspect-ratio: 812 / 504; object-fit: cover; }
.passport-specs { margin: 0; border-right: 1.5px solid var(--pencil); display: flex; flex-direction: column; }
.passport-specs div { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .8rem; align-items: center; padding: .55rem 1.2rem; border-bottom: 1.5px solid var(--pencil); font-family: var(--f-head); font-size: 1.25rem; letter-spacing: .05em; text-transform: uppercase; }
.passport-specs div:last-child { border-bottom: 0; }
.passport-specs dt, .passport-specs dd { margin: 0; }
.passport-specs dt { color: var(--muted); }
.passport-stamps { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.8rem; padding: 1.8rem 1.4rem; }
.stamp {
    display: inline-block;
    padding: .3em .7em;
    border: 5px double currentColor;
    font-family: var(--f-head);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1.05;
    text-align: center;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 2.05'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 2.05'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.stamp-ok { color: var(--pass); font-size: clamp(1.7rem, 3vw, 2.9rem); transform: rotate(-7deg); }
.stamp-fix { color: var(--signal); font-size: clamp(1.05rem, 1.9vw, 1.8rem); transform: rotate(-7deg); }
.passport-note { margin: 0; font-size: .82rem; line-height: 1.5; color: var(--muted); text-align: center; }

/* Блок 05 — этапы сделки */
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1.5px solid var(--pencil); background: rgba(244, 247, 248, .7); }
.stages li { position: relative; min-width: 0; padding: 1.3rem 1.5rem 1.2rem 1.1rem; border-right: 1.5px solid var(--pencil); outline: 1px solid rgba(74, 107, 128, .55); outline-offset: -7px; }
.stages li:last-child { border-right: 0; }
.stages li::after { content: "→"; position: absolute; right: .45rem; top: 1.25rem; font-family: var(--f-head); font-size: 1.4rem; line-height: 1; color: var(--pencil); }
.stages li:last-child::after { content: "■"; font-size: .8rem; top: 1.6rem; color: var(--signal); }
.stage-name { display: block; font-family: var(--f-head); font-weight: 500; font-size: clamp(1.25rem, 2.2vw, 2rem); letter-spacing: .04em; text-transform: uppercase; line-height: 1.1; }
.stage-name b { font-weight: 500; color: var(--signal); }
.stage-text { display: block; margin-top: .6rem; font-size: .86rem; line-height: 1.5; color: var(--muted); }
.stages-foot { margin: 1rem 0 0; font-family: var(--f-head); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: rgba(232, 237, 240, .9); display: inline-block; padding: .1em .3em .1em 0; }

/* ---------- Внутренние страницы ---------- */
.inner-wrap { padding-bottom: 3.5rem; }
.layout-single { display: block; }
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); gap: 6%; align-items: start; }
.content-area { min-width: 0; }
.page-head { margin: 0 0 1.6rem; }
.page-title { display: inline-block; margin: 0; padding: .1em .35em .06em 0; background: var(--paper); font-family: var(--f-head); font-weight: 500; font-size: clamp(1.9rem, 3.8vw, 3.2rem); line-height: 1.08; letter-spacing: .03em; text-transform: uppercase; border-bottom: 1px solid var(--ink); }
.page-title .sec-num b { color: var(--signal); }
.page-intro { margin: .9rem 0 0; color: var(--muted); max-width: 44rem; background: rgba(232, 237, 240, .9); }
.list-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.layout-single .list-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.sheet { position: relative; background: var(--sheet); border: 1.5px solid var(--pencil); padding: 2.2rem 2.4rem 2.4rem; }
.sheet::before { content: ""; position: absolute; top: 8px; left: 8px; right: 8px; bottom: 8px; border: 1px solid rgba(74, 107, 128, .25); pointer-events: none; }
.sheet > * { position: relative; }
.entry-title { margin: 0 0 .7rem; font-family: var(--f-head); font-weight: 500; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.1; letter-spacing: .03em; text-transform: uppercase; }
.entry-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 0 0 1.4rem; padding-bottom: .9rem; border-bottom: 1px dashed var(--pencil); font-family: var(--f-head); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.entry-meta a { color: var(--muted); }
.entry-cover { margin: 0 0 1.6rem; border: 1px solid var(--pencil); }
.entry-cover img { display: block; width: 100%; height: auto; }
.entry { font-size: 1.02rem; }
.entry h2 { font-size: 1.85rem; text-transform: uppercase; letter-spacing: .04em; padding-bottom: .2em; border-bottom: 1px solid var(--pencil); }
.entry h3 { font-size: 1.45rem; }
.entry h4 { font-size: 1.2rem; }
.entry ul, .entry ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.entry li { margin-bottom: .35em; }
.entry ul li::marker { color: var(--signal); }
.entry ol li::marker { color: var(--signal); font-family: var(--f-head); font-weight: 500; }
.entry blockquote { margin: 1.6em 0; padding: 1.1em 1.4em 1.1em 1.5em; background: #E3EAEE; border-left: 5px solid var(--signal); font-family: var(--f-head); font-size: 1.22rem; letter-spacing: .02em; line-height: 1.45; }
.entry blockquote p:last-child { margin-bottom: 0; }
.entry table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; border: 1.5px solid var(--pencil); }
.entry th, .entry td { border: 1px solid var(--pencil); padding: .55em .8em; text-align: left; vertical-align: top; }
.entry th { background: #E3EAEE; font-family: var(--f-head); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.entry img { display: block; height: auto; }
.entry figure { margin: 1.6em 0; }
.entry figcaption { font-size: .82rem; color: var(--muted); margin-top: .4em; }
.entry pre { overflow-x: auto; background: var(--head); color: #E8EDF0; padding: 1em 1.2em; font-size: .88rem; }
.entry hr { border: 0; border-top: 1px dashed var(--pencil); margin: 2em 0; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.entry-tags { margin-top: 1.8rem; font-family: var(--f-head); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.entry-tags a { display: inline-block; margin: 0 .35em .35em 0; padding: .15em .6em; border: 1px solid var(--pencil); text-decoration: none; color: var(--ink); }
.entry-tags a:hover { border-color: var(--signal); color: var(--signal); }
.page-links { margin-top: 1.4rem; font-family: var(--f-head); letter-spacing: .08em; }

.post-nav { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; margin-top: 2rem; }
.post-nav a { display: block; padding: .9rem 1.1rem; background: var(--sheet); border: 1.5px solid var(--pencil); text-decoration: none; color: var(--ink); font-family: var(--f-head); letter-spacing: .04em; line-height: 1.3; }
.post-nav a:hover { border-color: var(--signal); }
.post-nav small { display: block; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-size: .74rem; margin-bottom: .25rem; }
.post-nav .next { text-align: right; grid-column: 2; }

/* ---------- Сайдбар ---------- */
.sidebar { min-width: 0; padding: 1.5rem 1.4rem; background: var(--aside); border: 1.5px solid var(--pencil); color: var(--ink); }
.sidebar .wdg { margin-bottom: 1.8rem; }
.sidebar .wdg:last-child { margin-bottom: 0; }
.sidebar .wdg-title { margin: 0 0 .9rem; padding-bottom: .35rem; border-bottom: 1px solid var(--ink); font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .5em 0; border-bottom: 1px dashed rgba(74, 107, 128, .5); color: var(--ink); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--ink); text-decoration: none; }
.sidebar a:hover { color: var(--signal); }
.sidebar .post-date, .sidebar .rss-date { display: block; font-size: .78rem; color: var(--muted); }
.sidebar p, .sidebar .textwidget { color: var(--ink); font-size: .94rem; }

/* ---------- Пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: 2.2rem; }
.pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.6em; height: 2.6em; padding: 0 .75em; border: 1.5px solid var(--pencil); background: var(--sheet); color: var(--ink); font-family: var(--f-head); font-size: 1rem; letter-spacing: .06em; text-decoration: none; }
.pager a.page-numbers:hover { border-color: var(--signal); color: var(--signal); }
.pager .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; padding: 0 .2em; }
.pager .prev, .pager .next { text-transform: uppercase; letter-spacing: .1em; font-size: .88rem; }

/* ---------- Поиск ---------- */
.search-row { display: flex; gap: .5rem; max-width: 34rem; }
.search-row input[type="search"] { flex: 1; min-width: 0; padding: .7em .9em; border: 1.5px solid var(--pencil); background: #fff; color: var(--ink); font: inherit; border-radius: 0; }
.search-row button { padding: .6em 1.1em; }
.sidebar .search-row button { padding: .5em .7em; letter-spacing: .06em; }

/* ---------- 404 ---------- */
.nf { text-align: left; }
.nf-code { display: block; font-family: var(--f-head); font-weight: 700; font-size: clamp(5rem, 16vw, 11rem); line-height: .9; color: var(--ink); letter-spacing: .02em; }
.nf .stamp { margin: 1rem 0 1.4rem; color: var(--signal); font-size: 1.6rem; transform: rotate(-4deg); }
.nf p { max-width: 36rem; }
.nf .search-row { margin: 1.4rem 0; }

/* ---------- Комментарии ---------- */
.comments { margin-top: 2.2rem; }
.comments-title, .comment-reply-title { font-family: var(--f-head); font-weight: 500; font-size: 1.5rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 1rem; }
.comment-reply-title small { margin-left: .8em; font-size: .8rem; }
.remarks, .remarks .children { list-style: none; margin: 0; padding: 0; }
.remarks .children { margin-left: 1.8rem; }
.remark-body { margin-bottom: 1rem; padding: 1rem 1.2rem; background: var(--sheet); border: 1px solid var(--pencil); border-left: 4px solid var(--pencil); }
.remark-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .5rem; }
.remark-head img { display: block; border: 1px solid var(--pencil); }
.remark-author { display: block; font-family: var(--f-head); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.remark-meta time { font-size: .8rem; color: var(--muted); }
.remark-wait { color: var(--signal); font-size: .88rem; }
.remark-reply a { font-family: var(--f-head); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.comment-respond { margin-top: 1.8rem; padding: 1.4rem 1.5rem; background: var(--sheet); border: 1.5px solid var(--pencil); }
.cf-row { margin: 0 0 1rem; }
.cf-row label { display: block; margin-bottom: .3rem; font-family: var(--f-head); letter-spacing: .08em; text-transform: uppercase; font-size: .86rem; }
.cf-row input, .cf-row textarea { width: 100%; padding: .65em .8em; border: 1.5px solid var(--pencil); background: #fff; color: var(--ink); font: inherit; border-radius: 0; }
.cf-check { display: flex; gap: .6em; align-items: flex-start; font-size: .88rem; }
.cf-check input { margin-top: .35em; }
.cf-note { font-size: .86rem; color: var(--muted); }
.req { color: var(--signal); }
.comment-nav { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0; font-family: var(--f-head); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--foot); color: var(--foot-text); padding: 3rem 0 1.4rem; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.foot-col { min-width: 0; }
.site-footer .wdg { margin-bottom: 1.4rem; color: var(--foot-text); font-size: .94rem; }
.site-footer .wdg-title { margin: 0 0 .8rem; font-size: 1.6rem; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.site-footer .wdg p, .site-footer .textwidget { color: var(--foot-text); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 .25em; }
.site-footer a { color: #E4ECF2; text-decoration: none; }
.site-footer .widget_nav_menu a { font-family: var(--f-head); font-size: 1.05rem; letter-spacing: .07em; text-transform: uppercase; }
.site-footer a:hover { color: #FF8A63; }
.site-footer .post-date { display: block; font-size: .78rem; color: #93A8B8; }
.foot-bottom { margin-top: 1.8rem; padding-top: 1.1rem; border-top: 1px solid rgba(201, 213, 222, .35); text-align: center; font-family: var(--f-head); font-size: .9rem; letter-spacing: .08em; color: #AFC0CD; }

/* ---------- Cookie-баннер ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; display: flex; align-items: center; gap: 1.2rem; max-width: 760px; margin-inline: auto; padding: 1rem 1.2rem; background: var(--head); color: #E8EDF0; border: 4px double #8FB0C7; box-shadow: 6px 6px 0 rgba(18, 40, 60, .35); }
.cookie-banner p { margin: 0; flex: 1; min-width: 0; font-size: .9rem; line-height: 1.5; color: #E8EDF0; }
.cookie-banner a { color: #FFB59D; }
.cookie-accept { flex: 0 0 auto; padding: .6em 1.2em; background: var(--signal); color: #fff; border: 2px solid #fff; font-family: var(--f-head); font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; border-radius: 0; }
.cookie-accept:hover { background: var(--signal-dark); }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
    .main-nav ul { gap: 1.4rem; }
    .main-nav a { font-size: 1rem; }
    .audit { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .audit-intro { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
    .site-header .shell { flex-wrap: wrap; gap: 1rem; }
    .nav-toggle { display: inline-flex; align-items: center; }
    .main-nav { flex: 1 1 100%; display: none; }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; padding: .4rem 0 .6rem; border-top: 1px solid rgba(255, 255, 255, .25); }
    .main-nav a { display: block; padding: .6em 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
    .plan-sheet { padding: 2rem 1.6rem 2.4rem; }
    .plan-sheet::before { display: none; }
    .audit { grid-template-columns: minmax(0, 1fr); }
    .geo { grid-template-columns: minmax(0, 1fr); }
    .districts { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
    .districts li { writing-mode: horizontal-tb; transform: none; white-space: normal; justify-content: flex-start; padding: .55rem .8rem; border-right: 1px solid var(--pencil); border-bottom: 1px solid var(--pencil); }
    .districts li:nth-child(3n + 1) { border-right: 1px solid var(--pencil); }
    .districts li:nth-child(2n) { border-right: 0; }
    .districts li:nth-child(n + 4) { border-bottom: 1px solid var(--pencil); }
    .districts li:nth-child(n + 5) { border-bottom: 0; }
    .geo-map figcaption { position: static; max-width: none; margin-top: .6rem; border: 0; background: none; padding: 0 0 .6rem; }
    .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .passport { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .passport-photo { grid-column: 1 / -1; border-right: 0; border-bottom: 1.5px solid var(--pencil); }
    .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stages li { border-bottom: 1.5px solid var(--pencil); }
    .stages li:nth-child(2n) { border-right: 0; }
    .stages li:last-child { grid-column: 1 / -1; border-bottom: 0; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .layout-single .list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .foot-col:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .shell { width: 92%; }
    body { font-size: 15px; }
    .brand-mark { width: 54px; height: 44px; }
    .brand-name { font-size: .95rem; }
    .brand-desc { font-size: .7rem; }
    .ruler { display: none; }
    .plan-sheet { padding: 1.4rem 1.1rem 1.8rem; margin-top: 1.2rem; }
    .plan-sheet::after { display: none; }
    .sec-title { font-size: clamp(1.7rem, 8.4vw, 2.4rem); }
    .audit-intro .sec-title { font-size: clamp(1.7rem, 8.4vw, 2.4rem); }
    .audit-fig { padding-right: 26%; }
    .audit-fig li { left: 74%; }
    .checklist li { font-size: .95rem; }
    .pin-label::before { display: none; }
    .pin-label { left: calc(100% + 4px); padding: .2em .4em; border-width: 1px; }
    .districts { grid-template-columns: minmax(0, 1fr); }
    .districts li, .districts li:nth-child(3n + 1), .districts li:nth-child(n + 4) { border-right: 0; border-bottom: 1px solid var(--pencil); }
    .districts li:last-child { border-bottom: 0; }
    .posts-grid, .list-grid, .layout-single .list-grid { grid-template-columns: minmax(0, 1fr); }
    .passport { grid-template-columns: minmax(0, 1fr); }
    .passport-specs { border-right: 0; border-bottom: 1.5px solid var(--pencil); }
    .passport-specs div { font-size: 1.05rem; padding: .55rem 1rem; }
    .stages { grid-template-columns: minmax(0, 1fr); }
    .stages li, .stages li:nth-child(2n) { border-right: 0; border-bottom: 1.5px solid var(--pencil); }
    .sheet { padding: 1.4rem 1.1rem 1.6rem; }
    .sheet::before { display: none; }
    .sidebar { padding: 1.2rem 1rem; }
    .post-nav { grid-template-columns: minmax(0, 1fr); }
    .post-nav .next { grid-column: auto; }
    .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
    .cookie-banner { flex-direction: column; align-items: stretch; left: 10px; right: 10px; bottom: 10px; padding: .9rem 1rem; }
    .alignleft, .alignright { float: none; margin: 1em 0; }
    .remarks .children { margin-left: .8rem; }
    .search-row { flex-direction: column; }
}
