/*
Theme Name: dds_moonweb-studio.ru
Theme URI: https://moonweb-studio.ru/
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: krsrw
*/

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

/* ---------- Переменные ---------- */
:root {
    --bg: #14161A;
    --bg-deep: #0E1013;
    --panel: #1C2027;
    --panel-2: #181B21;
    --grid: #262A31;
    --line: #333945;
    --phone: #5A606B;
    --text: #F2F4F8;
    --text-2: #B9C0CD;
    --muted: #8A93A6;
    --lime: #C6FF3D;
    --electric: #2B2BFF;
    --ink: #14161A;
    --f-head: "Montserrat", "Arial Black", "Helvetica Neue", Arial, sans-serif;
    --f-text: "Fira Sans Condensed", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
    --f-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --shell: min(85%, 1180px);
}

/* ---------- Сброс и база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    font-family: var(--f-text);
    font-size: 1.0625rem;
    line-height: 1.65;
    background-color: var(--bg);
    background-image:
        linear-gradient(to right, rgba(38, 42, 49, .55) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(38, 42, 49, .55) 1px, transparent 1px),
        linear-gradient(180deg, var(--bg) 0%, var(--bg) 55%, var(--bg-deep) 100%);
    background-size: 40px 40px, 40px 40px, 100% 100%;
    -webkit-font-smoothing: antialiased;
}

p, li, dd, blockquote, figcaption, td, th { overflow-wrap: break-word; hyphens: auto; }
h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
p { margin: 0 0 1em; }
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: var(--lime); transition: color .15s ease, text-decoration-color .15s ease; }
a:hover { color: var(--lime); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px dashed var(--lime); outline-offset: 3px; }
::selection { background: var(--lime); color: var(--ink); }

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

/* ---------- Контейнер и направляющие ---------- */
.shell { width: var(--shell); margin-left: auto; margin-right: auto; }
.canvas { position: relative; overflow: hidden; min-height: 100vh; display: flex; flex-direction: column; }
.canvas::before, .canvas::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(51, 57, 69, .7);
    pointer-events: none;
}
.canvas::before { left: calc(50% - min(42.5%, 590px) - 1px); }
.canvas::after { right: calc(50% - min(42.5%, 590px) - 1px); }
.site-main { flex: 1 0 auto; padding-bottom: 4rem; }

.guide-line { position: relative; border-top: 1px solid var(--line); }
.guide-line .shell { position: relative; height: 0; }
.guide-handle { position: absolute; top: -4px; width: 7px; height: 7px; background: var(--bg); border: 1px solid var(--muted); }
.guide-handle:first-child { left: -4px; }
.guide-handle:last-child { right: -4px; }

.guide-tag {
    display: inline-block;
    padding: .1rem .45rem;
    font-family: var(--f-mono);
    font-size: .66rem;
    letter-spacing: .04em;
    line-height: 1.5;
    color: var(--muted);
    background: var(--grid);
    border: 1px solid var(--line);
}

