/*
Theme Name: dds_jlewistrading.com
Theme URI: https://jlewistrading.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: jlewis
*/

/* ===== Шрифты (локально, SIL OFL 1.1) ===== */
@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: '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+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: normal; font-weight: 500; font-display: swap; src: url('fonts/ibm-plex-sans-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 Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/ibm-plex-sans-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 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; }
@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 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; }

/* ===== Служебные правила [hidden] — до основных блоков ===== */
.cookie-banner[hidden] { display: none !important; }
.site-nav[hidden] { display: none !important; }

/* ===== Переменные ===== */
:root {
    --ink: #232A30;
    --paper: #F7F4EC;
    --paper-warm: #F1E9D3;
    --blue: #3E8ED0;
    --blue-deep: #1F5E92;
    --orange: #E8622C;
    --orange-dark: #C94B19;
    --muted: #6B7A86;
    --tracing: #DDE6EC;
    --tape: #E8D9A8;
    --bg: #EAF0F4;
    --head-muted: #9FB2C0;
    --foot-text: #C9D4DC;
    --line: rgba(62, 142, 208, .45);
    --line-soft: rgba(62, 142, 208, .22);
    --f-head: 'Oswald', 'Arial Narrow', 'Roboto Condensed', 'Liberation Sans Narrow', sans-serif;
    --f-body: 'IBM Plex Sans', 'Segoe UI', Roboto, Arial, sans-serif;
    --f-mono: 'IBM Plex Mono', 'Courier New', Consolas, monospace;
    --lift: 0 1px 0 rgba(35, 42, 48, .06), 0 12px 18px -14px rgba(35, 42, 48, .45);
}

/* ===== База ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(62, 142, 208, .26) 1px, transparent 1px),
        linear-gradient(90deg, rgba(62, 142, 208, .26) 1px, transparent 1px),
        linear-gradient(rgba(62, 142, 208, .11) 1px, transparent 1px),
        linear-gradient(90deg, rgba(62, 142, 208, .11) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
    background-position: -1px -1px;
}

img, svg { max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 .6em;
    color: var(--ink);
    overflow-wrap: break-word;
    hyphens: auto;
}
p { margin: 0 0 1em; }
p, li, td, th, dd, blockquote, figcaption { overflow-wrap: break-word; hyphens: auto; }

a { color: var(--blue-deep); text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s ease, text-decoration-color .15s ease; }
a:hover { color: var(--orange-dark); text-decoration-color: var(--orange); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

table { border-collapse: collapse; width: 100%; border: 1px solid var(--line); }
th, td { border: 1px solid var(--line); padding: .55em .75em; text-align: left; vertical-align: top; }
th { font-family: var(--f-head); font-weight: 500; letter-spacing: .04em; color: var(--blue-deep); }

.screen-reader-text {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 1rem; top: -60px; z-index: 100; background: var(--orange); color: #fff; padding: .6rem 1rem; text-decoration: none; }
.skip-link:focus { top: 1rem; color: #fff; }

/* ===== Контейнер ===== */
.shell { width: min(85%, 1240px); margin-left: auto; margin-right: auto; }

/* ===== Бумажные элементы: скотч, скрепка ===== */
.tape {
    position: absolute;
    z-index: 3;
    width: 118px;
    height: 30px;
    background: var(--tape);
    opacity: .9;
    box-shadow: 0 1px 2px rgba(35, 42, 48, .12);
    clip-path: polygon(0 8%, 6% 0, 12% 10%, 20% 2%, 30% 9%, 40% 0, 52% 8%, 63% 1%, 74% 9%, 86% 0, 94% 7%, 100% 2%, 100% 92%, 94% 100%, 85% 91%, 74% 100%, 62% 92%, 50% 100%, 38% 91%, 27% 100%, 15% 92%, 6% 100%, 0 90%);
    pointer-events: none;
}
.tape--top { top: -14px; left: 50%; transform: translateX(-50%) rotate(-2.5deg); }
.tape--corner { top: -10px; right: -18px; transform: rotate(38deg); width: 96px; }

