/*
Theme Name: dds_remontoff-ryazan.ru
Author: Алексей Зимин
Description: Тема информационного портала о ремонте квартир: сметы, этапы, типичные ошибки. Стилистика рабочего чертежа прораба — миллиметровка, калька, полароиды и штампы.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.8
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: remryaz
*/

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

/* ---------- Палитра ---------- */
:root {
    --paper: #DCE3E4;
    --grid: #C3CDCF;
    --grid-fine: rgba(195, 205, 207, .55);
    --graphite: #2B2F33;
    --navy: #1E2A3A;
    --ink: #22262A;
    --muted: #6B7478;
    --orange: #E8551F;
    --orange-deep: #C4441A;
    --yellow: #F2C230;
    --blue: #2F5D8A;
    --line: #8FA0A6;
    --calc: rgba(246, 248, 248, .86);
    --calc-solid: #F3F6F6;
    --side: #E8EDEE;
    --white: #FFFFFF;
    --tape: rgba(222, 208, 170, .78);
    --red: #CF2F28;
    --on-dark: #E9EDEF;
    --on-dark-muted: #AEB8BE;
    --f-head: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    --f-text: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    --f-hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
    --f-mono: "IBM Plex Mono", "Consolas", "Courier New", monospace;
    --arrow-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Cpath d='M0 5L10 1.2v7.6z' fill='%2322262A'/%3E%3C/svg%3E");
    --arrow-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Cpath d='M10 5L0 1.2v7.6z' fill='%2322262A'/%3E%3C/svg%3E");
}

/* ---------- Правила для [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;
    color: var(--ink);
    font-family: var(--f-text);
    font-size: 1.0625rem;
    line-height: 1.6;
    background-color: var(--paper);
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px),
        linear-gradient(var(--grid-fine) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-fine) 1px, transparent 1px);
    background-size: 60px 60px, 60px 60px, 12px 12px, 12px 12px;
    background-position: -1px -1px;
}
img { max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-head); font-weight: 700; line-height: 1.15; margin: 0 0 .6em; color: var(--ink); }
p, li, td, dd, dt, blockquote, figcaption { overflow-wrap: break-word; hyphens: auto; }
h1, h2, h3, h4, h5, h6, th, .brand-name, .card-title, .swatch-name { overflow-wrap: break-word; hyphens: manual; }
a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s; }
a:hover { color: var(--orange); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px dashed var(--orange); outline-offset: 3px; }
table { border-collapse: collapse; width: 100%; margin: 0 0 1.4em; }
th, td { border: 1px solid var(--ink); padding: .5em .7em; text-align: start; vertical-align: top; }
th { font-family: var(--f-mono); font-weight: 500; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; background: rgba(143, 160, 166, .18); }

.sr-only { 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: -100px; z-index: 100; background: var(--yellow); color: var(--ink); padding: .5rem 1rem; font-weight: 700; border: 2px solid var(--ink); }
.skip-link:focus { top: 1rem; }

/* ---------- Лист чертежа (единый контейнер ширины) ---------- */
.shell {
    width: min(94%, 1240px);
    margin-inline: auto;
    position: relative;
    border-inline: 1px solid var(--line);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.shell::before, .shell::after {
    content: "";
    position: absolute;
    top: 40px;
    width: 30px;
    height: 30px;
    background:
        linear-gradient(var(--ink), var(--ink)) center / 100% 1px no-repeat,
        linear-gradient(var(--ink), var(--ink)) center / 1px 100% no-repeat;
    opacity: .55;
    pointer-events: none;
    display: none;
}
.shell::before { left: -46px; }
.shell::after { right: -46px; }
.drawing { flex: 1; min-width: 0; }

/* ---------- Шапка ---------- */
.masthead {
    background: var(--graphite);
    color: var(--white);
    padding: 1.6rem 2.6rem 2.3rem;
    position: relative;
}
.masthead::after {
    content: "";
    position: absolute;
    left: 2.6rem;
    right: 2.6rem;
    bottom: 12px;
    height: 9px;
    background:
        linear-gradient(var(--white), var(--white)) center / 100% 1px no-repeat,
        linear-gradient(var(--white), var(--white)) left center / 1px 100% no-repeat,
        linear-gradient(var(--white), var(--white)) right center / 1px 100% no-repeat;
    opacity: .7;
}
.masthead-row { display: flex; align-items: center; gap: 1.5rem 2rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 1.3rem; color: var(--white); text-decoration: none; min-width: 0; flex: 1 1 420px; }
.brand:hover { color: var(--white); }
.brand-mark { flex: 0 0 auto; width: 92px; height: 92px; display: block; }
.brand-svg, .brand-logo { width: 100%; height: 100%; display: block; object-fit: contain; }
.brand-logo { border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.brand-name { font-family: var(--f-head); font-weight: 700; font-size: clamp(1.15rem, 2.1vw, 1.6rem); line-height: 1.2; margin: 0; color: var(--white); max-width: 30ch; }
.brand-desc { font-size: .95rem; line-height: 1.4; color: var(--on-dark-muted); max-width: 62ch; }

.topnav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.topnav-list li { position: relative; display: flex; align-items: center; }
.topnav-list li + li::before {
    content: "";
    width: 7px;
    height: 1.7em;
    margin-inline: .35rem;
    background:
        linear-gradient(var(--on-dark-muted), var(--on-dark-muted)) center / 1px 100% no-repeat,
        linear-gradient(var(--on-dark-muted), var(--on-dark-muted)) center top / 100% 1px no-repeat,
        linear-gradient(var(--on-dark-muted), var(--on-dark-muted)) center bottom / 100% 1px no-repeat;
    opacity: .7;
}
.topnav-list a {
    display: block;
    padding: .25rem .6rem;
    color: var(--on-dark);
    font-family: var(--f-hand);
    font-weight: 500;
    font-size: 1.55rem;
    line-height: 1.2;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.topnav-list a:hover { color: var(--yellow); border-bottom-color: rgba(242, 194, 48, .5); }
.topnav-list .current-menu-item > a,
.topnav-list .current_page_item > a { color: var(--yellow); border-bottom-color: var(--yellow); }

.nav-toggle {
    display: none;
    align-items: center;
    gap: .55rem;
    margin-left: auto;
    padding: .55rem .9rem;
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    font: 700 .95rem/1 var(--f-head);
    text-transform: uppercase;
    letter-spacing: .06em;
    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; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- Заголовок с размерной линией ---------- */
.sec-title {
    display: inline-block;
    position: relative;
    max-width: 100%;
    font-size: clamp(1.85rem, 3.5vw, 2.75rem);
    letter-spacing: -.005em;
    padding-bottom: 16px;
    margin-bottom: 1.1rem;
}
.sec-title::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 10px;
    background:
        var(--arrow-l) left center / 10px 10px no-repeat,
        var(--arrow-r) right center / 10px 10px no-repeat,
        linear-gradient(var(--ink), var(--ink)) center / 100% 1px no-repeat;
}
.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 18px;
    background:
        linear-gradient(var(--ink), var(--ink)) left center / 1px 100% no-repeat,
        linear-gradient(var(--ink), var(--ink)) right center / 1px 100% no-repeat;
    opacity: .6;
}

/* ---------- Кнопки-штампы ---------- */
.stamp-btn,
input[type="submit"].stamp-btn {
    display: inline-block;
    position: relative;
    padding: .7rem 1.5rem .7rem 1.3rem;
    background: var(--orange);
    color: var(--white);
    border: 2px solid var(--ink);
    font: 700 1rem/1.2 var(--f-head);
    text-transform: uppercase;
    letter-spacing: .06em;
    text-decoration: none;
    cursor: pointer;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
    transition: transform .12s, background-color .12s;
}
.stamp-btn::after {
    content: "";
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 16px;
    height: 16px;
    background: linear-gradient(to top left, transparent calc(50% - 2px), var(--ink) calc(50% - 2px), var(--ink) calc(50% + 1px), transparent calc(50% + 1px));
    pointer-events: none;
}
.stamp-btn:hover { background: var(--orange-deep); color: var(--white); transform: translate(2px, 2px); }
.stamp-btn:active { transform: translate(3px, 3px); }

/* ---------- Калька ---------- */
.calc-sheet {
    position: relative;
    background: var(--calc);
    padding: 2.2rem 2.4rem;
    box-shadow: 0 14px 22px -16px rgba(34, 38, 42, .55), 0 1px 2px rgba(34, 38, 42, .12);
}
.calc-taped::before, .calc-taped::after {
    content: "";
    position: absolute;
    width: 128px;
    height: 34px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .22), transparent 30%, transparent 70%, rgba(255, 255, 255, .22)),
        var(--tape);
    box-shadow: 0 1px 2px rgba(34, 38, 42, .18);
    pointer-events: none;
}
.calc-taped::before { top: -10px; right: -34px; transform: rotate(32deg); }
.calc-taped::after { bottom: -6px; left: -38px; transform: rotate(32deg); }

