/*
Theme Name: dds_aiupdatepodcast.com
Theme URI: https://aiupdatepodcast.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: aipod
*/

/* ---------- Шрифты (OFL) ---------- */
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/roboto-condensed-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: "Roboto Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/roboto-condensed-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: "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 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+20BD, 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+20BD, 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 {
    --ink: #12213A;
    --ink-grid: #2A4066;
    --plan: #E8EEF7;
    --paper: #F2EFE6;
    --paper-grid: #C9D3E0;
    --paper-deep: #E7E2D5;
    --sheet: #FAF8F2;
    --foot: #0B1524;
    --text-dark-bg: #F2EFE6;
    --text-light-bg: #12213A;
    --mute-dark-bg: #8FA3BF;
    --mute-light-bg: #6B7A90;
    --orange: #FF6B35;
    --orange-deep: #E5541F;
    --blue: #3D8BFF;
    --blue-ink: #1F5BC2;
    --line-dark-bg: #3A5278;
    --line-light-bg: #B7C2D0;
    --f-head: "Roboto Condensed", "Arial Narrow", "Liberation Sans Narrow", Arial, sans-serif;
    --f-body: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
    --f-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --x-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15'%3E%3Cpath d='M7.5 0v15M0 7.5h15' stroke='%23E8EEF7' stroke-width='1'/%3E%3C/svg%3E");
    --x-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15'%3E%3Cpath d='M7.5 0v15M0 7.5h15' stroke='%2312213A' stroke-width='1'/%3E%3C/svg%3E");
    --x-diag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M1 1l10 10M11 1L1 11' stroke='%23FF6B35' stroke-width='1.2'/%3E%3C/svg%3E");
}

