/*
Theme Name: dds_playguitargame.com
Theme URI: https://playguitargame.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: pgsound
*/

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

/* ---------- Палитра ---------- */
:root {
    --ink: #101B2D;
    --ink-grid: #22304A;
    --ink-raise: #16243A;
    --ink-line: #2E4061;
    --base: #0B1320;
    --tracing: #E8E2D0;
    --tracing-grid: #C9BFA6;
    --tracing-deep: #DDD5BF;
    --sepia: #8A7A5C;
    --sun: #F2C14E;
    --brick: #D94F3D;
    --brick-deep: #A83A2C;
    --moss: #6FA36B;
    --steel: #8FA3BF;
    --white: #FFFFFF;
    --navy-text: #18243A;
    --stamp-blue: #2D4B83;

    --f-head: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    --f-mono: "Plex Mono", "IBM Plex Mono", "PT Mono", "Courier New", monospace;
    --f-hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
    --cut: 12px;
}

/* ---------- Скрытие по атрибуту hidden (до основных стилей) ---------- */
.cookie-banner[hidden] { display: none !important; }
.nav-toggle[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-mono);
    font-size: 15px;
    line-height: 1.65;
    color: var(--tracing);
    background-color: var(--ink);
    background-image:
        linear-gradient(var(--ink-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--ink-grid) 1px, transparent 1px),
        linear-gradient(rgba(34, 48, 74, .45) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 48, 74, .45) 1px, transparent 1px);
    background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
}

p, li, dd, td, th, h1, h2, h3, h4, h5, h6, figcaption, blockquote {
    overflow-wrap: break-word;
    hyphens: auto;
}

p { margin: 0 0 1.1em; }
img { max-width: 100%; height: auto; }
figure { margin: 0; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 .6em;
    letter-spacing: .01em;
}

a { color: var(--sun); text-decoration: underline dashed var(--sun); text-underline-offset: .22em; text-decoration-thickness: 1px; transition: color .15s, text-decoration-color .15s; }
a:hover { color: var(--white); text-decoration-style: solid; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }

table { border-collapse: collapse; width: 100%; margin: 0 0 1.4em; }
th, td { border: 1px solid var(--sepia); padding: .55em .75em; text-align: start; vertical-align: top; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    white-space: nowrap;
}
.skip-link { position: absolute; left: 1rem; top: -60px; z-index: 100; background: var(--sun); color: var(--ink); padding: .6rem 1rem; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 1rem; }

.shell { width: min(92%, 1280px); margin-inline: auto; }
.front .shell { width: min(85%, 1320px); }

/* ---------- Кнопки ---------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4em;
    min-height: 44px;
    padding: .6em 1.6em .6em 1.2em;
    font-family: var(--f-mono);
    font-weight: 600;
    font-size: .88rem;
    letter-spacing: .04em;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    border: 2px solid currentColor;
    background: transparent;
    cursor: pointer;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
    transition: transform .15s, background-color .15s, color .15s;
}
.btn::before {
    content: "";
    position: absolute;
    inset: 3px;
    border: 1px solid currentColor;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut) + 4px), calc(100% - var(--cut) + 4px) 100%, 0 100%);
    pointer-events: none;
    opacity: .75;
}
.btn::after {
    content: "";
    position: absolute;
    right: -2px;
    bottom: calc(var(--cut) / 2 - 2px);
    width: calc(var(--cut) * 1.5);
    height: 2px;
    background: currentColor;
    transform: rotate(-45deg);
    transform-origin: right center;
    pointer-events: none;
}
.btn:hover { transform: translate(2px, -2px); }
.btn:active { transform: translate(0, 0); }

.btn-solid { background: var(--brick); color: var(--white); border-color: var(--white); }
.btn-solid:hover { background: var(--brick-deep); color: var(--white); }
.btn-frame { color: var(--sun); }
.btn-frame:hover { background: var(--sun); color: var(--ink); }
.btn-sm { min-height: 40px; font-size: .8rem; padding: .45em 1.4em .45em 1em; }

/* ---------- Шапка ---------- */
.masthead {
    position: relative;
    border-bottom: 2px solid var(--ink-line);
    padding: 1.6rem 0 1.4rem;
}
.masthead-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2.5rem;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    text-decoration: none;
    color: var(--sun);
    min-width: 0;
    flex: 1 1 520px;
}
.brand:hover { color: var(--sun); }
.brand-mark { flex: 0 0 auto; color: var(--sun); display: block; line-height: 0; }
.brand-svg { width: 88px; height: 88px; display: block; }
.brand-logo { display: block; max-width: 110px; max-height: 96px; width: auto; height: auto; }
.brand-text { display: flex; flex-direction: column; gap: .45rem; min-width: 0; max-width: 62ch; }
.brand-name {
    font-family: var(--f-head);
    font-weight: 500;
    font-size: clamp(1.05rem, 1.55vw, 1.45rem);
    line-height: 1.2;
    color: var(--sun);
    letter-spacing: .01em;
}
.brand-desc {
    font-size: .78rem;
    line-height: 1.5;
    color: var(--tracing);
    opacity: .9;
}

