/*
Theme Name: dds_cleancookingcouncil.com
Author: Анна Соколова
Description: Тема информационно-экспертного портала о дизайне кухни, планировке и подборе техники. Чертёжный лист эргономиста: миллиметровая сетка, размерные цепочки и вклейки.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: kitchplan
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

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

/* ---------- Переменные ---------- */
:root {
    --ink: #1B2A33;
    --muted: #6B8291;
    --blue: #1F6FB2;
    --blue-soft: #6FAEE0;
    --ochre: #D98E2B;
    --eco: #4C8C5A;
    --line: #8FA9B8;
    --paper: #F4F7F8;
    --grid-fine: #E8EDF0;
    --grid-bold: #C9D6DD;
    --graphite: #22303A;
    --graphite-grid: #2E3E4A;
    --graphite-text: #C9D6DD;
    --blueprint: #1E3A4F;
    --wood: #D9C4A3;
    --veneer: #EBDDC3;
    --white: #FFFFFF;
    --shadow-hard: 4px 5px 0 rgba(27, 42, 51, 0.2);
    --f-head: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    --f-mono: "IBM Plex Mono", "Courier New", ui-monospace, monospace;
    --f-body: "PT Sans", "Segoe UI", Roboto, Arial, sans-serif;
    --paper-grid:
        linear-gradient(var(--grid-bold) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-bold) 1px, transparent 1px),
        linear-gradient(var(--grid-fine) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-fine) 1px, transparent 1px);
    --paper-grid-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
}

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

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--paper);
    background-image: var(--paper-grid);
    background-size: var(--paper-grid-size);
}
img, svg, video { max-width: 100%; }
img { height: auto; display: block; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-weight: 700;
    line-height: 1.15;
    color: var(--ink);
    margin: 1.4em 0 0.6em;
    overflow-wrap: break-word;
    hyphens: auto;
}
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px dashed var(--ochre);
    outline-offset: 3px;
}
p, li, dd, td, th, .card-title, .brand-name, blockquote { overflow-wrap: break-word; hyphens: auto; }

.visually-hidden, .screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
.skip-to {
    position: absolute;
    left: 12px; top: -60px;
    z-index: 100;
    padding: 8px 16px;
    background: var(--ochre);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}
.skip-to:focus { top: 12px; }

.shell { width: min(92%, 1240px); margin-inline: auto; }
@media (min-width: 961px) { .shell { width: min(85%, 1240px); } }

/* ---------- Кнопка-штамп ---------- */
.stamp-btn {
    display: inline-block;
    padding: 0.7em 1.4em;
    border: 4px double var(--blue);
    border-radius: 0;
    background-color: var(--white);
    background-image: repeating-linear-gradient(-45deg, rgba(31, 111, 178, 0.09) 0 2px, transparent 2px 7px);
    color: var(--blue);
    font-family: var(--f-mono);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.3;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, transform 0.15s;
}
.stamp-btn:hover, .stamp-btn:focus-visible {
    background-color: var(--blue);
    background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 7px);
    color: var(--white);
    border-color: var(--white);
    box-shadow: 0 0 0 1px var(--blue);
    transform: translate(-2px, -2px);
}

/* ---------- Шапка ---------- */
.masthead {
    position: relative;
    background-color: var(--graphite);
    background-image:
        linear-gradient(var(--graphite-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--graphite-grid) 1px, transparent 1px),
        linear-gradient(rgba(46, 62, 74, 0.45) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 62, 74, 0.45) 1px, transparent 1px);
    background-size: var(--paper-grid-size);
    color: var(--graphite-text);
}
.masthead-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 0 18px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 22px;
    min-width: 0;
    color: var(--white);
    text-decoration: none;
}
.brand-mark { flex: 0 0 auto; display: block; color: var(--white); }
.brand-svg { display: block; width: 104px; height: auto; }
.brand-logo { max-height: 92px; width: auto; }
.brand-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; max-width: 520px; }
.brand-name {
    hyphens: manual;
    font-family: var(--f-body);
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--white);
}
.brand-desc {
    font-size: 0.8rem;
    line-height: 1.45;
    color: #A9BCC8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-top: 6px;
    border-top: 1px solid var(--graphite-grid);
}
.brand:hover .brand-name { text-decoration: underline; text-decoration-color: var(--ochre); }

