/*
Theme Name: dds_ascendcreativedesign.com
Theme URI: https://ascendcreativedesign.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: acdplan
*/

/* ---------- Шрифты ---------- */
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/oswald-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: "Oswald"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/oswald-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: "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: "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; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-mono-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: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-mono-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: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+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 Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-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: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-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: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-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: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-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; }

/* ---------- Переменные ---------- */
:root {
    --ink: #1A2332;
    --grid: #2E3F55;
    --paper: #E8E4DA;
    --moss: #24382E;
    --night: #121820;
    --warm: #F2EFE6;
    --mist: #8FA3B8;
    --text-dark: #1A2332;
    --muted-dark: #5C6B7A;
    --orange: #E8622C;
    --lime: #C9D94A;
    --side: #212C3D;
    --plan-line: #8A97A6;
    --paper-grid: rgba(62, 94, 138, 0.13);
    --paper-grid-major: rgba(62, 94, 138, 0.26);
    --ink-grid: rgba(46, 63, 85, 0.32);
    --ink-grid-major: rgba(46, 63, 85, 0.75);

    --f-head: "Oswald", "Arial Narrow", "Roboto Condensed", sans-serif;
    --f-mono: "IBM Plex Mono", "Consolas", "Courier New", monospace;
    --f-text: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
}

/* ---------- Служебные правила hidden (до основных стилей) ---------- */
.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;
    background-color: var(--ink);
    background-image:
        linear-gradient(var(--ink-grid-major) 1px, transparent 1px),
        linear-gradient(90deg, var(--ink-grid-major) 1px, transparent 1px),
        linear-gradient(var(--ink-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--ink-grid) 1px, transparent 1px);
    background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
    color: var(--warm);
    font-family: var(--f-text);
    font-size: 1rem;
    line-height: 1.6;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--lime);
    outline-offset: 2px;
}
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 0.6em; line-height: 1.15; }
p, li, h1, h2, h3, h4, dd, dt, td, th, figcaption { overflow-wrap: break-word; hyphens: auto; }

.shell { width: min(92%, 1240px); margin-left: auto; margin-right: auto; }

.skip-to {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    background: var(--orange);
    color: var(--night);
    font-family: var(--f-mono);
    text-decoration: none;
}
.skip-to:focus { top: 1rem; }

/* ---------- Кнопки и ссылки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.62rem 1.15rem;
    border: 1px solid var(--warm);
    border-radius: 0;
    background: transparent;
    color: var(--warm);
    font-family: var(--f-mono);
    font-size: 0.85rem;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 2px 2px 0 var(--orange); }
.btn--main { background: var(--orange); color: var(--night); font-weight: 600; }
.btn--main:hover { background: var(--lime); }
.btn--line { border-color: var(--orange); color: var(--orange); }
.btn--line:hover { background: var(--orange); color: var(--night); box-shadow: 2px 2px 0 var(--warm); }

.arrow-link {
    font-family: var(--f-mono);
    font-size: 0.85rem;
    color: var(--warm);
    text-decoration: underline;
    text-decoration-color: var(--mist);
}
.arrow-link::after { content: " →"; color: var(--orange); }
.arrow-link:hover { text-decoration-color: var(--orange); }

/* ---------- Шапка ---------- */
.masthead { padding: 2rem 0 1.4rem; }
.masthead-grid {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: 1.4rem 2.6rem;
    align-items: start;
}
.brand-mark { display: block; width: 96px; }
.brand-logo { display: block; width: 96px; height: auto; max-height: 96px; object-fit: contain; }
.brand-text { min-width: 0; }
.brand-name {
    margin: 0 0 0.6rem;
    font-family: var(--f-text);
    font-weight: 600;
    font-size: 1.18rem;
    line-height: 1.35;
    max-width: 44ch;
}
.brand-name a { text-decoration: none; }
.brand-name a:hover { color: var(--lime); }
.brand-desc {
    margin: 0;
    max-width: 66ch;
    font-family: var(--f-mono);
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--mist);
}
.site-nav {
    border-left: 1px solid var(--grid);
    padding-left: 2.6rem;
    min-height: 100%;
}
.site-nav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-nav-list a {
    position: relative;
    display: inline-block;
    padding: 0.15rem 0 0.2rem 1.6rem;
    font-family: var(--f-text);
    font-size: 1.02rem;
    text-decoration: none;
    color: var(--warm);
}
.site-nav-list a::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--orange);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.15s, transform 0.15s;
}
.site-nav-list a:hover::before,
.site-nav-list .current-menu-item > a::before { opacity: 1; transform: none; }
.site-nav-list .current-menu-item > a { color: var(--orange); border-bottom: 2px solid var(--orange); }
.site-nav-list a:hover { color: var(--orange); }