/* ---------- Шапка ---------- */
.topbar { background: var(--panel); border-bottom: 1px solid var(--line); }
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 46px; }
.topbar-note { font-family: var(--f-mono); font-size: .7rem; color: var(--muted); letter-spacing: .04em; }
.topbar-note::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: .5rem; background: var(--lime); vertical-align: 1px; }
.site-nav .nav-list { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; margin: 0; padding: 0; list-style: none; }
.site-nav a {
    display: inline-block;
    padding: .7rem 0;
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--lime); }
.site-nav .current-menu-item > a, .site-nav .current_page_item > a { color: var(--lime); border-bottom-color: var(--lime); }
.nav-toggle { display: none; align-items: center; gap: .55rem; padding: .45rem .8rem; background: transparent; border: 1px solid var(--line); color: var(--text); font: 500 .78rem var(--f-text); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 16px; height: 2px; background: var(--lime); position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

.brand { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1.4rem; padding: 3rem 0 2.6rem; }
.brand-tag { position: absolute; top: .9rem; left: 0; }
.brand-logo-link { display: block; line-height: 0; text-decoration: none; }
.brand-mark, .brand-logo { display: block; width: clamp(54px, 7vw, 84px); height: auto; }
.brand-name { margin: 0; font-family: var(--f-head); font-weight: 800; font-size: clamp(1.7rem, 4.1vw, 3.4rem); line-height: 1.02; letter-spacing: -.01em; text-transform: uppercase; }
.brand-name a { color: var(--text); text-decoration: none; }
.brand-name a:hover { color: var(--lime); }
.brand-desc { margin: .55rem 0 0; color: var(--muted); font-size: 1.02rem; line-height: 1.45; max-width: 60ch; }

/* ---------- Общие элементы ---------- */
.board { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 2px; padding: 2rem 2.2rem; min-width: 0; }

.sec-head { position: relative; display: flex; align-items: center; gap: 1rem; margin: 0 0 1rem; }
.sec-head::after { content: ""; order: 1; flex: 1 1 auto; height: 1px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 11px); }
.sec-label { order: 0; margin: 0; font-family: var(--f-text); font-size: .86rem; font-weight: 500; line-height: 1.3; letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
.sec-num { margin-right: .35rem; font-family: var(--f-mono); letter-spacing: 0; color: var(--lime); }
.sec-note { order: 2; font-family: var(--f-mono); font-size: .7rem; color: var(--muted); white-space: nowrap; }
.sec-note-link { text-decoration: none; }
.sec-note-link:hover { color: var(--lime); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .72rem 1.4rem;
    border: 1.5px solid var(--lime);
    border-radius: 0;
    font-family: var(--f-text);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .12em;
    line-height: 1.2;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, color .12s ease;
}
.btn-solid { background: var(--lime); color: var(--bg-deep); }
.btn-ghost { background: transparent; color: var(--lime); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--electric); }
.btn-solid:hover { color: var(--bg-deep); }
.btn-ghost:hover { background: var(--lime); color: var(--bg-deep); }
.btn:active { transform: translate(0, 0); box-shadow: none; }

.text-link { font-weight: 500; letter-spacing: .02em; }
.text-link span { display: inline-block; transition: transform .15s ease; color: var(--lime); }
.text-link:hover span { transform: translateX(5px); }

.empty-state { color: var(--muted); }

/* ---------- Главная ---------- */
.fp { padding-top: 2.4rem; }
.fp-section { margin-bottom: 3.2rem; }
.fp-section:last-child { margin-bottom: 0; }

/* Блок 1: сценарий */
.flow-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; }
.flow-intro { display: flex; flex-direction: column; justify-content: center; }
.display { margin: 0 0 1.1rem; font-family: var(--f-head); font-weight: 800; font-size: clamp(1.45rem, 2vw, 2.15rem); line-height: 1.1; letter-spacing: -.015em; overflow-wrap: normal; hyphens: manual; }
.flow-intro p { color: var(--text-2); font-size: .98rem; }
.flow-board { display: flex; align-items: center; padding: 2rem 1.6rem 1.6rem; }
.flow-board .flow-chain { width: 100%; }
.flow-chain { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin: 0; padding: 0; list-style: none; }
.flow-step { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; }
.flow-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 37%;
    left: 100%;
    width: clamp(20px, 3vw, 40px);
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12' preserveAspectRatio='none'%3E%3Cpath d='M3 6H37M31 1.5L37.5 6L31 10.5' fill='none' stroke='%23C6FF3D' stroke-width='1.6'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.phone { width: 100%; padding: 17% 8% 24%; background: #121419; border: 1.5px solid var(--phone); border-radius: 12px; }
.phone img { display: block; width: 100%; aspect-ratio: 215 / 375; object-fit: cover; border-radius: 1px; }
.flow-num {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-top: -16px;
    border-radius: 50%;
    background: var(--lime);
    color: var(--bg-deep);
    font-family: var(--f-head);
    font-weight: 800;
    font-size: .9rem;
    box-shadow: 0 0 0 4px var(--panel);
}
.flow-cap { margin-top: .7rem; font-size: .8rem; line-height: 1.3; color: var(--muted); }

