/*
Theme Name: dds_extreme58.ru
Theme URI: https://extreme58.ru/
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: garplan
*/

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

/* ---------- Переменные ---------- */
:root {
    --blue: #123A63;
    --grid: #2E5A8A;
    --field: #1B4B7D;
    --field-2: #24568C;
    --head: #0E2E4F;
    --deep: #0B2540;
    --text: #F2F6FA;
    --muted: #9FB8D0;
    --sun: #F2C230;
    --rust: #E2662E;
    --line: #4A7BB0;
    --white: #FFFFFF;
    --f-head: "Oswald", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
    --f-body: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
    --f-mono: "IBM Plex Mono", "Courier New", monospace;
}

/* ---------- Скрытие по атрибуту hidden ---------- */
.cookie-banner[hidden] { display: none !important; }
.topnav[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-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--blue);
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px),
        linear-gradient(rgba(46, 90, 138, 0.38) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 90, 138, 0.38) 1px, transparent 1px);
    background-size: 60px 60px, 60px 60px, 12px 12px, 12px 12px;
    background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
}
img { max-width: 100%; height: auto; }
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--sun); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .15s, text-decoration-color .15s; }
a:hover { color: var(--sun); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px dashed var(--sun); outline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-head); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; color: var(--white); overflow-wrap: break-word; hyphens: auto; }
p, li, td, th, dd, dt, blockquote, figcaption { overflow-wrap: break-word; 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-to { position: absolute; left: 1rem; top: -100px; z-index: 100; padding: .6rem 1rem; background: var(--sun); color: var(--deep); font-family: var(--f-head); text-transform: uppercase; text-decoration: none; }
.skip-to:focus { top: 1rem; }

/* ---------- Каркас ---------- */
.sheet {
    margin: 14px;
    border: 1px solid rgba(242, 246, 250, 0.55);
    min-height: calc(100vh - 28px);
    display: flex;
    flex-direction: column;
}
.site-main { flex: 1 0 auto; }
.shell { width: min(92%, 1240px); margin-left: auto; margin-right: auto; }
.front-shell { width: min(85%, 1240px); }

/* ---------- Кнопки ---------- */
.btn-plate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4em;
    padding: .62em 1.35em;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: .95rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .08em;
    text-decoration: none;
    color: var(--deep);
    background: var(--sun);
    border: 1px solid var(--white);
    border-radius: 0;
    box-shadow: 0 0 0 3px var(--deep), 0 0 0 4px var(--white);
    margin: 4px;
    cursor: pointer;
    transition: background-color .12s, color .12s, transform .12s;
}
.btn-plate:hover { background: var(--white); color: var(--deep); transform: translate(2px, -2px); }
.btn-plate:active { transform: translate(0, 1px); }
.btn-small { font-size: .82rem; padding: .5em 1em; }
.btn-ghost { background: transparent; color: var(--sun); border-color: var(--sun); box-shadow: 0 0 0 3px var(--blue), 0 0 0 4px var(--sun); }
.btn-ghost:hover { background: var(--sun); color: var(--deep); }

/* ---------- Шапка ---------- */
.masthead {
    background: var(--head);
    border-bottom: 1px solid var(--white);
    box-shadow: 0 4px 0 -2px var(--head), 0 5px 0 -2px rgba(242, 246, 250, .35);
    position: relative;
}
.masthead-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.1rem 0;
}
.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--text); min-width: 0; flex: 1 1 auto; max-width: 640px; }
.brand:hover { color: var(--text); }
.brand-mark { flex: 0 0 auto; display: block; line-height: 0; }
.brand-svg, .brand-logo { display: block; width: 56px; height: 56px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
    font-family: var(--f-head);
    font-weight: 500;
    font-size: clamp(.98rem, .6vw + .8rem, 1.2rem);
    line-height: 1.22;
    letter-spacing: .02em;
    color: var(--white);
}
.brand-desc {
    margin-top: .3rem;
    font-size: .8rem;
    line-height: 1.35;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.topnav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.topnav-list li { position: relative; }
.topnav-list li + li { border-left: 1px solid rgba(242, 246, 250, .7); }
.topnav-list a {
    display: block;
    padding: .35rem 1.1rem;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: .98rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--white);
    white-space: nowrap;
}
.topnav-list a::after { content: ""; display: block; height: 2px; margin-top: 4px; background: var(--sun); transform: scaleX(0); transform-origin: left; transition: transform .15s; }
.topnav-list a:hover { color: var(--sun); }
.topnav-list a:hover::after, .topnav-list .current-menu-item > a::after, .topnav-list .current_page_item > a::after { transform: scaleX(1); }
.topnav-toggle { display: none; }