.nav-toggle { display: none; }

.dim-line {
    position: relative;
    margin-top: 1.6rem;
    height: 14px;
    border-top: 1px solid var(--orange);
    margin-bottom: -7px;
    top: 7px;
}
.dim-line::before,
.dim-line::after {
    content: "";
    position: absolute;
    top: -8px;
    width: 1px;
    height: 15px;
    background: var(--orange);
}
.dim-line::before { left: 0; box-shadow: 4px 0 0 transparent; }
.dim-line::after { right: 0; }
.dim-line span {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 0.5rem;
    background: var(--ink);
    font-family: var(--f-mono);
    font-size: 0.72rem;
    color: var(--orange);
    letter-spacing: 0.06em;
}

/* ---------- Заголовки секций ---------- */
.sec-head {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin: 0 0 2rem;
    font-family: var(--f-head);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-dark);
}
.sec-head--light { color: var(--warm); }
.sec-no {
    position: relative;
    flex: 0 0 auto;
    padding-bottom: 0.35rem;
    font-family: var(--f-head);
    font-weight: 400;
    font-size: 2rem;
    line-height: 1.1;
    color: var(--orange);
}
.sec-no::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 160%;
    height: 2px;
    background: var(--orange);
}
.sec-name { min-width: 0; font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.12; }

/* ---------- Главная: общие секции ---------- */
.fp .shell { width: min(85%, 1240px); }
.fp-sec { position: relative; padding: 3.6rem 0 4rem; }
.fp-sec--paper {
    background-color: var(--paper);
    background-image:
        linear-gradient(var(--paper-grid-major) 1px, transparent 1px),
        linear-gradient(90deg, var(--paper-grid-major) 1px, transparent 1px),
        linear-gradient(var(--paper-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--paper-grid) 1px, transparent 1px);
    background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
    color: var(--text-dark);
}
.fp-sec--ink { color: var(--warm); }
.fp-sec--ink + .fp-sec--ink { border-top: 1px solid var(--grid); }
.fp-sec--moss { background: var(--moss); color: var(--warm); }

/* Блок 1 — план студии */
.plan-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
    gap: 2.4rem 3rem;
    align-items: start;
}
.plan-main { min-width: 0; }
.plan-lead {
    max-width: 60ch;
    margin: -0.8rem 0 1.6rem;
    font-family: var(--f-mono);
    font-size: 0.88rem;
    color: var(--muted-dark);
}
.plan-figure { margin: 0; }
.plan-sheet {
    position: relative;
    border: 1px solid var(--plan-line);
    background: var(--paper);
}
.plan-sheet img { display: block; width: 100%; height: auto; aspect-ratio: 1570 / 794; }
.plan-tag {
    position: absolute;
    transform: translate(-50%, -50%);
    padding: 0.1rem 0.4rem;
    background: rgba(232, 228, 218, 0.88);
    font-family: var(--f-mono);
    font-size: clamp(0.62rem, 1.1vw, 0.86rem);
    font-weight: 500;
    color: var(--text-dark);
    white-space: nowrap;
}
.plan-dim {
    position: absolute;
    transform: translate(-50%, -50%);
    padding: 0 0.3rem;
    background: var(--paper);
    font-family: var(--f-mono);
    font-size: clamp(0.6rem, 1vw, 0.78rem);
    color: var(--orange);
}
.plan-dim--v { transform: translate(-50%, -50%) rotate(-90deg); }
.plan-cap {
    margin-top: 0.7rem;
    font-family: var(--f-mono);
    font-size: 0.78rem;
    color: var(--muted-dark);
}
.plan-cap::before { content: "— "; color: var(--orange); }

