/*
Theme Name: dds_smart-outcomes.com
Theme URI: https://smart-outcomes.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: smrout
*/

/* ---------- Шрифты ---------- */
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/oswald-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/oswald-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/oswald-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/oswald-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "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: "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 {
    --c-bg: #1E2226;
    --c-grid: #2E343A;
    --c-line: #3A424A;
    --c-panel: #272C31;
    --c-paper: #E8DFC8;
    --c-paper-light: #EFE8D6;
    --c-paper-edge: #B8AE94;
    --c-ochre: #E0A63C;
    --c-brick: #C4553B;
    --c-teal: #4E8C8A;
    --c-text: #EDE6D6;
    --c-muted: #8C949B;
    --c-ink: #1B1D1F;
    --c-ink-soft: #45413A;
    --f-head: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    --f-body: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    --f-mono: "IBM Plex Mono", "Consolas", "Courier New", monospace;
}

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

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--f-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--c-text);
    background-color: var(--c-bg);
    background-image:
        linear-gradient(rgba(46, 52, 58, 0.75) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 52, 58, 0.75) 1px, transparent 1px),
        linear-gradient(rgba(46, 52, 58, 0.32) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 52, 58, 0.32) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
}
img, svg { max-width: 100%; }
img { height: auto; }
p, li, h1, h2, h3, h4, h5, h6, td, th, dd, dt, blockquote, figcaption {
    overflow-wrap: break-word;
    hyphens: 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 0.6em; }
a { color: inherit; text-decoration-color: var(--c-ochre); text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
a:hover { color: var(--c-ochre); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--c-ochre);
    outline-offset: 3px;
}
table { border-collapse: collapse; width: 100%; border: 1px solid var(--c-line); }
th, td { border: 1px solid var(--c-line); padding: 0.55rem 0.7rem; text-align: left; vertical-align: top; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    background: var(--c-ochre);
    color: var(--c-ink);
    font-family: var(--f-head);
    text-transform: uppercase;
}
.skip-link:focus { top: 1rem; }

/* Единственный контейнер ширины */
.shell { width: min(92%, 1180px); margin-inline: auto; }

/* ---------- Кнопка-ярлык ---------- */
.tag-btn {
    display: inline-block;
    padding: 0.55rem 1.05rem;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 0.88rem;
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--c-ink);
    background: var(--c-paper);
    border: 2px solid var(--c-ink);
    border-radius: 0;
    box-shadow: 4px 4px 0 #0E0F10;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.tag-btn:hover {
    color: var(--c-ink);
    background: var(--c-ochre);
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #0E0F10;
}
.tag-btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 #0E0F10; }

/* ---------- Шапка ---------- */
.masthead { border-bottom: 1px solid var(--c-line); }
.masthead-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: 1.6rem 0 1.4rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    flex: 1 1 22rem;
    text-decoration: none;
    color: var(--c-text);
}
.brand:hover { color: var(--c-text); }
.brand-mark { flex: 0 0 auto; display: block; width: 64px; }
.brand-svg, .brand-logo { display: block; width: 64px; height: auto; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
    font-family: var(--f-head);
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(1.3rem, 2.6vw, 2.05rem);
    line-height: 1.04;
    letter-spacing: 0.01em;
    max-width: 24ch;
}
.brand-desc {
    margin-top: 0.45rem;
    font-size: 0.88rem;
    line-height: 1.4;
    color: var(--c-muted);
    max-width: 62ch;
}
.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.85rem;
    font-family: var(--f-head);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c-ink);
    background: var(--c-paper);
    border: 2px solid var(--c-ink);
    box-shadow: 3px 3px 0 #0E0F10;
    cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--c-ink);
    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; }