/* ---------- Скрытые элементы (до основных стилей) ---------- */
.cookie-banner[hidden] { display: none !important; }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--f-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-light-bg);
    background-color: var(--paper);
    background-image:
        linear-gradient(var(--paper-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--paper-grid) 1px, transparent 1px),
        linear-gradient(rgba(201, 211, 224, .45) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 211, 224, .45) 1px, transparent 1px);
    background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
}
img, svg { max-width: 100%; }
img { height: auto; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 .6em;
    overflow-wrap: break-word;
    hyphens: manual;
}
p, li, td, th, dd, blockquote, figcaption { overflow-wrap: break-word; hyphens: auto; -webkit-hyphenate-limit-before: 4; -webkit-hyphenate-limit-after: 4; hyphenate-limit-chars: 10 4 4; }
a { color: var(--blue-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
a:hover { color: var(--orange-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
table { border-collapse: collapse; width: 100%; margin: 0 0 1.5em; }
th, td { border: 1px solid var(--line-light-bg); padding: .55em .75em; text-align: start; vertical-align: top; }
th { font-family: var(--f-head); font-weight: 700; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--orange); color: var(--ink); padding: .5rem 1rem; font-weight: 600; }
.skip:focus { left: 1rem; top: 1rem; }

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

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
    background: var(--orange);
    border: 1px solid var(--ink);
    box-shadow: 0 0 0 4px transparent;
    padding: .85em 1.6em;
    border-radius: 0;
    cursor: pointer;
    line-height: 1.2;
    transition: background .2s, transform .15s, box-shadow .2s, color .2s;
}
.btn:hover { background: var(--plan); color: var(--ink); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--orange); }
.btn:active { transform: none; box-shadow: none; }
.btn--small { padding: .6em 1.1em; font-size: .9rem; }
.btn--ghost { background: transparent; color: var(--text-dark-bg); border-color: var(--line-dark-bg); }
.btn--ghost:hover { background: var(--orange); color: var(--ink); box-shadow: 4px 4px 0 var(--plan); }

/* ---------- Рамка-чертёж с крестиками ---------- */
.frame { position: relative; border: 1px solid var(--line-light-bg); padding: 1.6rem 1.8rem; }
.frame::before {
    content: "";
    position: absolute;
    inset: -8px;
    background-image: var(--x-light), var(--x-light), var(--x-light), var(--x-light);
    background-position: 0 0, 100% 0, 0 100%, 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: .7;
}
.zone--ink .frame, .masthead .frame { border-color: var(--line-dark-bg); }
.zone--ink .frame::before { background-image: var(--x-dark), var(--x-dark), var(--x-dark), var(--x-dark); }

/* ---------- Шапка ---------- */
.masthead {
    position: relative;
    color: var(--text-dark-bg);
    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(42, 64, 102, .35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(42, 64, 102, .35) 1px, transparent 1px);
    background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
    border-bottom: 1px solid var(--line-dark-bg);
}
.masthead--home { overflow: hidden; }
.masthead--home::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -40px;
    width: 640px;
    height: 460px;
    background: url("images/plan-lines-dark.svg") no-repeat center / contain;
    pointer-events: none;
    opacity: .9;
}
.masthead-bar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.4rem 0;
}
.brand { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.brand-mark { flex: 0 0 auto; color: var(--plan); display: block; line-height: 0; }
.brand-svg { display: block; width: 120px; height: 56px; }
.brand-logo { display: block; max-height: 64px; width: auto; }
.brand-text { min-width: 0; max-width: 560px; }
.brand-name { margin: 0; font-family: var(--f-head); font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.brand-name a { color: var(--text-dark-bg); text-decoration: none; }
.brand-name a:hover { color: var(--orange); }
.brand-desc { margin: .25rem 0 0; font-size: .78rem; line-height: 1.45; color: var(--mute-dark-bg); }

.site-nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2rem; flex-wrap: wrap; }
.site-nav-list a {
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 1.12rem;
    color: var(--text-dark-bg);
    text-decoration: none;
    padding-bottom: .3rem;
    border-bottom: 1px solid var(--line-dark-bg);
    transition: border-color .2s, color .2s;
    white-space: nowrap;
}
.site-nav-list a:hover { color: var(--orange); border-bottom-color: var(--orange); }
.site-nav-list .current-menu-item > a,
.site-nav-list .current_page_item > a { border-bottom: 2px solid var(--orange); }

.nav-toggle { display: none; }

/* Интро на главной */
.intro {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
    padding: 2.5rem 0 3.5rem;
}
.intro-copy { min-width: 0; position: relative; z-index: 2; }
.callout-tag {
    display: inline-block;
    font-family: var(--f-mono);
    font-size: .8rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--orange);
    border: 1px solid var(--orange);
    padding: .2rem .6rem;
    margin-bottom: 1.2rem;
}
.intro-title {
    font-size: clamp(2.5rem, 5.4vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -.01em;
    color: var(--text-dark-bg);
    margin-bottom: .45em;
}
.intro-lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--text-dark-bg); max-width: 26em; margin-bottom: 1.8rem; }
.intro-plan { position: relative; margin: 0; min-width: 0; padding: 1.4rem 0 3.2rem; }
.intro-plan img { display: block; width: 100%; max-width: 520px; margin-left: auto; }
.intro-plan .pin, .intro-plan .plan-note { position: absolute; }
.intro-plan .pin {
    width: 1.7rem;
    height: 1.7rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--orange);
    color: var(--ink);
    font-family: var(--f-mono);
    font-weight: 500;
    font-size: .82rem;
    transform: translate(50%, -50%);
}
/* координаты считаются от правого края, т.к. картинка прижата вправо */
.intro-plan { --pw: min(100%, 520px); }
.pin--1 { right: calc(var(--pw) * .706); top: calc(1.4rem + (100% - 4.6rem) * .54); }
.pin--2 { right: calc(var(--pw) * .31); top: calc(1.4rem + (100% - 4.6rem) * .28); }
.pin--3 { right: calc(var(--pw) * .25); top: calc(1.4rem + (100% - 4.6rem) * .585); }
.pin--4 { right: calc(var(--pw) * .454); top: calc(1.4rem + (100% - 4.6rem) * .675); }
.pin--5 { right: calc(var(--pw) * .71); top: calc(1.4rem + (100% - 4.6rem) * .195); }
.plan-note {
    font-family: var(--f-mono);
    font-size: .74rem;
    color: var(--plan);
    border-bottom: 1px solid var(--plan);
    padding: 0 .2rem .1rem;
    white-space: nowrap;
}
.plan-note--top { right: calc(var(--pw) * .2); top: 0; }
.plan-note--left { right: calc(var(--pw) * .95); top: calc(1.4rem + (100% - 4.6rem) * .33); }
.plan-note--bottom { right: calc(var(--pw) * .36); top: calc(1.4rem + (100% - 4.6rem) * .97); }
.plan-legend {
    position: absolute;
    left: auto;
    right: 0;
    bottom: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .3rem 1rem;
    justify-content: flex-end;
    font-size: .8rem;
    color: var(--mute-dark-bg);
}
.plan-legend b { color: var(--orange); font-family: var(--f-mono); font-weight: 500; margin-right: .2rem; }
.intro-wave {
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    bottom: 26%;
    height: 90px;
    background: url("images/wave-light.svg") repeat-x center / 1200px 90px;
    opacity: .35;
    pointer-events: none;
}