.topnav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.topnav-list li { display: flex; align-items: center; }
.topnav-list li + li::before {
    content: "";
    width: 2px;
    height: 1.2em;
    background: var(--sun);
    opacity: .8;
    margin: 0 .2rem;
}
.topnav-list a {
    display: block;
    padding: .45rem .8rem;
    font-size: .82rem;
    letter-spacing: .14em;
    color: var(--tracing);
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.topnav-list a:hover,
.topnav-list .current-menu-item > a { color: var(--sun); border-bottom-color: var(--sun); }

.nav-toggle {
    display: none;
    align-items: center;
    gap: .6rem;
    min-height: 44px;
    padding: .4rem .9rem;
    font-family: var(--f-mono);
    font-size: .82rem;
    letter-spacing: .12em;
    color: var(--sun);
    background: transparent;
    border: 2px solid var(--sun);
    cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

/* ---------- Листы (секции) ---------- */
.sheet { position: relative; padding: 4.5rem 0; }
.sheet-ink { background: transparent; }
.sheet-tracing {
    color: var(--navy-text);
    background-color: var(--tracing);
    background-image:
        linear-gradient(var(--tracing-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--tracing-grid) 1px, transparent 1px),
        linear-gradient(rgba(201, 191, 166, .45) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 191, 166, .45) 1px, transparent 1px);
    background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
    box-shadow: 0 -6px 0 rgba(11, 19, 32, .35), 0 10px 26px rgba(0, 0, 0, .45);
    margin: 0 1.2%;
}
.sheet-tracing a { color: var(--brick-deep); text-decoration-color: var(--brick); }
.sheet-tracing a:hover { color: var(--navy-text); }
.sheet-tracing .btn-frame { color: var(--navy-text); }
.sheet-tracing .btn-frame:hover { background: var(--navy-text); color: var(--tracing); }

.tape {
    position: absolute;
    width: 74px;
    height: 26px;
    background: rgba(200, 204, 210, .55);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
    z-index: 2;
    pointer-events: none;
}
.tape-l { left: -14px; top: 64px; transform: rotate(-78deg); }
.tape-r { right: -14px; bottom: 110px; transform: rotate(84deg); }

.sec-head { margin-bottom: 2.4rem; }
.sec-title {
    font-size: clamp(1.8rem, 3.6vw, 3rem);
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--sun);
    margin-bottom: .5em;
}
.sheet-tracing .sec-title { color: var(--navy-text); }
.sec-num { font-weight: 500; margin-right: .1em; }
.sec-lead { max-width: 68ch; font-size: .92rem; margin: 0; opacity: .92; }
.fig-note { font-size: .78rem; line-height: 1.5; color: var(--steel); margin-top: .7rem; }
.sheet-tracing .fig-note { color: var(--sepia); }

/* ---------- Блок 1: карта пригодности ---------- */
.map-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 215px) minmax(0, .72fr);
    gap: 2.5rem;
    align-items: start;
}
.cutaway { min-width: 0; }
.cutaway-frame { position: relative; padding-left: 118px; padding-top: 6px; }
.cutaway-frame img { display: block; width: 100%; height: auto; aspect-ratio: 1024 / 1060; object-fit: cover; }
.pin {
    position: absolute;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    font-family: var(--f-head);
    color: var(--tracing);
}
.pin b { font-weight: 500; font-size: 1.15rem; }
.pin i { font-style: normal; font-family: var(--f-mono); font-size: .8rem; color: var(--sun); }
.pin-left { left: 0; width: 112px; transform: translateY(-50%); }
.pin-left::after {
    content: "";
    position: absolute;
    left: 74px;
    right: -14px;
    top: .7em;
    height: 2px;
    background: linear-gradient(90deg, var(--sun) 0 70%, transparent 70%);
}
.pin-left::before {
    content: "";
    position: absolute;
    right: -16px;
    top: calc(.7em - 4px);
    border: 5px solid transparent;
    border-left: 8px solid var(--sun);
}
.pin-top { top: -1.6rem; right: 6%; flex-direction: row; gap: .5rem; align-items: baseline; }
.pin-top b { border-bottom: 2px solid var(--sun); }