.topnav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.topnav-list a {
    display: inline-block;
    padding: 6px 0 4px;
    color: var(--white);
    font-family: var(--f-body);
    font-size: 1.02rem;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s, color 0.15s;
}
.topnav-list a:hover { color: var(--blue-soft); border-bottom-color: var(--ochre); }
.topnav-list .current-menu-item > a,
.topnav-list .current_page_item > a,
.topnav-list .current-menu-ancestor > a { border-bottom-color: var(--blue-soft); color: var(--blue-soft); }

.nav-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    background: transparent;
    border: 3px double var(--line);
    color: var(--white);
    font-family: var(--f-mono);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block;
    width: 20px;
    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; }

/* размерная цепочка */
.dimline {
    display: flex;
    padding: 4px 0 26px;
    color: var(--line);
}
.dimline-seg {
    position: relative;
    height: 26px;
    border-left: 1px solid var(--line);
}
.dimline-seg:nth-child(1) { flex: 600 1 0; }
.dimline-seg:nth-child(2) { flex: 900 1 0; }
.dimline-seg:nth-child(3) { flex: 1200 1 0; border-right: 1px solid var(--line); }
.dimline-seg::before {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 6px;
    height: 1px;
    background: var(--line);
}
.dimline-seg::after {
    content: attr(data-mm);
    position: absolute;
    left: 50%; bottom: 8px;
    transform: translateX(-50%);
    padding: 0 6px;
    background: var(--graphite);
    font-family: var(--f-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--graphite-text);
}

/* ---------- Секции главной ---------- */
.sheet { position: relative; padding: 64px 0 72px; }
.sheet--paper { background-color: var(--paper); background-image: var(--paper-grid); background-size: var(--paper-grid-size); }
.sheet--white { background-color: var(--white); }
.sheet--blueprint {
    color: #E6EEF4;
    background-color: var(--blueprint);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: var(--paper-grid-size);
}
.sheet--wood {
    overflow: hidden;
    background: var(--wood) url("images/wood-dark.jpg") repeat;
    background-size: 304px auto;
    border-top: 6px solid var(--graphite);
}
.sheet--veneer {
    background: var(--veneer) url("images/wood-light.jpg") repeat;
    background-size: 180px auto;
    border-top: 1px solid rgba(27, 42, 51, 0.15);
    border-bottom: 1px solid rgba(27, 42, 51, 0.15);
}

.side-caption {
    position: absolute;
    left: 1.2%;
    top: 64px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--f-head);
    font-weight: 700;
    font-size: clamp(3rem, 4.6vw, 4.8rem);
    line-height: 1;
    white-space: nowrap;
    letter-spacing: 0.02em;
    color: transparent;
    -webkit-text-stroke: 1px var(--grid-bold);
    text-transform: uppercase;
    pointer-events: none;
    user-select: none;
    display: none;
}
@media (min-width: 1280px) { .side-caption { display: block; } }

/* заголовок секции — штамп чертежа */
.stamp-title {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 40px;
    font-family: var(--f-mono);
    font-weight: 600;
    font-size: clamp(0.95rem, 1.6vw, 1.22rem);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--blue);
}
.stamp-num {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 42px;
    padding: 0 6px;
    border: 2px solid var(--blue);
    box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--blue);
    background: var(--paper);
    color: var(--ink);
    letter-spacing: 0.08em;
}
.stamp-text {
    padding: 0 4px 8px 0;
    border-bottom: 1px solid currentColor;
    min-width: 0;
}
.stamp-title--light { color: var(--white); }
.stamp-title--light .stamp-num { border-color: var(--white); box-shadow: inset 0 0 0 3px var(--blueprint), inset 0 0 0 4px var(--white); background: var(--blueprint); color: var(--white); }
.stamp-title--board .stamp-text {
    padding: 6px 12px 6px;
    background: rgba(244, 247, 248, 0.88);
    border-bottom: 2px solid var(--ink);
    color: var(--ink);
}
.stamp-title--board .stamp-num { box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--blue); }