/* Блок 2: слои */
.layers-board { padding: 2rem 2.2rem 1.6rem 4.4rem; overflow: hidden; }
.layers-ruler {
    position: absolute;
    top: 1.6rem;
    bottom: 1.6rem;
    left: 1.4rem;
    width: 18px;
    border-left: 1px solid var(--line);
    background-image:
        repeating-linear-gradient(to bottom, #4A505C 0 1px, transparent 1px 8px),
        repeating-linear-gradient(to bottom, #6B7280 0 1px, transparent 1px 40px);
    background-size: 8px 100%, 16px 100%;
    background-repeat: no-repeat;
}
.layers-stage { position: relative; width: 100%; max-width: 900px; aspect-ratio: 510 / 224; margin: 0 auto; }
.layers-phone { position: absolute; left: 39.02%; top: 2.68%; width: 21.57%; height: 94.64%; display: block; }
.layers-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.layers-lines polyline { fill: none; stroke: var(--muted); stroke-width: 1; vector-effect: non-scaling-stroke; }
.layers-callouts { position: absolute; inset: 0; margin: 0; pointer-events: none; }
.callout { position: absolute; left: 71.57%; top: var(--y); transform: translateY(-.78em); display: block; max-width: 27%; line-height: 1.25; }
.callout b { display: block; font-family: var(--f-text); font-weight: 500; font-size: clamp(.95rem, 1.5vw, 1.15rem); color: var(--text); }
.callout small { display: block; margin-top: .2rem; font-size: .78rem; color: var(--muted); }
.callout-left { left: auto; right: 72.16%; text-align: right; }
.layers-note { max-width: 46ch; margin: 1.4rem 0 0; font-size: .9rem; color: var(--muted); }

/* Последние записи */
.cards { display: grid; gap: 16px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 12px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 2px;
    overflow: hidden;
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.card:hover { transform: translate(-3px, -3px); border-color: var(--lime); box-shadow: 3px 3px 0 var(--lime); }
.card-thumb { display: block; overflow: hidden; background: var(--bg-deep); border-radius: 2px; }
.card-thumb img { display: block; width: 100%; aspect-ratio: 712 / 368; object-fit: cover; transition: transform .3s ease; }
.card:hover .card-thumb img { transform: scale(1.03); }
.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 14px 4px 4px; }
.card-title { margin: 0 0 .45rem; font-family: var(--f-head); font-weight: 600; font-size: 1.06rem; line-height: 1.3; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--lime); }
.card-excerpt { color: var(--text-2); font-size: .92rem; line-height: 1.5; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt a { color: var(--text-2); }
.card-date { margin: .2rem 0 .9rem; font-family: var(--f-mono); font-size: .72rem; color: var(--muted); }
.card-more { margin-top: auto; width: 100%; padding-top: .6rem; padding-bottom: .6rem; }

/* Блок 3: спецификация */
.spec-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 2.4rem;
    align-items: center;
    padding: 2.2rem 2.4rem;
    background: var(--lime);
    color: var(--ink);
    border-radius: 2px;
}
.spec-info { min-width: 0; }
.spec-kicker { margin: 0 0 .5rem; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: rgba(20, 22, 26, .7); }
.spec-kicker span { display: inline-block; margin-right: .4rem; padding: 0 .35rem; background: var(--ink); color: var(--lime); }
.spec-title { margin: 0 0 1.2rem; font-family: var(--f-head); font-weight: 800; font-size: clamp(1.45rem, 2.4vw, 2.05rem); line-height: 1.1; color: var(--ink); }
.spec-table { width: 100%; border-collapse: collapse; border-top: 1.5px solid var(--ink); font-size: .95rem; }
.spec-table th, .spec-table td { padding: .5rem .2rem; border-bottom: 1.5px solid var(--ink); text-align: left; vertical-align: top; color: var(--ink); }
.spec-table th { font-weight: 400; width: 55%; }
.spec-table td { font-family: var(--f-mono); font-size: .85rem; font-weight: 400; }
.spec-note { margin: 1rem 0 0; font-size: .88rem; line-height: 1.5; color: rgba(20, 22, 26, .78); }
.spec-figure { position: relative; margin: 0; min-width: 0; }
.spec-figure img { display: block; width: 100%; aspect-ratio: 1056 / 424; }
.spec-figure figcaption { position: absolute; inset: 0; }
.dim { position: absolute; font-family: var(--f-mono); font-size: clamp(.68rem, 1.25vw, .95rem); line-height: 1; color: var(--ink); white-space: nowrap; }
.dim-top { left: 49.2%; top: 1%; transform: translateX(-50%); }
.dim-left { left: 5.2%; top: 53.5%; transform: translate(-50%, -50%); }
.dim-right { left: 94.8%; top: 53.5%; transform: translate(-50%, -50%); }
.dim-label { left: 49.2%; top: 54%; transform: translate(-50%, -50%); font-family: var(--f-head); font-weight: 800; font-size: clamp(.9rem, 2vw, 1.5rem); text-transform: uppercase; letter-spacing: .02em; }
.dim-bottom { left: 66.8%; top: 87.5%; transform: translateY(-50%); }

/* Блок 4: что читать дальше */
.next-board { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2.2fr); padding: 0; overflow: hidden; }
.next-count { display: flex; flex-direction: column; justify-content: flex-end; gap: .6rem; padding: 2rem 2rem 1.8rem; background: var(--electric); color: var(--text); }
.next-big { font-family: var(--f-head); font-weight: 800; font-size: clamp(4rem, 9vw, 7.4rem); line-height: .85; letter-spacing: -.03em; }
.next-sub { max-width: 18ch; font-size: .9rem; line-height: 1.35; color: rgba(242, 244, 248, .85); }
.next-list { margin: 0; padding: 1rem 2.2rem; list-style: none; counter-reset: none; }
.next-list li { border-bottom: 1px solid var(--line); }
.next-list li:last-child { border-bottom: 0; }
.next-list a { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) auto; align-items: center; gap: .5rem; padding: .95rem .3rem; color: var(--text); text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.next-list a:hover { background: rgba(198, 255, 61, .06); color: var(--lime); }
.next-n { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }
.next-t { font-size: 1.06rem; font-weight: 500; }
.next-a { color: var(--lime); font-size: 1.1rem; transition: transform .15s ease; }
.next-list a:hover .next-a { transform: translateX(6px); }