.zone-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--plan-line);
    background: rgba(232, 228, 218, 0.7);
    align-self: center;
}
.zone {
    display: grid;
    grid-template-columns: 48px 84px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 0 1rem 0 0;
    min-height: 104px;
    border-bottom: 1px solid var(--plan-line);
    transition: background-color 0.15s;
}
.zone:last-child { border-bottom: 0; }
.zone:hover { background: rgba(201, 217, 74, 0.18); }
.zone-no {
    align-self: start;
    padding: 0.35rem 0;
    background: var(--lime);
    font-family: var(--f-head);
    font-size: 1.55rem;
    line-height: 1.2;
    text-align: center;
    color: var(--text-dark);
}
.zone-icon { display: block; width: 84px; height: auto; }
.zone-text strong { display: block; font-weight: 500; font-size: 1.02rem; line-height: 1.3; }
.zone-text em {
    display: block;
    margin-top: 0.25rem;
    font-style: normal;
    font-family: var(--f-mono);
    font-size: 0.76rem;
    color: var(--muted-dark);
}

/* Блок 2 — прихожая */
.hall-strip {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.6rem;
}
.hall-cell {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0.9rem 1rem 1rem;
    border: 1px solid rgba(242, 239, 230, 0.85);
    transition: border-color 0.15s, transform 0.15s;
}
.hall-cell:hover { border-color: var(--orange); transform: translateY(-4px); }
.hall-no {
    font-family: var(--f-head);
    font-size: 1.6rem;
    line-height: 1;
    color: var(--warm);
}
.hall-cell img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 687 / 594;
    object-fit: contain;
    margin: 0.4rem 0 0.8rem;
}
.hall-cap {
    margin: auto 0 0;
    font-family: var(--f-text);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
}
.hall-cap span {
    display: block;
    margin-top: 0.3rem;
    font-family: var(--f-mono);
    font-weight: 400;
    font-size: 0.74rem;
    line-height: 1.45;
    color: var(--mist);
}

/* Блок «Последние записи» */
.posts-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.4rem 2rem;
}
.side-label {
    display: none;
    position: absolute;
    left: 1.6rem;
    top: 3.6rem;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--f-head);
    font-size: 0.95rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--grid);
}

/* ---------- Карточки ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.8rem;
}
.card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; }
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    padding: 1rem 1.1rem 1.2rem;
    border: 1px solid rgba(242, 239, 230, 0.9);
    background: rgba(26, 35, 50, 0.92);
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.card:hover { border-color: var(--orange); transform: translate(-4px, -4px); box-shadow: 4px 4px 0 var(--orange); }
.card-thumb { position: relative; margin-bottom: 1rem; }
.card-thumb a { display: block; overflow: hidden; }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    transition: transform 0.3s;
}
.card:hover .card-thumb img { transform: scale(1.04); }
.card-no {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    padding: 0.15rem 0.5rem 0.2rem 0;
    background: var(--ink);
    font-family: var(--f-head);
    font-size: 1.3rem;
    line-height: 1.1;
    color: var(--warm);
}
.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.card-pin {
    align-self: flex-start;
    margin-bottom: 0.5rem;
    padding: 0.1rem 0.45rem;
    background: var(--lime);
    font-family: var(--f-mono);
    font-size: 0.7rem;
    color: var(--night);
}
.card-title { margin: 0 0 0.6rem; font-family: var(--f-text); font-weight: 600; font-size: 1.08rem; line-height: 1.35; }
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--orange); }
.card-excerpt { flex: 1; font-size: 0.9rem; line-height: 1.55; color: #B9C6D3; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt a { color: var(--warm); }
.card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem 1rem;
    margin-top: 0.9rem;
}
.card-date { font-family: var(--f-mono); font-size: 0.8rem; color: var(--mist); }
.card-foot .btn { padding: 0.35rem 0.7rem; font-size: 0.78rem; }

/* Блок 4 — спецификация */
.spec-wrap { border: 1px solid var(--plan-line); background: rgba(232, 228, 218, 0.75); }
.spec-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--plan-line);
    font-size: 1rem;
}
.spec-table th,
.spec-table td {
    border: 1px solid var(--plan-line);
    padding: 0.7rem 1.4rem;
    text-align: left;
    vertical-align: middle;
}
.spec-table th {
    font-family: var(--f-mono);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dark);
}
.spec-table td { font-family: var(--f-text); }
.spec-table td strong { display: block; font-weight: 600; }
.spec-note { display: block; font-family: var(--f-mono); font-size: 0.76rem; color: var(--muted-dark); }
.spec-table tbody tr { transition: background-color 0.15s; }
.spec-table tbody tr:hover { background: rgba(201, 217, 74, 0.2); }
.spec-n { width: 4.5rem; font-family: var(--f-mono); }
.spec-s { width: 22%; text-align: center !important; }
.spec-s img { display: inline-block; width: 100px; height: auto; vertical-align: middle; }
.spec-stamp {
    display: flex;
    justify-content: flex-end;
    border-top: 0;
}
.spec-stamp span {
    padding: 0.45rem 1.2rem;
    border-left: 1px solid var(--plan-line);
    font-family: var(--f-mono);
    font-size: 0.74rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted-dark);
}
.spec-stamp span:first-child { color: var(--orange); }