/* --- 01: рабочий треугольник --- */
.triangle {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}
.triangle-plan {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 56px;
    gap: 14px;
}
.plan-frame {
    position: relative;
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-hard);
}
.plan-frame img { width: 100%; aspect-ratio: 1440 / 758; object-fit: cover; }
.plan-tag, .plan-size {
    position: absolute;
    white-space: nowrap;
    line-height: 1.1;
}
.plan-tag {
    font-family: var(--f-body);
    font-weight: 700;
    font-size: clamp(0.68rem, 1.15vw, 0.95rem);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.85);
    padding: 2px 6px;
}
.plan-tag--fridge { left: 9.4%; top: 71%; transform: translateX(-30%); }
.plan-tag--sink { left: 45.6%; top: 33%; transform: translateX(-50%); }
.plan-tag--stove { left: 88.9%; top: 71%; transform: translateX(-60%); }
.plan-size {
    font-family: var(--f-mono);
    font-weight: 600;
    font-size: clamp(0.62rem, 1vw, 0.86rem);
    color: #B66F12;
    padding: 1px 5px;
    background: rgba(255, 255, 255, 0.9);
}
.plan-size--a { left: 27.5%; top: 47%; transform: translate(-50%, -150%) rotate(-28deg); }
.plan-size--b { left: 67.2%; top: 47%; transform: translate(-50%, -150%) rotate(24deg); }
.plan-size--c { left: 49.2%; top: 65.7%; transform: translate(-50%, 40%); }

.plan-ruler {
    display: flex;
    flex-direction: column;
    position: relative;
    border-left: 1px solid var(--ochre);
    margin-left: 14px;
}
.plan-ruler-seg {
    flex-basis: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--ochre);
    margin-left: -8px;
    width: 16px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--f-mono);
    font-size: 0.72rem;
    color: #B66F12;
}
.plan-ruler-seg:last-child { border-bottom: 1px solid var(--ochre); }
.plan-ruler-seg { border-top: none; border-bottom: 1px solid var(--ochre); }
.plan-ruler-seg:first-child { border-top: 1px solid var(--ochre); }
.plan-ruler::after {
    content: "2400";
    position: absolute;
    right: -4px; top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    font-family: var(--f-mono);
    font-size: 0.72rem;
    color: var(--muted);
}

.triangle-notes { display: grid; gap: 30px; min-width: 0; }
.pointer-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.pointer-list li {
    position: relative;
    padding-left: 30px;
    font-size: 0.98rem;
    line-height: 1.55;
}
.pointer-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.35em;
    width: 16px; height: 12px;
    background: var(--blue);
    clip-path: polygon(0 0, 100% 50%, 0 100%, 28% 50%);
}
.pointer-list strong { hyphens: manual; display: block; font-family: var(--f-head); font-size: 1.15rem; font-weight: 700; color: var(--ink); }

.approval-stamps { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.approval {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 50px;
    padding: 0 16px 0 0;
    hyphens: manual;
    white-space: nowrap;
    border: 4px double var(--eco);
    background: rgba(255, 255, 255, 0.75);
    font-family: var(--f-mono);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #2F6B3D;
}
.approval-tick {
    flex: 0 0 auto;
    align-self: stretch;
    width: 50px;
    border-right: 2px solid var(--eco);
    background: no-repeat center / 24px 24px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 12.5l6 6L21 5' fill='none' stroke='%234C8C5A' stroke-width='3' stroke-linecap='square'/%3E%3C/svg%3E");
}

@media (min-width: 961px) {
    .triangle { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 44px; }
}
@media (min-width: 1280px) {
    .triangle { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1.25fr); }
    .triangle-notes { grid-template-columns: minmax(0, 1fr) auto; align-items: center; height: 100%; }
}

/* --- 02: разбор техники --- */
.explode { margin: 0; }
.explode-stage {
    position: relative;
    width: 100%;
    max-width: 1080px;
    margin-inline: auto;
    padding: 0 22%;
}
.explode-stage img {
    width: 100%;
    aspect-ratio: 996 / 658;
    object-fit: cover;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%), linear-gradient(180deg, transparent 0, #000 4%, #000 96%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%), linear-gradient(180deg, transparent 0, #000 4%, #000 96%, transparent 100%);
    mask-composite: intersect;
}
.callout {
    position: absolute;
    transform: translateY(-50%);
    font-family: var(--f-body);
    font-weight: 700;
    font-size: clamp(0.82rem, 1.25vw, 1.05rem);
    line-height: 1.25;
    color: var(--white);
    padding-bottom: 4px;
    border-bottom: 1px solid var(--ochre);
}
.callout--left { right: 78%; text-align: right; max-width: 20%; }
.callout--right { left: 78%; max-width: 20%; }
.callout--left::after, .callout--right::before {
    content: "";
    position: absolute;
    bottom: -1px;
    width: 2.2vw;
    max-width: 30px;
    height: 1px;
    background: var(--ochre);
}
.callout--left::after { left: 100%; }
.callout--right::before { right: 100%; }
.callout--filter { top: 37.5%; }
.callout--burners { top: 78.8%; }
.callout--air { top: 16.4%; }
.callout--control { top: 78.8%; }