/* ---------- Внутренние страницы ---------- */
.crumbs { margin: 1.6rem 0 1.4rem; font-family: var(--f-mono); font-size: .76rem; line-height: 1.5; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--lime); }
.crumbs-sep { margin: 0 .35rem; color: var(--lime); }
.crumbs-current { color: var(--text); }

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

.page-head { margin-bottom: 1.6rem; }
.page-title, .entry-title, .brand-name { hyphens: manual; }
.page-title { margin: .45rem 0 .5rem; font-family: var(--f-head); font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 2.9rem); line-height: 1.08; letter-spacing: -.015em; }
.page-lead { max-width: 60ch; color: var(--muted); }
.page-lead p { margin: 0; }

.entry { padding: 2.2rem 2.4rem; }
.entry-head { margin-bottom: 1.4rem; }
.entry-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-family: var(--f-mono); font-size: .75rem; color: var(--muted); }
.entry-cat a { color: var(--lime); text-decoration: none; }
.entry-cat::before { content: "/ "; color: var(--muted); }
.entry-title { margin: .6rem 0 0; font-family: var(--f-head); font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.1; letter-spacing: -.015em; }
.entry-cover { margin: 0 0 1.6rem; border: 1px solid var(--line); }
.entry-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.entry-content { color: var(--text-2); font-size: 1.06rem; line-height: 1.72; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p { margin: 0 0 1.15em; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin: 1.8em 0 .6em; font-family: var(--f-head); font-weight: 800; line-height: 1.2; color: var(--text); }
.entry-content h2 { font-size: 1.55rem; }
.entry-content h3 { font-size: 1.25rem; }
.entry-content h4 { font-size: 1.05rem; font-weight: 600; }
.entry-content a { color: var(--text); }
.entry-content a:hover { color: var(--lime); }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.entry-content li { margin-bottom: .4em; }
.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: 7px; height: 7px; background: var(--lime); }
.entry-content ol > li::marker { font-family: var(--f-mono); color: var(--lime); }
.entry-content blockquote { margin: 1.6em 0; padding: 1.1em 1.4em; border-left: 3px solid var(--lime); background: rgba(198, 255, 61, .06); color: var(--text); font-size: 1.1rem; }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: .6em; font-family: var(--f-mono); font-size: .78rem; font-style: normal; color: var(--muted); }
.entry-content table { width: 100%; margin: 0 0 1.4em; border-collapse: collapse; border: 1px solid var(--line); font-size: .95rem; }
.entry-content th, .entry-content td { padding: .6rem .8rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content th { background: var(--panel-2); color: var(--text); font-weight: 600; }
.entry-content code, .entry-content kbd { padding: .1em .35em; font-family: var(--f-mono); font-size: .86em; background: var(--bg-deep); border: 1px solid var(--line); color: var(--lime); }
.entry-content pre { overflow-x: auto; padding: 1rem 1.2rem; background: var(--bg-deep); border: 1px solid var(--line); font-family: var(--f-mono); font-size: .86rem; line-height: 1.6; }
.entry-content pre code { padding: 0; border: 0; background: none; color: var(--text-2); }
.entry-content img { display: block; max-width: 100%; height: auto; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption, .wp-caption-text { margin-top: .5em; font-family: var(--f-mono); font-size: .76rem; color: var(--muted); }
.entry-content hr { margin: 2em 0; border: 0; border-top: 1px dashed var(--line); }
.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; }
.page-links { margin-top: 1.4rem; font-family: var(--f-mono); font-size: .85rem; }

.entry-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px dashed var(--line); }
.entry-tags a { padding: .2rem .55rem; border: 1px solid var(--line); font-family: var(--f-mono); font-size: .76rem; color: var(--text-2); text-decoration: none; }
.entry-tags a:hover { border-color: var(--lime); color: var(--lime); }