/* ---------- Зоны главной ---------- */
.zone { position: relative; padding: 5rem 0; overflow: hidden; }
.zone > .shell { position: relative; z-index: 1; }
.zone--paper { background-color: var(--paper); color: var(--text-light-bg); }
.zone--paper::after {
    content: "";
    position: absolute;
    right: -120px;
    top: 30px;
    width: 640px;
    height: 460px;
    background: url("images/plan-lines-light.svg") no-repeat center / contain;
    pointer-events: none;
}
.zone--paper,
.inner {
    background-image:
        linear-gradient(var(--paper-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--paper-grid) 1px, transparent 1px),
        linear-gradient(rgba(201, 211, 224, .45) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 211, 224, .45) 1px, transparent 1px);
    background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
}
.zone--ruled { border-top: 1px dashed var(--line-light-bg); }
.zone--ink {
    color: var(--text-dark-bg);
    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(42, 64, 102, .35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(42, 64, 102, .35) 1px, transparent 1px);
    background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
}
.zone--ink::after {
    content: "";
    position: absolute;
    left: -100px;
    bottom: -60px;
    width: 640px;
    height: 460px;
    background: url("images/plan-lines-dark.svg") no-repeat center / contain;
    pointer-events: none;
}
.zone--ink a { color: var(--blue); }
.zone--ink a:hover { color: var(--orange); }
.zone--ink .btn { color: var(--ink); }
.zone--ink .btn--ghost { color: var(--text-dark-bg); }
.zone--ink .btn:hover { color: var(--ink); }

/* Заголовок секции с выноской */
.sec-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: .9rem;
    margin-bottom: 1.6rem;
    border-bottom: 1px solid currentColor;
    border-bottom-color: var(--line-light-bg);
}
.zone--ink .sec-head { border-bottom-color: var(--line-dark-bg); }
.sec-num {
    position: relative;
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid var(--orange);
    border-radius: 50%;
    font-family: var(--f-mono);
    font-weight: 500;
    font-size: .9rem;
    color: var(--orange);
}
.sec-num::after {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    width: .7rem;
    border-top: 1px solid var(--orange);
}
.sec-title {
    margin: 0;
    font-size: clamp(1.7rem, 3.4vw, 2.75rem);
    text-transform: uppercase;
    letter-spacing: .03em;
}
.sec-lead { max-width: 46em; color: var(--mute-light-bg); margin-bottom: 2.5rem; }
.zone--ink .sec-lead { color: var(--mute-dark-bg); }