/* ---------- Заголовки секций ---------- */
.plate { padding: 4.2rem 0 1.5rem; position: relative; }
.plate-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.2rem 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.plate-title {
    margin: 0;
    font-size: clamp(1.6rem, 2.4vw + .7rem, 2.6rem);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 500;
    padding-bottom: .35rem;
    border-bottom: 1px solid var(--white);
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    min-width: 0;
}
.plate-num {
    flex: 0 0 auto;
    display: inline-block;
    font-family: var(--f-mono);
    font-weight: 500;
    font-size: .48em;
    letter-spacing: .05em;
    color: var(--sun);
    border: 2px solid var(--sun);
    padding: .15em .4em;
    transform: rotate(-4deg);
    line-height: 1.2;
}
.plate-scale { font-family: var(--f-head); font-size: clamp(1rem, .6vw + .8rem, 1.35rem); letter-spacing: .06em; text-transform: uppercase; color: var(--white); padding-bottom: .4rem; }
.plate-head-line { flex-wrap: nowrap; align-items: center; }
.plate-leader { flex: 1 1 auto; height: 1px; background: var(--white); position: relative; min-width: 2rem; margin-top: 1rem; }
.plate-leader::after { content: ""; position: absolute; right: 0; top: 0; width: 1px; height: 54px; background: var(--white); }
.plate-leader::before { content: ""; position: absolute; right: -5px; top: 46px; border: 5px solid transparent; border-top: 8px solid var(--white); border-bottom: 0; }

/* ---------- Блок 1: генплан ---------- */
.genplan-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 280px); gap: 2rem; align-items: start; }
.genplan-figure { margin: 0; min-width: 0; }
.genplan-canvas { position: relative; border: 1px solid var(--line); padding: 8px; background: rgba(11, 37, 64, .35); }
.genplan-canvas img { display: block; width: 100%; height: auto; aspect-ratio: 1864 / 848; object-fit: cover; }
.gp-tag {
    position: absolute;
    transform: translate(-50%, -50%);
    font-family: var(--f-head);
    font-weight: 500;
    font-size: clamp(7px, .85vw, 12.5px);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--white);
    background: #163f6d;
    padding: .1em .45em;
    line-height: 1.3;
    white-space: nowrap;
}
.gp-tag-v { transform: translate(-50%, -50%) rotate(-90deg); }
.gp-tag-gate { color: var(--sun); }
.genplan-caption { margin-top: .8rem; font-family: var(--f-mono); font-size: .82rem; color: var(--muted); }
.genplan-legend { background: var(--field); border: 1px solid var(--white); padding: 1.4rem 1.4rem 7.4rem; position: relative; min-width: 0; overflow: hidden; }
.legend-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 500; padding-bottom: .5rem; border-bottom: 1px dashed var(--line); }
.legend-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.legend-list li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: .8rem; align-items: start; padding: .55rem 0; font-size: .92rem; color: var(--muted); }
.legend-list li b { display: block; color: var(--white); font-family: var(--f-head); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; font-size: .95rem; }
.legend-swatch { width: 38px; height: 24px; display: block; border: 1.5px solid var(--white); margin-top: .2rem; }
.swatch-sale { background: var(--sun); }
.swatch-rent { background: repeating-linear-gradient(45deg, var(--rust) 0 2px, transparent 2px 6px); border-color: var(--rust); }
.swatch-free { background: transparent; }
.legend-note { font-size: .85rem; color: var(--muted); margin: 0; position: relative; z-index: 1; }
.stamp { color: var(--sun); opacity: .45; display: block; }
.genplan-legend .stamp { position: absolute; right: 14px; bottom: 12px; width: 96px; height: 96px; transform: rotate(-14deg); pointer-events: none; }