/* ---------- Главная ---------- */
.front-wrap { width: 85%; margin-inline: auto; position: relative; padding: 3.2rem 0 4.5rem; }
.fs { margin: 0 0 4.5rem; min-width: 0; }
.fs:last-child { margin-bottom: 0; }
.fs-lead { max-width: 64ch; color: var(--ink); margin-bottom: 1.6rem; }
.fs-more { margin: 2.4rem 0 0; text-align: center; }

.margin-note {
    position: absolute;
    font-family: var(--f-hand);
    font-weight: 500;
    font-size: 1.45rem;
    color: var(--muted);
    white-space: nowrap;
    pointer-events: none;
    display: none;
}
.margin-note::after {
    content: "";
    position: absolute;
    width: 60px;
    height: 34px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 34'%3E%3Cpath d='M56 4C40 6 22 12 8 28' fill='none' stroke='%236B7478' stroke-width='1.4'/%3E%3Cpath d='M6 20l2 9 9-3' fill='none' stroke='%236B7478' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.note-a { top: 2.2rem; right: -9.5rem; transform: rotate(-4deg); }
.note-a::after { top: 2rem; left: -1.2rem; }
.note-b { top: 54%; left: -10rem; transform: rotate(-8deg); }
.note-b::after { top: 2rem; right: -2.5rem; transform: scaleX(-1); }
.note-c { bottom: 14rem; right: -8.5rem; transform: rotate(5deg); }
.note-c::after { top: 2rem; left: -1rem; }

/* Блок 1: смета */
.smeta-board { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 1.5rem; align-items: stretch; }
.plan { position: relative; margin: 0; container-type: inline-size; min-width: 0; }
.plan img {
    display: block;
    width: 100%;
    height: auto;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 3%, #000 97%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 4%, #000 96%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0, #000 3%, #000 97%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 4%, #000 96%, transparent 100%);
    mask-composite: intersect;
}
.plan-dim, .plan-tag { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; }
.plan-dim {
    font-family: var(--f-mono);
    font-weight: 500;
    font-size: clamp(9px, 1.45cqw, 14px);
    line-height: 1.1;
    color: var(--blue);
    background: var(--paper);
    padding: .1em .3em;
}
.plan-dim-v { transform: translate(-50%, -50%) rotate(-90deg); }
.plan-tag {
    transform: translate(-6%, -50%) rotate(-2deg);
    font-family: var(--f-hand);
    font-weight: 700;
    font-size: clamp(14px, 3cqw, 30px);
    line-height: 1.05;
    color: var(--ink);
    background: var(--paper);
    padding: .05em .35em .12em;
    border-bottom: 2px solid var(--ink);
}
.plan-tag b {
    font-family: var(--f-mono);
    font-weight: 500;
    font-size: .52em;
    color: var(--white);
    background: var(--orange);
    padding: .15em .4em;
    margin-left: .25em;
    vertical-align: .3em;
}

.cost-ruler {
    position: relative;
    min-height: 320px;
    margin: 2.2rem 0 1.4rem;
    font-family: var(--f-mono);
    font-weight: 500;
}
.cost-ruler::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 22px;
    border-left: 2px solid var(--ink);
    background: repeating-linear-gradient(to top, var(--ink) 0 1px, transparent 1px 8%);
    background-size: 12px 100%;
    background-repeat: no-repeat;
    background-position: left bottom;
}
.cost-ruler::after {
    content: "";
    position: absolute;
    left: 13px;
    top: -14px;
    width: 12px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3E%3Cpath d='M6 0l6 14H0z' fill='%2322262A'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cost-ruler-head { position: absolute; top: -2.3rem; left: 0; font-size: .72rem; color: var(--muted); white-space: nowrap; }
.cost-ruler-zero, .cost-ruler-top { position: absolute; left: 0; font-size: .7rem; color: var(--muted); transform: translateY(50%); }
.cost-ruler-zero { bottom: 0; }
.cost-ruler-top { top: 0; transform: translateY(-50%); left: -2px; }
.cost-ruler-scale { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.cost-ruler-scale li {
    position: absolute;
    left: 20px;
    right: 0;
    bottom: calc(var(--v) * 4%);
    height: 0;
}
.cost-ruler-scale li::before {
    content: "";
    position: absolute;
    left: 0;
    top: -1px;
    width: 18px;
    height: 2px;
    background: var(--orange);
}
.cost-ruler-scale li::after {
    content: "";
    position: absolute;
    left: 22px;
    top: -6px;
    width: 18px;
    height: 12px;
    background: var(--orange);
}
.cost-ruler-scale span {
    position: absolute;
    left: 46px;
    top: -.6rem;
    font-size: .72rem;
    line-height: 1.2rem;
    color: var(--ink);
    white-space: nowrap;
}

.smeta-split { margin-top: 1.6rem; max-width: 720px; }
.smeta-note { font-family: var(--f-hand); font-weight: 700; font-size: 1.75rem; line-height: 1.2; margin: 0 0 .6rem; }
.smeta-note strong { color: var(--orange); }
.split-bar { display: flex; height: 30px; border: 2px solid var(--ink); font: 500 .78rem/26px var(--f-mono); color: var(--white); text-transform: uppercase; letter-spacing: .05em; }
.split-bar span { padding-inline: .7rem; overflow: hidden; white-space: nowrap; }
.split-work { background: var(--orange); border-right: 2px solid var(--ink); }
.split-mat { background: var(--blue); }

/* Блок 2: календарь */
.fs-calendar .calc-sheet { padding: 2.2rem 2.6rem 2rem; }
.gantt {
    list-style: none;
    margin: 1.8rem 0 1.2rem;
    padding: 0 26px 0 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: relative;
    min-height: 262px;
}
.gantt::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 46px;
    height: 12px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 12'%3E%3Cpath d='M0 1l14 5L0 11' fill='none' stroke='%2322262A' stroke-width='1.6'/%3E%3C/svg%3E") right center / 14px 12px no-repeat,
        linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat;
}
.gantt-step { position: relative; min-width: 0; padding-top: 0; }
.gantt-step::before {
    content: "";
    position: absolute;
    left: 0;
    top: 38px;
    width: 2px;
    height: 28px;
    background: var(--ink);
}
.gantt-step:first-child::before { height: 28px; }
.gantt-name {
    display: block;
    height: 38px;
    text-align: center;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: clamp(1rem, 1.7vw, 1.3rem);
    line-height: 38px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-inline: .3rem;
}
.gantt-bar {
    display: block;
    position: relative;
    margin-top: calc(var(--i) * 26px + 38px);
    margin-right: 6px;
    height: 2px;
    background: var(--blue);
}
.gantt-bar::before, .gantt-bar::after {
    content: "";
    position: absolute;
    top: -5px;
    width: 10px;
    height: 12px;
}
.gantt-bar::before { left: -1px; width: 2px; background: var(--blue); }
.gantt-bar::after {
    right: -2px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M10 6L0 0v12z' fill='%232F5D8A'/%3E%3C/svg%3E") center / contain no-repeat;
}
.gantt-dur {
    position: absolute;
    left: 8px;
    bottom: 6px;
    font-family: var(--f-mono);
    font-weight: 500;
    font-size: .74rem;
    color: var(--blue);
    white-space: nowrap;
}
.gantt-late .gantt-name { border: 3px solid var(--orange); color: var(--ink); line-height: 32px; }
.gantt-late ~ .gantt-step .gantt-bar { margin-left: 45%; }
.gantt-late + .gantt-step .gantt-bar { margin-right: -45%; }
.gantt-late .gantt-bar { width: 145%; background: var(--orange); height: 3px; z-index: 1; }
.gantt-late .gantt-bar::before { background: var(--orange); }
.gantt-late .gantt-bar::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M10 6L0 0v12z' fill='%23E8551F'/%3E%3C/svg%3E"); }
.gantt-late .gantt-dur { color: var(--orange-deep); font-weight: 500; }
.gantt-stamp {
    position: absolute;
    left: 52%;
    top: 204px;
    z-index: 2;
    padding: .25rem .9rem;
    border: 3px solid var(--orange);
    outline: 1px solid var(--orange);
    outline-offset: 3px;
    border-radius: 6px;
    color: var(--orange);
    background: rgba(246, 248, 248, .55);
    font: 700 clamp(1.1rem, 2vw, 1.7rem)/1.1 var(--f-head);
    white-space: nowrap;
    transform: rotate(-9deg);
    mix-blend-mode: multiply;
}
.gantt-legend { font-size: .98rem; color: var(--ink); margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.2rem; }
.lg { font: 500 .78rem/1 var(--f-mono); display: inline-flex; align-items: center; gap: .45rem; text-transform: uppercase; letter-spacing: .03em; }
.lg::before { content: ""; width: 30px; height: 3px; background: var(--blue); }
.lg-late::before { background: var(--orange); }

/* Карточки записей — полароиды */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 2.6rem; padding-top: 1.2rem; }
.card-grid-front:has(> .card:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3rem 1.8rem; }
.card-grid-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 2.2rem; }
.layout-single .card-grid-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: var(--white);
    padding: 16px 16px 18px;
    box-shadow: 0 16px 24px -16px rgba(34, 38, 42, .6), 0 2px 4px rgba(34, 38, 42, .12);
    transform: rotate(-2deg);
    transition: transform .2s, box-shadow .2s;
}
.card:nth-child(3n+2) { transform: rotate(1.8deg); }
.card:nth-child(3n) { transform: rotate(-1.4deg); }
.card::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 50%;
    width: 22px;
    height: 22px;
    margin-left: -11px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #A9B0B4 0 20%, #6E767B 45%, #3C4246 100%);
    box-shadow: 2px 4px 4px rgba(0, 0, 0, .35);
    z-index: 2;
}
.card:hover { transform: rotate(0) translateY(-4px); box-shadow: 0 22px 30px -18px rgba(34, 38, 42, .7), 0 2px 4px rgba(34, 38, 42, .14); }
.card-thumb { background: var(--graphite); }
.card-thumb a { display: block; }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 1 / .86; object-fit: cover; filter: saturate(.92) contrast(1.03); }
.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 1.1rem .3rem 0; text-align: center; }
.card-title { font-size: 1.4rem; line-height: 1.2; margin: 0 0 .55rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--blue); }
.card-excerpt { flex: 1; font-size: .96rem; line-height: 1.5; color: #3B4247; margin-bottom: .9rem; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-foot { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .7rem 1.1rem; }
.card-date { font: 500 .8rem/1 var(--f-mono); color: var(--muted); }
.card-more {
    display: inline-block;
    padding: .38rem .9rem;
    border: 2px solid var(--orange);
    border-radius: 4px;
    outline: 1px solid rgba(232, 85, 31, .5);
    outline-offset: 2px;
    color: var(--orange-deep);
    font: 700 1rem/1.1 var(--f-head);
    text-decoration: none;
    transform: rotate(-3deg);
    transition: background-color .15s, color .15s, transform .15s;
}
.card-more:hover { background: var(--orange); color: var(--white); transform: rotate(0); }

/* Блок 3: ведомость ошибок */
.ledger-wrap { position: relative; }
.ledger { border: 2px solid var(--ink); background: rgba(255, 255, 255, .55); margin: 0; }
.ledger th, .ledger td { border: 1px solid var(--ink); padding: .75rem .9rem; vertical-align: middle; }
.ledger th { background: rgba(143, 160, 166, .2); }
.ledger td { font-size: 1.02rem; }
.ledger td:nth-child(2) { font-weight: 700; }
.ledger-n { width: 3.2rem; text-align: center !important; font-family: var(--f-mono); font-weight: 500; }
.ledger th.ledger-n { font-family: var(--f-head); font-weight: 700; font-size: .95rem; }
.ledger-x {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: .7rem;
    vertical-align: -3px;
    background:
        linear-gradient(45deg, transparent calc(50% - 2px), var(--red) calc(50% - 2px), var(--red) calc(50% + 2px), transparent calc(50% + 2px)),
        linear-gradient(-45deg, transparent calc(50% - 2px), var(--red) calc(50% - 2px), var(--red) calc(50% + 2px), transparent calc(50% + 2px));
}
.ledger-box { display: inline-block; border: 2px solid var(--ink); padding: .25rem .6rem; font-family: var(--f-head); font-weight: 700; background: var(--white); }
.ledger-stamp {
    position: absolute;
    right: 3%;
    bottom: -2.6rem;
    padding: .2rem 1.1rem;
    border: 5px double var(--blue);
    border-radius: 8px;
    color: var(--blue);
    font: 700 clamp(1.6rem, 3vw, 2.5rem)/1.1 var(--f-head);
    text-transform: uppercase;
    letter-spacing: .06em;
    transform: rotate(-9deg);
    opacity: .82;
    mix-blend-mode: multiply;
    pointer-events: none;
}

/* Блок 4: материалы */
.marker-strip {
    position: relative;
    background: rgba(242, 194, 48, .62);
    padding: 2.4rem 2.2rem 2.2rem;
    box-shadow: 0 12px 20px -16px rgba(34, 38, 42, .55);
}
.marker-strip::before, .marker-strip::after {
    content: "";
    position: absolute;
    width: 110px;
    height: 32px;
    background: var(--tape);
    box-shadow: 0 1px 2px rgba(34, 38, 42, .18);
}
.marker-strip::before { top: -10px; left: -26px; transform: rotate(-30deg); }
.marker-strip::after { bottom: -8px; right: -24px; transform: rotate(-30deg); }
.swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.6rem 1.3rem; }
.swatch {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #F7F7F4;
    padding: 12px 12px 12px;
    box-shadow: 0 10px 16px -10px rgba(34, 38, 42, .55), 0 1px 2px rgba(34, 38, 42, .15);
}
.swatch::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-left: -10px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #A9B0B4 0 20%, #6E767B 45%, #3C4246 100%);
    box-shadow: 2px 4px 4px rgba(0, 0, 0, .35);
}
.swatch img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.swatch-name { display: block; margin-top: .6rem; font: 700 .92rem/1.2 var(--f-head); }
.swatch-hint { display: block; font: 500 1.15rem/1.15 var(--f-hand); color: var(--blue); margin-top: .2rem; }