/* ---------- 01 Маршрут ---------- */
.route-map { position: relative; }
.route-line { position: absolute; left: 0; top: 0; width: 100%; height: 200px; pointer-events: none; }
.route-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    position: relative;
}
.route-step {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 22px .6rem 0;
}
.route-dot {
    order: 1;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    background: var(--paper);
    font-family: var(--f-mono);
    font-weight: 500;
    font-size: .9rem;
    color: var(--ink);
    position: relative;
    z-index: 1;
    transition: background .2s, color .2s;
}
.route-icon {
    order: 2;
    width: 44px;
    height: 44px;
    margin: 1rem 0 .8rem;
    color: var(--ink);
    padding: 4px;
    border: 1px dashed var(--line-light-bg);
    background: var(--sheet);
}
.route-name { order: 3; font-size: 1.15rem; margin: 0 0 .35rem; }
.route-hint { order: 4; font-size: .86rem; line-height: 1.45; color: var(--mute-light-bg); margin: 0; }
.route-step:nth-child(even) { padding-top: 60px; }
.route-step:nth-child(even) .route-icon { order: 0; margin: 0 0 38px; }
.route-step:nth-child(even) .route-dot { margin-top: 0; }
.route-step:nth-child(even) .route-name { margin-top: 1rem; }
.route-step.is-current .route-dot,
.route-step:hover .route-dot { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.route-step.is-current .route-name { color: var(--orange-deep); }

/* ---------- 02 Квартира по частям ---------- */
.anatomy-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: center;
}
.anatomy-plan { margin: 0; padding: 2rem 10.5rem; background: rgba(250, 248, 242, .6); min-width: 0; }
.anatomy-stage { position: relative; max-width: 380px; margin-inline: auto; }
.anatomy-stage img { display: block; width: 100%; }
.room {
    position: absolute;
    transform: translate(-50%, -50%);
    font-family: var(--f-head);
    font-weight: 500;
    font-size: .98rem;
    line-height: 1.2;
    text-align: center;
    color: var(--ink);
    white-space: nowrap;
}
.room--balcony { left: 71.8%; top: 8.5%; }
.room--kitchen { left: 25.3%; top: 38%; }
.room--living { left: 70.7%; top: 40.5%; }
.room--hall { left: 45%; top: 79%; }
.room--bath { left: 75%; top: 77%; font-size: .9rem; }
.leader {
    position: absolute;
    transform: translateY(-50%);
    font-family: var(--f-head);
    font-weight: 500;
    font-size: .95rem;
    line-height: 1.2;
    background: var(--sheet);
    border: 1px solid var(--ink);
    padding: .35rem .55rem;
    white-space: nowrap;
    color: var(--ink);
}
.leader b { color: var(--orange-deep); font-family: var(--f-mono); font-weight: 500; font-size: .8rem; margin-right: .3rem; }
.leader::after { content: ""; position: absolute; top: 50%; width: 32px; border-top: 1px solid var(--ink); }
.leader--kitchen { right: calc(100% + 30px); top: 32.8%; }
.leader--kitchen::after { left: 100%; }
.leader--living { left: calc(100% + 30px); top: 36%; }
.leader--living::after { right: 100%; }
.leader--bath { left: calc(100% + 30px); top: 73%; }
.leader--bath::after { right: 100%; }
.anatomy-notes { min-width: 0; }
.notes-title { font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin-bottom: 1rem; }
.checks { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.checks li { position: relative; padding: 0 0 .9rem 2rem; margin-bottom: .9rem; border-bottom: 1px solid var(--line-light-bg); }
.checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .3em;
    width: 1.1rem;
    height: .6rem;
    border-left: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    transform: rotate(-45deg);
}
.checks strong { font-family: var(--f-head); font-weight: 700; }
.notes-foot { font-size: .9rem; color: var(--mute-light-bg); border-left: 3px solid var(--orange); padding: .2rem 0 .2rem 1rem; margin: 0; }