.explode-notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 40px;
}
.explode-notes p {
    margin: 0;
    padding: 4px 28px;
    border-left: 1px solid rgba(255, 255, 255, 0.35);
    color: #E6EEF4;
    font-size: 1rem;
    line-height: 1.55;
}
.explode-notes p:first-child { border-left: 0; padding-left: 0; }

/* --- 03: последние материалы --- */
.sprig {
    position: absolute;
    right: 0; top: 0;
    width: clamp(80px, 9vw, 150px);
    height: auto;
    pointer-events: none;
}
.pinboard {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    padding: 10px 0 20px;
}
.pinboard:has(> .card:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.pinboard .card:nth-child(3n+1) { transform: rotate(-1.6deg); }
.pinboard .card:nth-child(3n+2) { transform: rotate(1.2deg) translateY(-12px); }
.pinboard .card:nth-child(3n) { transform: rotate(-0.9deg) translateY(10px); }
.pinboard .card:hover { transform: rotate(0deg) translateY(-6px); }
.pinboard-more { margin: 34px 0 0; text-align: center; }
.empty-note {
    display: inline-block;
    padding: 14px 20px;
    background: var(--white);
    border: 1px solid var(--line);
    font-family: var(--f-mono);
    font-size: 0.9rem;
}

/* --- карточки --- */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    padding: 16px 16px 18px;
    background: var(--white);
    border: 1px solid var(--blue);
    box-shadow: var(--shadow-hard);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { box-shadow: 7px 8px 0 rgba(27, 42, 51, 0.22); }
.card-thumb { position: relative; flex: 0 0 auto; }
.card-thumb a { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 1px solid var(--grid-bold);
}
.card-thumb-blank {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    color: var(--blue);
    background-color: var(--paper);
    background-image: var(--paper-grid);
    background-size: var(--paper-grid-size);
    border: 1px solid var(--grid-bold);
}
.card-thumb-blank svg { display: block; width: 62%; height: auto; }
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 16px 4px 0;
}
.card-flag {
    align-self: flex-start;
    margin-bottom: 8px;
    padding: 2px 8px;
    border: 1px solid var(--ochre);
    color: #9A5E0E;
    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.card-title {
    hyphens: manual;
    margin: 0 0 10px;
    font-family: var(--f-head);
    font-size: 1.32rem;
    line-height: 1.22;
}
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; }
.card-excerpt { flex: 1; font-size: 0.95rem; line-height: 1.55; color: #33444F; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
}
.card-date { font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted); }
.card-more {
    display: inline-block;
    padding: 7px 12px;
    border: 4px double var(--blue);
    background-image: repeating-linear-gradient(-45deg, rgba(31, 111, 178, 0.1) 0 2px, transparent 2px 7px);
    color: var(--blue);
    font-family: var(--f-mono);
    font-weight: 600;
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    transition: background-color 0.15s, color 0.15s;
}
.card-more:hover { background-color: var(--blue); color: var(--white); }

/* --- 04: образцы материалов --- */
.samples {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}
.sample {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
    padding: 0 18px;
    border-left: 1px solid rgba(27, 42, 51, 0.12);
}
.sample:first-child { border-left: 0; }
.sample-tile {
    position: relative;
    display: block;
    width: 100%;
    max-width: 170px;
    border: 1px solid #5E6E78;
    box-shadow: 3px 4px 0 rgba(27, 42, 51, 0.25);
    transition: transform 0.2s;
}
.sample-tile img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.sample:hover .sample-tile { transform: translateY(-4px); }
.sample-leaf {
    position: absolute;
    right: -12px; top: -12px;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--eco) no-repeat center / 20px 20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 19C5 10 11 5 20 4c0 9-5 15-13 15M5 19l8-8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
}
.sample-name {
    margin-top: 14px;
    font-family: var(--f-body);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
    color: var(--ink);
}
.sample-note { font-size: 0.84rem; line-height: 1.4; color: #4F5E66; }
.samples-caption {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 36px 0 0;
    font-family: var(--f-body);
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--ink);
    text-align: center;
}
.samples-caption::before, .samples-caption::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(27, 42, 51, 0.5));
}
.samples-caption::after { background: linear-gradient(90deg, rgba(27, 42, 51, 0.5), transparent); }

