/*
Theme Name: dds_ashboury.com
Theme URI: https://ashboury.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: ashbr
*/

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

/* ---------- Переменные ---------- */
:root {
    --page: #EAF1F4;
    --grid: #CFE0E8;
    --grid-major: #A9C4D0;
    --ink: #1F3A44;
    --muted: #6B8794;
    --ochre: #D98E2B;
    --ochre-dark: #C27A1C;
    --brick: #B4462F;
    --paper: #F7F1E4;
    --paper-fold: #E6DAC0;
    --strip: #F2F6F7;
    --footer-text: #E4EDF1;
    --footer-muted: #A9C4D0;
    --head: "Oswald", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    --body: "PT Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --cell: 22px;
}

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

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--page);
    background-image:
        linear-gradient(var(--grid-major) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: calc(var(--cell) * 5) calc(var(--cell) * 5), calc(var(--cell) * 5) calc(var(--cell) * 5), var(--cell) var(--cell), var(--cell) var(--cell);
    background-position: -1px -1px;
}
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brick); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px dashed var(--brick); outline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--head); font-weight: 500; line-height: 1.2; margin: 1.4em 0 .6em; color: var(--ink); }
h1, h2, h3, h4, h5, h6, p, li, .card-title, .brand-name, .wdg { overflow-wrap: break-word; hyphens: auto; }
.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: 12px; top: -60px; z-index: 100; padding: .6em 1em; background: var(--ink); color: var(--paper); font-family: var(--head); }
.skip-link:focus { top: 12px; color: var(--paper); }

.shell { width: min(92%, 1180px); margin-inline: auto; }
.site-main { display: block; padding-bottom: 3.5rem; }

/* ---------- Кнопки-ярлычки ---------- */
.tag-btn {
    display: inline-block;
    padding: .55em 1.3em .5em;
    background: var(--ochre);
    color: var(--ink);
    border: 1px solid var(--ink);
    border-radius: 0;
    font-family: var(--head);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: .03em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transform: rotate(-1.5deg);
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.tag-btn:hover, .tag-btn:focus-visible { color: var(--ink); background: #E39C3E; transform: rotate(0deg) translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.tag-btn:active { transform: translate(0, 0); box-shadow: none; }

/* ---------- Шапка ---------- */
.topsheet {
    position: relative;
    background-color: var(--strip);
    background-image:
        linear-gradient(rgba(169, 196, 208, .28) 1px, transparent 1px),
        linear-gradient(90deg, rgba(169, 196, 208, .28) 1px, transparent 1px);
    background-size: var(--cell) var(--cell);
    border-bottom: 7px solid var(--ink);
}
.topsheet::after { content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 2px; background: var(--ink); opacity: .35; }
.topsheet-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.6rem 0; }
.brand { display: flex; align-items: center; gap: 1.1rem; text-decoration: none; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand-mark { flex: 0 0 auto; display: block; color: var(--ink); }
.brand-svg, .brand-logo { display: block; width: 64px; height: 64px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: var(--head); font-weight: 500; font-size: clamp(1.25rem, 2.1vw, 1.8rem); line-height: 1.12; text-transform: uppercase; letter-spacing: .02em; }
.brand-desc { font-size: .95rem; line-height: 1.35; margin-top: .3rem; max-width: 36em; }

.leader-nav { flex: 0 0 auto; }
.leader-list { list-style: none; margin: 0; padding: .3rem 0 .3rem 46px; position: relative; }
.leader-list::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 1px; background: var(--ink); }
.leader-list::after { content: ""; position: absolute; left: 3px; top: 0; width: 15px; height: 1px; background: var(--ink); box-shadow: 0 0 0 0 var(--ink); }
.leader-list li { position: relative; margin: 0; }
.leader-list li::before { content: ""; position: absolute; left: -36px; top: 50%; width: 26px; height: 1px; background: var(--ink); }
.leader-list li::after { content: ""; position: absolute; left: -12px; top: calc(50% - 3px); width: 6px; height: 6px; border-radius: 50%; background: var(--strip); border: 1px solid var(--ink); }
.leader-list a { display: inline-block; padding: .12rem 0; font-family: var(--head); font-size: 1.12rem; text-decoration: none; color: var(--ink); line-height: 1.35; }
.leader-list a:hover, .leader-list .current-menu-item > a { color: var(--brick); text-decoration: underline; }
.leader-list .current-menu-item::after { background: var(--brick); border-color: var(--brick); }

.nav-toggle { display: none; align-items: center; gap: .6rem; padding: .5rem .8rem; background: var(--paper); border: 1px solid var(--ink); color: var(--ink); font-family: var(--head); font-size: 1rem; cursor: pointer; }
.nav-toggle-lines, .nav-toggle-lines::before, .nav-toggle-lines::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; content: ""; }
.nav-toggle-lines::before { position: absolute; top: -6px; }
.nav-toggle-lines::after { position: absolute; top: 6px; }