/* Блок 5 — ошибки */
.mistakes-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 0.75fr);
    gap: 2.4rem;
    align-items: center;
}
.mistakes-quote { display: flex; gap: 1.6rem; align-items: flex-start; min-width: 0; padding-right: 2.4rem; border-right: 1px solid rgba(242, 239, 230, 0.25); }
.sec-no--big { font-size: 2.2rem; }
.mistakes-label {
    margin: 0 0 0.8rem;
    font-family: var(--f-mono);
    font-weight: 500;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lime);
}
.mistakes-big {
    margin: 0;
    font-family: var(--f-head);
    font-weight: 400;
    font-size: clamp(2.6rem, 5.6vw, 5.4rem);
    line-height: 1.02;
    color: var(--warm);
    hyphens: manual;
}
.mistakes-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.3rem; min-width: 0; }
.mistakes-list li { position: relative; padding-left: 2.4rem; }
.mistakes-list li::before,
.mistakes-list li::after {
    content: "";
    position: absolute;
    left: 0.15rem;
    top: 0.65rem;
    width: 1.3rem;
    height: 3px;
    background: var(--orange);
    transform: rotate(45deg);
}
.mistakes-list li::after { transform: rotate(-45deg); }
.mistakes-list strong { display: block; font-weight: 600; font-size: 1.08rem; }
.mistakes-list span { display: block; margin-top: 0.15rem; font-family: var(--f-mono); font-size: 0.78rem; line-height: 1.5; color: #B7C4B9; }
.mistakes-side { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; min-width: 0; }
.mistakes-side img { display: block; width: 100%; max-width: 210px; height: auto; }

/* ---------- Подвал ---------- */
.basement { background: var(--night); color: var(--mist); padding: 3rem 0 2rem; }
.basement-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
    padding-bottom: 2.4rem;
    border-bottom: 1px solid var(--grid);
}
.basement .widget-title { margin: 0 0 0.9rem; font-family: var(--f-text); font-weight: 600; font-size: 1.15rem; color: var(--warm); }
.basement .widget { color: var(--mist); font-size: 0.9rem; }
.basement .widget p { margin: 0 0 0.6em; }
.basement .widget a { color: var(--warm); text-decoration-color: var(--orange); }
.basement .widget a:hover { color: var(--orange); }
.basement .widget ul { list-style: none; margin: 0; padding: 0; }
.basement .widget li { margin: 0 0 0.45rem; }
.basement .widget_nav_menu a { text-decoration: none; font-size: 0.88rem; }
.basement .widget_nav_menu a::before { content: "→ "; color: var(--orange); }
.basement-copy { margin: 1.6rem 0 0; font-family: var(--f-mono); font-size: 0.76rem; line-height: 1.6; color: var(--mist); }