.db-scale {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: .8rem;
    min-height: 100%;
    align-self: stretch;
}
.db-unit { grid-column: 1; font-size: .78rem; color: var(--steel); text-align: center; margin-bottom: .4rem; }
.db-rail { grid-column: 1; grid-row: 2; position: relative; min-height: 380px; }
.db-ticks {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    inset: 0 22px 0 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: .74rem;
    color: var(--steel);
    text-align: right;
}
.db-ticks li { position: relative; padding-right: 10px; line-height: 1; }
.db-ticks li::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 1px; background: var(--steel); }
.db-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 6px;
    width: 8px;
    background: linear-gradient(var(--sun) 0 40%, #E3A93C 40% 60%, var(--brick) 60% 100%);
    box-shadow: 0 0 0 2px var(--ink), 0 0 0 3px var(--ink-line);
}
.db-zones {
    grid-column: 2;
    grid-row: 2;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 1rem;
}
.db-zones li { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.db-zones strong { font-family: var(--f-head); font-weight: 500; font-size: 1.3rem; color: var(--sun); line-height: 1.15; }
.db-zones span { font-size: .76rem; line-height: 1.45; color: var(--tracing); }

.map-side { display: flex; flex-direction: column; gap: 1.6rem; min-width: 0; }
.plan-frame { position: relative; padding: 30px 36px 0 0; }
.plan-frame img,
.panel-fig img { display: block; width: 100%; height: auto; border: 2px solid var(--sun); aspect-ratio: 831 / 705; object-fit: cover; }
.panel-fig img { border-color: var(--tracing); aspect-ratio: 828 / 699; }
.dim { position: absolute; display: flex; align-items: center; color: var(--sun); font-size: .82rem; }
.dim::before, .dim::after { content: ""; flex: 1; background: var(--sun); }
.dim-h { top: 4px; left: 0; right: 36px; height: 18px; gap: .6rem; border-left: 2px solid var(--sun); border-right: 2px solid var(--sun); }
.dim-h::before, .dim-h::after { height: 1px; }
.dim-v { top: 30px; bottom: 0; right: 4px; width: 18px; flex-direction: column; gap: .5rem; border-top: 2px solid var(--sun); border-bottom: 2px solid var(--sun); }
.dim-v::before, .dim-v::after { width: 1px; }
.dim-v span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }

/* ---------- Блок 2: каталог пространств ---------- */
.catalog-grid {
    display: grid;
    grid-template-columns: minmax(0, 150px) minmax(0, 1fr) minmax(0, 250px);
    gap: 2.4rem;
    align-items: center;
}
.margin-notes {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.4rem;
    border-right: 1px dashed var(--sepia);
    padding-right: 1.2rem;
}
.scribble {
    font-family: var(--f-hand);
    font-weight: 600;
    font-size: 1.45rem;
    line-height: 1.15;
    color: var(--stamp-blue);
    margin: 0;
    transform: rotate(-6deg);
}
.scribble:nth-child(2) { transform: rotate(4deg); }
.scribble-arrow { display: inline-block; margin-left: .2rem; }
.catalog-main { min-width: 0; }
.catalog-main .sec-lead { margin-bottom: 1.6rem; }
.ledger-wrap { overflow-x: auto; }
.ledger { font-size: .9rem; margin-bottom: 1rem; background: rgba(232, 226, 208, .65); border: 2px solid var(--sepia); }
.ledger th, .ledger td { border-color: var(--sepia); padding: .55rem 1rem; }
.ledger th { font-weight: 600; text-align: start; color: var(--navy-text); border-bottom-width: 2px; }
.ledger td { color: #2A2A28; white-space: nowrap; }
.ledger td:first-child { white-space: normal; }
.ledger tbody tr:hover { background: rgba(242, 193, 78, .18); }
.mark { display: inline-block; width: 15px; height: 15px; margin-right: .6rem; vertical-align: -2px; border: 1px solid var(--sepia); }
.mark-ok { background: var(--moss); }
.mark-warn { background: var(--brick); }
.ledger-legend { font-size: .78rem; color: var(--sepia); margin: 0; }
.ledger-legend .mark { width: 11px; height: 11px; margin: 0 .35rem 0 0; }
.ledger-legend .mark-warn { margin-left: 1.2rem; }
.catalog-art img { display: block; width: 100%; height: auto; aspect-ratio: 540 / 812; object-fit: cover; }

/* ---------- Карточки записей ---------- */
.deck {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
    gap: 2.4rem;
}
.layout-with-sidebar .deck { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 2rem; }
.card {
    --spine: var(--sun);
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #13213A;
    border: 1px solid #5B6F92;
    border-left: 14px solid var(--spine);
    box-shadow: 0 14px 26px rgba(0, 0, 0, .45);
    transition: transform .2s, box-shadow .2s;
}
.card::after {
    content: "";
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 18px;
    height: 18px;
    border-right: 1px solid #5B6F92;
    border-bottom: 1px solid #5B6F92;
    background: linear-gradient(135deg, transparent 50%, rgba(232, 226, 208, .12) 50%);
    pointer-events: none;
}
.spine-brick { --spine: var(--brick); }
.spine-moss { --spine: var(--moss); }
.card:hover { transform: translateY(-4px) rotate(0deg); box-shadow: 0 20px 32px rgba(0, 0, 0, .55); }
.card-thumb { padding: 16px 16px 0; }
.card-thumb a { display: block; border: 1px solid #5B6F92; }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; filter: saturate(.85); }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 1.2rem 1.4rem 1.5rem; min-width: 0; }
.card-flag { align-self: flex-start; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); background: var(--sun); padding: .1rem .5rem; margin-bottom: .6rem; }
.card-title { font-family: var(--f-mono); font-weight: 600; font-size: 1.12rem; line-height: 1.35; margin: 0 0 .7rem; }
.card-title a { color: var(--white); text-decoration: none; }
.card-title a:hover { color: var(--sun); text-decoration: underline dashed var(--sun); }
.card-excerpt { font-size: .84rem; line-height: 1.55; color: var(--tracing); flex: 1; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-excerpt a { color: var(--sun); }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-top: 1rem; }
.stamp-date { font-size: .78rem; color: var(--steel); letter-spacing: .04em; }

.deck-front .card:nth-child(1) { transform: rotate(-2deg); }
.deck-front .card:nth-child(2) { transform: rotate(1.6deg) translateY(-6px); }
.deck-front .card:nth-child(3) { transform: rotate(-1.2deg) translateY(4px); }
.deck-front .card:hover { transform: rotate(0deg) translateY(-6px); }
.deck-more { margin: 3rem 0 0; text-align: center; }
.empty-note { font-size: .95rem; color: var(--steel); }

/* ---------- Блоки 4–5 ---------- */
.duo-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 0;
}
.fs-layers { padding-right: 2.6rem; min-width: 0; }
.fs-check { position: relative; padding-left: 2.6rem; border-left: 2px solid var(--sepia); min-width: 0; padding-bottom: 5rem; }
.fs-duo .sec-title { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }

.strata { margin: 1.4rem 0 1.6rem; }
.strata-labels { list-style: none; margin: 0; padding: 0; position: relative; height: 2.6rem; font-size: .8rem; color: var(--navy-text); }
.strata-labels li { position: absolute; left: var(--x); top: 0; transform: translateX(-50%); white-space: nowrap; }
.strata-labels li::after { content: ""; position: absolute; left: 50%; top: 1.5em; width: 1px; height: 1.05rem; background: var(--navy-text); }
.strata-labels li::before { content: ""; position: absolute; left: calc(50% - 4px); top: calc(1.5em + 1.05rem - 2px); border: 4px solid transparent; border-top: 6px solid var(--navy-text); }
.strata-img { display: block; width: 100%; height: auto; aspect-ratio: 1704 / 216; object-fit: cover; border: 2px solid var(--navy-text); }
.strata-dims { list-style: none; margin: .55rem 0 0; padding: 0; display: flex; font-size: .76rem; color: var(--navy-text); }
.strata-dims li {
    flex: 0 0 var(--w);
    text-align: center;
    position: relative;
    border-left: 1px solid var(--navy-text);
    background: linear-gradient(var(--navy-text), var(--navy-text)) center / 100% 1px no-repeat;
    min-width: 0;
}
.strata-dims li:last-child { border-right: 1px solid var(--navy-text); }
.strata-dims li { line-height: 1.6; padding: 0 .15rem; }
.strata-dims span { background: var(--tracing); padding: 0 .3em; }