/* ---------- Блок 2: разрез ---------- */
.cut-layout { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); gap: 2.2rem; align-items: start; }
.cut-figure { margin: 0; min-width: 0; }
.cut-canvas { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; }
.cut-canvas img { display: block; width: 100%; height: auto; aspect-ratio: 1776 / 804; object-fit: cover; }
.cut-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    width: clamp(18px, 2vw, 28px);
    height: clamp(18px, 2vw, 28px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-mono);
    font-weight: 500;
    font-size: clamp(10px, 1vw, 14px);
    color: var(--deep);
    background: var(--sun);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 2px var(--blue);
    cursor: default;
}
.cut-spec { background: var(--field); border: 1px solid var(--white); padding: 1.4rem 1.5rem; min-width: 0; }
.cut-spec-title { font-size: 1.05rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; padding-bottom: .5rem; border-bottom: 1px dashed var(--line); }
.cut-list { list-style: none; counter-reset: cut; margin: 0; padding: 0; }
.cut-list li { counter-increment: cut; position: relative; padding: .45rem 0 .45rem 2.3rem; font-size: .93rem; color: var(--muted); border-bottom: 1px solid rgba(74, 123, 176, .45); }
.cut-list li:last-child { border-bottom: 0; }
.cut-list li::before { content: counter(cut); position: absolute; left: 0; top: .5rem; width: 1.55rem; height: 1.55rem; border-radius: 50%; background: var(--sun); color: var(--deep); font-family: var(--f-mono); font-weight: 500; font-size: .8rem; display: flex; align-items: center; justify-content: center; }
.cut-list b { color: var(--white); font-weight: 700; }