/* ---------- Карточки записей ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.layout--wide .cards, .cards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--sheet);
    border: 1px solid var(--line-light-bg);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--x-diag) no-repeat center;
    z-index: 2;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--orange); border-color: var(--ink); }
.card-thumb { position: relative; margin: 10px 10px 0; border: 1px solid var(--line-light-bg); overflow: hidden; }
.card-thumb a { display: block; }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: cover; transition: transform .4s; }
.card:hover .card-thumb img { transform: scale(1.04); }
.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 1.1rem 1.25rem 1.2rem; }
.card-title { font-size: 1.28rem; margin: 0 0 .55rem; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--orange-deep); }
.card-excerpt { flex: 1; font-size: .93rem; line-height: 1.55; color: var(--mute-light-bg); }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: .8rem;
    margin-top: .5rem;
    border-top: 1px dashed var(--line-light-bg);
}
.post-date { font-family: var(--f-mono); font-size: .8rem; color: var(--mute-light-bg); }
.card-more { font-family: var(--f-head); font-weight: 700; font-size: .95rem; color: var(--orange-deep); }
.card-more:hover { color: var(--ink); }

.zone--ink .card { background: rgba(11, 21, 36, .78); border-color: var(--line-dark-bg); }
.zone--ink .card:hover { border-color: var(--plan); box-shadow: 6px 6px 0 var(--orange); }
.zone--ink .card-thumb { border-color: var(--line-dark-bg); }
.zone--ink .card-title a { color: var(--text-dark-bg); }
.zone--ink .card-title a:hover { color: var(--orange); }
.zone--ink .card-excerpt, .zone--ink .post-date { color: var(--mute-dark-bg); }
.zone--ink .card-meta { border-top-color: var(--line-dark-bg); }
.zone--ink .card-more { color: var(--orange); }
.zone--ink .card-more:hover { color: var(--plan); }

.fresh::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 80px;
    background: url("images/wave.svg") repeat-x center / 1200px 80px;
    opacity: .55;
    pointer-events: none;
}
.fresh-more { margin: 2.4rem 0 0; text-align: center; }
.empty { color: var(--mute-light-bg); font-style: italic; }
.zone--ink .empty { color: var(--mute-dark-bg); }

/* ---------- 04 Цифры ---------- */
.figures-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 2.5rem; align-items: stretch; }
.spec, .chart { background: var(--sheet); min-width: 0; }
.spec-table { margin: 0; font-size: .92rem; }
.spec-table caption {
    caption-side: top;
    text-align: start;
    font-family: var(--f-mono);
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--mute-light-bg);
    padding-bottom: .8rem;
}
.spec-table thead th { background: var(--ink); color: var(--text-dark-bg); border-color: var(--ink); font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; }
.spec-table tbody th { font-family: var(--f-body); font-weight: 600; width: 38%; }
.spec-table tbody td:nth-child(2) { font-family: var(--f-mono); font-weight: 500; color: var(--orange-deep); white-space: nowrap; }
.spec-table tbody td:last-child { color: var(--mute-light-bg); font-size: .86rem; }
.spec-table tbody tr:hover { background: rgba(201, 211, 224, .35); }
.chart { display: flex; flex-direction: column; overflow: hidden; }
.chart-title { font-size: 1.5rem; text-transform: uppercase; margin: 0 0 .2rem; }
.chart-sub { font-size: .86rem; color: var(--mute-light-bg); margin-bottom: 1.4rem; }
.bars {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: .7rem;
    min-height: 240px;
    padding: 0 .2rem 0;
    border-bottom: 1px solid var(--ink);
    border-left: 1px solid var(--ink);
    background-image: linear-gradient(var(--line-light-bg) 1px, transparent 1px);
    background-size: 100% 2.4rem;
    background-position: bottom;
    position: relative;
}
.bar { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.bar-val { font-family: var(--f-mono); font-size: .82rem; margin-bottom: .25rem; }
.bar-col { display: block; width: 72%; height: calc(var(--v) * 2.4rem); background: var(--ink); border: 1px solid var(--ink); transition: background .2s; }
.bar.is-accent .bar-col, .bar:hover .bar-col { background: var(--orange); }
.bar-cap { position: absolute; bottom: -1.6rem; font-size: .7rem; font-family: var(--f-mono); color: var(--mute-light-bg); white-space: nowrap; }
.bar { position: relative; }
.chart-wave { height: 60px; margin-top: 2.2rem; background: url("images/wave.svg") repeat-x center / 600px 60px; }

/* ---------- 05 Истории ---------- */
.story-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.story {
    position: relative;
    margin: 0;
    padding: 2.2rem 2rem 1.8rem;
    min-width: 0;
    border: 1px solid var(--line-dark-bg);
    background: rgba(11, 21, 36, .55);
}
.story + .story { margin-left: 2.6rem; }
.story + .story::before {
    content: "";
    position: absolute;
    left: calc(-1.3rem - 1px);
    top: -1rem;
    bottom: -1rem;
    border-left: 1px solid var(--line-dark-bg);
}
.story::after { content: ""; position: absolute; inset: 7px; border: 1px dashed var(--line-dark-bg); pointer-events: none; }
.story-label { font-family: var(--f-head); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .03em; color: var(--text-dark-bg); margin-bottom: .9rem; }
.story-quote { margin: 0 0 1rem; font-size: 1.04rem; line-height: 1.6; color: var(--text-dark-bg); }
.story-quote p { margin: 0; }
.story-who { margin: 0; font-family: var(--f-mono); font-size: .78rem; color: var(--mute-dark-bg); }
.seal {
    position: absolute;
    right: 1.1rem;
    top: -.85rem;
    z-index: 1;
    transform: rotate(-7deg);
    font-family: var(--f-mono);
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--orange);
    background: var(--ink);
    border: 1.5px solid var(--orange);
    outline: 1px solid var(--orange);
    outline-offset: 2px;
    padding: .15rem .6rem;
}