/* --- 05: чек-лист --- */
.buylist {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}
.buylist-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 40px;
    align-content: start;
}
.tick { border-bottom: 1px dashed var(--grid-bold); }
.tick summary {
    position: relative;
    display: block;
    padding: 12px 0 12px 44px;
    font-family: var(--f-body);
    font-weight: 700;
    font-size: 1.04rem;
    line-height: 1.35;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}
.tick summary::-webkit-details-marker { display: none; }
.tick summary::before {
    content: "";
    position: absolute;
    left: 0; top: 9px;
    width: 26px; height: 26px;
    border: 2px solid var(--line);
    background: var(--white);
}
.tick summary:hover::before { border-color: var(--blue); }
.tick[open] summary::before {
    border-color: var(--blue);
    background: var(--white) no-repeat center / 20px 20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 12.5l6 6L21 5' fill='none' stroke='%231F6FB2' stroke-width='3.2' stroke-linecap='square'/%3E%3C/svg%3E");
}
.tick p {
    margin: -6px 0 12px 44px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #3D5260;
}
.buylist-scheme { margin: 0; max-width: 420px; justify-self: center; width: 100%; }
.scheme-frame { position: relative; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-hard); transform: rotate(0.8deg); }
.scheme-frame img { width: 100%; aspect-ratio: 680 / 520; object-fit: cover; }
.scheme-dim {
    position: absolute;
    padding: 1px 6px;
    background: var(--white);
    font-family: var(--f-mono);
    font-weight: 600;
    font-size: 0.82rem;
    color: #B66F12;
    line-height: 1.2;
}
.scheme-dim--w { left: 39.4%; top: 94.2%; transform: translate(-50%, -50%); }
.scheme-dim--h { left: 94.1%; top: 44%; transform: translate(-50%, -50%) rotate(-90deg); }
.scheme-dim--d { left: 85.3%; top: 65.4%; transform: translate(-50%, -50%) rotate(-90deg); }
.buylist-scheme figcaption {
    margin-top: 12px;
    font-family: var(--f-mono);
    font-size: 0.76rem;
    line-height: 1.5;
    color: var(--muted);
    text-align: center;
}
@media (min-width: 961px) {
    .buylist { grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr); gap: 56px; }
}

/* ---------- Внутренние страницы ---------- */
.page-wrap { padding: 28px 0 70px; }
.crumbs {
    margin: 0 0 26px;
    font-family: var(--f-mono);
    font-size: 0.8rem;
    line-height: 1.5;
    letter-spacing: 0.03em;
    color: var(--muted);
    overflow-wrap: break-word;
}
.crumbs a { color: var(--blue); text-decoration: none; border-bottom: 1px solid rgba(31, 111, 178, 0.35); }
.crumbs a:hover { border-bottom-color: var(--blue); }
.crumbs-sep { color: var(--ochre); margin: 0 4px; }

.layout-single { display: block; }
.layout-single > .content-area { min-width: 0; }
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
}
@media (min-width: 961px) {
    .layout-with-sidebar { grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); column-gap: 6%; }
}
.content-area { min-width: 0; }

.page-head { margin-bottom: 30px; }
.page-title {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.005em;
    color: var(--ink);
}
.page-lead { max-width: 760px; color: #33444F; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 34px 30px;
}
.card-grid .card:nth-child(odd) { transform: rotate(-0.6deg); }
.card-grid .card:nth-child(even) { transform: rotate(0.5deg); }
.card-grid .card:hover { transform: rotate(0deg) translateY(-5px); }