/* ---------- Карточки записей ---------- */
.lot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem; }
.layout-single .lot-grid, .lot-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lot-card {
    display: flex;
    flex-direction: column;
    background: var(--field);
    border: 1px solid var(--white);
    padding: 1rem;
    overflow: hidden;
    min-width: 0;
    position: relative;
    transition: transform .12s, box-shadow .12s;
}
.lot-card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--sun); }
.lot-thumb { position: relative; border: 1px solid rgba(242, 246, 250, .55); overflow: hidden; background: var(--blue); }
.lot-thumb a { display: block; }
.lot-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.lot-kind { position: absolute; left: 8px; top: 8px; font-family: var(--f-head); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--white); background: rgba(11, 37, 64, .82); padding: .15em .5em; max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lot-pin { position: absolute; right: 8px; top: 8px; font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; color: var(--deep); background: var(--sun); padding: .15em .5em; }
.lot-body { flex: 1; display: flex; flex-direction: column; padding-top: 1rem; min-width: 0; }
.lot-title { font-size: 1.22rem; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 .5rem; }
.lot-title a { color: var(--white); text-decoration: none; }
.lot-title a:hover { color: var(--sun); }
.lot-excerpt { font-size: .93rem; color: var(--muted); }
.lot-excerpt p, .card-excerpt p { margin: 0 0 .5em; background: none; }
.lot-excerpt a { color: var(--muted); }
.lot-foot { margin-top: auto; padding-top: .8rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.lot-date time { display: inline-block; font-family: var(--f-mono); font-size: .78rem; color: var(--sun); border: 1.5px solid var(--sun); padding: .15em .5em; transform: rotate(-3deg); letter-spacing: .04em; }
.latest-more { margin: 2.2rem 0 0; text-align: center; }
.empty-note { color: var(--muted); font-family: var(--f-mono); font-size: .95rem; border: 1px dashed var(--line); padding: 1.2rem 1.4rem; }

/* ---------- Блоки 4–5 ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; padding-bottom: 4rem; }
.duo .plate { min-width: 0; }
.spec-wrap { position: relative; }
.spec-table { width: 100%; border-collapse: collapse; border: 1px solid var(--white); background: rgba(11, 37, 64, .45); font-size: .95rem; position: relative; z-index: 1; }
.spec-caption { caption-side: bottom; text-align: left; font-family: var(--f-mono); font-size: .78rem; color: var(--muted); padding-top: .7rem; }
.spec-table th, .spec-table td { border: 1px solid rgba(242, 246, 250, .6); padding: .6rem .8rem; text-align: left; vertical-align: middle; }
.spec-table thead th { font-family: var(--f-mono); font-weight: 400; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--head); }
.spec-table tbody th { font-weight: 700; color: var(--white); }
.spec-table td { color: var(--text); }
.spec-table td:last-child, .spec-table th:last-child { text-align: center; width: 3.5rem; }
.tick { display: inline-flex; align-items: center; justify-content: center; width: 1.45rem; height: 1.45rem; background: var(--sun); color: var(--deep); font-weight: 700; font-size: .9rem; line-height: 1; }
.spec-table tbody tr:hover { background: rgba(242, 194, 48, .08); }
.spec-wrap { padding-bottom: 5.5rem; }
.stamp-spec { position: absolute; right: 6px; bottom: 0; transform: rotate(-18deg); z-index: 2; pointer-events: none; opacity: .5; }
.duo .plate-title { font-size: clamp(1.35rem, 1.5vw + .7rem, 2.1rem); }

.price-scale { --city-w: 9.5rem; border: 1px solid var(--line); background: rgba(11, 37, 64, .35); padding: 1.6rem 1.6rem 1.3rem; }
.scale-lead { display: flex; align-items: center; gap: 1.1rem; margin: 0 0 1.5rem; }
.scale-big { font-family: var(--f-head); font-weight: 600; font-size: clamp(3rem, 4vw + 1rem, 4.6rem); line-height: 1; color: var(--sun); flex: 0 0 auto; }
.scale-lead-text { color: var(--muted); font-size: .95rem; max-width: 26ch; border-left: 1px solid var(--line); padding-left: 1rem; }
.scale-band { list-style: none; margin: 0; padding: 0; }
.scale-seg { display: grid; grid-template-columns: var(--city-w) minmax(0, 1fr); gap: .8rem; align-items: center; padding: .38rem 0; }
.seg-city { font-family: var(--f-head); font-weight: 500; font-size: .92rem; letter-spacing: .04em; text-transform: uppercase; color: var(--white); text-align: right; line-height: 1.2; }
.seg-track { position: relative; height: 30px; border-left: 1px solid var(--white); }
.seg-bar { position: absolute; left: 0; top: 3px; bottom: 3px; width: var(--seg); border: 1.5px solid currentColor; background: repeating-linear-gradient(45deg, currentColor 0 2px, transparent 2px 7px); display: flex; align-items: center; justify-content: flex-end; }
.seg-val { font-family: var(--f-mono); font-weight: 500; font-size: .8rem; color: var(--deep); background: currentColor; padding: 0 .4em; margin-right: -1px; line-height: 1.6; }
.seg-val { background: var(--white); }
.seg-1 .seg-bar { color: var(--sun); }
.seg-2 .seg-bar { color: var(--sun); }
.seg-3 .seg-bar { color: var(--rust); }
.seg-4 .seg-bar { color: var(--rust); }
.seg-5 .seg-bar { color: var(--white); }
.scale-ruler {
    margin-left: calc(var(--city-w) + .8rem);
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--white);
    padding-top: .35rem;
    font-family: var(--f-mono);
    font-size: .72rem;
    color: var(--muted);
    background-image: repeating-linear-gradient(90deg, var(--white) 0 1px, transparent 1px 10%);
    background-size: 100% 6px;
    background-repeat: no-repeat;
    position: relative;
}
.scale-ruler span { position: relative; top: 4px; }
.scale-note { margin: 1.4rem 0 0; font-size: .85rem; color: var(--muted); }

/* ---------- Внутренние страницы ---------- */
.crumbs { padding: 1.6rem 0 .4rem; font-family: var(--f-mono); font-size: .8rem; color: var(--muted); overflow-wrap: break-word; }
.crumbs a { color: var(--white); }
.crumbs-sep { color: var(--sun); margin: 0 .3em; }
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); column-gap: 6%; align-items: start; padding: 1.4rem 0 4rem; }
.layout-single { display: block; padding: 1.4rem 0 4rem; }
.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 { font-size: clamp(1.6rem, 2vw + .9rem, 2.4rem); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; display: flex; align-items: center; gap: .7rem; padding-bottom: .4rem; border-bottom: 1px solid var(--white); }
.page-intro { color: var(--muted); margin-top: 1rem; }