/* ---------- Внутренние страницы ---------- */
.inner { padding: 2rem 0 4.5rem; }
.crumbs { font-family: var(--f-mono); font-size: .8rem; color: var(--mute-light-bg); margin-bottom: 2rem; }
.crumbs a { color: var(--blue-ink); }
.crumbs-sep { margin: 0 .35rem; color: var(--orange-deep); }
.layout { display: block; }
.layout--wide .content-area { width: 85%; margin-left: auto; margin-right: auto; }
.layout--aside { display: grid; grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); column-gap: 6%; align-items: start; }
.content-area { min-width: 0; }
.page-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding-bottom: .9rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line-light-bg); }
.page-title { margin: 0; font-size: clamp(1.8rem, 3.6vw, 2.8rem); text-transform: uppercase; letter-spacing: .02em; }
.page-desc { flex-basis: 100%; color: var(--mute-light-bg); }
.sheet { background: var(--sheet); border: 1px solid var(--line-light-bg); padding: 2.2rem 2.4rem; position: relative; }
.sheet::before {
    content: "";
    position: absolute;
    inset: -8px;
    background-image: var(--x-light), var(--x-light), var(--x-light), var(--x-light);
    background-position: 0 0, 100% 0, 0 100%, 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: .7;
}
.sheet-head { padding-bottom: 1rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--line-light-bg); }
.sheet-head .page-title { text-transform: none; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.sheet-meta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .7rem; font-size: .86rem; }
.sheet-cat a { font-family: var(--f-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.sheet-cover { margin: 0 0 1.8rem; border: 1px solid var(--line-light-bg); }
.sheet-cover img { display: block; width: 100%; }
.sheet-tags { margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.sheet-tags a { font-family: var(--f-mono); font-size: .8rem; border: 1px solid var(--line-light-bg); padding: .15rem .5rem; text-decoration: none; }

.entry { font-size: 1.05rem; }
.entry h2 { font-size: 1.8rem; margin-top: 1.8em; padding-bottom: .3em; border-bottom: 1px solid var(--line-light-bg); }
.entry h3 { font-size: 1.4rem; margin-top: 1.5em; }
.entry h4 { font-size: 1.2rem; margin-top: 1.3em; }
.entry ul, .entry ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.entry li { margin-bottom: .35em; }
.entry ul li::marker { color: var(--orange-deep); }
.entry img { display: block; }
.entry figure { margin: 1.5em 0; }
.entry figcaption { font-size: .85rem; color: var(--mute-light-bg); margin-top: .4em; }
.entry blockquote {
    margin: 1.6em 0;
    padding: 1.2rem 1.5rem;
    background: var(--ink);
    color: var(--text-dark-bg);
    border-left: 4px solid var(--orange);
    font-size: 1.12rem;
}
.entry blockquote p:last-child { margin-bottom: 0; }
.entry blockquote a { color: var(--blue); }
.entry table th { background: var(--paper-deep); }
.entry pre, .entry code { font-family: var(--f-mono); font-size: .9em; }
.entry pre { overflow-x: auto; background: var(--ink); color: var(--plan); padding: 1rem 1.2rem; }
.entry hr { border: 0; border-top: 1px dashed var(--line-light-bg); margin: 2em 0; }
.entry--intro { margin-bottom: 2rem; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.page-links { margin-top: 1.5rem; font-family: var(--f-mono); }

.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin: 2.2rem 0; }
.post-nav a { display: block; min-width: 0; padding: 1rem 1.2rem; background: var(--sheet); border: 1px solid var(--line-light-bg); text-decoration: none; color: var(--ink); font-family: var(--f-head); font-weight: 700; transition: border-color .2s, box-shadow .2s; }
.post-nav a:hover { border-color: var(--ink); box-shadow: 4px 4px 0 var(--orange); color: var(--ink); }
.post-nav span { display: block; font-family: var(--f-mono); font-weight: 500; font-size: .75rem; color: var(--mute-light-bg); margin-bottom: .2rem; }
.post-nav-next { grid-column: 2; text-align: end; }

/* ---------- Сайдбар ---------- */
.sidebar {
    min-width: 0;
    background: var(--paper-deep);
    border: 1px solid var(--line-light-bg);
    border-top: 3px solid var(--ink);
    padding: 1.6rem 1.5rem;
    color: var(--text-light-bg);
}
.sidebar .widget + .widget { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px dashed var(--line-light-bg); }
.sidebar .widget-title { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-light-bg); margin-bottom: 1rem; }
.sidebar .widget-title::before { content: ""; display: inline-block; width: .55rem; height: .55rem; background: var(--orange); margin-right: .55rem; vertical-align: middle; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .5rem 0; border-bottom: 1px solid var(--line-light-bg); line-height: 1.4; color: var(--text-light-bg); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--text-light-bg); text-decoration-color: var(--line-light-bg); }
.sidebar a:hover { color: var(--orange-deep); text-decoration-color: var(--orange-deep); }
.sidebar .post-date, .sidebar .rss-date { color: var(--mute-light-bg); font-size: .78rem; display: block; }
.sidebar p { color: var(--text-light-bg); }

/* ---------- Пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 3rem; align-items: center; }
.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;
    color: var(--ink);
    background: var(--sheet);
    border: 1px solid var(--line-light-bg);
    text-decoration: none;
    transition: background .2s, border-color .2s, transform .15s;
}
.pager a.page-numbers:hover { border-color: var(--ink); background: var(--plan); transform: translateY(-2px); }
.pager .page-numbers.current { background: var(--orange); border-color: var(--ink); color: var(--ink); }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; }

/* ---------- Поиск ---------- */
.search-form { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1.2rem 0; }
.search-field {
    flex: 1 1 220px;
    min-width: 0;
    font: inherit;
    padding: .65rem .9rem;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: var(--sheet);
    color: var(--ink);
}
.search-form .btn { border-radius: 0; }

/* ---------- 404 ---------- */
.lost { background: var(--sheet); text-align: center; padding: 3rem 2rem; }
.lost-code { font-family: var(--f-mono); font-size: clamp(4rem, 12vw, 8rem); line-height: 1; color: var(--orange); margin-bottom: .5rem; }
.lost .search-form { max-width: 480px; margin-inline: auto; }
.empty-box { background: var(--sheet); }

/* ---------- Комментарии ---------- */
.comments { margin-top: 2.4rem; background: var(--sheet); padding: 2rem 2.2rem; }
.comments-title { font-size: 1.5rem; text-transform: uppercase; }
.notes, .notes .children { list-style: none; margin: 0; padding: 0; }
.notes .children { padding-left: 1.8rem; border-left: 1px dashed var(--line-light-bg); margin-top: 1rem; }
.note { margin-bottom: 1rem; }
.note-body { border: 1px solid var(--line-light-bg); padding: 1rem 1.2rem; background: #FFFFFF; }
.note-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.note-author { font-family: var(--f-head); font-weight: 700; }
.note-date { font-family: var(--f-mono); font-size: .78rem; color: var(--mute-light-bg); }
.note-wait { font-size: .85rem; color: var(--orange-deep); }
.note-reply a { font-family: var(--f-head); font-weight: 700; font-size: .9rem; }
.comment-respond { margin-top: 2rem; }
.comment-reply-title { font-size: 1.35rem; text-transform: uppercase; }
.comment-reply-title small { font-size: .8rem; margin-left: .6rem; text-transform: none; }
.form-note { font-size: .86rem; color: var(--mute-light-bg); }
.comment-form label { display: block; font-family: var(--f-head); font-weight: 500; margin-bottom: .3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    font: inherit;
    padding: .65rem .85rem;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: #FFFFFF;
    color: var(--ink);
}
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent label { font-family: var(--f-body); font-weight: 400; font-size: .9rem; margin: 0; }
.comment-form .submit {
    font-family: var(--f-head);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: var(--orange);
    color: var(--ink);
    border: 1px solid var(--ink);
    border-radius: 0;
    padding: .8em 1.6em;
    cursor: pointer;
    transition: background .2s, box-shadow .2s, transform .15s;
}
.comment-form .submit:hover { background: var(--plan); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--orange); }
.req { color: var(--orange-deep); }

/* ---------- Подвал ---------- */
.site-foot { position: relative; background: var(--foot); color: var(--mute-dark-bg); padding: 4.2rem 0 1.6rem; overflow: hidden; }
.foot-wave { position: absolute; left: 0; right: 0; top: 0; height: 60px; background: url("images/wave-light.svg") repeat-x center / 1200px 60px; opacity: .14; pointer-events: none; }
.foot-cols { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
.foot-col { min-width: 0; color: var(--mute-dark-bg); }
.site-foot .widget-title { font-size: 1.25rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-dark-bg); margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line-dark-bg); }
.site-foot .widget, .site-foot .widget p, .site-foot .textwidget { color: var(--mute-dark-bg); font-size: .93rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { padding: .3rem 0; color: var(--mute-dark-bg); }
.site-foot a { color: var(--plan); text-decoration-color: var(--line-dark-bg); }
.site-foot a:hover { color: var(--orange); text-decoration-color: var(--orange); }
.site-foot .post-date { color: var(--mute-dark-bg); }
.foot-base { position: relative; margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line-dark-bg); text-align: center; }
.foot-base p { margin: 0; font-size: .86rem; color: var(--mute-dark-bg); }