/* ---------- Заголовки секций с размерной линией ---------- */
.sec-title, .page-title, .notes-title {
    position: relative;
    display: inline-block;
    max-width: 100%;
    margin: 0 0 1.4rem;
    padding: 0 .1em .7rem;
    font-family: var(--head);
    font-weight: 500;
    font-size: clamp(1.6rem, 3.2vw, 2.35rem);
    letter-spacing: .07em;
    text-transform: uppercase;
    line-height: 1.15;
    background: linear-gradient(rgba(234, 241, 244, .86), rgba(234, 241, 244, .86)) 0 0 / 100% calc(100% - .7rem) no-repeat;
}
.sec-title::after, .page-title::after, .notes-title::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 11px;
    border-left: 1px solid var(--ink);
    border-right: 1px solid var(--ink);
    background:
        linear-gradient(var(--ink), var(--ink)) center / 100% 1px no-repeat;
}
.sec-title::before, .page-title::before, .notes-title::before {
    content: "";
    position: absolute;
    left: -4px;
    bottom: 1px;
    width: 9px;
    height: 9px;
    background: linear-gradient(45deg, transparent 45%, var(--ink) 45%, var(--ink) 58%, transparent 58%);
}

/* ---------- Главная ---------- */
.front-wrap { width: 85%; margin-left: auto; margin-right: auto; }
.fs { padding: 3rem 0 1rem; }
.fs-lead { max-width: 46em; color: var(--ink); background: rgba(234, 241, 244, .86); padding: .2rem .4rem; margin: -.4rem 0 1.2rem -.4rem; }

/* Блок 1 — план */
.plan-figure { margin: 0; }
.plan-canvas { position: relative; }
.plan-img { display: block; width: 100%; height: auto; }
.room-label { position: absolute; transform: translate(-50%, -50%); font-family: var(--body); font-size: clamp(.78rem, 1.45vw, 1.05rem); line-height: 1.1; white-space: nowrap; color: var(--ink); padding: 0 .2em; background: rgba(234, 241, 244, .85); }
.plan-note { position: absolute; transform: translateY(-50%); width: 11.5%; font-size: clamp(.62rem, 1.05vw, .82rem); line-height: 1.2; color: var(--ink); }
.plan-note-left { left: 0; text-align: right; width: 13%; }
.plan-stamp {
    position: absolute;
    right: 0;
    bottom: 3%;
    padding: .25em .6em .2em;
    border: 3px double var(--brick);
    color: var(--brick);
    font-family: var(--head);
    font-weight: 600;
    font-size: clamp(.7rem, 1.6vw, 1.1rem);
    letter-spacing: .06em;
    text-transform: uppercase;
    transform: rotate(-9deg);
    background: rgba(247, 241, 228, .55);
    opacity: .92;
}
.plan-notes-list { display: none; }