.primary-nav { display: none; flex-basis: 100%; }
.primary-nav.is-open { display: block; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.nav-list a {
    display: block;
    padding: 0.55rem 0;
    font-family: var(--f-head);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    color: var(--c-text);
    border-bottom: 1px solid var(--c-line);
}
.nav-list a:hover { color: var(--c-ochre); }
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a { color: var(--c-ochre); }

/* ---------- Раскладки ---------- */
.site-main { display: block; padding-bottom: 3rem; }
.content-area, .sidebar { min-width: 0; }
.layout-single, .layout-with-sidebar { padding-bottom: 1rem; }
.layout-with-sidebar .sidebar { margin-top: 2.5rem; }

/* ---------- Хлебные крошки ---------- */
.crumbs {
    padding: 1.4rem 0 1.2rem;
    font-family: var(--f-mono);
    font-size: 0.8rem;
    color: var(--c-muted);
}
.crumbs a { color: var(--c-text); }
.crumbs a:hover { color: var(--c-ochre); }
.crumbs-sep { color: var(--c-ochre); padding: 0 0.2rem; }

.page-head { margin: 0.4rem 0 2rem; }
.page-title {
    font-size: clamp(2rem, 5vw, 3.3rem);
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin: 0 0 0.4rem;
}
.page-sub { color: var(--c-muted); max-width: 62ch; margin: 0; }
.empty-note { color: var(--c-muted); font-style: normal; }

/* ---------- Главная: секции ---------- */
.front { padding-bottom: 1rem; }
.fs { padding: 2.6rem 0; border-top: 1px solid var(--c-line); }
.fs:first-child { border-top: 0; }
.fs-layers, .fs-roles {
    padding: 2.6rem 1.4rem;
    background-image:
        linear-gradient(rgba(58, 66, 74, 0.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(58, 66, 74, 0.35) 1px, transparent 1px);
    background-size: 4px 4px;
    background-color: rgba(30, 34, 38, 0.6);
}
.sec-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1.6rem;
    font-size: 1.05rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--c-text);
}
.sec-title::before {
    content: "";
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    background: var(--c-ochre);
}