.notes-sheet {
    margin-top: 2.2rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem 2.2rem;
    background:
        repeating-linear-gradient(transparent 0 31px, rgba(47, 93, 138, .18) 31px 32px),
        var(--calc-solid);
    background-position: 0 1.6rem, 0 0;
    padding: 1.6rem 2rem 1.2rem;
    border-left: 3px solid var(--orange);
    box-shadow: 0 10px 18px -14px rgba(34, 38, 42, .5);
}
.note-col { min-width: 0; }
.note-title { font-family: var(--f-hand); font-weight: 700; font-size: 1.6rem; line-height: 2rem; margin: 0; color: var(--orange-deep); }
.note-col p { margin: 0; font-size: .98rem; line-height: 2rem; }

.empty-state { font-family: var(--f-hand); font-size: 1.6rem; line-height: 1.3; color: var(--muted); margin: 0 0 1rem; }

/* ---------- Внутренние страницы ---------- */
.layout { padding: 2.6rem 0 4rem; }
.layout-single { display: block; }
.layout-single .content-area { width: 85%; margin-left: auto; margin-right: auto; }
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    justify-content: center;
    column-gap: 2.6%;
    align-items: start;
}
.content-area { min-width: 0; }
.sidebar { min-width: 0; display: grid; gap: 2rem; padding-top: 3.2rem; }