.doc { background: rgba(14, 46, 79, .88); border: 1px solid var(--line); padding: 2.2rem 2.4rem; }
.doc-head { margin-bottom: 1.6rem; padding-bottom: 1rem; border-bottom: 1px solid var(--white); }
.doc-title { font-size: clamp(1.6rem, 2vw + .9rem, 2.5rem); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.doc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; font-family: var(--f-mono); font-size: .82rem; color: var(--muted); }
.doc-stamp time { color: var(--sun); border: 1.5px solid var(--sun); padding: .15em .5em; display: inline-block; transform: rotate(-3deg); }
.doc-cover { margin: 0 0 1.8rem; border: 1px solid rgba(242, 246, 250, .55); padding: 6px; }
.doc-cover img { display: block; width: 100%; height: auto; }
.doc-tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.doc-tags a { font-family: var(--f-mono); font-size: .8rem; text-decoration: none; border: 1px solid var(--line); padding: .2em .6em; color: var(--muted); }
.doc-tags a:hover { border-color: var(--sun); color: var(--sun); }
.doc-pages { margin-top: 1.5rem; font-family: var(--f-mono); display: flex; gap: .5rem; flex-wrap: wrap; }

.entry-content { font-size: 1.06rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: 1.6rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; margin: 2rem 0 .8rem; padding-left: .8rem; border-left: 4px solid var(--sun); }
.entry-content h3 { font-size: 1.3rem; font-weight: 500; margin: 1.6rem 0 .6rem; }
.entry-content h4, .entry-content h5, .entry-content h6 { font-size: 1.1rem; margin: 1.4rem 0 .5rem; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; padding-left: 1.6rem; }
.entry-content li { margin-bottom: .35em; }
.entry-content ul { list-style: none; padding-left: 1.4rem; }
.entry-content ul > li { position: relative; }
.entry-content ul > li::before { content: ""; position: absolute; left: -1.2rem; top: .62em; width: 8px; height: 8px; background: var(--sun); }
.entry-content ol > li::marker { color: var(--sun); font-family: var(--f-mono); }
.entry-content blockquote { margin: 1.6rem 0; padding: 1.3rem 1.6rem; background: var(--field); border: 1px solid var(--line); border-left: 4px solid var(--sun); font-style: italic; }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; border: 1px solid var(--white); font-size: .95rem; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content .wp-block-table table { margin: 0; }
.entry-content th, .entry-content td { border: 1px solid rgba(242, 246, 250, .6); padding: .55rem .8rem; text-align: left; }
.entry-content th { background: var(--head); font-family: var(--f-head); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; font-size: .88rem; }
.entry-content img { display: block; height: auto; }
.entry-content figure { margin: 1.5rem 0; }
.entry-content figcaption { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); margin-top: .5rem; }
.entry-content pre { background: var(--deep); border: 1px solid var(--line); padding: 1rem 1.2rem; overflow-x: auto; font-family: var(--f-mono); font-size: .88rem; }
.entry-content code { font-family: var(--f-mono); font-size: .9em; background: var(--deep); padding: .1em .35em; }
.entry-content pre code { background: none; padding: 0; }
.entry-content hr { border: 0; border-top: 1px dashed var(--line); margin: 2rem 0; }
.alignleft { float: left; margin: .3rem 1.4rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.4rem; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, .gallery-caption { font-size: .8rem; color: var(--muted); }

.post-navigation { margin-top: 2rem; }
.post-navigation .nav-links { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.post-navigation a { display: block; height: 100%; text-decoration: none; background: var(--field); border: 1px solid var(--line); padding: 1rem 1.2rem; color: var(--white); }
.post-navigation a:hover { border-color: var(--sun); }
.post-navigation .nav-next { text-align: right; }
.nav-label { display: block; font-family: var(--f-mono); font-size: .75rem; color: var(--sun); text-transform: uppercase; margin-bottom: .3rem; }
.nav-title { font-family: var(--f-head); font-weight: 500; }

/* ---------- Пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 2.6rem; }
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 .8rem;
    font-family: var(--f-mono);
    font-weight: 500;
    font-size: .9rem;
    text-decoration: none;
    color: var(--white);
    border: 1px solid var(--white);
    background: rgba(11, 37, 64, .6);
}
.pager a.page-numbers:hover { background: var(--white); color: var(--deep); }
.pager .page-numbers.current { background: var(--sun); color: var(--deep); border-color: var(--sun); }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; padding: 0 .3rem; }

/* ---------- Сайдбар и виджеты ---------- */
.sidebar { background: var(--head); border: 1px solid var(--white); padding: 1.5rem 1.4rem; min-width: 0; color: var(--text); }
.wbox { margin-bottom: 2rem; }
.wbox:last-child { margin-bottom: 0; }
.wbox ul { list-style: none; margin: 0; padding: 0; }
.wbox li { padding: .5rem 0; border-bottom: 1px dashed rgba(74, 123, 176, .7); }
.wbox li:last-child { border-bottom: 0; }
.sidebar .wbox-title { font-size: 1rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--white); padding-bottom: .5rem; margin-bottom: .6rem; border-bottom: 1px solid var(--white); display: flex; align-items: center; gap: .5rem; }
.sidebar .wbox-title::before { content: ""; width: 10px; height: 10px; background: var(--sun); flex: 0 0 auto; }
.sidebar .wbox, .sidebar .wbox p { color: var(--text); }
.sidebar .wbox a { color: var(--white); text-decoration-color: var(--sun); }
.sidebar .wbox a:hover { color: var(--sun); }
.sidebar .post-date, .sidebar .wbox .rss-date { display: block; font-family: var(--f-mono); font-size: .75rem; color: var(--muted); }
.sidebar .seek { flex-wrap: wrap; }

/* ---------- Поиск ---------- */
.seek { display: flex; gap: .6rem; align-items: center; margin: 1rem 0; }
.seek-field { flex: 1 1 200px; min-width: 0; height: 2.8rem; padding: 0 .9rem; font-family: var(--f-body); font-size: 1rem; color: var(--white); background: var(--deep); border: 1px solid var(--line); border-radius: 0; }
.seek-field::placeholder { color: var(--muted); }
.seek-field:focus { border-color: var(--sun); outline: none; }
.seek-btn { height: 2.8rem; }

/* ---------- Комментарии ---------- */
.remarks { margin-top: 2.4rem; background: rgba(14, 46, 79, .88); border: 1px solid var(--line); padding: 2rem 2.2rem; }
.remarks-title, .comment-reply-title { font-size: 1.35rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; padding-bottom: .4rem; border-bottom: 1px solid var(--white); }
.remarks-list, .remarks-list .children { list-style: none; margin: 0; padding: 0; }
.remarks-list .children { padding-left: 1.6rem; border-left: 1px dashed var(--line); margin-left: .6rem; }
.remark-body { padding: 1rem 0; border-bottom: 1px dashed rgba(74, 123, 176, .6); }
.remark-head { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1rem; margin-bottom: .5rem; }
.remark-head img { display: block; border: 1px solid var(--white); }
.remark-author { font-family: var(--f-head); font-weight: 500; color: var(--white); }
.remark-date { font-family: var(--f-mono); font-size: .75rem; color: var(--muted); }
.remark-wait { font-family: var(--f-mono); font-size: .82rem; color: var(--sun); }
.remark-reply a { font-family: var(--f-mono); font-size: .8rem; }
.remarks-closed { color: var(--muted); font-family: var(--f-mono); }
.comment-respond { margin-top: 1.6rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-family: var(--f-mono); font-size: .8rem; 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: .65rem .8rem;
    font-family: var(--f-body);
    font-size: 1rem;
    color: var(--white);
    background: var(--deep);
    border: 1px solid var(--line);
    border-radius: 0;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--sun); outline: none; }