/* ---------- Внутренние страницы ---------- */
.inner { padding: 2.2rem 0 4.5rem; }
.crumbs {
    margin-bottom: 1.8rem;
    font-family: var(--f-mono);
    font-size: 0.8rem;
    color: var(--mist);
}
.crumbs a { color: var(--warm); text-decoration-color: var(--grid); }
.crumbs a:hover { color: var(--orange); text-decoration-color: var(--orange); }
.crumbs-sep { margin: 0 0.35rem; color: var(--orange); }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    column-gap: 6%;
    align-items: start;
}
.layout-single { display: block; }
.layout-single .content-area { width: 85%; margin-left: auto; margin-right: auto; }
.content-area { min-width: 0; }

.list-head { margin-bottom: 2rem; }
.list-head-mark {
    display: inline-block;
    margin-bottom: 0.6rem;
    padding-top: 0.3rem;
    border-top: 2px solid var(--orange);
    font-family: var(--f-mono);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--orange);
}
.list-title {
    margin: 0;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    text-transform: uppercase;
    line-height: 1.05;
}
.list-intro { margin-top: 1rem; max-width: 70ch; color: #C3CEDA; }
.empty-note { font-family: var(--f-mono); font-size: 0.9rem; color: var(--mist); }

/* Лист записи / страницы */
.sheet {
    position: relative;
    padding: 2.6rem 2.8rem 2.4rem;
    border: 1px solid var(--plan-line);
    background-color: var(--paper);
    background-image:
        linear-gradient(var(--paper-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--paper-grid) 1px, transparent 1px);
    background-size: 10px 10px;
    color: var(--text-dark);
}
.sheet::before,
.sheet::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    border-color: var(--orange);
    border-style: solid;
}
.sheet::before { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.sheet::after { right: 10px; bottom: 10px; border-width: 0 2px 2px 0; }
.sheet-head { margin-bottom: 1.6rem; padding-bottom: 1rem; border-bottom: 1px solid var(--plan-line); }
.sheet-title {
    margin: 0 0 0.8rem;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: clamp(1.9rem, 3.8vw, 2.9rem);
    line-height: 1.1;
    text-transform: uppercase;
}
.sheet-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-family: var(--f-mono); font-size: 0.8rem; color: var(--muted-dark); }
.sheet-cats a { margin-right: 0.6rem; color: var(--text-dark); text-decoration-color: var(--orange); }
.sheet-cover { margin: 0 0 1.8rem; border: 1px solid var(--plan-line); }
.sheet-cover img { display: block; width: 100%; height: auto; }
.sheet-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--plan-line); font-family: var(--f-mono); font-size: 0.8rem; }
.sheet-tags a { padding: 0.15rem 0.5rem; border: 1px solid var(--plan-line); text-decoration: none; }
.sheet-tags a:hover { border-color: var(--orange); color: var(--orange); }