.entry {
    padding: clamp(22px, 4vw, 48px);
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-hard);
}
.entry-head { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--grid-bold); }
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-family: var(--f-mono);
    font-size: 0.8rem;
    color: var(--muted);
}
.entry-cat a { color: var(--blue); text-decoration: none; }
.entry-cover { margin: 0 0 28px; }
.entry-cover img { width: 100%; height: auto; border: 1px solid var(--grid-bold); }
.entry-content { font-size: 1.04rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: 1.85rem; padding-bottom: 6px; border-bottom: 1px solid var(--grid-bold); }
.entry-content h3 { font-size: 1.45rem; }
.entry-content h4 { font-size: 1.2rem; }
.entry-content a:not(.wp-block-button__link) { text-decoration: underline; text-decoration-thickness: 1px; }
.entry-content a:not(.wp-block-button__link)::after {
    content: "↗";
    display: inline-block;
    margin-left: 2px;
    font-size: 0.7em;
    vertical-align: super;
    color: var(--ochre);
    text-decoration: none;
}
.entry-content ul, .entry-content ol { padding-left: 1.5em; margin: 0 0 1.2em; }
.entry-content ul { list-style: none; padding-left: 1.6em; }
.entry-content ul > li { position: relative; }
.entry-content ul > li::before {
    content: "";
    position: absolute;
    left: -1.2em; top: 0.62em;
    width: 7px; height: 7px;
    border: 1.5px solid var(--blue);
}
.entry-content ol > li::marker { font-family: var(--f-mono); color: var(--blue); font-weight: 600; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content blockquote {
    margin: 1.6em 0;
    padding: 20px 26px 20px 28px;
    background-color: var(--paper);
    background-image: var(--paper-grid);
    background-size: var(--paper-grid-size);
    border-left: 5px solid var(--ochre);
    font-size: 1.12rem;
    font-style: normal;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: 8px; font-family: var(--f-mono); font-size: 0.8rem; color: var(--muted); font-style: normal; }
.entry-content table {
    width: 100%;
    margin: 1.4em 0;
    border-collapse: collapse;
    border: 1px solid var(--line);
    font-size: 0.95rem;
}
.entry-content th, .entry-content td {
    padding: 10px 12px;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}
.entry-content th { background: var(--paper); font-family: var(--f-head); font-size: 1rem; }
.entry-content figure { margin: 1.6em 0; }
.entry-content img { height: auto; }
.entry-content figcaption, .wp-element-caption { font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted); margin-top: 6px; }
.entry-content pre {
    overflow: auto;
    padding: 16px;
    background: var(--graphite);
    color: #E6EEF4;
    font-family: var(--f-mono);
    font-size: 0.88rem;
}
.entry-content code { font-family: var(--f-mono); font-size: 0.9em; background: var(--grid-fine); padding: 1px 4px; }
.entry-content pre code { background: none; padding: 0; }
.entry-content hr { border: 0; height: 12px; margin: 2em 0; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 20px) bottom / 100% 12px no-repeat, linear-gradient(var(--line), var(--line)) bottom / 100% 1px no-repeat; }
.alignleft { float: left; margin: 0.3em 1.4em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.4em; }
.aligncenter { margin-inline: auto; }
.entry-tags { margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.entry-tags a {
    padding: 3px 10px;
    border: 1px solid var(--line);
    font-family: var(--f-mono);
    font-size: 0.78rem;
    text-decoration: none;
}
.entry-tags a:hover { border-color: var(--blue); background: var(--blue); color: var(--white); }

.entry-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 18px;
    margin-top: 34px;
}
.entry-nav-link {
    display: block;
    padding: 16px 20px;
    background: var(--white);
    border: 1px solid var(--line);
    color: var(--ink);
    font-family: var(--f-head);
    font-size: 1.1rem;
    line-height: 1.3;
    text-decoration: none;
    transition: transform 0.15s, border-color 0.15s;
}
.entry-nav-link span { display: block; margin-bottom: 4px; font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.entry-nav-link--next { text-align: right; }
.entry-nav-link:hover { border-color: var(--blue); transform: translate(-2px, -2px); box-shadow: var(--shadow-hard); }

/* ---------- Сайдбар ---------- */
.sidebar { min-width: 0; display: grid; gap: 26px; align-content: start; }
.sidebar .widget {
    padding: 22px 22px 20px;
    background: #FBFCFC;
    border: 1px solid var(--line);
    border-top: 4px solid var(--blue);
    color: var(--ink);
    font-size: 0.95rem;
}
.sidebar .widget-title {
    margin: 0 0 14px;
    font-family: var(--f-mono);
    font-weight: 600;
    font-size: 0.86rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--blue);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--grid-bold);
}
.sidebar .widget ul { margin: 0; padding: 0; list-style: none; }
.sidebar .widget li { padding: 9px 0; border-bottom: 1px dashed var(--grid-bold); line-height: 1.4; }
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: var(--ink); text-decoration: none; }
.sidebar .widget a:hover { color: var(--blue); text-decoration: underline; }
.sidebar .widget .post-date { display: block; font-family: var(--f-mono); font-size: 0.76rem; color: var(--muted); }