.comment-form-cookies-consent { display: flex; gap: .6rem; align-items: flex-start; }
.comment-form-cookies-consent label { margin: 0; }
.comment-notes, .logged-in-as, .must-log-in { font-size: .9rem; color: var(--muted); }
.req { color: var(--sun); }
#cancel-comment-reply-link { font-family: var(--f-mono); font-size: .8rem; margin-left: .8rem; text-transform: none; letter-spacing: 0; }

/* ---------- 404 ---------- */
.lost { text-align: center; padding: 2rem 0 1rem; }
.lost-code { font-family: var(--f-head); font-weight: 600; font-size: clamp(5rem, 14vw, 10rem); line-height: 1; margin: 0 0 .5rem; color: transparent; -webkit-text-stroke: 2px var(--sun); letter-spacing: .1em; }
.lost .page-title { justify-content: center; border-bottom: 0; }
.lost-text { color: var(--muted); max-width: 46ch; margin: 0 auto 1rem; }
.lost .seek { max-width: 520px; margin: 1.4rem auto; }
.lost-home { margin-top: 1.4rem; }
.empty-box .seek { max-width: 520px; }

/* ---------- Подвал ---------- */
.basement { background: var(--deep); border-top: 1px solid var(--white); color: var(--text); padding: 3.2rem 0 1.4rem; margin-top: auto; }
.basement-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.basement-col { min-width: 0; }
.basement .wbox-title { font-size: 1rem; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--white); margin-bottom: .9rem; padding-bottom: .4rem; border-bottom: 1px solid rgba(242, 246, 250, .5); }
.basement .wbox, .basement .wbox p, .basement .textwidget { color: var(--muted); font-size: .93rem; }
.basement .wbox a { color: var(--text); text-decoration-color: var(--sun); }
.basement .wbox a:hover { color: var(--sun); }
.basement .wbox li { border-bottom-color: rgba(74, 123, 176, .4); padding: .35rem 0; }
.basement-line { margin-top: 2.6rem; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; font-family: var(--f-mono); font-size: .78rem; color: var(--muted); }
.basement-sheet { color: var(--sun); }