.entry { font-size: 1.04rem; line-height: 1.72; }
.entry > *:last-child { margin-bottom: 0; }
.entry h2, .entry h3, .entry h4 { font-family: var(--f-head); font-weight: 500; margin: 1.8em 0 0.6em; }
.entry h2 { font-size: 1.8rem; text-transform: uppercase; }
.entry h2::before { content: ""; display: inline-block; width: 1.4rem; height: 2px; margin-right: 0.6rem; vertical-align: middle; background: var(--orange); }
.entry h3 { font-size: 1.4rem; }
.entry h4 { font-size: 1.15rem; }
.entry a { color: #1F4E79; text-decoration-color: var(--orange); }
.entry a:hover { color: var(--orange); }
.entry ul, .entry ol { margin: 0 0 1.2em; padding-left: 1.5rem; }
.entry li { margin-bottom: 0.4em; }
.entry li::marker { color: var(--orange); font-family: var(--f-mono); }
.entry blockquote {
    margin: 1.6em 0;
    padding: 1.2rem 1.6rem;
    border-left: 4px solid var(--orange);
    background: rgba(26, 35, 50, 0.07);
    font-family: var(--f-head);
    font-size: 1.35rem;
    line-height: 1.35;
}
.entry blockquote p:last-child { margin-bottom: 0; }
.entry table { width: 100%; margin: 1.4em 0; border-collapse: collapse; border: 1px solid var(--plan-line); font-size: 0.94rem; }
.entry th, .entry td { padding: 0.55rem 0.8rem; border: 1px solid var(--plan-line); text-align: left; }
.entry thead { border-bottom: 1px solid var(--plan-line); }
.entry .wp-block-table thead { border-bottom: 2px solid var(--text-dark); }
.entry th { font-family: var(--f-mono); font-weight: 500; font-size: 0.82rem; text-transform: uppercase; background: rgba(26, 35, 50, 0.06); }
.entry img { display: block; height: auto; }
.entry figure { margin: 1.6em 0; }
.entry figcaption { margin-top: 0.5rem; font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted-dark); }
.entry code, .entry pre { font-family: var(--f-mono); font-size: 0.88em; }
.entry pre { overflow-x: auto; padding: 1rem; background: rgba(26, 35, 50, 0.08); }
.entry hr { margin: 2em 0; border: 0; border-top: 1px dashed var(--plan-line); }
.entry .alignleft { float: left; margin: 0.3em 1.4em 1em 0; }
.entry .alignright { float: right; margin: 0.3em 0 1em 1.4em; }
.entry .aligncenter { margin-left: auto; margin-right: auto; }
.entry-pages { margin-top: 1.4rem; font-family: var(--f-mono); }

.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; margin-top: 2rem; }
.post-nav-link {
    display: block;
    padding: 1rem 1.2rem;
    border: 1px solid var(--grid);
    text-decoration: none;
    font-weight: 600;
    transition: border-color 0.15s;
}
.post-nav-link span { display: block; margin-bottom: 0.3rem; font-family: var(--f-mono); font-weight: 400; font-size: 0.76rem; color: var(--orange); }
.post-nav-link:hover { border-color: var(--orange); }
.post-nav-next { grid-column: 2; text-align: right; }