/* ---------- Пагинация ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 44px 0 0;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    background: var(--white);
    border: 1px solid var(--line);
    color: var(--blue);
    font-family: var(--f-mono);
    font-weight: 600;
    font-size: 0.86rem;
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s;
}
.pager a.page-numbers:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.pager .page-numbers.current {
    background: var(--blue);
    color: var(--white);
    border: 4px double var(--white);
    box-shadow: 0 0 0 1px var(--blue);
}
.pager .page-numbers.dots { background: transparent; border: 0; color: var(--muted); min-width: 24px; }

/* ---------- Поиск ---------- */
.finder { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; max-width: 560px; }
.finder-input {
    flex: 1 1 220px;
    min-width: 0;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 1rem;
    border-radius: 0;
}
.finder-input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 2px rgba(31, 111, 178, 0.2); }
.finder-btn { height: 48px; }
.sidebar .finder { margin: 0; }

/* ---------- 404 ---------- */
.missing {
    padding: clamp(28px, 5vw, 60px);
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-hard);
    width: min(100%, 860px);
    margin-left: auto;
    margin-right: auto;
}
.missing-code {
    margin: 0 0 6px;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: clamp(5rem, 15vw, 9rem);
    line-height: 0.9;
    color: transparent;
    -webkit-text-stroke: 2px var(--blue);
}