.strata-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin: 0 0 .6rem; }
.strata-notes div { border-top: 3px solid var(--sun); padding-top: .6rem; }
.strata-notes div:nth-child(2) { border-top-color: var(--brick); }
.strata-notes div:nth-child(3) { border-top-color: var(--moss); }
.strata-notes dt { font-family: var(--f-head); font-weight: 500; font-size: 1.05rem; margin-bottom: .2rem; }
.strata-notes dd { margin: 0; font-size: .8rem; line-height: 1.5; }

.checklist { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.checklist li { display: flex; align-items: flex-start; gap: .9rem; padding: .55rem 0; font-size: .9rem; line-height: 1.4; border-bottom: 1px dotted var(--tracing-grid); }
.checklist .box { flex: 0 0 24px; height: 24px; border: 2px solid var(--navy-text); position: relative; background: rgba(255, 255, 255, .35); }
.checklist .is-done .box { background: var(--moss); border-color: #3E6A3B; }
.checklist .is-done .box::after { content: ""; position: absolute; left: 6px; top: 1px; width: 7px; height: 13px; border: solid var(--white); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.checklist .is-done { color: #4A4D45; }
.checklist .is-key { font-weight: 600; color: var(--navy-text); }
.hand-arrow { position: absolute; right: 0; bottom: 5.1rem; width: 108px; height: auto; color: #E0A933; }
.seal {
    position: absolute;
    right: 1rem;
    bottom: 1.2rem;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: .04em;
    color: var(--stamp-blue);
    padding: .15rem .9rem;
    border: 3px double var(--stamp-blue);
    transform: rotate(-9deg);
    opacity: .85;
    pointer-events: none;
}

/* ---------- Внутренние страницы ---------- */
.inner { padding: 2.4rem 0 4.5rem; }
.crumbs { font-size: .78rem; color: var(--steel); margin-bottom: 2rem; letter-spacing: .02em; }
.crumbs a { color: var(--sun); }
.crumbs-sep { margin: 0 .35rem; color: var(--sun); }
.crumbs span:last-child { color: var(--tracing); }

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

.page-head { margin-bottom: 2.2rem; }
.page-title { font-size: clamp(1.9rem, 3.4vw, 2.9rem); text-transform: uppercase; color: var(--sun); }
.page-intro { max-width: 70ch; font-size: .92rem; }

.leaf {
    background-color: var(--tracing);
    background-image:
        linear-gradient(rgba(201, 191, 166, .6) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 191, 166, .6) 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--navy-text);
    padding: 2.8rem 3rem;
    border-left: 14px solid var(--sun);
    box-shadow: 0 16px 30px rgba(0, 0, 0, .45);
}
.leaf-title { font-size: clamp(1.7rem, 3vw, 2.5rem); color: var(--navy-text); text-transform: uppercase; }
.leaf-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: .8rem; margin-bottom: 1.8rem; }
.leaf-meta .stamp-date { color: var(--sepia); }
.leaf-cat a { color: var(--brick-deep); }
.leaf-cover { margin: 0 0 2rem; }
.leaf-cover img { display: block; width: 100%; height: auto; border: 2px solid var(--navy-text); }
.leaf-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px dashed var(--sepia); font-size: .8rem; }
.leaf-tags a { color: var(--navy-text); border: 1px solid var(--sepia); padding: .15rem .6rem; text-decoration: none; }
.leaf-tags a:hover { background: var(--navy-text); color: var(--tracing); }

.entry { font-size: .95rem; line-height: 1.75; }
.entry h2 { font-size: 1.7rem; margin-top: 1.8em; text-transform: uppercase; }
.entry h3 { font-size: 1.35rem; margin-top: 1.6em; }
.entry h4 { font-size: 1.15rem; margin-top: 1.4em; }
.entry a { color: var(--brick-deep); text-decoration: underline dashed var(--brick); text-underline-offset: .22em; }
.entry a:hover { color: var(--navy-text); text-decoration-style: solid; }
.entry ul, .entry ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.entry li { margin-bottom: .35em; }
.entry ul li::marker { color: var(--brick); }
.entry ol li::marker { color: var(--brick-deep); font-weight: 600; }
.entry blockquote {
    margin: 1.8em 0;
    padding: 1.4rem 1.8rem;
    background: var(--ink);
    color: var(--tracing);
    border-left: 6px solid var(--sun);
    font-size: 1rem;
}
.entry blockquote p:last-child { margin-bottom: 0; }
.entry blockquote cite { display: block; margin-top: .6rem; font-size: .8rem; color: var(--sun); font-style: normal; }
.entry table { font-size: .86rem; background: rgba(255, 255, 255, .35); }
.entry th { background: var(--tracing-deep); font-weight: 600; }
.entry img { display: block; height: auto; }
.entry figure { margin: 1.6em 0; }
.entry figcaption { font-size: .78rem; color: var(--sepia); margin-top: .5rem; }
.entry pre { background: var(--ink); color: var(--tracing); padding: 1rem 1.2rem; overflow-x: auto; font-size: .85rem; }
.entry code { background: rgba(16, 27, 45, .08); padding: .1em .35em; font-size: .9em; }
.entry pre code { background: none; padding: 0; }
.entry hr { border: 0; border-top: 2px dashed var(--sepia); margin: 2.2em 0; }
.entry .alignleft { float: left; margin: .3em 1.5em 1em 0; }
.entry .alignright { float: right; margin: .3em 0 1em 1.5em; }
.entry .aligncenter { margin-left: auto; margin-right: auto; }
.page-intro.entry a, .page-intro a { color: var(--sun); }

.leaf-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; margin-top: 2.4rem; }
.leaf-nav a { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.2rem; border: 1px solid var(--ink-line); background: var(--ink-raise); color: var(--tracing); text-decoration: none; font-size: .88rem; }
.leaf-nav a span { font-size: .74rem; color: var(--sun); letter-spacing: .08em; }
.leaf-nav a:hover { border-color: var(--sun); }
.leaf-nav-next { text-align: right; grid-column: 2; }

/* ---------- Сайдбар и виджеты ---------- */
.sidebar { min-width: 0; display: flex; flex-direction: column; gap: 1.8rem; }
.sidebar .pane {
    background: var(--ink-raise);
    border: 1px solid var(--ink-line);
    border-top: 4px solid var(--sun);
    padding: 1.4rem 1.5rem;
    color: var(--tracing);
}
.pane-title { font-size: 1.2rem; text-transform: uppercase; letter-spacing: .04em; color: var(--sun); margin-bottom: .9rem; }
.sidebar .pane ul { list-style: none; margin: 0; padding: 0; }
.sidebar .pane li { padding: .55rem 0; border-bottom: 1px dashed var(--ink-line); font-size: .86rem; line-height: 1.45; }
.sidebar .pane li:last-child { border-bottom: 0; }
.sidebar .pane a { color: var(--tracing); text-decoration: none; }
.sidebar .pane a:hover { color: var(--sun); text-decoration: underline dashed var(--sun); }
.sidebar .pane .post-date, .sidebar .pane .rss-date { display: block; font-size: .74rem; color: var(--steel); }
.sidebar .pane p, .sidebar .pane .textwidget { font-size: .86rem; color: var(--tracing); }
.sidebar .pane select { width: 100%; padding: .5rem; font-family: var(--f-mono); }

/* ---------- Пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 3rem; }
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: .3rem .8rem;
    font-size: .86rem;
    color: var(--tracing);
    text-decoration: none;
    border: 2px solid var(--ink-line);
    background: var(--ink-raise);
}
.pager a.page-numbers:hover { border-color: var(--sun); color: var(--sun); }
.pager .page-numbers.current { background: var(--brick); border-color: var(--white); color: var(--white); font-weight: 600; }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; }
.pager-inline { margin-top: 1.6rem; }
.pager-label { font-size: .82rem; margin-right: .4rem; }
.pager-inline > a, .pager-inline > span:not(.pager-label) {
    display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px;
    border: 2px solid var(--sepia); color: var(--navy-text); text-decoration: none;
}

/* ---------- Поиск ---------- */
.finder { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1.4rem 0; max-width: 560px; }
.finder-field {
    flex: 1 1 220px;
    min-width: 0;
    min-height: 46px;
    padding: .6rem .9rem;
    font-family: var(--f-mono);
    font-size: .9rem;
    color: var(--navy-text);
    background: var(--tracing);
    border: 2px solid var(--sun);
    border-radius: 0;
}
.finder-btn { flex: 0 0 auto; }
.sidebar .finder-field { border-color: var(--ink-line); }

.empty-box { padding: 1.8rem 2rem; border: 2px dashed var(--ink-line); }
.lost { text-align: center; }
.lost .finder { margin-left: auto; margin-right: auto; justify-content: center; }
.lost-code { font-family: var(--f-head); font-weight: 700; font-size: clamp(6rem, 18vw, 11rem); line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--sun); margin: 0 0 1rem; }
.lost-text { max-width: 52ch; margin-left: auto; margin-right: auto; }