/* Блок 2 — вещь под размер */
.size-board { position: relative; padding-left: 9%; }
.size-ruler {
    position: absolute;
    top: 0;
    bottom: 6.5rem;
    left: -4.5rem;
    width: calc(4.5rem + 4%);
    border-right: 2px solid var(--ink);
    background:
        repeating-linear-gradient(to bottom, var(--ink) 0 1px, transparent 1px 50px) right top / 26px 100% no-repeat,
        repeating-linear-gradient(to bottom, var(--ink) 0 1px, transparent 1px 25px) right top / 18px 100% no-repeat,
        repeating-linear-gradient(to bottom, var(--ink) 0 1px, transparent 1px 5px) right top / 9px 100% no-repeat;
}
.ruler-unit { position: absolute; right: 30px; font-size: .78rem; line-height: 1; }
.ruler-unit-top { top: -2px; }
.ruler-unit-bottom { bottom: -2px; }
.size-items { display: flex; align-items: flex-end; justify-content: space-between; gap: 4%; }
.size-item { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.size-item img { display: block; width: 100%; height: auto; }
.size-item-shelf { flex: 0 0 17%; }
.size-item-table { flex: 0 0 29%; }
.size-item-box { flex: 0 0 30%; padding-right: 5.5rem; }
.size-item figcaption { min-height: 5.5rem; margin-top: .9rem; font-size: .9rem; line-height: 1.35; text-align: center; width: 160%; max-width: 15rem; background: rgba(234, 241, 244, .86); }
.size-item-box figcaption { width: 100%; }
.size-item figcaption strong { display: block; font-family: var(--head); font-weight: 500; font-size: 1.05rem; letter-spacing: .03em; text-transform: uppercase; }
.dim-label { font-size: clamp(.78rem, 1.3vw, .98rem); line-height: 1.2; white-space: nowrap; background: rgba(234, 241, 244, .86); padding: 0 .2em; }
.dim-top { margin-bottom: .2rem; }
.dim-side { position: absolute; right: 0; top: 18%; white-space: normal; width: 5rem; }

/* Блок «Последние записи» и карточки */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem 2.2rem; padding: .4rem 6px 0 0; }
.card-grid-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.layout-single .card-grid-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-stack { position: relative; min-width: 0; display: flex; }
.card-stack::before {
    content: "";
    position: absolute;
    top: 7px;
    left: -6px;
    right: 8px;
    bottom: -7px;
    background: #EFE7D4;
    border: 1.5px solid var(--ink);
    transform: rotate(-1.8deg);
    z-index: 0;
}
.card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    background: var(--paper);
    border: 1.5px solid var(--ink);
    border-radius: 0;
    padding: 1.1rem 1.15rem 1.25rem;
    transition: transform .18s ease;
}
.card::after {
    content: "";
    position: absolute;
    top: -1.5px;
    right: -1.5px;
    width: 30px;
    height: 30px;
    background: linear-gradient(225deg, var(--page) calc(50% - 1px), var(--ink) calc(50% - 1px), var(--ink) calc(50% + .5px), var(--paper-fold) calc(50% + .5px));
    border-left: 1.5px solid var(--ink);
    border-bottom: 1.5px solid var(--ink);
}
.card-stack:hover .card { transform: translate(-3px, -3px) rotate(-.4deg); }
.card-stamp {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: .7rem;
    padding: .12em .5em;
    border: 1.5px solid var(--brick);
    color: var(--brick);
    font-family: var(--head);
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .08em;
    line-height: 1.3;
    transform: rotate(-2deg);
}
.card-thumb { display: block; border: 1px solid var(--ink); overflow: hidden; }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s ease; }
.card-stack:hover .card-thumb img { transform: scale(1.04); }
.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; padding-top: .9rem; }
.card-title { margin: 0 0 .45rem; font-family: var(--body); font-weight: 700; font-size: 1.18rem; line-height: 1.25; }
.card-title a { text-decoration: none; color: var(--ink); }
.card-title a:hover { color: var(--brick); text-decoration: underline; }
.card-excerpt { flex: 1; font-size: .93rem; line-height: 1.45; color: #34505A; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-btn { display: block; margin-top: .8rem; padding: .5em 1em; transform: rotate(-1deg); }
.fs-more { margin: 2.2rem 0 0; text-align: right; }
.empty-note { padding: 1rem 1.3rem; background: var(--paper); border: 1px dashed var(--ink); }

/* Блок 3 — материалы */
.swatch-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem; }
.swatch { margin: 0; min-width: 0; }
.swatch img { display: block; width: 100%; height: auto; aspect-ratio: 560 / 300; object-fit: cover; border: 2px solid var(--ink); box-shadow: 3px 3px 0 rgba(31, 58, 68, .18); transition: transform .2s ease; }
.swatch:hover img { transform: rotate(-1.2deg); }
.swatch figcaption { margin-top: .6rem; font-size: .88rem; line-height: 1.35; color: #34505A; background: rgba(234, 241, 244, .86); }
.swatch figcaption strong { display: block; font-family: var(--body); font-size: 1.02rem; font-weight: 700; color: var(--ink); margin-bottom: .15rem; }

/* Блок 4 — чек-лист */
.check-sheet {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: .6rem;
    padding: 2.2rem 2.6rem 2.2rem;
    background: var(--paper);
    border: 1.5px solid var(--ink);
    box-shadow: 0 1px 0 var(--ink);
}
.check-sheet::after {
    content: "";
    position: absolute;
    top: -1.5px;
    right: -1.5px;
    width: 44px;
    height: 44px;
    background: linear-gradient(225deg, var(--page) calc(50% - 1px), var(--ink) calc(50% - 1px), var(--ink) calc(50% + .5px), var(--paper-fold) calc(50% + .5px));
    border-left: 1.5px solid var(--ink);
    border-bottom: 1.5px solid var(--ink);
}
.check-pin { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); width: 34px; height: 34px; }
.check-main { flex: 1; min-width: 0; }
.check-heading { margin: 0 0 1.1rem; font-family: var(--head); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: .04em; text-transform: uppercase; text-align: center; line-height: 1.2; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: repeat(3, auto); gap: .55rem 2.4rem; }
.check-list li { margin: 0; min-width: 0; }
.check-item { display: flex; align-items: center; gap: .8rem; width: 100%; padding: .2rem 0; background: none; border: 0; color: var(--ink); font-family: var(--body); font-size: 1.08rem; text-align: start; cursor: pointer; }
.check-box { position: relative; flex: 0 0 22px; width: 22px; height: 22px; border: 1.5px solid var(--ink); background: #FFFDF7; }
.check-item[aria-pressed="true"] { text-decoration: line-through; text-decoration-color: var(--brick); color: var(--muted); }
.check-item[aria-pressed="true"] .check-box::after { content: ""; position: absolute; left: 5px; top: 0; width: 8px; height: 14px; border-right: 3px solid var(--brick); border-bottom: 3px solid var(--brick); transform: rotate(40deg); }
.check-item:hover .check-box { background: #FBE3C1; }
.check-tools { flex: 0 0 22%; display: block; width: 22%; height: auto; }

/* ---------- Внутренние страницы ---------- */
.crumbs { margin: 1.8rem 0 1.4rem; font-family: var(--head); font-size: .92rem; letter-spacing: .03em; color: var(--muted); }
.crumbs a { color: var(--ink); }
.crumbs span { color: var(--muted); }
.crumbs .sep { margin: 0 .3rem; color: var(--brick); }
.crumbs { display: table; padding: .1rem .45rem; margin-left: -.45rem; background: rgba(234, 241, 244, .9); }

.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); gap: 6%; align-items: start; }
.layout-single { display: block; }
.layout-single > .content-area { width: 85%; margin-left: auto; margin-right: auto; }
.content-area { min-width: 0; }
.page-head { margin-bottom: 1.6rem; }
.page-intro, .archive-desc { padding: 1rem 1.3rem; background: rgba(247, 241, 228, .92); border: 1px solid var(--ink); }