/* ---------- Cookie ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    max-width: 920px;
    margin-inline: auto;
    padding: 1rem 1.4rem;
    background: var(--ink);
    color: var(--text-dark-bg);
    border: 1px solid var(--line-dark-bg);
    border-top: 3px solid var(--orange);
    box-shadow: 6px 6px 0 rgba(11, 21, 36, .5);
}
.cookie-text { margin: 0; font-size: .9rem; min-width: 0; }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
    .anatomy-plan { padding: 2rem 8.5rem; }
    .leader { font-size: .85rem; }
}

@media (max-width: 960px) {
    .masthead-bar { flex-wrap: wrap; }
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: .6rem;
        font-family: var(--f-head);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .08em;
        color: var(--text-dark-bg);
        background: transparent;
        border: 1px solid var(--line-dark-bg);
        border-radius: 0;
        padding: .55rem .9rem;
        cursor: pointer;
    }
    .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: var(--orange); 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; }
    .site-nav { display: none; flex-basis: 100%; }
    .site-nav.is-open { display: block; }
    .site-nav-list { flex-direction: column; gap: 0; border-top: 1px solid var(--line-dark-bg); }
    .site-nav-list li { border-bottom: 1px solid var(--line-dark-bg); }
    .site-nav-list a { display: block; padding: .8rem 0; border-bottom: 0; white-space: normal; }
    .site-nav-list .current-menu-item > a, .site-nav-list .current_page_item > a { border-bottom: 0; color: var(--orange); }

    .intro { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-top: 1.5rem; }
    .intro-plan { max-width: 560px; }
    .intro-wave { bottom: 48%; }

    .route-line { display: none; }
    .route-steps { grid-template-columns: minmax(0, 1fr); gap: 0; border-left: 1px dashed var(--ink); margin-left: 18px; }
    .route-step, .route-step:nth-child(even) {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        grid-template-areas: "icon name" "icon hint";
        column-gap: 1rem;
        text-align: start;
        align-items: start;
        padding: 0 0 1.6rem 2.2rem;
        position: relative;
    }
    .route-dot { position: absolute; left: -18px; top: 0; }
    .route-step .route-icon, .route-step:nth-child(even) .route-icon { grid-area: icon; margin: 0; }
    .route-step .route-name, .route-step:nth-child(even) .route-name { grid-area: name; margin: .4rem 0 .2rem; }
    .route-step .route-hint { grid-area: hint; }

    .anatomy-grid, .figures-grid { grid-template-columns: minmax(0, 1fr); }
    .anatomy-plan { padding: 2rem 9rem; }
    .cards--three, .layout--wide .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .story-row { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .story + .story { margin-left: 0; }
    .story + .story::before { display: none; }
    .layout--aside { grid-template-columns: minmax(0, 1fr); row-gap: 2.5rem; }
    .layout--wide .content-area { width: 100%; }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.2rem; }
}

@media (max-width: 600px) {
    body { font-size: .97rem; }
    .shell { width: 92%; }
    .brand-svg { width: 92px; height: 43px; }
    .brand-desc { display: none; }
    .zone { padding: 3.4rem 0; }
    .zone--paper::after, .zone--ink::after, .masthead--home::after { opacity: .45; }
    .intro-plan .plan-note { display: none; }
    .plan-legend { position: static; justify-content: flex-start; margin-top: .8rem; }
    .intro-plan { padding-bottom: 0; }
    .pin--1, .pin--2, .pin--3, .pin--4, .pin--5 { display: none; }
    .anatomy-plan { padding: 1.4rem 1.2rem; }
    .leader { display: none; }
    .room { font-size: .8rem; }
    .room--bath { font-size: .74rem; }
    .cards, .cards--three, .layout--wide .cards { grid-template-columns: minmax(0, 1fr); }
    .frame { padding: 1.3rem 1.2rem; }
    .spec { padding: 1rem .8rem; overflow-x: auto; }
    .spec-table { font-size: .84rem; }
    .spec-table tbody td:nth-child(2) { white-space: normal; }
    .bars { gap: .35rem; }
    .bar-cap { font-size: .6rem; transform: rotate(-30deg); transform-origin: top center; }
    .chart-wave { margin-top: 2.8rem; }
    .story { padding: 2rem 1.3rem 1.5rem; }
    .sheet { padding: 1.5rem 1.2rem; }
    .comments { padding: 1.5rem 1.2rem; }
    .post-nav { grid-template-columns: minmax(0, 1fr); }
    .post-nav-next { grid-column: auto; }
    .foot-cols { grid-template-columns: minmax(0, 1fr); }
    .cookie-banner { flex-direction: column; align-items: flex-start; padding: 1rem 1.2rem; }
    .lost { padding: 2rem 1.2rem; }
}

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