.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.post-nav-link { display: block; min-width: 0; padding: 1rem 1.2rem; background: var(--panel); border: 1px solid var(--line); text-decoration: none; transition: border-color .15s ease; }
.post-nav-link small { display: block; font-family: var(--f-mono); font-size: .7rem; color: var(--muted); }
.post-nav-link span { display: block; margin-top: .3rem; color: var(--text); font-weight: 500; line-height: 1.35; }
.post-nav-link:hover { border-color: var(--lime); }
.post-nav-link:hover span { color: var(--lime); }
.post-nav-next { grid-column: 2; text-align: right; }

/* Пагинация */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2rem 0 0; }
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 .8rem;
    background: var(--panel);
    border: 1px solid var(--line);
    font-family: var(--f-mono);
    font-size: .82rem;
    color: var(--text);
    text-decoration: none;
    transition: border-color .12s ease, color .12s ease;
}
.pager a.page-numbers:hover { border-color: var(--lime); color: var(--lime); }
.pager .page-numbers.current { background: var(--lime); border-color: var(--lime); color: var(--bg-deep); }
.pager .page-numbers.dots { background: none; border: 0; min-width: auto; color: var(--muted); }

/* Сайдбар */
.sidebar { min-width: 0; }
.sidebar .widget { margin-bottom: 16px; padding: 1.3rem 1.4rem; background: var(--panel-2); border: 1px solid var(--line); color: var(--text-2); font-size: .95rem; }
.sidebar .widget-title { margin: 0 0 .9rem; font-family: var(--f-text); font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
.sidebar .widget-title::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: .55rem; background: var(--lime); vertical-align: 1px; }
.sidebar .widget ul { margin: 0; padding: 0; list-style: none; }
.sidebar .widget li { padding: .55rem 0; border-bottom: 1px dashed var(--line); line-height: 1.35; }
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: var(--text); text-decoration: none; }
.sidebar .widget a:hover { color: var(--lime); }
.sidebar .widget .post-date { display: block; font-family: var(--f-mono); font-size: .72rem; color: var(--muted); }
.sidebar .widget p { color: var(--text-2); }