.crumbs {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .15rem .2rem;
    max-width: 100%;
    margin-bottom: 1.8rem;
    padding: .4rem .85rem;
    background: var(--calc);
    border: 1px solid var(--ink);
    font: 500 .8rem/1.5 var(--f-mono);
    color: var(--muted);
}
.crumbs a { color: var(--blue); }
.crumbs-sep { color: var(--orange); margin-inline: .2rem; }
.crumbs span[aria-current] { color: var(--ink); }

.page-head { margin-bottom: 2rem; }
.page-title { margin-bottom: .8rem; }
.page-sub { font-family: var(--f-hand); font-size: 1.55rem; line-height: 1.25; color: var(--muted); margin: 0; }

.entry { padding: 2.4rem 2.6rem 2.2rem; }
.entry-head { margin-bottom: 1.4rem; }
.entry-title { font-size: clamp(1.8rem, 3.3vw, 2.6rem); }
.entry-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: 0; font: 500 .82rem/1.4 var(--f-mono); color: var(--muted); }
.entry-cat a { color: var(--blue); }
.entry-photo { margin: 0 0 1.8rem; background: var(--white); padding: 12px 12px 34px; box-shadow: 0 14px 22px -16px rgba(34, 38, 42, .6); transform: rotate(-.6deg); }
.entry-photo img { display: block; width: 100%; height: auto; }
.entry-content { font-size: 1.08rem; line-height: 1.7; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2 { font-size: 1.75rem; margin: 1.8em 0 .6em; padding-left: .8rem; border-left: 5px solid var(--orange); }
.entry-content h3 { font-size: 1.35rem; margin: 1.5em 0 .5em; }
.entry-content h4 { font-size: 1.15rem; margin: 1.3em 0 .4em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.entry-content li { margin-bottom: .35em; }
.entry-content ul { list-style: none; padding-left: 1.4em; }
.entry-content ul li { position: relative; }
.entry-content ul li::before { content: ""; position: absolute; left: -1.2em; top: .62em; width: 8px; height: 8px; background: var(--orange); }
.entry-content ol li::marker { font-family: var(--f-mono); color: var(--orange-deep); }
.entry-content blockquote {
    margin: 1.6em 0;
    padding: 1.1rem 1.4rem 1.1rem 1.5rem;
    background: rgba(242, 194, 48, .38);
    border-left: 4px solid var(--ink);
    font-family: var(--f-hand);
    font-size: 1.5rem;
    line-height: 1.35;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: .4rem; font: 500 .8rem/1.3 var(--f-mono); font-style: normal; color: var(--muted); }
.entry-content table { background: rgba(255, 255, 255, .6); display: block; overflow-x: auto; }
.entry-content img { display: block; height: auto; }
.entry-content figure { margin: 1.6em 0; max-width: 100%; }
.entry-content figcaption, .wp-caption-text { font: 500 .78rem/1.4 var(--f-mono); color: var(--muted); margin-top: .5rem; }
.entry-content pre, .entry-content code { font-family: var(--f-mono); font-size: .88em; }
.entry-content pre { background: var(--graphite); color: var(--on-dark); padding: 1rem 1.2rem; overflow-x: auto; }
.entry-content hr { border: 0; height: 10px; margin: 2em 0; background: var(--arrow-l) left center / 10px no-repeat, var(--arrow-r) right center / 10px no-repeat, linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat; }
.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; }
.entry-tags { margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.entry-tags a { font: 500 .8rem/1 var(--f-mono); padding: .4rem .6rem; border: 1px solid var(--blue); text-decoration: none; }
.entry-tags a:hover { background: var(--blue); color: var(--white); }

.postnav { margin: 2.2rem 0; }
.postnav .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.postnav .nav-next { grid-column: 2; text-align: end; }
.postnav a { display: block; height: 100%; padding: 1rem 1.2rem; background: var(--calc); border: 1px solid var(--ink); text-decoration: none; color: var(--ink); }
.postnav a:hover { border-color: var(--orange); box-shadow: inset 0 -3px 0 var(--orange); }
.postnav-sub { display: block; font: 500 .74rem/1.4 var(--f-mono); color: var(--muted); text-transform: uppercase; }
.postnav-title { display: block; font: 700 1.1rem/1.3 var(--f-head); margin-top: .3rem; }

/* Пагинация */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; margin: 3rem 0 0; }
.pager .page-numbers, .pager-inner .post-page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 .8rem;
    border: 2px solid var(--ink);
    background: var(--calc);
    color: var(--ink);
    font: 500 .9rem/1 var(--f-mono);
    text-decoration: none;
    transition: background-color .12s, transform .12s;
}
.pager a.page-numbers:hover, .pager-inner a.post-page-numbers:hover { background: var(--yellow); transform: translate(1px, 1px); color: var(--ink); }
.pager .page-numbers.current, .pager-inner .post-page-numbers.current { background: var(--orange); color: var(--white); }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; }
.pager-label { font: 500 .8rem/1 var(--f-mono); color: var(--muted); margin-right: .3rem; }