/* ---------- Комментарии ---------- */
.talk { margin-top: 2.6rem; padding: 2.2rem 2.4rem; background: var(--ink-raise); border: 1px solid var(--ink-line); }
.talk-title, .comment-reply-title { font-size: 1.5rem; text-transform: uppercase; color: var(--sun); }
.talk-list, .talk-list .children { list-style: none; margin: 0; padding: 0; }
.talk-list .children { padding-left: 1.6rem; border-left: 2px dashed var(--ink-line); margin-left: .6rem; }
.note-body { padding: 1.1rem 0; border-bottom: 1px dashed var(--ink-line); }
.note-head { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .8rem; margin-bottom: .5rem; }
.note-avatar { display: block; border: 2px solid var(--sun); }
.note-author { font-weight: 600; color: var(--white); }
.note-date { font-size: .74rem; color: var(--steel); }
.note-wait { font-size: .8rem; color: var(--sun); }
.note-text { font-size: .9rem; }
.note-reply a { font-size: .8rem; }
.talk-closed { color: var(--steel); }
.comment-respond { margin-top: 2rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-size: .82rem; margin-bottom: .3rem; color: var(--tracing); }
.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-mono);
    font-size: .9rem;
    color: var(--navy-text);
    background: var(--tracing);
    border: 2px solid var(--ink-line);
    border-radius: 0;
}
.comment-form .comment-form-cookies-consent { display: flex; gap: .6rem; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { display: inline; margin: 0; }
.comment-notes, .logged-in-as { font-size: .8rem; color: var(--steel); }
.req { color: var(--brick); }
.comment-navigation .nav-links, .comments-pagination .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0; font-size: .85rem; }