/* Поиск */
.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-field { flex: 1 1 auto; min-width: 0; padding: .7rem .9rem; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 0; color: var(--text); font: 400 1rem var(--f-text); }
.search-field::placeholder { color: var(--muted); }
.search-field:focus { border-color: var(--lime); outline: none; }
.empty-board .search-form { margin-top: 1rem; }

/* 404 */
.notfound { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2.4rem; align-items: center; padding: 3rem 2.6rem; }
.notfound-code { font-family: var(--f-head); font-weight: 800; font-size: clamp(5rem, 14vw, 10rem); line-height: .9; color: var(--lime); }
.notfound-body p { color: var(--text-2); }
.notfound .search-form { margin: 1.2rem 0; }

/* Комментарии */
.comments { margin-top: 16px; }
.comments-title { margin: 0 0 1.2rem; font-family: var(--f-head); font-weight: 800; font-size: 1.35rem; }
.comments-count { margin-left: .4rem; padding: 0 .45rem; background: var(--lime); color: var(--bg-deep); font-family: var(--f-mono); font-size: .9rem; vertical-align: middle; }
.comment-list, .comment-list .children { margin: 0; padding: 0; list-style: none; }
.comment-list .children { margin-left: 1.6rem; padding-left: 1rem; border-left: 1px dashed var(--line); }
.note-body { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.note-head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin-bottom: .5rem; }
.note-avatar { display: block; width: 40px; height: 40px; border: 1px solid var(--line); }
.note-author { font-weight: 600; color: var(--text); }
.note-date { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); }
.note-wait { font-size: .85rem; color: var(--lime); }
.note-text { color: var(--text-2); }
.note-text p { margin: 0 0 .6em; }
.note-reply a { font-family: var(--f-mono); font-size: .74rem; color: var(--lime); text-decoration: none; }
.comment-respond { margin-top: 1.6rem; }
.comment-reply-title { margin: 0 0 .6rem; font-family: var(--f-head); font-weight: 800; font-size: 1.2rem; }
.comment-reply-title small { margin-left: .6rem; font-family: var(--f-mono); font-size: .72rem; font-weight: 400; }
.form-note { font-size: .88rem; color: var(--muted); }
.comment-form p { margin: 0 0 1rem; }
.comment-form label { display: block; margin-bottom: .3rem; font-family: var(--f-mono); font-size: .74rem; color: var(--muted); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    padding: .7rem .9rem;
    background: var(--bg-deep);
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--text);
    font: 400 1rem var(--f-text);
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--lime); outline: none; }
.comment-form-cookies-consent { display: flex; gap: .6rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; margin: 0; }
.comment-form .req { color: var(--lime); }
.comments .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; font-family: var(--f-mono); font-size: .8rem; }