/* Сайдбар */
.sidebar .wdg {
    position: relative;
    background: var(--side);
    padding: 1.7rem 1.5rem 1.4rem;
    box-shadow: 0 12px 18px -14px rgba(34, 38, 42, .55), 0 1px 2px rgba(34, 38, 42, .12);
    color: var(--ink);
}
.sidebar .wdg::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    width: 96px;
    height: 26px;
    margin-left: -48px;
    background: var(--tape);
    transform: rotate(-3deg);
}
.wdg-title {
    position: relative;
    font-size: 1.35rem;
    padding-bottom: 12px;
    margin-bottom: 1rem;
}
.wdg-title::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 8px;
    background:
        linear-gradient(currentColor, currentColor) left center / 1px 100% no-repeat,
        linear-gradient(currentColor, currentColor) right center / 1px 100% no-repeat,
        linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
    opacity: .75;
}
.sidebar .wdg-title { color: var(--ink); }
.sidebar .wdg a { color: var(--blue); }
.sidebar .wdg a:hover { color: var(--orange-deep); }
.wdg ul { list-style: none; margin: 0; padding: 0; }
.wdg li { position: relative; padding: .45rem 0 .45rem 1.1rem; border-bottom: 1px dashed var(--line); line-height: 1.4; }
.wdg li:last-child { border-bottom: 0; }
.wdg li::before { content: ""; position: absolute; left: 0; top: .95rem; width: 7px; height: 7px; background: var(--orange); }
.sidebar .wdg .post-date { display: block; font: 500 .75rem/1.3 var(--f-mono); color: var(--muted); }
.sidebar .wdg p { color: var(--ink); }
.wdg .search-form { flex-direction: column; align-items: stretch; }