.entry-sheet {
    position: relative;
    padding: 2rem 2.4rem 2.4rem;
    background: var(--paper);
    border: 1.5px solid var(--ink);
}
.entry-sheet::after {
    content: "";
    position: absolute;
    top: -1.5px;
    right: -1.5px;
    width: 34px;
    height: 34px;
    background: linear-gradient(225deg, var(--page) calc(50% - 1px), var(--ink) calc(50% - 1px), var(--ink) calc(50% + .5px), var(--paper-fold) calc(50% + .5px));
    border-left: 1.5px solid var(--ink);
    border-bottom: 1.5px solid var(--ink);
}
.entry-head { margin-bottom: 1.4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--ink); }
.entry-title { margin: .2rem 0 .4rem; font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.entry-cats { margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.entry-cats a, .entry-tags a { display: inline-block; padding: .1em .6em; border: 1px solid var(--ink); font-size: .85rem; text-decoration: none; background: var(--strip); }
.entry-cats a:hover, .entry-tags a:hover { background: var(--ochre); color: var(--ink); }
.entry-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.6rem 0 0; }
.entry-thumb { margin: 0 0 1.6rem; border: 1px solid var(--ink); }
.entry-thumb img { display: block; width: 100%; height: auto; }

.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: 1.65rem; text-transform: uppercase; letter-spacing: .04em; padding-bottom: .3rem; border-bottom: 1px dashed var(--grid-major); }
.entry-content h3 { font-size: 1.3rem; }
.entry-content h4 { font-size: 1.1rem; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.entry-content li { margin-bottom: .35em; }
.entry-content ul li::marker { color: var(--brick); }
.entry-content ol li::marker { font-family: var(--head); color: var(--brick); }
.entry-content blockquote { margin: 1.5em 0; padding: 1rem 1.4rem; border-left: 5px solid var(--brick); background: var(--strip); font-style: italic; }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; border: 1.5px solid var(--ink); }
.entry-content th, .entry-content td { border: 1px solid var(--ink); padding: .55em .8em; text-align: start; vertical-align: top; }
.entry-content th { background: var(--strip); font-family: var(--head); font-weight: 500; letter-spacing: .03em; }
.entry-content tr:nth-child(even) td { background: rgba(207, 224, 232, .25); }
.entry-content img { display: block; height: auto; }
.entry-content figure { margin: 1.5em 0; }
.entry-content figcaption { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
.entry-content pre { overflow-x: auto; padding: 1rem; background: var(--ink); color: var(--paper); font-size: .9rem; }
.entry-content code { font-size: .92em; background: var(--strip); padding: .05em .3em; }
.entry-content pre code { background: none; padding: 0; }
.entry-content hr { border: 0; height: 11px; border-left: 1px solid var(--ink); border-right: 1px solid var(--ink); background: linear-gradient(var(--ink), var(--ink)) center / 100% 1px no-repeat; margin: 2em 0; }
.entry-content a:hover { color: var(--brick); }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-left: auto; margin-right: auto; }