/* Блок 1 — Карта задачи */
.map-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.map-board {
    min-width: 0;
    padding: 1.4rem 1.3rem 1.6rem;
    border: 1px solid var(--c-line);
    background: rgba(39, 44, 49, 0.55);
}
.map-lead { color: var(--c-muted); font-size: 0.95rem; max-width: 60ch; margin-bottom: 1.4rem; }
.map-flow { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.map-node {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    padding: 0.75rem 0.95rem 0.85rem;
    color: var(--c-ink);
    background: var(--c-paper);
    border: 1.5px solid var(--c-ink);
    border-top-width: 6px;
    box-shadow: 4px 4px 0 #0E0F10;
    transition: transform 0.15s ease, box-shadow 0.15s ease, outline-color 0.15s ease;
    outline: 3px solid transparent;
    outline-offset: 3px;
}
.map-node-task { border-top-color: var(--c-brick); transform: rotate(-1.5deg); }
.map-node-process { border-top-color: var(--c-ochre); }
.map-node-owner, .map-node-deadline { border-top-color: var(--c-teal); }
.map-node-label { font-family: var(--f-head); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.03em; }
.map-node-note { font-size: 0.86rem; line-height: 1.35; color: var(--c-ink-soft); }
.map-node.is-lit { outline-color: var(--c-ochre); transform: translate(-2px, -2px); box-shadow: 7px 7px 0 #0E0F10; }
.map-arrow {
    position: relative;
    align-self: center;
    width: 2px;
    height: 34px;
    background: var(--c-teal);
}
.map-arrow::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 9px solid var(--c-teal);
}
.map-branch {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding-left: 1.1rem;
    border-left: 2px solid var(--c-teal);
    margin-top: 0.4rem;
}
.map-branch .map-node::before {
    content: "";
    position: absolute;
    left: calc(-1.1rem - 2px);
    top: 50%;
    width: 1.1rem;
    height: 2px;
    background: var(--c-teal);
}
.map-steps { min-width: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.map-tags { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.map-tag {
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.65rem 1rem;
    color: var(--c-ink);
    background: var(--c-paper);
    border: 2px solid var(--c-ink);
    box-shadow: 4px 4px 0 #0E0F10;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.map-tag:nth-child(1) { transform: rotate(-1.5deg); }
.map-tag:nth-child(2) { transform: rotate(1deg); }
.map-tag:nth-child(3) { transform: rotate(-0.6deg); }
.map-tag:hover { background: #F3EBD6; transform: translate(2px, 2px); box-shadow: 2px 2px 0 #0E0F10; }
.map-tag[aria-pressed="true"] { background: var(--c-ochre); transform: translate(3px, 3px); box-shadow: 1px 1px 0 #0E0F10; }
.map-count { margin: 0.6rem 0 0; font-family: var(--f-head); font-weight: 700; color: var(--c-brick); text-transform: uppercase; line-height: 0.9; }
.map-count-num { font-size: 5.2rem; }
.map-count-word { font-size: 2.3rem; letter-spacing: 0.02em; }
.map-count-note { color: var(--c-muted); font-size: 0.9rem; margin: 0; max-width: 26ch; }

/* Блок 2 — Разбор по частям */
.layers-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: center; }
.layers-stencil {
    margin: 0;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: clamp(3.2rem, 13vw, 4.6rem);
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--c-text);
    opacity: 0.92;
}
.layers-stack { position: relative; min-width: 0; display: flex; flex-direction: column; }
.layer { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem; align-items: center; }
.layer-plate {
    min-width: 0;
    padding: 1rem 10% 1.15rem;
    text-align: center;
    color: var(--c-ink);
    background: linear-gradient(to bottom, var(--c-paper) 0, var(--c-paper) calc(100% - 7px), #C9BEA2 calc(100% - 7px));
    clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%);
}
.layer-title { margin: 0 0 0.3rem; font-size: 1.7rem; text-transform: uppercase; letter-spacing: 0.03em; }
.layer-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.15rem 1rem;
    font-size: 0.85rem;
    color: var(--c-ink-soft);
}
.layer-points li::before { content: "— "; color: var(--c-brick); }
.layer-callout {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.4;
    color: var(--c-muted);
}
.layer-callout::before {
    content: "";
    display: inline-block;
    width: 1.6rem;
    height: 1px;
    margin-right: 0.5rem;
    vertical-align: middle;
    background: var(--c-ochre);
}
.layer-link { display: block; width: 60px; height: 28px; margin: 0.15rem auto 0.25rem; }
.layer-link svg { display: block; width: 60px; height: 28px; }

/* Записи — карточки-листы */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.4rem 1.8rem; align-items: start; }
.card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.7rem 1.15rem 1.25rem;
    color: var(--c-ink);
    transition: transform 0.18s ease;
}
.card::before,
.card::after {
    content: "";
    position: absolute;
    z-index: -1;
    clip-path: polygon(0 3%, 22% 0.6%, 47% 2.4%, 73% 0, 100% 1.8%, 100% 100%, 0 100%);
}
.card::before { inset: 0; background: #6F6A5C; }
.card::after { inset: 1.5px; background: var(--c-paper); }
.card-tilt-0 { transform: rotate(-1.1deg); }
.card-tilt-1 { transform: rotate(0.8deg); }
.card-tilt-2 { transform: rotate(-0.4deg); }
.card:hover { transform: rotate(0deg) translateY(-3px); }
.card-tape {
    position: absolute;
    top: -4px;
    width: 66px;
    height: 22px;
    background: rgba(214, 202, 168, 0.88);
    border-left: 1px dashed rgba(120, 110, 86, 0.35);
    border-right: 1px dashed rgba(120, 110, 86, 0.35);
    z-index: 2;
}
.card-tape-l { left: -16px; transform: rotate(-38deg); }
.card-tape-r { right: -16px; transform: rotate(38deg); }
.card-thumb {
    position: relative;
    margin: 0 0 0.95rem;
    border: 1px solid var(--c-paper-edge);
    background: var(--c-paper-light);
    overflow: hidden;
}
.card-thumb a { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.card-thumb img.card-thumb-fallback { object-fit: contain; padding: 0.4rem; background: var(--c-paper); }
.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.card-pin {
    align-self: flex-start;
    margin-bottom: 0.45rem;
    padding: 0.1rem 0.5rem;
    font-family: var(--f-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    color: #FFF8EC;
    background: var(--c-brick);
}
.card-title {
    margin: 0 0 0.5rem;
    font-family: var(--f-body);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.22;
}
.card-title a { color: var(--c-ink); text-decoration: none; }
.card-title a:hover { color: var(--c-ink); text-decoration: underline; text-decoration-color: var(--c-ochre); text-decoration-thickness: 3px; }
.card-excerpt { font-size: 0.93rem; line-height: 1.45; color: var(--c-ink-soft); }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt a { color: var(--c-ink); }
.card-date { display: block; margin: 0.3rem 0 1rem; font-family: var(--f-mono); font-size: 0.76rem; color: #6B655A; }
.card-more { margin-top: auto; align-self: flex-start; }
.posts-all { margin: 2.2rem 0 0; text-align: right; font-family: var(--f-head); text-transform: uppercase; letter-spacing: 0.05em; }
.posts-all a { color: var(--c-text); }
.posts-all a::after { content: " →"; color: var(--c-ochre); }

/* Блок 3 — Ответственность */
.roles-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.2rem; align-items: center; }
.roles-stamp {
    justify-self: center;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 0.9rem 1.3rem 1rem;
    color: var(--c-brick);
    border: 4px solid var(--c-brick);
    outline: 2px solid var(--c-brick);
    outline-offset: 4px;
    transform: rotate(-8deg);
    font-family: var(--f-head);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.9'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.9'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.roles-stamp-big { font-size: 3.2rem; letter-spacing: 0.04em; }
.roles-stamp-small { margin-top: 0.3rem; font-size: 1.02rem; letter-spacing: 0.05em; }
.roles-panel {
    min-width: 0;
    padding: 1.4rem 1.5rem 1.6rem;
    background: var(--c-panel);
    border: 1px solid var(--c-line);
}
.roles-table { border: 1px solid var(--c-line); }
.roles-table th {
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-muted);
    border: 1px solid var(--c-line);
    padding: 0.6rem 0.8rem;
}
.roles-table td { border: 1px solid var(--c-line); padding: 0.85rem 0.8rem; color: var(--c-text); vertical-align: middle; }
.roles-who { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.roles-name { font-weight: 700; min-width: 0; }
.roles-num {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 1.8rem;
    height: 1.8rem;
    font-family: var(--f-head);
    font-weight: 700;
    color: var(--c-ink);
    border: 1.5px solid var(--c-ink);
    background: var(--c-paper);
}
.roles-table tbody tr:nth-child(2) .roles-num { background: var(--c-brick); color: #FFF8EC; }
.roles-table tbody tr:nth-child(3) .roles-num { background: var(--c-teal); color: #FFF8EC; }
.roles-sketch {
    flex: 0 0 auto;
    display: block;
    width: 64px;
    height: auto;
    margin-left: auto;
    padding: 5px;
    background: var(--c-paper);
    border: 1px solid var(--c-ink);
    box-shadow: 3px 3px 0 #0E0F10;
    transform: rotate(-2deg);
}
.roles-table tbody tr:nth-child(2) .roles-sketch { background: var(--c-ochre); transform: rotate(1.5deg); }
.roles-total {
    margin: 1.2rem 0 0;
    padding: 0.85rem 1.2rem;
    text-align: center;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c-ink);
    background: var(--c-ochre);
}

/* Блок 4 — План развития */
.plan-headline {
    margin: 0 0 2rem;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: clamp(2.1rem, 6.4vw, 4.4rem);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: var(--c-text);
}
.plan-scale { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.plan-stage { position: relative; min-width: 0; display: flex; flex-direction: column; }
.plan-flag { display: none; }
.plan-seg {
    display: block;
    padding: 0.75rem 1.6rem;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    color: var(--c-ink);
    background: var(--c-ochre);
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%);
}
.plan-stage:first-child .plan-seg { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); }
.plan-stage:nth-child(2) .plan-seg, .plan-stage:nth-child(5) .plan-seg { background: var(--c-teal); }
.plan-stage:nth-child(4) .plan-seg { background: var(--c-brick); color: #FFF8EC; }
.plan-note { padding: 0.55rem 0.3rem 0; font-size: 0.88rem; line-height: 1.4; color: var(--c-muted); text-align: center; }
.plan-foot {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2.2rem 0 0;
    font-family: var(--f-head);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c-text);
}
.plan-foot::before, .plan-foot::after { content: ""; flex: 1; height: 1px; background: var(--c-line); }

/* ---------- Лист (запись, страница, 404, комментарии) ---------- */
.sheet {
    position: relative;
    padding: 2rem 1.4rem 1.8rem;
    color: #22262A;
    background: var(--c-paper-light);
    border: 1px solid var(--c-paper-edge);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.4);
}
.sheet::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    width: 90px;
    height: 22px;
    transform: translateX(-50%) rotate(-2deg);
    background: rgba(214, 202, 168, 0.9);
}
.entry-head { margin-bottom: 1.4rem; padding-bottom: 1rem; border-bottom: 2px solid var(--c-ink); }
.entry-title { font-size: clamp(1.8rem, 4.4vw, 2.7rem); text-transform: uppercase; line-height: 1.08; margin: 0 0 0.6rem; color: var(--c-ink); }
.entry-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin: 0; font-family: var(--f-mono); font-size: 0.8rem; color: #5F5A50; }
.entry-cat a { color: var(--c-ink); }
.entry-thumb { margin: 0 0 1.6rem; border: 1px solid var(--c-paper-edge); }
.entry-thumb img { display: block; width: 100%; }
.entry-content { font-size: 1.06rem; }
.entry-content a { color: var(--c-ink); }
.entry-content a:hover { color: #8A4A10; }
.entry-content h2 { font-size: 1.65rem; margin-top: 1.8em; text-transform: uppercase; }
.entry-content h2::before { content: ""; display: inline-block; width: 0.55em; height: 0.55em; margin-right: 0.45em; background: var(--c-ochre); vertical-align: 0.12em; }
.entry-content h3 { font-size: 1.3rem; margin-top: 1.6em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.entry-content li { margin-bottom: 0.35em; }
.entry-content ul li::marker { color: var(--c-brick); }
.entry-content blockquote {
    margin: 1.5em 0;
    padding: 1rem 1.3rem;
    background: #E2D8BE;
    border-left: 6px solid var(--c-brick);
    font-size: 1.1rem;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content table { margin: 1.4em 0; border: 1px solid #9B927C; font-size: 0.95rem; }
.entry-content th, .entry-content td { border: 1px solid #9B927C; }
.entry-content th { background: #E0D6BB; font-family: var(--f-head); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.entry-content img { display: block; }
.entry-content figure { margin: 1.4em 0; }
.entry-content figcaption { font-size: 0.85rem; color: #5F5A50; margin-top: 0.4rem; }
.entry-content pre { overflow-x: auto; padding: 1rem; background: var(--c-panel); color: var(--c-text); font-family: var(--f-mono); font-size: 0.88rem; }
.entry-content code { font-family: var(--f-mono); font-size: 0.9em; background: #E2D8BE; padding: 0.05em 0.3em; }
.entry-content pre code { background: none; padding: 0; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.6rem 0 0; font-family: var(--f-mono); font-size: 0.82rem; }
.entry-tags a { padding: 0.15rem 0.5rem; border: 1px solid var(--c-ink); text-decoration: none; color: var(--c-ink); }
.entry-tags a:hover { background: var(--c-ochre); color: var(--c-ink); }
.page-links { margin-top: 1.4rem; font-family: var(--f-mono); font-size: 0.85rem; }

/* Навигация по записям */
.post-navigation { margin: 2.2rem 0; }
.post-navigation .nav-links { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.post-navigation a {
    display: block;
    height: 100%;
    padding: 1rem 1.2rem;
    text-decoration: none;
    color: var(--c-text);
    background: var(--c-panel);
    border: 1px solid var(--c-line);
    border-left: 4px solid var(--c-ochre);
}
.post-navigation a:hover { color: var(--c-ochre); }
.post-navigation .nav-next a { text-align: right; border-left: 1px solid var(--c-line); border-right: 4px solid var(--c-teal); }
.nav-sub { display: block; font-family: var(--f-mono); font-size: 0.74rem; text-transform: uppercase; color: var(--c-muted); margin-bottom: 0.25rem; }

/* 404 */
.lost { text-align: left; }
.lost-code { margin: 0; font-family: var(--f-head); font-weight: 700; font-size: clamp(4.5rem, 16vw, 8rem); line-height: 0.9; color: var(--c-brick); }
.lost .search-form { margin: 1.2rem 0 1.6rem; }

/* ---------- Пагинация (type => plain) ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 2.6rem 0 1rem; }
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    padding: 0.45rem 0.8rem;
    font-family: var(--f-head);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--c-ink);
    background: var(--c-paper);
    border: 2px solid var(--c-ink);
    box-shadow: 3px 3px 0 #0E0F10;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.pager a.page-numbers:hover { background: var(--c-ochre); transform: translate(2px, 2px); box-shadow: 1px 1px 0 #0E0F10; color: var(--c-ink); }
.pager .page-numbers.current { background: var(--c-ochre); box-shadow: 0 0 0 #0E0F10; transform: translate(3px, 3px); }
.pager .page-numbers.dots { background: none; border: 0; box-shadow: none; color: var(--c-muted); min-width: 0; padding: 0.45rem 0.2rem; }

/* ---------- Поиск ---------- */
.search-form { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.search-field {
    flex: 1 1 12rem;
    min-width: 0;
    padding: 0.6rem 0.8rem;
    font: inherit;
    font-size: 1rem;
    color: var(--c-ink);
    background: #FBF7EC;
    border: 2px solid var(--c-ink);
    border-radius: 0;
}
.search-submit { flex: 0 0 auto; }

/* ---------- Сайдбар ---------- */
.sidebar {
    padding: 1.4rem 1.4rem 0.6rem;
    background: var(--c-panel);
    border: 1px solid var(--c-line);
    color: #D9D2C2;
}
.sidebar .widget { margin-bottom: 1.8rem; }
.sidebar .widget-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.9rem;
    font-size: 0.98rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--c-text);
}
.sidebar .widget-title::before { content: ""; width: 10px; height: 10px; background: var(--c-ochre); flex: 0 0 auto; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 0.55rem 0; border-bottom: 1px dashed var(--c-line); line-height: 1.35; }
.sidebar a { color: var(--c-text); text-decoration: none; }
.sidebar a:hover { color: var(--c-ochre); text-decoration: underline; }
.sidebar .post-date { display: block; font-family: var(--f-mono); font-size: 0.75rem; color: #A9B0B6; }
.sidebar p, .sidebar .textwidget { color: #D9D2C2; }
.sidebar .search-field { background: #FBF7EC; }

/* ---------- Комментарии ---------- */
.comments { margin-top: 2.4rem; }
.comments-title, .comment-reply-title { font-size: 1.4rem; text-transform: uppercase; color: var(--c-ink); }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list .children { list-style: none; margin: 0; padding-left: 1.4rem; border-left: 2px solid var(--c-paper-edge); }
.note-comment-body { padding: 1rem 0; border-bottom: 1px dashed #A89E85; }
.note-comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.note-comment-ava { display: block; border: 1.5px solid var(--c-ink); }
.note-comment-author { font-weight: 700; }
.note-comment-head time { font-family: var(--f-mono); font-size: 0.76rem; color: #5F5A50; }
.note-comment-wait { font-family: var(--f-mono); font-size: 0.8rem; color: var(--c-brick); }
.note-comment-reply a { font-family: var(--f-head); text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.05em; color: var(--c-ink); }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; margin-bottom: 0.3rem; font-family: var(--f-head); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.85rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font: inherit;
    color: var(--c-ink);
    background: #FBF7EC;
    border: 2px solid var(--c-ink);
    border-radius: 0;
}
.comment-form-cookies-consent { display: flex; gap: 0.5rem; align-items: flex-start; }
.comment-form-cookies-consent label { text-transform: none; font-family: var(--f-body); font-weight: 400; letter-spacing: 0; font-size: 0.9rem; }
.comment-notes, .logged-in-as, .must-log-in { font-size: 0.9rem; color: #5F5A50; }
.comment-notes a, .logged-in-as a, .must-log-in a { color: var(--c-ink); }
.req { color: var(--c-brick); }
.comments .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.comments .nav-links a { color: var(--c-ink); }

/* ---------- Подвал ---------- */
.colophon { border-top: 1px solid var(--c-line); padding: 2.6rem 0 1.4rem; background: rgba(23, 26, 29, 0.65); color: #B9B3A6; }
.colophon-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.8rem 2.6rem; }
.colophon-col { min-width: 0; }
.colophon .widget { margin-bottom: 1rem; }
.colophon .widget-title { margin: 0 0 0.75rem; font-size: 0.98rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--c-text); }
.colophon p, .colophon .textwidget { color: #B9B3A6; font-size: 0.93rem; line-height: 1.5; }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { margin-bottom: 0.35rem; font-size: 0.93rem; }
.colophon a { color: var(--c-text); text-decoration: none; }
.colophon a:hover { color: var(--c-ochre); text-decoration: underline; }
.colophon-copy { margin: 2rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--c-line); text-align: center; font-family: var(--f-mono); font-size: 0.78rem; color: var(--c-muted); }

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem 1.2rem;
    max-width: 640px;
    padding: 1rem 1.2rem;
    color: var(--c-ink);
    background: var(--c-paper);
    border: 2px solid var(--c-ink);
    box-shadow: 6px 6px 0 #0E0F10;
}
.cookie-text { flex: 1 1 18rem; margin: 0; font-size: 0.92rem; line-height: 1.45; }
.cookie-accept { flex: 0 0 auto; background: var(--c-ochre); }

/* ---------- Адаптив ---------- */
@media (max-width: 599px) {
    .roles-panel { padding: 1.1rem 1rem 1.2rem; }
    .roles-table, .roles-table thead, .roles-table tbody, .roles-table tr, .roles-table td { display: block; }
    .roles-table { border: 0; }
    .roles-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
    .roles-table tr { margin-bottom: 1rem; border: 1px solid var(--c-line); }
    .roles-table td { border: 0; border-bottom: 1px solid var(--c-line); padding: 0.6rem 0.8rem; }
    .roles-table td:last-child { border-bottom: 0; }
    .roles-table td:not(:first-child)::before {
        content: attr(data-label);
        display: block;
        font-family: var(--f-head);
        font-size: 0.74rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--c-muted);
    }
    .fs-layers, .fs-roles { padding: 2.2rem 1rem; }
    .roles-stamp-big { font-size: 2.6rem; }
    .map-count-num { font-size: 4.2rem; }
    .card-tape { width: 54px; }
}

@media (min-width: 600px) {
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .colophon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .post-navigation .nav-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sheet { padding: 2.4rem 2.2rem 2.2rem; }
    .layer { grid-template-columns: minmax(0, 1fr) 11rem; gap: 1.2rem; }
    .layer-link { margin-left: calc((100% - 12.2rem) / 2 - 30px); }
    .plan-scale { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
    .plan-stage { padding-top: 3.8rem; }
    .plan-flag {
        display: block;
        position: absolute;
        top: 0;
        left: 22%;
        width: 3px;
        height: 3.8rem;
        background: var(--c-text);
    }
    .plan-flag::after {
        content: "";
        position: absolute;
        top: 0;
        left: 3px;
        width: 40px;
        height: 26px;
        background: var(--c-ochre);
        clip-path: polygon(0 0, 100% 0, 76% 50%, 100% 100%, 0 100%);
    }
    .plan-stage:nth-child(even) .plan-flag::after { background: var(--c-teal); }
    .plan-seg { padding: 0.75rem 0.4rem 0.75rem 1.2rem; font-size: 0.95rem; }
    .roles-wrap { grid-template-columns: 15rem minmax(0, 1fr); }
}

@media (min-width: 768px) {
    .map-flow { flex-direction: row; align-items: center; }
    .map-flow > .map-node { flex: 1 1 0; }
    .map-arrow { flex: 0 0 34px; width: 34px; height: 2px; }
    .map-arrow::after {
        left: auto;
        right: -1px;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
        border-left: 9px solid var(--c-teal);
        border-right: 0;
    }
    .map-branch { flex: 1.1 1 0; margin-top: 0; }
    .layers-wrap { grid-template-columns: auto minmax(0, 1fr); gap: 2.2rem; }
    .layers-stencil {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        font-size: clamp(4.4rem, 9vw, 7.4rem);
    }
    .layers-stack { padding-left: 2.4rem; }
    .layers-stack::before {
        content: "";
        position: absolute;
        left: 0;
        top: 2.2rem;
        bottom: 2.2rem;
        width: 1px;
        background: var(--c-text);
        opacity: 0.7;
    }
    .layer::before {
        content: "";
        position: absolute;
        left: -2.4rem;
        top: 50%;
        width: 2.4rem;
        height: 1px;
        background: var(--c-text);
        opacity: 0.7;
    }
    .layer::after {
        content: "";
        position: absolute;
        left: -8px;
        top: calc(50% - 4px);
        border-top: 4.5px solid transparent;
        border-bottom: 4.5px solid transparent;
        border-left: 8px solid var(--c-text);
        opacity: 0.8;
    }
    .layer-plate { padding: 1.3rem 12% 1.45rem; }
    .layer-title { font-size: 2.1rem; }
}

@media (min-width: 960px) {
    .nav-toggle { display: none; }
    .primary-nav { display: block; flex-basis: auto; }
    .nav-list { flex-direction: row; flex-wrap: wrap; gap: 0.4rem 1.8rem; }
    .nav-list a { padding: 0.3rem 0; border-bottom: 2px solid transparent; font-size: 1.02rem; }
    .nav-list a:hover { border-bottom-color: var(--c-ochre); }
    .front { width: 85%; margin-left: auto; margin-right: auto; }
    .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: space-between;
        align-items: start;
    }
    .layout-with-sidebar .sidebar { margin-top: 0; }
    .map-wrap { grid-template-columns: minmax(0, 1fr) 13rem; align-items: center; }
    .map-tags { flex-direction: column; align-items: stretch; }
    .cards-front { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cards-front .card-tilt-1 { margin-top: 1.6rem; }
    .cards-front .card-tilt-2 { margin-top: 0.6rem; }
    .roles-wrap { grid-template-columns: 16rem minmax(0, 1fr); gap: 2.8rem; }
    .plan-seg { font-size: 1.05rem; }
    .fs-layers, .fs-roles { padding: 2.8rem 2rem; }
}

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

/* Уточнения */
.roles-name, .map-node-label, .plan-seg, .layer-title, .entry-title, .page-title, .brand-name, .card-title { hyphens: manual; }
@media (min-width: 600px) { .roles-table td:first-child { width: 36%; } }