/* ---------- Подвал ---------- */
.basement {
    background-color: var(--base);
    background-image: repeating-linear-gradient(45deg, rgba(232, 226, 208, .045) 0 1px, transparent 1px 10px);
    border-top: 3px solid var(--ink-line);
    padding: 4rem 0 1.8rem;
    color: var(--tracing);
}
.basement-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
}
.basement-col { padding: 0 2.4rem; min-width: 0; }
.basement-col:first-child { padding-left: 0; }
.basement-col:last-child { padding-right: 0; }
.basement-col + .basement-col { border-left: 1px solid var(--ink-line); }
.basement .pane { color: var(--tracing); margin-bottom: 1.4rem; }
.basement .pane-title { font-weight: 500; font-size: 1.7rem; text-transform: none; letter-spacing: 0; color: var(--sun); }
.basement .pane p, .basement .textwidget { font-size: .86rem; line-height: 1.6; color: var(--tracing); }
.basement .pane ul { list-style: none; margin: 0; padding: 0; }
.basement .pane li { padding: .2rem 0; font-size: .88rem; }
.basement .pane li a { color: var(--tracing); text-decoration: none; display: inline-flex; gap: .7rem; }
.basement .pane li a::before { content: "›"; color: var(--sun); font-weight: 600; }
.basement .pane li a:hover { color: var(--sun); }
.basement .pane a { color: var(--sun); }
.basement-line { margin-top: 2.6rem; padding-top: 1.2rem; border-top: 1px dashed var(--ink-line); }
.copyright { margin: 0; font-size: .78rem; color: var(--steel); text-align: right; }