.post-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin: 2rem 0; }
.post-step { display: block; min-width: 0; padding: 1rem 1.2rem; background: var(--strip); border: 1px solid var(--ink); text-decoration: none; line-height: 1.35; }
.post-step span { display: block; font-family: var(--head); font-size: .85rem; color: var(--brick); letter-spacing: .05em; margin-bottom: .2rem; }
.post-step:hover { background: var(--paper); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.post-step-next { grid-column: 2; text-align: end; }

/* Сайдбар */
.sidebar {
    min-width: 0;
    padding: 1.4rem 1.4rem 1rem;
    background: var(--strip);
    border: 1.5px solid var(--ink);
    border-top: 6px solid var(--ink);
    color: var(--ink);
}
.sidebar .wdg { margin-bottom: 1.6rem; }
.sidebar .wdg-title { margin: 0 0 .8rem; padding-bottom: .4rem; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); border-bottom: 1px solid var(--ink); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { margin: 0; padding: .5rem 0 .5rem 1.1rem; border-bottom: 1px dashed var(--grid-major); position: relative; color: var(--ink); line-height: 1.35; }
.sidebar li::before { content: ""; position: absolute; left: 0; top: .95rem; width: 6px; height: 6px; border: 1px solid var(--brick); border-radius: 50%; }
.sidebar a { color: var(--ink); text-decoration: none; }
.sidebar a:hover { color: var(--brick); text-decoration: underline; }
.sidebar .post-date, .sidebar .rss-date { display: block; font-size: .8rem; color: var(--muted); }
.sidebar p { color: var(--ink); }

/* Пагинация */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 2.6rem 0 0; }
.pager .page-numbers, .pager > a, .pager > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 .75rem;
    background: var(--paper);
    border: 1px solid var(--ink);
    color: var(--ink);
    font-family: var(--head);
    font-size: 1rem;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}