/* ---------- Подвал ---------- */
.colophon { margin-top: auto; background: var(--bg-deep); border-top: 1px solid var(--line); color: #A8B0BF; position: relative; z-index: 1; }
.colophon-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; padding: 3rem 0 2.2rem; }
.colophon-col { min-width: 0; }
.colophon .widget { margin-bottom: 1.4rem; font-size: .92rem; line-height: 1.55; color: #A8B0BF; }
.colophon .widget-title { margin: 0 0 .8rem; font-family: var(--f-head); font-weight: 800; font-size: 1.25rem; line-height: 1.15; text-transform: uppercase; color: var(--text); }
.colophon .widget p { color: #A8B0BF; }
.colophon .widget ul { margin: 0; padding: 0; list-style: none; }
.colophon .widget li { margin-bottom: .45rem; }
.colophon .widget a { color: var(--text); text-decoration: none; }
.colophon .widget a:hover { color: var(--lime); }
.colophon-col:first-child .widget-title::after { content: "»"; color: var(--lime); margin-left: .15em; }
.colophon-bottom { padding: 1.1rem 0 1.4rem; border-top: 1px solid var(--line); text-align: center; }
.colophon-bottom p { margin: 0; font-family: var(--f-mono); font-size: .74rem; color: var(--muted); }

/* ---------- Cookie-баннер ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 16px;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    width: min(92%, 780px);
    margin-left: auto;
    margin-right: auto;
    padding: 1rem 1.3rem;
    background: var(--panel);
    border: 1px solid var(--lime);
    box-shadow: 5px 5px 0 var(--electric);
}
.cookie-text { margin: 0; font-size: .9rem; line-height: 1.45; color: var(--text-2); }
.cookie-accept { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
    .layers-board { padding-left: 3.6rem; }
    .callout small { font-size: .72rem; }
}

@media (max-width: 960px) {
    :root { --shell: min(90%, 1180px); }
    .canvas::before { left: calc(50% - min(45%, 590px) - 1px); }
    .canvas::after { right: calc(50% - min(45%, 590px) - 1px); }
    .flow-grid { grid-template-columns: minmax(0, 1fr); }
    .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .spec-board { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .colophon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
    .next-board { grid-template-columns: minmax(0, 1fr); }
    .next-count { flex-direction: row; align-items: flex-end; justify-content: flex-start; gap: 1.2rem; padding: 1.4rem 1.6rem; }
    .next-big { font-size: 4.2rem; }
}

@media (max-width: 760px) {
    .topbar-note { display: none; }
    .topbar-row { flex-wrap: wrap; justify-content: flex-end; }
    .nav-toggle { display: inline-flex; margin: .5rem 0; }
    .site-nav { display: none; width: 100%; }
    .site-nav.is-open { display: block; }
    .site-nav .nav-list { flex-direction: column; gap: 0; padding-bottom: .6rem; }
    .site-nav li { border-top: 1px solid var(--line); }
    .site-nav a { display: block; padding: .75rem 0; border-bottom: 0; }

    .layers-board { padding: 1.6rem 1.4rem 1.4rem 3rem; }
    .layers-ruler { left: .9rem; }
    .layers-stage { aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; }
    .layers-phone { position: static; width: 46%; max-width: 200px; height: auto; }
    .layers-lines { display: none; }
    .layers-callouts { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; width: 100%; margin-top: 1.4rem; counter-reset: lay; }
    .callout, .callout-left { position: static; transform: none; max-width: none; text-align: left; padding-left: 1rem; border-left: 2px solid var(--lime); }
}

@media (max-width: 600px) {
    :root { --shell: 92%; }
    body { font-size: 1rem; }
    .canvas::before, .canvas::after { display: none; }
    .board { padding: 1.4rem 1.2rem; }
    .brand { padding: 2.6rem 0 2rem; gap: 1rem; }
    .brand-desc { font-size: .95rem; }
    .fp { padding-top: 1.8rem; }
    .fp-section { margin-bottom: 2.4rem; }
    .sec-note { display: none; }
    .flow-board { overflow-x: auto; padding: 1.4rem 1rem 1.2rem; }
    .flow-chain { min-width: 560px; gap: 22px; }
    .flow-step:not(:last-child)::after { width: 22px; }
    .cards-3, .cards-2 { grid-template-columns: minmax(0, 1fr); }
    .spec-board { padding: 1.6rem 1.3rem; }
    .layers-board { padding: 1.4rem 1.2rem 1.2rem 2.6rem; }
    .layers-callouts { grid-template-columns: minmax(0, 1fr); }
    .next-list { padding: .4rem 1.2rem; }
    .next-list a { grid-template-columns: 2.4rem minmax(0, 1fr) auto; }
    .entry { padding: 1.5rem 1.2rem; }
    .post-nav { grid-template-columns: minmax(0, 1fr); }
    .post-nav-next { grid-column: auto; }
    .notfound { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 2rem 1.3rem; }
    .search-form { flex-direction: column; }
    .colophon-grid { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; padding: 2.4rem 0 1.4rem; }
    .cookie-banner { flex-direction: column; align-items: stretch; gap: .8rem; padding: 1rem 1.1rem; bottom: 10px; }
    .alignleft, .alignright { float: none; margin: 1em 0; }
}