/* Поиск */
.search-form { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.2rem 0; }
.search-field {
    flex: 1 1 220px;
    min-width: 0;
    padding: .7rem .9rem;
    border: 2px solid var(--ink);
    background: var(--white);
    color: var(--ink);
    font: 400 1rem/1.3 var(--f-text);
    border-radius: 0;
}
.search-submit { flex: 0 0 auto; }

/* Комментарии */
.comments-area { margin-top: 2.2rem; padding: 2.2rem 2.4rem; }
.comments-title { font-size: 1.8rem; }
.notes, .notes .children { list-style: none; margin: 0; padding: 0; }
.notes .children { padding-left: 1.6rem; border-left: 2px solid var(--line); margin-top: 1rem; }
.note { margin-bottom: 1.2rem; }
.note-body { background: var(--white); border: 1px solid var(--ink); padding: 1rem 1.2rem; }
.note-head { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: baseline; margin-bottom: .5rem; }
.note-author { font: 700 1.1rem/1.2 var(--f-head); }
.note-date { font: 500 .76rem/1.2 var(--f-mono); color: var(--muted); }
.note-wait { font: 500 .8rem/1.4 var(--f-mono); color: var(--orange-deep); }
.note-text p:last-child { margin-bottom: 0; }
.note-reply { margin-top: .6rem; }
.note-reply a { font: 700 .9rem/1 var(--f-head); text-transform: uppercase; letter-spacing: .04em; }
.comment-respond { margin-top: 1.6rem; }
.comment-reply-title { font-size: 1.45rem; }
.comment-reply-title small { margin-left: .8rem; font: 500 .8rem/1 var(--f-mono); }
.comment-form label { display: block; font: 500 .8rem/1.4 var(--f-mono); 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%;
    padding: .7rem .85rem;
    border: 2px solid var(--ink);
    background: var(--white);
    color: var(--ink);
    font: 400 1rem/1.4 var(--f-text);
    border-radius: 0;
}
.comment-form-cookies-consent { display: flex; gap: .6rem; align-items: flex-start; }
.comment-form-cookies-consent label { margin: 0; font-family: var(--f-text); font-size: .9rem; }
.comment-notes, .logged-in-as { font-size: .92rem; color: var(--muted); }
.req { color: var(--orange-deep); }
.form-submit { margin-top: 1rem; }
.comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0; }