.pager a.page-numbers:hover { transform: translate(-2px, -2px); box-shadow: 2px 2px 0 var(--ink); color: var(--ink); }
.pager .page-numbers.current { background: var(--ink); color: var(--paper); }
.pager .page-numbers.dots { background: none; border: 0; min-width: 1.5rem; padding: 0; }
.pager .prev, .pager .next { background: var(--ochre); }

/* Поиск */
.find-form { display: flex; gap: .6rem; margin: 1.2rem 0; max-width: 34rem; }
.find-field { flex: 1; min-width: 0; padding: .6rem .8rem; border: 1.5px solid var(--ink); background: #FFFDF7; color: var(--ink); font-family: var(--body); font-size: 1rem; border-radius: 0; }
.find-btn { transform: none; }
.empty-sheet { padding: 1.4rem; background: var(--paper); border: 1.5px solid var(--ink); }
.empty-sheet .empty-note { border: 0; padding: 0; }

/* 404 */
.lost-sheet { text-align: center; }
.lost-code { margin: 0; font-family: var(--head); font-size: clamp(4rem, 12vw, 7.5rem); line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--ink); letter-spacing: .1em; }
.lost-sheet .find-form { margin-inline: auto; }

/* Комментарии */
.notes { margin-top: 2.4rem; padding: 1.8rem 2rem; background: rgba(247, 241, 228, .95); border: 1.5px solid var(--ink); }
.notes-title { font-size: 1.5rem; }
.note-list, .note-list .children { list-style: none; margin: 0; padding: 0; }
.note-list .children { padding-left: 1.6rem; border-left: 1px dashed var(--grid-major); }
.note-body { margin: 0 0 1rem; padding: 1rem 1.2rem; background: #FFFDF7; border: 1px solid var(--ink); }
.note-head { display: flex; flex-wrap: wrap; gap: .6rem; align-items: baseline; margin-bottom: .4rem; }
.note-author { font-weight: 700; }
.note-date { font-size: .82rem; color: var(--muted); }
.note-wait { font-size: .9rem; color: var(--brick); }
.note-reply a { font-family: var(--head); font-size: .9rem; }
.comment-respond { margin-top: 1.6rem; }
.comment-reply-title { font-size: 1.3rem; text-transform: uppercase; letter-spacing: .04em; margin-top: 0; }
.comment-reply-title small { margin-left: .6rem; font-size: .85rem; text-transform: none; }
.comment-form label { display: block; font-size: .9rem; margin-bottom: .25rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: .6rem .8rem; border: 1.5px solid var(--ink); background: #FFFDF7; color: var(--ink); font-family: var(--body); font-size: 1rem; border-radius: 0; }
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; }
.comment-form .submit { padding: .6em 1.4em; background: var(--ochre); color: var(--ink); border: 1px solid var(--ink); font-family: var(--head); font-size: 1rem; cursor: pointer; transform: rotate(-1deg); }
.comment-form .submit:hover { transform: rotate(0) translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.comment-notes, .logged-in-as { font-size: .88rem; color: var(--muted); }

/* ---------- Подвал ---------- */
.basesheet {
    background-color: var(--ink);
    background-image:
        linear-gradient(rgba(234, 241, 244, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(234, 241, 244, .05) 1px, transparent 1px);
    background-size: var(--cell) var(--cell);
    color: var(--footer-text);
    padding: 3rem 0 1.6rem;
    border-top: 3px solid var(--ochre);
}
.base-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.6rem; }
.base-col { min-width: 0; }
.basesheet .wdg { margin-bottom: 1.2rem; color: var(--footer-text); }
.basesheet .wdg-title { margin: 0 0 .7rem; font-family: var(--head); font-weight: 400; font-size: 1.35rem; letter-spacing: .02em; color: #FFFFFF; }
.basesheet p, .basesheet .textwidget { color: var(--footer-text); font-size: .95rem; line-height: 1.5; }
.basesheet ul { list-style: none; margin: 0; padding: 0; }
.basesheet li { margin: 0 0 .35rem; color: var(--footer-text); }
.basesheet a { color: var(--footer-text); text-decoration: underline; text-decoration-color: var(--footer-muted); font-size: .95rem; }
.basesheet a:hover { color: var(--ochre); text-decoration-color: var(--ochre); }
.basesheet .post-date { color: var(--footer-muted); font-size: .8rem; display: block; }
.base-copy { margin: 2rem 0 0; padding-top: 1rem; border-top: 1px solid rgba(169, 196, 208, .35); font-size: .88rem; color: var(--footer-muted); }

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    width: min(92%, 760px);
    padding: 1rem 1.4rem;
    background: var(--paper);
    border: 1.5px solid var(--ink);
    box-shadow: 5px 5px 0 var(--ink);
    transform: translateX(-50%);
}
.cookie-text { margin: 0; flex: 1; min-width: 0; font-size: .92rem; line-height: 1.4; }
.cookie-accept { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .front-wrap { width: 100%; }
    .layout-with-sidebar { display: block; }
    .layout-with-sidebar .sidebar { margin-top: 2.4rem; }
    .layout-single > .content-area { width: 100%; }
    .card-grid, .layout-single .card-grid-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .swatch-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .size-ruler { left: -1.5rem; width: calc(1.5rem + 5%); }
    .check-tools { flex-basis: 26%; width: 26%; }
    .topsheet-in { flex-wrap: wrap; }
}
@media (max-width: 760px) {
    .topsheet-in { position: relative; }
    .nav-toggle { display: inline-flex; }
    .leader-nav { display: none; flex-basis: 100%; }
    .leader-nav.is-open { display: block; }
    .leader-list a { padding: .35rem 0; }
    .plan-note { display: none; }
    .plan-notes-list { display: flex; flex-direction: column; gap: .3rem; margin-top: 1rem; padding: .8rem 1rem; background: var(--paper); border: 1px solid var(--ink); font-size: .92rem; }
    .plan-notes-list span::before { content: "— "; color: var(--brick); }
    .check-sheet { flex-direction: column; align-items: stretch; padding: 2rem 1.6rem; }
    .check-tools { width: 45%; align-self: flex-end; margin-top: -1rem; }
    .size-items { flex-wrap: wrap; justify-content: center; gap: 2rem 6%; }
    .size-item-shelf { flex-basis: 30%; }
    .size-item-table { flex-basis: 52%; }
    .size-item-box { flex-basis: 70%; }
    .size-item figcaption { width: 100%; min-height: 0; }
    .size-ruler { display: none; }
    .size-board { padding-left: 0; }
}
@media (max-width: 600px) {
    body { font-size: 16px; }
    .topsheet-in { padding: 1.1rem 0; gap: 1rem; }
    .brand-svg, .brand-logo { width: 48px; height: 48px; }
    .brand-desc { font-size: .82rem; }
    .fs { padding: 2.2rem 0 .6rem; }
    .card-grid, .card-grid-list, .layout-single .card-grid-list { grid-template-columns: minmax(0, 1fr); }
    .swatch-row { gap: 1.1rem; }
    .check-list { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; grid-template-rows: none; }
    .check-sheet { padding: 1.8rem 1.2rem 1.4rem; }
    .entry-sheet { padding: 1.4rem 1.2rem 1.6rem; }
    .notes { padding: 1.3rem 1.1rem; }
    .sidebar { padding: 1.2rem 1.1rem .8rem; }
    .base-cols { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .post-steps { grid-template-columns: minmax(0, 1fr); }
    .post-step-next { grid-column: auto; }
    .cookie-banner { flex-direction: column; align-items: stretch; padding: 1rem 1.1rem; bottom: 10px; }
    .find-form { flex-direction: column; }
    .room-label { font-size: .62rem; padding: 0 .1em; }
    .plan-stamp { border-width: 2px; font-size: .58rem; }
    .alignleft, .alignright { float: none; margin: 1em 0; }
}