/* ---------- Сайдбар ---------- */
.sidebar {
    min-width: 0;
    padding: 1.6rem 1.5rem;
    border: 1px solid var(--grid);
    background: var(--side);
    color: #C9D3DE;
}
.sidebar .widget + .widget { margin-top: 2rem; }
.sidebar .widget-title {
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--orange);
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--warm);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 0.55rem 0; border-bottom: 1px dashed var(--grid); font-size: 0.93rem; line-height: 1.4; }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--warm); text-decoration: none; }
.sidebar a:hover { color: var(--orange); }
.sidebar .post-date { display: block; font-family: var(--f-mono); font-size: 0.74rem; color: var(--mist); }
.sidebar p { color: #C9D3DE; }

/* ---------- Пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 2.6rem; }
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(242, 239, 230, 0.6);
    font-family: var(--f-mono);
    font-size: 0.85rem;
    color: var(--warm);
    text-decoration: none;
    transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.pager a.page-numbers:hover { border-color: var(--orange); color: var(--orange); }
.pager .page-numbers.current { background: var(--orange); border-color: var(--orange); color: var(--night); font-weight: 600; }
.pager .page-numbers.dots { border-color: transparent; min-width: 0; }

/* ---------- Поиск ---------- */
.find { margin: 1.2rem 0 1.6rem; }
.find-label { display: block; margin-bottom: 0.4rem; font-family: var(--f-mono); font-size: 0.8rem; color: var(--mist); }
.find-row { display: flex; gap: 0; max-width: 560px; }
.find-input {
    flex: 1;
    min-width: 0;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--grid);
    border-right: 0;
    border-radius: 0;
    background: var(--night);
    color: var(--warm);
    font-family: var(--f-mono);
    font-size: 0.9rem;
}
.find-input::placeholder { color: #6E8092; }
.find-btn {
    padding: 0.7rem 1.2rem;
    border: 1px solid var(--orange);
    border-radius: 0;
    background: var(--orange);
    color: var(--night);
    font-family: var(--f-mono);
    font-weight: 600;
    cursor: pointer;
}
.find-btn:hover { background: var(--lime); border-color: var(--lime); }
.sidebar .find-input { background: var(--ink); }

/* ---------- 404 ---------- */
.lost { padding: 2rem 0; }
.lost-code {
    margin: 0;
    font-family: var(--f-head);
    font-size: clamp(6rem, 18vw, 11rem);
    line-height: 0.9;
    color: transparent;
    -webkit-text-stroke: 2px var(--orange);
}
.lost-title { font-family: var(--f-head); font-weight: 500; font-size: 2.4rem; text-transform: uppercase; }
.lost-text { max-width: 60ch; color: #C3CEDA; }

/* ---------- Комментарии ---------- */
.notes { margin-top: 2.4rem; }
.notes-title, .comment-reply-title {
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 1.6rem;
    text-transform: uppercase;
    color: var(--warm);
}
.notes-list, .notes-list .children { list-style: none; margin: 0; padding: 0; }
.notes-list .children { margin-left: 1.6rem; border-left: 1px solid var(--orange); padding-left: 1.2rem; }
.note-body { margin-bottom: 1rem; padding: 1rem 1.2rem; border: 1px solid var(--grid); background: rgba(18, 24, 32, 0.6); }
.note-head { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-bottom: 0.5rem; }
.note-author { font-weight: 600; color: var(--warm); }
.note-date { font-family: var(--f-mono); font-size: 0.78rem; color: var(--mist); }
.note-wait { font-family: var(--f-mono); font-size: 0.8rem; color: var(--lime); }
.note-text { color: #D2DAE3; font-size: 0.95rem; }
.note-reply a { font-family: var(--f-mono); font-size: 0.8rem; color: var(--orange); }
.comment-respond { margin-top: 1.6rem; padding: 1.6rem 1.6rem 1.8rem; border: 1px solid var(--grid); background: rgba(18, 24, 32, 0.6); }
.comment-reply-title small { margin-left: 1rem; font-family: var(--f-mono); font-size: 0.8rem; text-transform: none; }
.comment-reply-title small a { color: var(--orange); }
.notes-hint { font-family: var(--f-mono); font-size: 0.8rem; color: var(--mist); }
.notes-hint a { color: var(--warm); }
.notes-field label { display: block; margin-bottom: 0.3rem; font-family: var(--f-mono); font-size: 0.8rem; color: var(--mist); }
.notes-field input, .notes-field textarea {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--grid);
    border-radius: 0;
    background: var(--night);
    color: var(--warm);
    font-family: var(--f-text);
    font-size: 0.95rem;
}
.notes-field input:focus, .notes-field textarea:focus { border-color: var(--orange); }
.notes-check { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.85rem; color: var(--mist); }
.notes-closed { font-family: var(--f-mono); color: var(--mist); }
.comments-pagination, .comment-navigation { margin: 1rem 0; font-family: var(--f-mono); font-size: 0.85rem; }
.comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; }
.comment-navigation a { color: var(--orange); }

/* ---------- Cookie ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.6rem;
    max-width: 820px;
    margin: 0 auto;
    padding: 1.1rem 1.4rem;
    border: 1px solid var(--warm);
    border-top: 3px solid var(--orange);
    background: var(--night);
    color: var(--warm);
}
.cookie-text { flex: 1 1 320px; margin: 0; font-family: var(--f-mono); font-size: 0.8rem; line-height: 1.55; }

/* ---------- WordPress ---------- */
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
.wp-caption { max-width: 100%; }
.sticky .card-title::after { content: ""; }
.bypostauthor > .note-body { border-color: var(--orange); }

/* ---------- Адаптив ---------- */
@media (min-width: 1400px) {
    .side-label { display: block; }
}

@media (max-width: 1100px) {
    .mistakes-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .mistakes-quote { grid-column: 1 / -1; padding-right: 0; padding-bottom: 2rem; border-right: 0; border-bottom: 1px solid rgba(242, 239, 230, 0.25); }
}

@media (max-width: 960px) {
    .masthead-grid { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 1rem 1.4rem; }
    .brand-mark, .brand-logo { width: 72px; }
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
        padding: 0.55rem 0.85rem;
        border: 1px solid var(--warm);
        border-radius: 0;
        background: transparent;
        color: var(--warm);
        font-family: var(--f-mono);
        font-size: 0.82rem;
        cursor: pointer;
    }
    .nav-toggle-lines, .nav-toggle-lines::before, .nav-toggle-lines::after {
        display: block;
        width: 18px;
        height: 2px;
        background: var(--orange);
        position: relative;
    }
    .nav-toggle-lines::before, .nav-toggle-lines::after { content: ""; position: absolute; left: 0; }
    .nav-toggle-lines::before { top: -6px; }
    .nav-toggle-lines::after { top: 6px; }
    .site-nav {
        display: none;
        grid-column: 1 / -1;
        border-left: 0;
        border-top: 1px solid var(--grid);
        padding: 1rem 0 0;
    }
    .site-nav.is-open { display: block; }

    .plan-grid { grid-template-columns: minmax(0, 1fr); }
    .zone-list { align-self: stretch; }

    .hall-strip {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: minmax(200px, 38%);
        overflow-x: auto;
        padding-bottom: 1rem;
        scroll-snap-type: x mandatory;
    }
    .hall-cell { scroll-snap-align: start; }
    .hall-cell:hover { transform: none; }

    .card-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; }

    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 2.4rem; }
    .layout-single .content-area { width: 100%; }
    .basement-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    body { font-size: 0.97rem; }
    .fp .shell { width: 92%; }
    .masthead { padding-top: 1.2rem; }
    .masthead-grid { grid-template-columns: 56px minmax(0, 1fr); }
    .brand-mark, .brand-logo { width: 56px; }
    .nav-toggle { grid-column: 1 / -1; justify-self: start; }
    .brand-name { font-size: 1rem; }
    .brand-desc { font-size: 0.74rem; }

    .fp-sec { padding: 2.6rem 0 3rem; }
    .sec-head { gap: 0.8rem; }
    .sec-no { font-size: 1.5rem; }
    .sec-name { font-size: 1.5rem; }

    .plan-tag { padding: 0 0.2rem; }
    .zone { grid-template-columns: 40px 60px minmax(0, 1fr); gap: 0.7rem; min-height: 86px; padding-right: 0.8rem; }
    .zone-icon { width: 60px; }
    .zone-no { font-size: 1.2rem; }

    .hall-strip { grid-auto-columns: 72%; }

    .card-grid--three, .card-grid { grid-template-columns: minmax(0, 1fr); }

    .spec-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
    .spec-table, .spec-table tbody, .spec-table tr, .spec-table td { display: block; width: 100%; }
    .spec-table { border: 0; }
    .spec-table tr { border-bottom: 1px solid var(--plan-line); padding: 0.4rem 0; }
    .spec-table td { border: 0; padding: 0.35rem 1rem; text-align: left; }
    .spec-table td::before { content: attr(data-label); display: block; margin-bottom: 0.1rem; font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-dark); }
    .spec-table td.spec-n { font-family: var(--f-head); font-size: 1.3rem; color: var(--orange); }
    .spec-table td.spec-n::before { display: none; }
    .spec-s { text-align: left !important; }
    .spec-stamp { flex-wrap: wrap; justify-content: flex-start; }
    .spec-stamp span { padding: 0.4rem 0.9rem; }

    .mistakes-grid { grid-template-columns: minmax(0, 1fr); }
    .mistakes-quote { flex-direction: column; gap: 0.6rem; }

    .basement-cols { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }

    .sheet { padding: 1.8rem 1.3rem 1.6rem; }
    .sheet::before, .sheet::after { width: 14px; height: 14px; }
    .entry h2 { font-size: 1.45rem; }
    .entry .alignleft, .entry .alignright { float: none; margin: 1em 0; }
    .post-nav { grid-template-columns: minmax(0, 1fr); }
    .post-nav-next { grid-column: auto; text-align: left; }
    .sidebar { padding: 1.3rem 1.2rem; }
    .comment-respond { padding: 1.2rem 1.1rem 1.4rem; }
    .cookie-banner { left: 0.6rem; right: 0.6rem; bottom: 0.6rem; padding: 1rem 1.1rem; }
}