/* 404 */
.err404 { text-align: center; padding: 3rem 2.4rem; }
.err404-code { font: 700 clamp(5rem, 14vw, 9rem)/1 var(--f-head); color: transparent; -webkit-text-stroke: 2px var(--blue); margin: 0 0 1rem; letter-spacing: .05em; }
.err404 .search-form { justify-content: center; max-width: 520px; margin-inline: auto; }
.err404-home { margin: 1.8rem 0 0; }
.empty-sheet { padding: 2rem 2.2rem; }

/* ---------- Подвал ---------- */
.sitefoot {
    background-color: var(--navy);
    background-image:
        linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    color: var(--on-dark);
    padding: 1.8rem;
}
.sitefoot-frame { border: 1px solid rgba(255, 255, 255, .28); padding: 2.6rem 2.6rem 1.6rem; position: relative; }
.sitefoot-frame::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 220px;
    height: 46px;
    border-left: 1px solid rgba(255, 255, 255, .28);
    border-top: 1px solid rgba(255, 255, 255, .28);
    pointer-events: none;
}
.sitefoot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 3rem; }
.sitefoot-col { min-width: 0; }
.sitefoot .wdg { color: var(--on-dark); }
.sitefoot .wdg-title { color: var(--white); font-size: 1.3rem; }
.sitefoot .wdg p, .sitefoot .wdg .textwidget { color: #C9D3DE; font-size: .98rem; }
.sitefoot .wdg a { color: #E6EDF4; text-decoration-color: rgba(230, 237, 244, .4); }
.sitefoot .wdg a:hover { color: var(--yellow); }
.sitefoot .wdg li { border-bottom-color: rgba(255, 255, 255, .14); }
.sitefoot .wdg li::before { background: var(--yellow); }
.sitefoot .wdg .post-date { color: var(--on-dark-muted); }
.sitefoot-copy { margin: 2.4rem 0 0; padding-top: 1rem; border-top: 1px dashed rgba(255, 255, 255, .22); font: 500 .8rem/1.5 var(--f-mono); color: var(--on-dark-muted); }

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 90;
    max-width: 780px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 1rem 1.4rem;
    padding: 1rem 1.3rem;
    background: var(--graphite);
    color: var(--on-dark);
    border: 2px solid var(--ink);
    border-top: 4px solid var(--orange);
    box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .55);
}
.cookie-text { margin: 0; font-size: .95rem; line-height: 1.45; flex: 1; min-width: 0; }
.cookie-accept { flex: 0 0 auto; }

/* ---------- Гутенберг ---------- */
.wp-block-image img { height: auto; }
.wp-block-table table { display: table; }
.wp-block-quote { border-left: 4px solid var(--ink); }
.wp-block-button__link { background: var(--orange); color: var(--white); border-radius: 0; border: 2px solid var(--ink); font-family: var(--f-head); font-weight: 700; text-transform: uppercase; }
.sticky .card-title::before { content: "★ "; color: var(--orange); }
.bypostauthor > .note-body { border-left: 4px solid var(--blue); }