.clip {
    position: absolute;
    z-index: 4;
    width: 18px;
    height: 58px;
    border: 3px solid #8E9AA3;
    border-radius: 9px;
    pointer-events: none;
}
.clip::after {
    content: "";
    position: absolute;
    left: 3px;
    right: 3px;
    top: 9px;
    bottom: -3px;
    border: 3px solid #8E9AA3;
    border-top-color: transparent;
    border-radius: 0 0 6px 6px;
}
.clip--left { top: -16px; left: 22px; transform: rotate(-8deg); }
.clip--right { top: -22px; right: 14px; transform: rotate(6deg); }
.calc .sec-head { padding-right: 1.6rem; }

/* ===== Лист-плашка ===== */
.board {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--lift);
    padding: 1.8rem 2rem 2rem;
}

/* ===== Заголовки секций — подписи на чертеже ===== */
.sec-head {
    display: flex;
    align-items: baseline;
    gap: .9rem;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 1.28rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--blue-deep);
    margin: 0 0 1.2rem;
    padding-bottom: .55rem;
    border-bottom: 4px solid var(--blue);
}
.sec-num { color: var(--orange); letter-spacing: .04em; font-weight: 700; }

/* ===== Кнопка-штамп ===== */
.stamp-btn {
    display: inline-block;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    line-height: 1.2;
    color: var(--orange);
    background: transparent;
    border: 3px solid var(--orange);
    border-radius: 0;
    padding: .6em 1.2em;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.stamp-btn:hover, .stamp-btn:focus-visible {
    background: var(--orange);
    color: var(--paper);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--ink);
}
.stamp-btn:active { transform: translate(0, 0); box-shadow: none; }
.stamp-btn--lg { font-size: 1.3rem; padding: .55em 1.1em; outline: 1px solid rgba(232, 98, 44, .45); outline-offset: 3px; }
.stamp-btn--sm { font-size: .82rem; border-width: 2px; padding: .4em .85em; }