/* ---------- Cookie-баннер ---------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--deep); border-top: 2px solid var(--sun); box-shadow: 0 -6px 0 rgba(11, 37, 64, .5); }
.cookie-inner { width: min(92%, 1240px); margin: 0 auto; padding: 1rem 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.cookie-text { margin: 0; font-size: .9rem; color: var(--text); }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
    .genplan-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 240px); }
    .duo { gap: 2rem; }
    .price-scale { --city-w: 7.5rem; }
}
@media (max-width: 960px) {
    .masthead-row { flex-wrap: wrap; }
    .topnav-toggle {
        display: inline-flex;
        align-items: center;
        gap: .55rem;
        padding: .55rem .9rem;
        font-family: var(--f-head);
        font-size: .9rem;
        letter-spacing: .1em;
        text-transform: uppercase;
        color: var(--white);
        background: transparent;
        border: 1px solid var(--white);
        border-radius: 0;
        cursor: pointer;
    }
    .topnav-toggle-bars { display: block; width: 18px; height: 2px; background: var(--sun); position: relative; }
    .topnav-toggle-bars::before, .topnav-toggle-bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--sun); }
    .topnav-toggle-bars::before { top: -6px; }
    .topnav-toggle-bars::after { top: 6px; }
    .topnav { display: none; width: 100%; }
    .topnav.is-open { display: block; }
    .topnav-list { flex-direction: column; align-items: stretch; border-top: 1px solid rgba(242, 246, 250, .5); }
    .topnav-list li + li { border-left: 0; border-top: 1px dashed var(--line); }
    .topnav-list a { padding: .8rem .2rem; white-space: normal; }
    .genplan-layout, .cut-layout { grid-template-columns: minmax(0, 1fr); }
    .lot-grid, .layout-single .lot-grid, .lot-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .duo { grid-template-columns: minmax(0, 1fr); }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 2.5rem; }
    .layout-single > .content-area { width: 100%; }
    .basement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .front-shell { width: min(92%, 1240px); }
}
@media (max-width: 600px) {
    body { font-size: 1rem; }
    .sheet { margin: 6px; min-height: calc(100vh - 12px); }
    .shell, .front-shell { width: 94%; }
    .brand-svg, .brand-logo { width: 46px; height: 46px; }
    .brand-desc { display: none; }
    .plate { padding: 3rem 0 1rem; }
    .plate-head-line { flex-wrap: wrap; }
    .plate-leader { display: none; }
    .lot-grid, .layout-single .lot-grid, .lot-grid-3 { grid-template-columns: minmax(0, 1fr); }
    .genplan-legend { padding: 1.2rem 1.1rem; }
    .cut-spec { padding: 1.2rem 1.1rem; }
    .price-scale { --city-w: 6.2rem; padding: 1.2rem 1rem; }
    .seg-city { font-size: .78rem; }
    .scale-lead { flex-direction: column; align-items: flex-start; }
    .scale-lead-text { border-left: 0; padding-left: 0; }
    .stamp-spec { width: 80px; height: 80px; }
    .spec-wrap { padding-bottom: 4.5rem; }
    .spec-table th, .spec-table td { padding: .5rem .45rem; font-size: .86rem; }
    .doc, .remarks { padding: 1.4rem 1.15rem; }
    .post-navigation .nav-links { grid-template-columns: minmax(0, 1fr); }
    .post-navigation .nav-next { text-align: left; }
    .basement-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .cookie-inner { flex-direction: column; align-items: stretch; padding: 1rem 1.1rem; }
    .alignleft, .alignright { float: none; margin: 1rem 0; }
}