/* ---------- Адаптив ---------- */
@media (min-width: 1360px) {
    .margin-note { display: block; }
    .shell::before, .shell::after { display: block; }
}
@media (max-width: 1100px) {
    .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .card-grid-front:has(> .card:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    .shell { width: 100%; border-inline: 0; }
    .shell::before, .shell::after { display: none; }
    .masthead { padding: 1.3rem 1.4rem 2rem; }
    .masthead::after { left: 1.4rem; right: 1.4rem; }
    .brand { flex: 1 1 0; gap: .9rem; }
    .brand-mark { width: 64px; height: 64px; }
    .nav-toggle { display: inline-flex; }
    .topnav { display: none; width: 100%; }
    .topnav.is-open { display: block; }
    .topnav-list { flex-direction: column; align-items: stretch; padding-top: .6rem; }
    .topnav-list li { display: block; border-top: 1px solid rgba(255, 255, 255, .14); }
    .topnav-list li + li::before { display: none; }
    .topnav-list a { padding: .55rem .2rem; }
    .front-wrap { width: 90%; }
    .card-grid, .layout-single .card-grid-list, .card-grid-front:has(> .card:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .layout-with-sidebar { display: block; width: 92%; margin-inline: auto; }
    .layout-single .content-area { width: 92%; }
    .sidebar { padding-top: 2.6rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .smeta-board { grid-template-columns: minmax(0, 1fr) 110px; gap: 1rem; }
    .gantt-dur { font-size: .66rem; }
    .notes-sheet { grid-template-columns: minmax(0, 1fr); }
    .sitefoot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .gantt { display: block; padding: 0; min-height: 0; }
    .gantt::before { display: none; }
    .gantt-step { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); align-items: center; gap: .8rem; padding: .6rem 0; border-top: 1px dashed var(--line); }
    .gantt-step::before { display: none; }
    .gantt-name { height: auto; line-height: 1.3; text-align: start; padding: .3rem .4rem; white-space: normal; }
    .gantt-late .gantt-name { line-height: 1.3; }
    .gantt-bar, .gantt-late ~ .gantt-step .gantt-bar, .gantt-late + .gantt-step .gantt-bar { margin: 1.2rem 0 0; width: auto; }
    .gantt-late .gantt-bar { width: auto; }
    .gantt-dur { font-size: .7rem; left: 6px; }
    .gantt-late .gantt-dur { left: 0; font-size: .64rem; }
    .gantt-stamp { position: static; display: inline-block; grid-column: 2; justify-self: start; margin-top: .4rem; transform: rotate(-4deg); }
    .ledger, .ledger thead, .ledger tbody, .ledger tr, .ledger td { display: block; width: 100%; }
    .ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
    .ledger { border: 0; background: none; }
    .ledger tr { border: 2px solid var(--ink); background: rgba(255, 255, 255, .6); margin-bottom: 1rem; }
    .ledger td { border: 0; border-bottom: 1px dashed var(--line); padding: .55rem .9rem; }
    .ledger td:last-child { border-bottom: 0; }
    .ledger td::before { content: attr(data-label); display: block; font: 500 .7rem/1.3 var(--f-mono); color: var(--muted); text-transform: uppercase; margin-bottom: .15rem; }
    .ledger-n { width: auto; text-align: start !important; }
    .ledger-stamp { position: relative; right: auto; bottom: auto; display: inline-block; margin: .6rem 0 0 1rem; }
}
@media (max-width: 600px) {
    body { font-size: 1rem; }
    .front-wrap { width: 92%; padding-top: 2.2rem; }
    .fs { margin-bottom: 3.4rem; }
    .calc-sheet, .fs-calendar .calc-sheet { padding: 1.6rem 1.25rem; }
    .entry, .comments-area { padding: 1.6rem 1.25rem; }
    .calc-taped::before { right: -4px; width: 86px; }
    .calc-taped::after { left: -18px; width: 96px; }
    .brand-desc { font-size: .88rem; }
    .brand-mark { width: 52px; height: 52px; }
    .nav-toggle-label { display: none; }
    .smeta-board { grid-template-columns: minmax(0, 1fr); }
    .plan-dim { display: none; }
    .cost-ruler { min-height: 0; height: auto; margin: 1rem 0 0; }
    .cost-ruler::before, .cost-ruler::after, .cost-ruler-zero, .cost-ruler-top { display: none; }
    .cost-ruler-head { position: static; display: block; margin-bottom: .5rem; }
    .cost-ruler-scale { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1rem; }
    .cost-ruler-scale li { position: relative; left: auto; bottom: auto; height: auto; padding-left: 26px; }
    .cost-ruler-scale li::before { display: none; }
    .cost-ruler-scale li::after { left: 0; top: .2rem; }
    .cost-ruler-scale span { position: static; font-size: .78rem; }
    .smeta-note { font-size: 1.45rem; }
    .card-grid, .card-grid-list, .layout-single .card-grid-list, .card-grid-front:has(> .card:nth-child(4)) { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .marker-strip { padding: 1.8rem 1.1rem 1.4rem; }
    .marker-strip::before { left: -10px; width: 80px; }
    .marker-strip::after { right: -2px; width: 70px; }
    .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem .9rem; }
    .notes-sheet { padding: 1.2rem 1.1rem; }
    .layout-with-sidebar, .layout-single .content-area { width: 92%; }
    .sidebar { grid-template-columns: minmax(0, 1fr); }
    .postnav .nav-links { grid-template-columns: minmax(0, 1fr); }
    .postnav .nav-next { grid-column: 1; }
    .sitefoot { padding: 1rem; }
    .sitefoot-frame { padding: 1.8rem 1.2rem 1.2rem; }
    .sitefoot-frame::before { display: none; }
    .sitefoot-cols { grid-template-columns: minmax(0, 1fr); }
    .cookie-banner { flex-direction: column; align-items: stretch; text-align: start; left: 10px; right: 10px; bottom: 10px; }
    .alignleft, .alignright { float: none; margin: 1em 0; }
}