/* ---------- Комментарии ---------- */
.talk {
    margin-top: 36px;
    padding: clamp(22px, 4vw, 40px);
    background: var(--white);
    border: 1px solid var(--line);
}
.talk-title, .comment-reply-title {
    margin: 0 0 20px;
    font-family: var(--f-mono);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blue);
}
.talk-list, .talk-list .children { list-style: none; margin: 0; padding: 0; }
.talk-list .children { padding-left: clamp(14px, 4vw, 36px); border-left: 1px dashed var(--grid-bold); }
.note-body { padding: 16px 0; border-bottom: 1px solid var(--grid-fine); }
.note-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 8px; }
.note-avatar { border: 1px solid var(--line); }
.note-author { font-weight: 700; }
.note-date { font-family: var(--f-mono); font-size: 0.76rem; color: var(--muted); }
.note-wait { padding: 6px 10px; background: #FFF5E6; border-left: 3px solid var(--ochre); font-size: 0.9rem; }
.note-text p:last-child { margin-bottom: 6px; }
.note-reply a { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.talk-closed, .form-hint { font-size: 0.9rem; color: var(--muted); }
.comment-respond { margin-top: 26px; }
.comment-form p { margin: 0 0 14px; }
.comment-form label { display: block; margin-bottom: 4px; font-weight: 700; font-size: 0.92rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 1rem;
}
.comment-form textarea { resize: vertical; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; margin: 0; }
.comment-form .req { color: #B5452B; }
.comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 12px; margin: 14px 0; }

/* ---------- Подвал ---------- */
.basement {
    color: var(--graphite-text);
    background-color: var(--graphite);
    background-image:
        linear-gradient(var(--graphite-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--graphite-grid) 1px, transparent 1px),
        linear-gradient(rgba(46, 62, 74, 0.45) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 62, 74, 0.45) 1px, transparent 1px);
    background-size: var(--paper-grid-size);
    padding: 56px 0 0;
}
.basement-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.basement-col { min-width: 0; padding: 0 34px; border-left: 1px solid #3C4E5B; }
.basement-col:first-child { border-left: 0; padding-left: 0; }
.basement-col:last-child { padding-right: 0; }
.basement .widget { margin-bottom: 20px; color: var(--graphite-text); font-size: 0.95rem; line-height: 1.6; }
.basement .widget-title {
    display: inline-block;
    margin: 0 0 14px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--white);
    font-family: var(--f-body);
    font-weight: 700;
    font-size: 1.12rem;
    color: var(--white);
}
.basement .widget p { color: var(--graphite-text); }
.basement .widget a { color: var(--white); text-decoration: none; }
.basement .widget a:hover { color: var(--blue-soft); text-decoration: underline; }
.basement .widget ul { margin: 0; padding: 0; list-style: none; }
.basement .widget li { position: relative; padding: 3px 0 3px 24px; }
.basement .widget li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.75em;
    width: 12px; height: 9px;
    background: var(--blue-soft);
    clip-path: polygon(0 0, 100% 50%, 0 100%, 28% 50%);
}
.basement .widget .post-date { display: block; font-size: 0.78rem; color: #A9BCC8; }
.basement-legal {
    margin-top: 34px;
    padding: 20px 0 26px;
    border-top: 1px solid #3C4E5B;
    font-size: 0.86rem;
    color: #A9BCC8;
}
.basement-legal p { margin: 0; }

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    padding: 16px 0;
    background: rgba(34, 48, 58, 0.97);
    border-top: 3px solid var(--ochre);
    color: var(--graphite-text);
}
.cookie-banner-inner {
    width: min(92%, 1240px);
    margin-inline: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
}
.cookie-banner-text { margin: 0; flex: 1 1 420px; min-width: 0; font-size: 0.92rem; line-height: 1.5; }
.cookie-banner-accept { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
    .samples { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 30px; }
    .sample:nth-child(4) { border-left: 0; }
}
@media (max-width: 960px) {
    .masthead-row { flex-wrap: wrap; }
    .nav-toggle { display: inline-flex; }
    .topnav { flex-basis: 100%; display: none; }
    .topnav.is-open { display: block; }
    .topnav-list { flex-direction: column; gap: 0; padding: 8px 0; border-top: 1px solid var(--graphite-grid); }
    .topnav-list a { display: block; padding: 10px 0; }
    .pinboard, .pinboard:has(> .card:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
    .basement-cols { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .basement-col { padding: 0; border-left: 0; }
    .basement-col + .basement-col { padding-top: 26px; border-top: 1px solid #3C4E5B; }
    .explode-stage { padding: 0 18%; }
    .callout--left { right: 82%; max-width: 17%; }
    .callout--right { left: 82%; max-width: 17%; }
}
@media (max-width: 760px) {
    .explode-stage { padding: 0; }
    .callout {
        position: static;
        display: inline-block;
        transform: none;
        max-width: none;
        margin: 14px 18px 0 0;
        text-align: left;
    }
    .callout--left::after, .callout--right::before { display: none; }
    .explode-notes { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .explode-notes p, .explode-notes p:first-child { padding: 0 0 0 16px; border-left: 2px solid var(--ochre); }
}
@media (max-width: 600px) {
    .sheet { padding: 44px 0 50px; }
    .brand { gap: 14px; }
    .brand-svg { width: 70px; }
    .brand-name { font-size: 0.86rem; }
    .brand-desc { display: none; }
    .masthead-row { padding: 18px 0 14px; }
    .stamp-title { gap: 12px; letter-spacing: 0.14em; margin-bottom: 28px; }
    .stamp-num { min-width: 40px; height: 36px; }
    .triangle-plan { grid-template-columns: minmax(0, 1fr); }
    .plan-ruler { display: none; }
    .plan-tag { padding: 1px 3px; }
    .plan-size { font-size: 0.56rem; padding: 0 2px; }
    .pinboard, .pinboard:has(> .card:nth-child(4)) { grid-template-columns: minmax(0, 1fr); }
    .pinboard .card:nth-child(n) { transform: rotate(-0.6deg); }
    .pinboard .card:nth-child(even) { transform: rotate(0.6deg); }
    .sprig { width: 70px; opacity: 0.85; }
    .samples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sample { padding: 0 10px; border-left: 0; }
    .samples-caption { font-size: 0.92rem; gap: 10px; }
    .buylist-items { grid-template-columns: minmax(0, 1fr); }
    .card { padding: 12px 12px 14px; }
    .entry { padding: 22px 18px; }
    .talk { padding: 22px 18px; }
    .sidebar .widget { padding: 18px 16px; }
    .missing { padding: 26px 18px; }
    .dimline-seg::after { font-size: 0.62rem; }
    .cookie-banner-inner { width: 92%; }
    .cookie-banner-accept { width: 100%; }
}