/* ---------- Cookie ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    max-width: 760px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 1.2rem 1.6rem;
    padding: 1.2rem 1.6rem;
    background: var(--tracing);
    color: var(--navy-text);
    border: 2px solid var(--navy-text);
    border-left: 12px solid var(--sun);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
}
.cookie-text { margin: 0; font-size: .84rem; line-height: 1.5; flex: 1; min-width: 0; }
.cookie-accept { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
    .map-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 200px); }
    .map-side { grid-column: 1 / -1; flex-direction: row; }
    .map-side > figure { flex: 1 1 0; min-width: 0; }
    .catalog-grid { grid-template-columns: minmax(0, 130px) minmax(0, 1fr) minmax(0, 200px); gap: 1.8rem; }
}

@media (max-width: 960px) {
    .front .shell { width: min(92%, 1320px); }
    .masthead-row { flex-wrap: nowrap; }
    .brand { flex: 1 1 0; }
    .nav-toggle { display: inline-flex; flex: 0 0 auto; }
    .topnav { display: none; width: 100%; }
    .topnav.is-open { display: block; }
    .masthead-row { flex-wrap: wrap; }
    .topnav-list { flex-direction: column; align-items: stretch; border-top: 1px dashed var(--ink-line); padding-top: .6rem; }
    .topnav-list li + li::before { display: none; }
    .topnav-list a { padding: .7rem 0; border-bottom: 1px dashed var(--ink-line); }

    .map-grid { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .db-scale { grid-template-columns: 54px minmax(0, 1fr); }
    .db-rail { min-height: 300px; }
    .catalog-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 200px); }
    .margin-notes { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 1rem 2.4rem; border-right: 0; border-bottom: 1px dashed var(--sepia); padding: 0 0 1rem; }

    .duo-grid { grid-template-columns: minmax(0, 1fr); }
    .fs-layers { padding-right: 0; padding-bottom: 3rem; }
    .fs-check { padding-left: 0; border-left: 0; border-top: 2px solid var(--sepia); padding-top: 3rem; }

    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 3rem; }
    .layout-single .content-area { width: 100%; }
    .basement-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .basement-col { padding: 0; }
    .basement-col + .basement-col { border-left: 0; border-top: 1px solid var(--ink-line); padding-top: 2rem; }
    .copyright { text-align: left; }
}

@media (max-width: 600px) {
    body { font-size: 14px; }
    .sheet { padding: 3.2rem 0; }
    .sheet-tracing { margin: 0; }
    .tape { display: none; }
    .brand-svg { width: 64px; height: 64px; }
    .brand { gap: .8rem; }
    .brand-desc { display: none; }
    .nav-toggle-label { display: none; }

    .cutaway-frame { padding-left: 86px; }
    .pin-left { width: 84px; }
    .pin-left::after { left: 58px; }
    .pin b { font-size: .95rem; }
    .pin i { font-size: .72rem; }
    .pin-top { right: 2%; }
    .map-side { flex-direction: column; }
    .plan-frame { padding-right: 30px; }
    .dim-h { right: 30px; }

    .catalog-grid { grid-template-columns: minmax(0, 1fr); }
    .catalog-art { max-width: 220px; margin: 0 auto; }
    .ledger th, .ledger td { padding: .45rem .6rem; font-size: .8rem; }

    .deck-front .card:nth-child(n) { transform: none; }
    .card-body { padding: 1.1rem 1.1rem 1.3rem; }

    .strata-labels { height: 4.1rem; font-size: .68rem; }
    .strata-labels li:nth-child(even) { top: 1.5rem; }
    .strata-labels li:nth-child(even)::after { height: .6rem; }
    .strata-labels li:nth-child(even)::before { top: calc(1.5em + .6rem - 2px); }
    .strata-labels li:last-child { left: auto; right: 0; transform: none; }
    .strata-labels li:last-child::after { left: auto; right: 15%; }
    .strata-labels li:last-child::before { left: auto; right: calc(15% - 4px); }
    .strata-labels li:first-child { left: 0; transform: none; }
    .strata-labels li:first-child::after { left: 20%; }
    .strata-labels li:first-child::before { left: calc(20% - 4px); }
    .strata-dims { font-size: .6rem; }
    .strata-notes { grid-template-columns: minmax(0, 1fr); }
    .hand-arrow { width: 80px; bottom: 6rem; }
    .seal { font-size: 1.2rem; }

    .leaf { padding: 1.8rem 1.3rem; border-left-width: 8px; }
    .talk { padding: 1.6rem 1.2rem; }
    .leaf-nav { grid-template-columns: minmax(0, 1fr); }
    .leaf-nav-next { grid-column: auto; }
    .sidebar .pane { padding: 1.2rem 1.2rem; }
    .empty-box { padding: 1.4rem 1.2rem; }
    .cookie-banner { flex-direction: column; align-items: stretch; padding: 1rem 1.2rem; left: .6rem; right: .6rem; bottom: .6rem; }
    .entry blockquote { padding: 1.1rem 1.2rem; }
}