/* ===== Шапка ===== */
.topbar {
    background: var(--ink);
    border-bottom: 3px solid var(--blue);
    color: var(--bg);
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 720px;
    color: #FFFFFF;
    text-decoration: none;
}
.brand:hover { color: #FFFFFF; }
.brand-badge { flex: 0 0 auto; display: block; color: var(--bg); line-height: 0; }
.brand-mark { display: block; width: 58px; height: 58px; }
.brand-logo { display: block; max-height: 64px; width: auto; }
.brand-text { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.brand-name {
    font-family: var(--f-body);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.35;
    color: #FFFFFF;
    overflow-wrap: break-word;
}
.brand-desc {
    font-size: .8rem;
    line-height: 1.4;
    color: var(--head-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.site-nav { flex: 0 0 auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; align-items: center; }
.nav-list li { border-left: 1px solid var(--blue); }
.nav-list li:first-child { border-left: 0; }
.nav-list a {
    display: block;
    padding: .35rem 1.1rem;
    color: var(--bg);
    font-weight: 500;
    font-size: .98rem;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color .15s ease, border-color .15s ease;
}
.nav-list li:last-child a { padding-right: 0; }
.nav-list a:hover, .nav-list .current-menu-item > a { color: #FFFFFF; border-bottom-color: var(--orange); }

.nav-toggle {
    display: none;
    align-items: center;
    gap: .6rem;
    background: transparent;
    color: var(--bg);
    border: 2px solid var(--blue);
    padding: .5rem .8rem;
    font-family: var(--f-head);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .9rem;
    cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 20px; height: 2px; background: var(--bg); position: relative; content: "";
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

/* ===== Главная ===== */
.front { padding: 3rem 0 3.5rem; }

.lead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 4rem;
}
.lead-text { min-width: 0; }
.lead-title {
    font-family: var(--f-head);
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(2rem, 3.75vw, 4.1rem);
    line-height: 1.04;
    letter-spacing: -.005em;
    color: var(--ink);
    margin: 0 0 1.4rem;
    hyphens: manual;
}
.lead-title span { display: block; white-space: nowrap; }
.lead-sub { font-size: 1.12rem; color: var(--muted); max-width: 30em; margin-bottom: 1.8rem; }

.lead-desk { position: relative; min-width: 0; min-height: 470px; }
.sheet { margin: 0; position: absolute; background: var(--paper); border: 1px solid rgba(35, 42, 48, .12); box-shadow: var(--lift); }
.sheet img { display: block; width: 100%; height: auto; }
.sheet--plan {
    top: 22px; left: 0; width: 64%;
    padding: 16px;
    transform: rotate(-3deg);
    background-color: #FBFCFD;
    background-image:
        linear-gradient(rgba(62, 142, 208, .18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(62, 142, 208, .18) 1px, transparent 1px);
    background-size: 12px 12px;
    z-index: 2;
}
.sheet--plan img { aspect-ratio: 845 / 778; object-fit: cover; mix-blend-mode: multiply; }
.sheet--photo { top: 46px; right: 0; width: 41%; padding: 10px 10px 14px; transform: rotate(1.5deg); z-index: 1; }
.sheet--photo img { aspect-ratio: 624 / 497; object-fit: cover; }
.sheet--swatch { top: 300px; right: 5%; width: 30%; padding: 8px; transform: rotate(-1deg); z-index: 1; }
.sheet--swatch img { aspect-ratio: 382 / 200; object-fit: cover; }

.duo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: stretch;
    margin-bottom: 3.5rem;
}
.duo > .board { min-width: 0; }

/* Калькулятор */
.calc-note { font-size: .92rem; color: var(--muted); margin-bottom: 1rem; }
.ledger { font-family: var(--f-mono); font-size: .95rem; border: 0; border-top: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); }
.ledger th, .ledger td { border: 0; border-bottom: 1.5px solid var(--line); padding: .7rem .8rem; vertical-align: middle; }
.ledger th:first-child, .ledger td:first-child { border-right: 1.5px solid var(--line); width: 52%; color: var(--muted); }
.ledger thead th { font-family: var(--f-mono); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; color: var(--muted); }
.ledger tbody td + td { color: var(--ink); white-space: nowrap; }
.ledger-total th { font-family: var(--f-mono); font-weight: 400; color: var(--muted); letter-spacing: 0; }
.ledger-total td { white-space: nowrap; }
.ledger-sum {
    font-family: var(--f-head);
    font-weight: 600;
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
    line-height: 1;
    color: var(--orange);
    border-bottom: 3px solid var(--orange);
    padding-bottom: .1em;
}
.ledger-tick { display: inline-block; vertical-align: middle; margin-left: .7rem; color: #7E8790; }
.calc-foot { font-size: .9rem; color: var(--ink); margin: 1rem 0 0; }

/* Анатомия сделки */
.anatomy {
    background-color: #E6EDF2;
    background-image:
        linear-gradient(rgba(62, 142, 208, .16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(62, 142, 208, .16) 1px, transparent 1px);
    background-size: 14px 14px;
    container-type: inline-size;
}
.anatomy-map { position: relative; padding: .4rem 0 .6rem; }
.anatomy-img {
    display: block;
    width: 56%;
    margin: 0 auto;
    aspect-ratio: 780 / 697;
    object-fit: cover;
    mix-blend-mode: multiply;
}
.pt-num {
    flex: 0 0 1.6rem;
    width: 1.6rem; height: 1.6rem;
    display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid var(--orange); border-radius: 50%;
    font-family: var(--f-head); font-weight: 700; font-size: .85rem; line-height: 1; color: var(--orange);
    background: var(--paper);
}
.tag {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 1.02rem;
    letter-spacing: .02em;
    color: var(--blue-deep);
    white-space: nowrap;
}
.tag::after { content: ""; width: 28px; height: 1px; background: var(--blue); }
.tag--1 { top: 6%; left: 0; }
.tag--2 { top: 6%; right: 0; flex-direction: row-reverse; }
.tag--3 { top: 40%; right: 0; flex-direction: row-reverse; }
.tag--4 { bottom: 12%; right: 0; flex-direction: row-reverse; }
.tag--5 { bottom: 12%; left: 0; }
.tag--2 .pt-num, .tag--3 .pt-num, .tag--4 .pt-num { order: 2; }
.anatomy-legend {
    list-style: none;
    margin: .8rem 0 0;
    padding: .9rem 0 0;
    border-top: 1px dashed var(--line);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem 1.2rem;
}
.anatomy-legend li { display: flex; gap: .5rem; align-items: flex-start; font-size: .82rem; line-height: 1.45; color: #4C5A66; }
.anatomy-legend li:last-child { grid-column: 1 / -1; }
.anatomy-legend strong { color: var(--blue-deep); font-weight: 600; }
.pt-body { min-width: 0; }

@container (max-width: 520px) {
    .tag { display: none; }
    .anatomy-img { width: 82%; }
    .anatomy-legend { grid-template-columns: minmax(0, 1fr); }
}

/* Последние записи */
.latest { margin-bottom: 3.5rem; }
.latest-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; border-bottom: 4px solid var(--blue); margin-bottom: 1.6rem; }
.latest-head .sec-head { border-bottom: 0; margin-bottom: 0; }
.latest-all { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .06em; font-size: .92rem; padding-bottom: .6rem; white-space: nowrap; }

/* Карточки */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.8rem; counter-reset: sheet; }
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--lift);
    padding: 14px 14px 0;
    counter-increment: sheet;
    transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px) rotate(-.4deg); box-shadow: 0 1px 0 rgba(35, 42, 48, .06), 0 18px 22px -14px rgba(35, 42, 48, .5); }
.card::after {
    content: "№ " counter(sheet, decimal-leading-zero);
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 2;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: .74rem;
    letter-spacing: .08em;
    color: var(--orange);
    background: var(--paper);
    border: 2px solid var(--orange);
    padding: .1rem .45rem;
    transform: rotate(4deg);
}
.card-tape {
    position: absolute; z-index: 3; top: -13px; left: 50%;
    width: 92px; height: 26px; background: var(--tape); opacity: .88;
    transform: translateX(-50%) rotate(-3deg);
    clip-path: polygon(0 10%, 8% 0, 18% 8%, 30% 0, 44% 9%, 58% 0, 72% 8%, 86% 0, 100% 6%, 100% 90%, 90% 100%, 76% 92%, 62% 100%, 48% 91%, 34% 100%, 20% 92%, 8% 100%, 0 92%);
}
.card-grid .card:nth-child(3n+2) .card-tape { transform: translateX(-50%) rotate(2.5deg); left: 46%; }
.card-grid .card:nth-child(3n) .card-tape { transform: translateX(-50%) rotate(-1deg); left: 56%; }
.card-thumb { overflow: hidden; background: var(--tracing); }
.card-thumb a { display: block; }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; filter: saturate(.92); transition: transform .3s ease; }
.card:hover .card-thumb img { transform: scale(1.03); }
.card-blank {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 16 / 7;
    background-color: var(--tracing);
    background-image: linear-gradient(rgba(62, 142, 208, .2) 1px, transparent 1px), linear-gradient(90deg, rgba(62, 142, 208, .2) 1px, transparent 1px);
    background-size: 12px 12px;
}
.card-blank svg { display: block; width: 46%; fill: none; stroke: var(--blue); stroke-width: 2; }
.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 1rem .35rem 1.1rem; }
.card-pin { align-self: flex-start; font-family: var(--f-head); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; color: var(--paper); background: var(--blue); padding: .1rem .5rem; margin-bottom: .5rem; }
.card-title { font-family: var(--f-body); font-weight: 600; font-size: 1.12rem; line-height: 1.35; margin: 0 0 .5rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--orange-dark); }
.card-excerpt { font-size: .92rem; color: #3D4750; margin-bottom: .9rem; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.card-date { font-size: .84rem; color: var(--muted); font-family: var(--f-mono); }
.empty-note { font-size: 1rem; color: var(--muted); background: var(--paper); border: 1px dashed var(--line); padding: 1.2rem 1.4rem; }

/* Рынок в разрезе */
.market { margin-bottom: 3.5rem; }
.atlas-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.atlas { min-width: 820px; font-size: .92rem; border-color: var(--line); }
.atlas thead th {
    font-family: var(--f-head);
    font-weight: 500;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--blue-deep);
    vertical-align: bottom;
    background: var(--paper);
    border-bottom: 2px solid var(--blue);
}
.atlas tbody th { font-family: var(--f-mono); font-weight: 500; font-size: .92rem; color: var(--ink); letter-spacing: 0; white-space: nowrap; }
.atlas td { color: var(--ink); }
.atlas td:nth-child(3), .atlas td:nth-child(4), .atlas td:nth-child(5) { font-family: var(--f-mono); white-space: nowrap; }
.atlas td:nth-child(5) { color: var(--orange-dark); font-weight: 500; }
.atlas td:last-child { text-align: center; width: 70px; }
.atlas tbody tr:nth-child(even) th, .atlas tbody tr:nth-child(even) td { background: var(--tracing); }
.atlas tbody tr:nth-child(odd) th, .atlas tbody tr:nth-child(odd) td { background: #FBFAF6; }
.house-ic { display: inline-block; width: 34px; height: 34px; fill: none; stroke: var(--blue-deep); stroke-width: 2; stroke-linejoin: round; }
.atlas-note { font-size: .86rem; color: var(--muted); margin: 1rem 0 0; }

/* Подрядчики */
.crew { background: #EFF3F6; }
.crew-intro { max-width: 52em; color: #3D4750; margin-bottom: 1.6rem; }
.crew-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.ring-card {
    position: relative;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 1rem;
    min-width: 0;
    background: var(--paper-warm);
    border: 1px solid rgba(35, 42, 48, .14);
    border-left: 3px double rgba(62, 142, 208, .55);
    box-shadow: var(--lift);
    padding: 1.3rem 1.3rem 3.6rem 1.6rem;
    transition: transform .2s ease;
}
.ring-card:hover { transform: translateX(4px); }
.ring-holes { position: absolute; left: -14px; top: 0; bottom: 0; width: 26px; pointer-events: none; }
.ring-holes::before, .ring-holes::after {
    content: "";
    position: absolute;
    left: 0;
    width: 26px;
    height: 11px;
    border: 3px solid #8E9AA3;
    border-radius: 6px;
    background: transparent;
}
.ring-holes::before { top: 22%; }
.ring-holes::after { bottom: 22%; }
.ring-icon { display: flex; flex-direction: column; align-items: center; gap: .4rem; text-align: center; }
.ring-icon svg { display: block; width: 52px; height: 52px; fill: none; stroke: var(--blue-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ring-cap { font-size: .7rem; line-height: 1.3; color: var(--muted); }
.ring-body { min-width: 0; }
.ring-title { font-family: var(--f-head); font-weight: 500; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .1em; color: var(--blue-deep); margin: 0 0 .6rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: .22rem 0 .22rem 1.5rem; font-size: .9rem; border-bottom: 1px dotted rgba(62, 142, 208, .3); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: .2rem; font-weight: 700; color: var(--ink); }
.seal {
    position: absolute;
    right: 1.1rem;
    bottom: 1rem;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--orange);
    border: 2px solid var(--orange);
    outline: 1px solid rgba(232, 98, 44, .5);
    outline-offset: 2px;
    padding: .15rem .6rem;
    transform: rotate(-7deg);
    opacity: .92;
}

/* ===== Внутренние страницы ===== */
.crumbs { padding: 1.6rem 0 1.2rem; font-size: .86rem; color: var(--muted); }
.crumbs a { color: var(--blue-deep); }
.crumbs-sep { color: var(--orange); margin: 0 .35rem; }
.crumbs-current { color: var(--ink); }

.layout-single { display: block; padding-bottom: 3.5rem; }
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    column-gap: 6%;
    align-items: start;
    padding-bottom: 3.5rem;
}
.content-area { min-width: 0; }

.page-head { margin-bottom: 1.8rem; }
.page-title {
    font-family: var(--f-head);
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    line-height: 1.08;
    padding-bottom: .5rem;
    border-bottom: 4px solid var(--blue);
    margin-bottom: .9rem;
}
.page-lead { color: var(--muted); font-size: 1.04rem; }
.card-grid--feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.no-sidebar .card-grid--feed { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.doc { position: relative; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--lift); padding: 2.4rem 2.6rem 2.6rem; }
.doc-head { margin-bottom: 1.6rem; }
.doc-title { font-family: var(--f-head); font-weight: 700; font-size: clamp(1.8rem, 3.3vw, 2.7rem); line-height: 1.1; text-transform: uppercase; margin-bottom: .8rem; }
.doc-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .88rem; color: var(--muted); padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.doc-date { font-family: var(--f-mono); }
.doc-cats { display: flex; flex-wrap: wrap; gap: .5rem; }
.doc-cats a { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; text-decoration: none; color: var(--orange-dark); border: 1px solid var(--orange); padding: .05rem .5rem; }
.doc-cover { margin: 0 0 1.8rem; border: 8px solid #FFFFFF; box-shadow: var(--lift); }
.doc-cover img { display: block; width: 100%; height: auto; }
.doc-tags { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.doc-tags a { font-family: var(--f-mono); font-size: .86rem; }

.entry { font-size: 1.04rem; line-height: 1.75; }
.entry > *:last-child { margin-bottom: 0; }
.entry h2 { font-size: 1.65rem; text-transform: uppercase; letter-spacing: .03em; color: var(--blue-deep); margin: 2rem 0 .8rem; padding-bottom: .35rem; border-bottom: 2px solid var(--blue); }
.entry h3 { font-size: 1.35rem; margin: 1.7rem 0 .7rem; }
.entry h4 { font-size: 1.15rem; margin: 1.4rem 0 .6rem; }
.entry p { margin: 0 0 1.1em; }
.entry ul, .entry ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.entry li { margin-bottom: .4em; }
.entry ul li::marker { color: var(--orange); }
.entry ol li::marker { color: var(--blue-deep); font-family: var(--f-mono); }
.entry blockquote {
    margin: 1.6rem 0;
    padding: 1.2rem 1.5rem;
    background: var(--tracing);
    border-left: 5px solid var(--orange);
    font-size: 1.08rem;
    font-style: italic;
}
.entry blockquote p:last-child { margin-bottom: 0; }
.entry table { margin: 1.4rem 0; font-size: .95rem; background: #FFFFFF; }
.entry thead th { background: var(--tracing); }
.entry tbody tr:nth-child(even) td { background: #F4F7F9; }
.entry img { display: block; max-width: 100%; height: auto; }
.entry figure { margin: 1.6rem 0; }
.entry figcaption { font-size: .86rem; color: var(--muted); margin-top: .5rem; }
.entry pre { overflow-x: auto; background: var(--ink); color: var(--bg); padding: 1rem 1.2rem; font-family: var(--f-mono); font-size: .9rem; }
.entry code { font-family: var(--f-mono); font-size: .92em; background: var(--tracing); padding: .05em .3em; }
.entry pre code { background: none; padding: 0; }
.entry hr { border: 0; border-top: 2px dashed var(--line); margin: 2rem 0; }
.alignleft { float: left; margin: .3rem 1.4rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.4rem; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: .86rem; color: var(--muted); }
.page-links { margin-top: 1.5rem; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

.doc-nav { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; margin: 2rem 0; }
.doc-nav a { display: block; background: var(--paper); border: 1px solid var(--line); padding: 1rem 1.2rem; text-decoration: none; color: var(--ink); font-weight: 600; min-width: 0; transition: border-color .15s ease, transform .15s ease; }
.doc-nav a:hover { border-color: var(--orange); transform: translateY(-2px); }
.doc-nav span { display: block; font-family: var(--f-head); font-weight: 500; text-transform: uppercase; letter-spacing: .07em; font-size: .78rem; color: var(--orange-dark); margin-bottom: .25rem; }
.doc-nav-next { text-align: right; grid-column: 2; }

/* Пагинация */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 2.4rem; }
.pager .page-numbers {
    display: inline-block;
    min-width: 2.6rem;
    text-align: center;
    padding: .45rem .8rem;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 1rem;
    color: var(--ink);
    background: var(--paper);
    border: 2px solid var(--blue);
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.pager a.page-numbers:hover { border-color: var(--orange); color: var(--orange-dark); }
.pager .page-numbers.current { background: var(--orange); border-color: var(--orange); color: #FFFFFF; }
.pager .page-numbers.dots { background: none; border-color: transparent; min-width: 0; padding-left: .2rem; padding-right: .2rem; }

/* Сайдбар */
.sidebar { min-width: 0; }
.sidebar .widget {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--lift);
    padding: 1.6rem 1.5rem 1.5rem;
    margin-bottom: 2rem;
    color: var(--ink);
}
.sidebar .widget::before {
    content: "";
    position: absolute;
    top: -12px; left: 50%;
    width: 84px; height: 24px;
    background: var(--tape); opacity: .88;
    transform: translateX(-50%) rotate(-3deg);
}
.sidebar .widget-title { font-family: var(--f-head); font-weight: 600; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .09em; color: var(--blue-deep); padding-bottom: .45rem; border-bottom: 3px solid var(--blue); margin-bottom: .9rem; }
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { padding: .55rem 0; border-bottom: 1px dotted var(--line); font-size: .95rem; line-height: 1.45; }
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: var(--ink); text-decoration: none; }
.sidebar .widget a:hover { color: var(--orange-dark); text-decoration: underline; }
.sidebar .widget .post-date { display: block; font-size: .8rem; color: var(--muted); }
.sidebar .widget p { color: var(--ink); font-size: .95rem; }

/* Поиск */
.seek { display: flex; gap: .5rem; margin: 1rem 0; max-width: 560px; }
.seek-field {
    flex: 1;
    min-width: 0;
    font: inherit;
    color: var(--ink);
    background: #FFFFFF;
    border: 2px solid var(--blue);
    border-radius: 0;
    padding: .6rem .8rem;
}
.seek-btn {
    font-family: var(--f-head);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    font-size: .95rem;
    color: var(--orange);
    background: transparent;
    border: 3px solid var(--orange);
    border-radius: 0;
    padding: .5rem 1rem;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.seek-btn:hover { background: var(--orange); color: #FFFFFF; }

/* 404 */
.lost { padding: 3rem 2.6rem; text-align: left; max-width: 820px; margin-left: auto; margin-right: auto; }
.lost-code { font-family: var(--f-head); font-weight: 700; font-size: clamp(4rem, 12vw, 8rem); line-height: 1; color: var(--orange); margin: 0 0 .4rem; }
.empty-box { margin-bottom: 1rem; }

/* Комментарии */
.notes { position: relative; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--lift); padding: 2rem 2.2rem; margin-top: 2rem; }
.notes-title { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .07em; font-size: 1.3rem; color: var(--blue-deep); border-bottom: 3px solid var(--blue); padding-bottom: .4rem; }
.notes-list, .notes-list .children { list-style: none; margin: 0; padding: 0; }
.notes-list .children { padding-left: 1.6rem; border-left: 2px dashed var(--line); }
.note-body { padding: 1.1rem 0; border-bottom: 1px dotted var(--line); }
.note-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .5rem; }
.note-head img { display: block; border: 2px solid #FFFFFF; box-shadow: 0 0 0 1px var(--line); }
.note-meta { display: flex; flex-direction: column; }
.note-author { font-weight: 600; }
.note-meta time { font-size: .8rem; color: var(--muted); font-family: var(--f-mono); }
.note-wait { font-size: .88rem; color: var(--orange-dark); }
.note-text p { margin-bottom: .6em; }
.note-reply a { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; }
.notes-closed { color: var(--muted); }
.comment-respond { margin-top: 1.6rem; }
.comment-reply-title { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .06em; font-size: 1.2rem; }
.comment-reply-title small { margin-left: .8rem; font-size: .8rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-size: .88rem; color: var(--muted); margin-bottom: .3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    font: inherit;
    color: var(--ink);
    background: #FFFFFF;
    border: 2px solid var(--line);
    border-radius: 0;
    padding: .6rem .8rem;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--blue); }
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; margin: 0; }
.comment-form .submit {
    font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: .07em; font-size: 1rem;
    color: var(--orange); background: transparent; border: 3px solid var(--orange); border-radius: 0;
    padding: .6rem 1.3rem; cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.comment-form .submit:hover { background: var(--orange); color: #FFFFFF; }
.req { color: var(--orange-dark); }

/* ===== Подвал ===== */
.basebar { background: var(--ink); border-top: 3px solid var(--blue); color: var(--foot-text); padding: 3rem 0 0; }
.basebar-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; }
.basebar-col { min-width: 0; }
.basebar-col + .basebar-col { border-left: 1px solid rgba(62, 142, 208, .45); padding-left: 2.4rem; }
.basebar .widget { margin-bottom: 1.4rem; color: var(--foot-text); }
.basebar .widget-title { font-family: var(--f-head); font-weight: 500; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .08em; color: #FFFFFF; margin-bottom: .8rem; }
.basebar .widget p, .basebar .textwidget { color: var(--foot-text); font-size: .95rem; }
.basebar .widget ul { list-style: none; margin: 0; padding: 0; }
.basebar .widget li { padding: .22rem 0; font-size: .95rem; }
.basebar .widget a { color: var(--bg); text-decoration: none; }
.basebar .widget a:hover { color: #FFFFFF; text-decoration: underline; text-decoration-color: var(--orange); }
.basebar .widget .post-date { color: var(--head-muted); font-size: .8rem; }
.basebar-copy { margin: 2rem 0 0; padding: 1.3rem 0 1.6rem; border-top: 1px solid rgba(62, 142, 208, .45); text-align: center; font-size: .88rem; color: var(--head-muted); }

/* ===== Cookie-баннер ===== */
.cookie-banner {
    position: fixed;
    z-index: 90;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(92%, 780px);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: var(--ink);
    color: var(--bg);
    border: 2px solid var(--blue);
    box-shadow: 6px 6px 0 rgba(35, 42, 48, .35);
    padding: 1rem 1.3rem;
}
.cookie-text { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--bg); flex: 1; min-width: 0; }
.cookie-accept { flex: 0 0 auto; font-size: .9rem; }

/* ===== Адаптив ===== */
@media (max-width: 1180px) {
    .lead-desk { min-height: 420px; }
    .sheet--swatch { top: 255px; }
    .crew-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
    .topbar-inner { flex-wrap: wrap; }
    .brand { max-width: calc(100% - 120px); }
    .nav-toggle { display: inline-flex; }
    .site-nav { display: none; flex: 1 1 100%; width: 100%; }
    .site-nav.is-open { display: block; }
    .nav-list { flex-direction: column; align-items: stretch; border-top: 1px solid rgba(62, 142, 208, .45); padding-top: .4rem; }
    .nav-list li { border-left: 0; border-bottom: 1px solid rgba(62, 142, 208, .25); }
    .nav-list a, .nav-list li:last-child a { padding: .75rem 0; }

    .lead { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .lead-desk { min-height: 0; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.4rem; align-items: start; padding-top: 1rem; }
    .sheet { position: relative; top: auto; left: auto; right: auto; width: auto; }
    .sheet--plan { grid-row: span 2; }
    .duo { grid-template-columns: minmax(0, 1fr); }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 2rem; }
    .card-grid, .no-sidebar .card-grid--feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .basebar-cols { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
    .basebar-col + .basebar-col { border-left: 0; padding-left: 0; border-top: 1px solid rgba(62, 142, 208, .45); padding-top: 1.4rem; }
}

@media (max-width: 600px) {
    .shell { width: 92%; }
    .front { padding: 2rem 0 2.5rem; }
    .lead { margin-bottom: 3rem; }
    .lead-sub { font-size: 1rem; }
    .lead-desk { grid-template-columns: minmax(0, 1fr); }
    .sheet--plan { grid-row: auto; }
    .sheet--photo, .sheet--swatch { transform: none; }
    .board { padding: 1.5rem 1.2rem 1.6rem; }
    .doc { padding: 1.8rem 1.3rem 2rem; }
    .notes { padding: 1.5rem 1.2rem; }
    .lost { padding: 2rem 1.3rem; }
    .sec-head { font-size: 1.08rem; gap: .6rem; letter-spacing: .06em; }
    .latest-head { flex-wrap: wrap; }
    .card-grid, .card-grid--feed, .no-sidebar .card-grid--feed { grid-template-columns: minmax(0, 1fr); }
    .crew-cards { grid-template-columns: minmax(0, 1fr); }
    .ring-card { grid-template-columns: 60px minmax(0, 1fr); padding: 1.2rem 1.1rem 3.6rem 1.4rem; }
    .ledger th, .ledger td { padding: .6rem .5rem; font-size: .86rem; }
    .doc-nav { grid-template-columns: minmax(0, 1fr); }
    .doc-nav-next { grid-column: 1; }
    .cookie-banner { flex-direction: column; align-items: stretch; bottom: 10px; padding: 1rem 1.1rem; }
    .seek { flex-direction: column; }
    .brand-mark { width: 46px; height: 46px; }
    .brand-desc { display: none; }
    .brand-name { font-size: .86rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
    .lead-title { font-size: clamp(1.7rem, 8.6vw, 2.6rem); }
    .lead-title span { white-space: normal; }
    .sheet--swatch { width: 68%; justify-self: end; }
    .ledger-sum { font-size: 1.6rem; }
    .ledger-tick { width: 20px; height: 16px; margin-left: .35rem; }
}
