/*
Theme Name: dds_spacedevagency.com
Theme URI: https://spacedevagency.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: sdvb
*/

/* ---------- Шрифты ---------- */
@font-face { font-family: "Unbounded"; font-weight: 400; font-display: swap; src: url("fonts/unbounded-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: "Unbounded"; font-weight: 400; font-display: swap; src: url("fonts/unbounded-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; font-weight: 500; font-display: swap; src: url("fonts/unbounded-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: "Unbounded"; font-weight: 500; font-display: swap; src: url("fonts/unbounded-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; 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-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("fonts/jetbrains-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: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("fonts/jetbrains-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-display: swap; src: url("fonts/jetbrains-mono-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: "JetBrains Mono"; font-weight: 700; font-display: swap; src: url("fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Переменные ---------- */
:root {
    --bg: #14181C;
    --grid: #232A31;
    --line: #3A4550;
    --text: #E6EAEE;
    --muted: #7C8894;
    --lime: #B6FF3C;
    --amber: #FFB347;
    --blue: #4F7CFF;
    --card: #1B2127;
    --foot: #101418;
    --aside: #181D22;
    --ink: #0E1114;
    --mono: "JetBrains Mono", "Consolas", "Liberation Mono", "Courier New", monospace;
    --wide: "Unbounded", "Arial Black", "Segoe UI", Arial, sans-serif;
}

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

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background-color: var(--bg);
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px),
        linear-gradient(rgba(35, 42, 49, .45) 1px, transparent 1px),
        linear-gradient(90deg, rgba(35, 42, 49, .45) 1px, transparent 1px);
    background-size: 64px 64px, 64px 64px, 16px 16px, 16px 16px;
    background-position: -1px -1px;
    color: var(--text);
    font-family: var(--mono);
    font-size: 15px;
    line-height: 1.75;
    overflow-x: hidden;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}
.sky {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(circle at 4% 18%, rgba(230, 234, 238, .9) 0 1.2px, transparent 2.5px),
        radial-gradient(circle at 96% 28%, rgba(230, 234, 238, .85) 0 1.2px, transparent 2.5px),
        radial-gradient(circle at 92% 62%, rgba(182, 255, 60, .7) 0 1.4px, transparent 3px),
        radial-gradient(circle at 7% 74%, rgba(230, 234, 238, .7) 0 1px, transparent 2.5px),
        radial-gradient(circle at 98% 88%, rgba(79, 124, 255, .7) 0 1.2px, transparent 3px),
        radial-gradient(circle at 3% 46%, rgba(230, 234, 238, .6) 0 1px, transparent 2px);
}
.sky::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0, transparent 40%, rgba(10, 12, 15, .55) 100%);
}
.masthead, main, .basement, .cookie-banner { position: relative; z-index: 1; }

p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { margin: 1.6em 0 .6em; line-height: 1.2; font-weight: 500; color: var(--text); hyphens: auto; }
h1:first-child, h2:first-child, h3:first-child { margin-top: 0; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: underline dashed rgba(79, 124, 255, .8); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color .15s, background-color .15s; }
a:hover { color: var(--lime); text-decoration-color: var(--lime); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 2px solid 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 {
    position: absolute;
    left: 1rem; top: -60px;
    z-index: 100;
    padding: .5rem 1rem;
    background: var(--lime);
    color: var(--ink);
    text-decoration: none;
}
.skip:focus { top: 1rem; }

.shell { width: min(92%, 1180px); margin-inline: auto; }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    padding: .55em 1.15em;
    border: 1px solid var(--lime);
    border-radius: 0;
    background: transparent;
    color: var(--lime);
    font: 500 .86rem/1.3 var(--mono);
    text-decoration: none;
    letter-spacing: .02em;
    cursor: pointer;
    white-space: normal;
    transition: background-color .12s, color .12s, transform .12s, box-shadow .12s;
}
.btn:hover, .btn:focus-visible {
    background: var(--lime);
    color: var(--ink);
    transform: translate(-2px, -2px);
    box-shadow: 2px 2px 0 var(--blue);
}
.btn--sm { padding: .4em .85em; font-size: .78rem; }

/* ---------- Шапка ---------- */
.masthead { padding-top: 2.2rem; }
.masthead-in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: start;
}
.brand { display: flex; gap: 1.1rem; align-items: flex-start; min-width: 0; }
.brand-mark { flex: 0 0 auto; color: var(--text); text-decoration: none; display: block; }
.brand-mark:hover { color: var(--lime); }
.brand-svg { display: block; width: 58px; height: 58px; }
.brand-logo { display: block; max-width: 64px; max-height: 64px; width: auto; height: auto; }
.brand-text { min-width: 0; }
.brand-name {
    margin: 0 0 .7rem;
    font-family: var(--wide);
    font-weight: 400;
    font-size: clamp(1.15rem, 2.2vw, 1.75rem);
    line-height: 1.2;
    letter-spacing: -.01em;
    hyphens: manual;
}
.brand-name a { color: var(--text); text-decoration: none; }
.brand-name a:hover { color: var(--lime); }
.brand-desc { margin: 0; max-width: 60ch; color: #C3CAD1; font-size: .86rem; line-height: 1.6; }

.topnav { position: relative; }
.topnav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.topnav-list li { position: relative; padding-left: 1.15rem; }
.topnav-list li::before {
    content: "";
    position: absolute;
    left: 0; top: .62em;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 6px rgba(182, 255, 60, .55);
}
.topnav-list a { color: var(--text); text-decoration: none; font-size: .95rem; }
.topnav-list a:hover { color: var(--lime); }
.topnav-list .current-menu-item > a, .topnav-list .current_page_item > a { color: var(--lime); }
.topnav-toggle {
    display: none;
    align-items: center;
    gap: .6rem;
    padding: .45rem .8rem;
    border: 1px solid var(--lime);
    background: transparent;
    color: var(--lime);
    font: 500 .85rem var(--mono);
    cursor: pointer;
}
.topnav-bars, .topnav-bars::before, .topnav-bars::after {
    display: block;
    width: 16px; height: 2px;
    background: currentColor;
    position: relative;
}
.topnav-bars::before, .topnav-bars::after { content: ""; position: absolute; left: 0; }
.topnav-bars::before { top: -5px; }
.topnav-bars::after { top: 5px; }

.statusbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.6rem;
    padding: .55rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: .8rem;
}
.statusbar-tag { color: var(--muted); font-size: .7rem; letter-spacing: .08em; }
.statusbar-val { color: var(--lime); }

/* ---------- Заголовки секций главной ---------- */
.front { padding-bottom: 3rem; }
.block { padding: 2.6rem 0 2.8rem; position: relative; min-width: 0; }
.block-rule {
    position: relative;
    margin: 0 0 1.8rem;
    border-top: 1px solid var(--line);
}
.block-rule span {
    position: absolute;
    left: 0; top: -.75rem;
    padding-right: .6rem;
    background: var(--bg);
    color: var(--muted);
    font-size: .66rem;
    letter-spacing: .08em;
    line-height: 1.5rem;
}
.front > .block:first-child { padding-top: 2rem; }

.mega {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 0 0 2rem;
    font-family: var(--wide);
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1.08;
    letter-spacing: -.01em;
}
.mega-num {
    flex: 0 0 auto;
    font-family: var(--mono);
    font-weight: 500;
    color: var(--muted);
    font-size: .8em;
    line-height: 1.15;
    padding-top: .05em;
}
.mega-text {
    min-width: 0;
    padding-left: 1rem;
    border-left: 6px solid var(--lime);
    font-size: clamp(1.7rem, 4.4vw, 3.3rem);
    hyphens: manual;
}
.mega--mid .mega-text { font-size: clamp(1.4rem, 3.2vw, 2.4rem); }
.mega--sm .mega-text { font-size: clamp(1.25rem, 2.3vw, 1.8rem); }
.mega { font-size: clamp(1.7rem, 4.4vw, 3.3rem); }
.mega--mid { font-size: clamp(1.4rem, 3.2vw, 2.4rem); }
.mega--sm { font-size: clamp(1.25rem, 2.3vw, 1.8rem); }

.sect {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 0 1.8rem;
    font-family: var(--mono);
    font-weight: 500;
    font-size: clamp(1.4rem, 2.8vw, 2rem);
}
.sect-num {
    color: var(--muted);
    padding-right: 1rem;
    border-right: 5px solid var(--lime);
    line-height: 1.1;
}
.sect--sm { font-size: 1.25rem; }

/* ---------- 01. Маршрут ---------- */
.route-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 1.5rem;
    align-items: stretch;
}
.route-map { position: relative; min-width: 0; }
.route-line {
    position: absolute;
    left: 0; top: 0;
    width: 100%;
    height: 100px;
    overflow: visible;
}
.route-stops {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    position: relative;
}
.route-stop {
    --dy: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: var(--dy);
    min-width: 0;
}
.route-stop--1 { --dy: 12px; }
.route-stop--2 { --dy: 30px; }
.route-stop--3 { --dy: 10px; }
.route-stop--4 { --dy: 0px; }
.route-stop--5 { --dy: 16px; }
.route-stop--6 { --dy: 30px; }
.route-stop--7 { --dy: 10px; }
.route-stop--8 { --dy: 10px; }
.route-icon {
    display: block;
    width: 28px; height: 28px;
    background: var(--text);
    -webkit-mask: var(--ico) center / contain no-repeat;
    mask: var(--ico) center / contain no-repeat;
    opacity: .85;
}
.route-dot {
    display: block;
    width: 16px; height: 16px;
    margin-top: 9px;
    border: 3px solid var(--blue);
    border-radius: 50%;
    background: var(--bg);
    position: relative;
    z-index: 1;
    transition: transform .15s, background-color .15s;
}
.route-stop.is-done .route-dot { border-color: var(--lime); }
.route-label { margin-top: .45rem; font-size: .8rem; line-height: 1.35; color: var(--text); }
.route-label b { color: var(--muted); font-weight: 400; }
.route-hint {
    margin-top: .3rem;
    max-width: 14ch;
    font-size: .68rem;
    line-height: 1.4;
    color: var(--muted);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .15s, transform .15s;
}
.route-stop:hover .route-hint { opacity: 1; transform: none; }
.route-stop:hover .route-dot { transform: scale(1.25); background: var(--lime); }
.route-stop:hover .route-icon { background: var(--lime); opacity: 1; }

.route-icon--bulb { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.6 10.8c.7.6 1.1 1.3 1.1 2.2h5c0-.9.4-1.6 1.1-2.2A6 6 0 0 0 12 3z'/%3E%3C/svg%3E"); }
.route-icon--doc { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h8l4 4v14H6z'/%3E%3Cpath d='M14 3v4h4M9 17l6-6 1.5 1.5-6 6H9z'/%3E%3C/svg%3E"); }
.route-icon--tree { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='3' width='6' height='5'/%3E%3Crect x='3' y='16' width='6' height='5'/%3E%3Crect x='15' y='16' width='6' height='5'/%3E%3Cpath d='M12 8v4M6 16v-4h12v4'/%3E%3C/svg%3E"); }
.route-icon--code { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 7l-5 5 5 5M16 7l5 5-5 5M14 4l-4 16'/%3E%3C/svg%3E"); }
.route-icon--chat { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 0 0-7.8 13.5L3 21l4.6-1.2A9 9 0 1 0 12 3z'/%3E%3Cpath d='M8.5 12l2.5 2.5 4.5-5'/%3E%3C/svg%3E"); }
.route-icon--check { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='2'/%3E%3Cpath d='M8 12l3 3 5-6'/%3E%3C/svg%3E"); }
.route-icon--branch { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='5' r='2'/%3E%3Ccircle cx='6' cy='19' r='2'/%3E%3Ccircle cx='18' cy='9' r='2'/%3E%3Cpath d='M6 7v10M18 11c0 4-6 3-11 6.5'/%3E%3C/svg%3E"); }
.route-icon--rocket { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4c3-1 6-1 6-1s0 3-1 6l-6 6-5-5z'/%3E%3Cpath d='M8 10l-4 1 2-4 4-1M14 16l-1 4 4-2 1-4M7 17c-1 1-2 3-2 3s2-1 3-2'/%3E%3Ccircle cx='15.5' cy='8.5' r='1.3'/%3E%3C/svg%3E"); }

.route-cycle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: .6rem 0 .6rem 1.3rem;
    border-left: 1px solid var(--line);
}
.route-cycle-cap { font-size: .85rem; line-height: 1.3; color: var(--text); }
.route-cycle-num { font-family: var(--mono); font-weight: 500; font-size: 3.4rem; line-height: 1.05; color: var(--amber); }
.route-cycle-unit { color: var(--amber); font-size: .9rem; }
.route-cycle-note { margin-top: .7rem; font-size: .66rem; line-height: 1.45; color: var(--muted); }

/* ---------- 02. Контроль версий ---------- */
.vcs-grid {
    display: grid;
    grid-template-columns: 130px minmax(0, 1.9fr) minmax(0, 1fr);
    gap: 1.4rem;
    align-items: center;
}
.vcs-terms {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: .65rem;
    position: relative;
    z-index: 1;
}
.vcs-term {
    width: 100%;
    padding: .2rem 0;
    border: 0;
    border-bottom: 1px solid #5B6772;
    background: transparent;
    color: #C3CAD1;
    font: 400 .9rem/1.6 var(--mono);
    text-align: left;
    cursor: pointer;
    transition: color .12s, border-color .12s;
}
.vcs-term:hover { color: var(--text); border-color: var(--text); }
.vcs-term.is-active { color: var(--lime); border-color: var(--lime); }
.vcs-figure { margin: 0 0 0 -1.4rem; min-width: 0; }
.vcs-figure img { display: block; width: 100%; height: auto; }
.vcs-text { min-width: 0; }
.vcs-lead { font-size: 1rem; line-height: 1.6; color: var(--text); }
.vcs-def {
    margin: 0;
    padding: .8rem 1rem;
    border: 1px solid var(--line);
    border-left: 3px solid var(--lime);
    background: rgba(27, 33, 39, .85);
    font-size: .8rem;
    line-height: 1.6;
    color: #C3CAD1;
}
.vcs-def b { color: var(--lime); font-weight: 500; }

/* ---------- 03. Карточки ---------- */
.cards { display: grid; gap: 1.4rem; }
.cards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    padding: .9rem .9rem 1rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 0;
    transition: border-color .15s, transform .15s, box-shadow .15s;
}
.card:hover { border-color: var(--lime); transform: translate(-3px, -3px); box-shadow: 3px 3px 0 rgba(182, 255, 60, .35); }
.card-flag {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .6rem;
    font-size: .74rem;
    color: var(--lime);
}
.card-led {
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--lime);
    box-shadow: 0 0 6px rgba(182, 255, 60, .7);
}
.card-pin { margin-left: auto; padding: 0 .4rem; border: 1px solid var(--amber); color: var(--amber); font-size: .66rem; }
.card-thumb { display: block; overflow: hidden; border-radius: 0; text-decoration: none; }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    transition: transform .3s, filter .3s;
    filter: saturate(.9);
}
.card:hover .card-thumb img { transform: scale(1.03); filter: none; }
.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; padding-top: 1rem; }
.card-title { margin: 0 0 .55rem; font-family: var(--mono); font-weight: 500; font-size: 1.02rem; line-height: 1.4; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--lime); }
.card-excerpt { flex: 1; font-size: .8rem; line-height: 1.6; color: #AEB7C0; hyphens: auto; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt a { color: var(--blue); }
.card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: .9rem;
}
.stamp { color: var(--muted); font-size: .76rem; letter-spacing: .02em; }
.latest-more { margin: 1.8rem 0 0; text-align: right; }
.empty { color: var(--muted); }

/* ---------- 04 + 05 ---------- */
.duo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    margin-top: 1rem;
}
.duo > .block { padding-top: 2.4rem; }
.duo > .block:first-child { padding-right: 2rem; border-right: 1px solid var(--line); }
.duo > .block:last-child { padding-left: 2rem; }

.console {
    padding: 1.4rem 1.4rem 1rem;
    background: var(--card);
    border: 1px solid var(--line);
}
.console-gauges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.gauge { display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; }
.gauge-name { font-size: .74rem; line-height: 1.3; min-height: 2.6em; color: #C3CAD1; }
.gauge-body { display: flex; gap: .5rem; align-items: stretch; height: 190px; margin-top: .4rem; }
.gauge-bar {
    position: relative;
    width: 26px;
    border: 1px solid var(--line);
    background:
        repeating-linear-gradient(to top, transparent 0 4px, rgba(14, 17, 20, .95) 4px 6px),
        #262E36;
    background-blend-mode: normal;
}
.gauge-fill {
    position: absolute;
    left: 3px; right: 3px; bottom: 2px;
    max-height: calc(100% - 4px);
    background: repeating-linear-gradient(to top, var(--blue) 0 4px, transparent 4px 6px);
}
.gauge--lime .gauge-fill { background: repeating-linear-gradient(to top, var(--lime) 0 4px, transparent 4px 6px); }
.gauge-scale {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: .66rem;
    line-height: 1;
    color: var(--muted);
    text-align: left;
}
.gauge-val { margin-top: .6rem; font-size: 1.1rem; font-weight: 500; color: var(--amber); line-height: 1.2; }
.gauge-val small { display: block; font-size: .64rem; font-weight: 400; color: var(--muted); }
.console-foot {
    margin: 1.2rem 0 0;
    padding-top: .8rem;
    border-top: 1px solid var(--line);
    font-size: .82rem;
    color: #C3CAD1;
}
.console-foot b { color: var(--amber); font-weight: 500; }
.panel-note { margin: 1rem 0 0; font-size: .78rem; line-height: 1.6; color: var(--muted); }

.layers-scheme { position: relative; min-height: 120px; }
.layers-img {
    display: block;
    width: 52%;
    height: auto;
    margin-left: 22%;
}
.layers-tag {
    position: absolute;
    font-size: .82rem;
    color: var(--text);
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.layers-tag::before, .layers-tag::after { content: ""; display: block; height: 1px; width: 18px; flex: 0 0 auto; background: #8C98A4; }
.layers-tag--ui { left: 74%; top: calc(7.5% - .6em); }
.layers-tag--ui::after, .layers-tag--logic::after { display: none; }
.layers-tag--logic { left: 74%; top: calc(49% - .6em); }
.layers-tag--data { right: 78%; top: calc(72% - .6em); }
.layers-tag--data::before { display: none; }
.layers-list { margin: 1.2rem 0 0; display: grid; gap: .45rem; font-size: .78rem; line-height: 1.5; }
.layers-list div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: .8rem; }
.layers-list dt { color: var(--lime); }
.layers-list dd { margin: 0; color: #AEB7C0; }
.layers-motto { margin: 1.2rem 0 0; text-align: right; font-size: 1rem; color: var(--text); }

/* ---------- Внутренние страницы ---------- */
.inner { padding: 1.6rem 0 3.5rem; }
.crumbs {
    margin: 0 0 1.8rem;
    font-size: .78rem;
    color: var(--muted);
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--lime); }
.crumbs span:last-child { color: var(--text); }
.crumbs-sep { color: var(--lime); padding: 0 .2rem; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    justify-content: space-between;
    column-gap: 6%;
    align-items: start;
}
.layout-single { display: block; width: 85%; margin-left: auto; margin-right: auto; }
.content-area { min-width: 0; }

.page-head { margin-bottom: 2rem; }
.page-title {
    margin: 0 0 .7rem;
    padding-left: 1rem;
    border-left: 6px solid var(--lime);
    font-family: var(--wide);
    font-weight: 400;
    font-size: clamp(1.4rem, 3.2vw, 2.3rem);
    line-height: 1.15;
    hyphens: manual;
}
.page-intro { color: #AEB7C0; font-size: .88rem; }

.entry {
    padding: 1.8rem 2rem 2rem;
    background: rgba(27, 33, 39, .92);
    border: 1px solid var(--line);
}
.entry-head { margin-bottom: 1.4rem; }
.entry-meta { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin: 0 0 .9rem; font-size: .78rem; }
.entry-cat a { color: var(--lime); text-decoration: none; border: 1px solid var(--lime); padding: 0 .45rem; }
.entry-cover { margin: 0 0 1.6rem; }
.entry-cover img { display: block; width: 100%; height: auto; }
.entry-content { font-size: .93rem; line-height: 1.85; hyphens: auto; }
.entry-content h2 { font-family: var(--mono); font-size: 1.35rem; padding-left: .8rem; border-left: 4px solid var(--lime); }
.entry-content h3 { font-family: var(--mono); font-size: 1.12rem; color: var(--lime); }
.entry-content h4 { font-size: 1rem; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.entry-content ul { list-style: none; padding-left: 1.2rem; }
.entry-content ul li { position: relative; }
.entry-content ul li::before {
    content: "";
    position: absolute;
    left: -1.1rem; top: .72em;
    width: 7px; height: 7px;
    background: var(--lime);
}
.entry-content ol li::marker { color: var(--amber); }
.entry-content li { margin-bottom: .35em; }
.entry-content blockquote {
    margin: 1.6em 0;
    padding: 1.1rem 1.4rem;
    border: 1px solid var(--line);
    border-left: 4px solid var(--amber);
    background: var(--ink);
    color: var(--text);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content pre, .entry-content code { font-family: var(--mono); }
.entry-content pre {
    overflow-x: auto;
    padding: 1rem 1.2rem;
    background: var(--ink);
    border: 1px solid var(--line);
    font-size: .84rem;
    line-height: 1.6;
}
.entry-content :not(pre) > code { padding: .1em .35em; background: var(--ink); color: var(--lime); font-size: .9em; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .84rem; border: 1px solid var(--line); }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: .55rem .75rem; text-align: left; vertical-align: top; }
.entry-content th { background: #222A31; color: var(--lime); font-weight: 500; }
.entry-content img { display: block; height: auto; }
.entry-content figure { margin: 1.6em 0; max-width: 100%; }
.entry-content figcaption { margin-top: .4rem; font-size: .74rem; color: var(--muted); }
.entry-content hr { border: 0; border-top: 1px dashed var(--line); margin: 2em 0; }
.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; font-size: .78rem; }
.entry-tags a { color: var(--blue); }
.entry-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.entry-nav-link { display: block; padding: .8rem 1rem; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .84rem; line-height: 1.45; }
.entry-nav-link small { display: block; color: var(--muted); font-size: .7rem; margin-bottom: .2rem; }
.entry-nav-link:hover { border-color: var(--lime); color: var(--lime); }
.entry-nav-link--next { grid-column: 2; text-align: right; }

/* ---------- Пагинация ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin: 2.4rem 0 0;
    font-size: .84rem;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    padding: .4rem .7rem;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--text);
    text-decoration: none;
}
.pager a.page-numbers:hover { border-color: var(--lime); color: var(--lime); }
.pager .page-numbers.current { border-color: var(--lime); background: var(--lime); color: var(--ink); font-weight: 700; }
.pager .page-numbers.dots { border: 0; background: none; min-width: 0; color: var(--muted); }

/* ---------- Сайдбар ---------- */
.sidebar {
    min-width: 0;
    padding: 1.4rem 1.4rem .6rem;
    background: var(--aside);
    border: 1px solid var(--line);
    color: #C3CAD1;
    font-size: .84rem;
}
.sidebar .widget { margin-bottom: 1.6rem; }
.sidebar .widget-title {
    margin: 0 0 .9rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--line);
    font-family: var(--mono);
    font-size: .92rem;
    font-weight: 500;
    color: var(--lime);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .45rem 0; border-bottom: 1px dashed var(--line); line-height: 1.5; }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--text); text-decoration: none; }
.sidebar a:hover { color: var(--lime); }
.sidebar .post-date { display: block; color: var(--muted); font-size: .74rem; }
.sidebar p { color: #C3CAD1; }

/* ---------- Подвал ---------- */
.basement {
    margin-top: 1rem;
    padding: 3rem 0 1.8rem;
    background: var(--foot);
    border-top: 1px solid var(--line);
    color: #C3CAD1;
    font-size: .82rem;
}
.basement-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; }
.basement-col { min-width: 0; }
.basement .widget { margin-bottom: 1.2rem; }
.basement .widget-title {
    margin: 0 0 .8rem;
    font-family: var(--mono);
    font-weight: 500;
    font-size: 1rem;
    color: var(--text);
}
.basement p, .basement .textwidget { color: #AEB7C0; line-height: 1.65; }
.basement ul { list-style: none; margin: 0; padding: 0; }
.basement li { position: relative; padding: .18rem 0 .18rem 1rem; }
.basement li::before { content: "·"; position: absolute; left: 0; color: var(--lime); }
.basement a { color: var(--text); text-decoration: none; }
.basement a:hover { color: var(--lime); text-decoration: underline dashed; }
.basement-copy {
    margin: 2rem 0 0;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
    font-size: .76rem;
    color: var(--muted);
}

/* ---------- Поиск, 404, комментарии ---------- */
.search-form { display: flex; gap: .5rem; margin: 1.2rem 0; max-width: 520px; }
.search-field, .comments input[type="text"], .comments input[type="email"], .comments input[type="url"], .comments textarea {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: .55rem .75rem;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--ink);
    color: var(--text);
    font: 400 .86rem var(--mono);
}
.search-field::placeholder { color: var(--muted); }
.search-field:focus, .comments input:focus, .comments textarea:focus { border-color: var(--lime); outline: none; }
.empty-box { padding: 1.4rem; border: 1px dashed var(--line); }
.lost { padding: 2rem 0; }
.lost-code {
    margin: 0;
    font-family: var(--wide);
    font-size: clamp(4rem, 14vw, 9rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px var(--lime);
}
.lost-log { color: var(--amber); font-size: .9rem; }

.comments { margin-top: 2.4rem; }
.notes, .notes .children { list-style: none; margin: 0; padding: 0; }
.notes .children { padding-left: 1.6rem; border-left: 1px dashed var(--line); }
.note-body { margin: 0 0 1rem; padding: 1rem 1.2rem; background: var(--card); border: 1px solid var(--line); }
.note-head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: .5rem; }
.note-head img { display: block; border-radius: 0; }
.note-author { color: var(--lime); font-weight: 500; }
.note-wait { color: var(--amber); font-size: .8rem; }
.note-text { font-size: .88rem; }
.note-reply a { font-size: .76rem; }
.comment-respond { margin-top: 1.8rem; padding: 1.4rem 1.6rem; background: var(--card); border: 1px solid var(--line); }
.comment-reply-title { margin: 0 0 .8rem; font-family: var(--mono); font-size: 1.1rem; }
.comment-reply-title small { margin-left: .6rem; font-size: .76rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; margin-bottom: .3rem; font-size: .8rem; color: #C3CAD1; }
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; margin: 0; }
.form-note { font-size: .78rem; color: var(--muted); }
.req { color: var(--amber); }
.form-submit .submit {
    padding: .6em 1.2em;
    border: 1px solid var(--lime);
    background: transparent;
    color: var(--lime);
    font: 500 .86rem var(--mono);
    cursor: pointer;
}
.form-submit .submit:hover { background: var(--lime); color: var(--ink); }

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem; right: 1rem; bottom: 1rem;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.6rem;
    max-width: 900px;
    margin-inline: auto;
    padding: 1rem 1.4rem;
    background: var(--ink);
    border: 1px solid var(--lime);
    box-shadow: 4px 4px 0 rgba(182, 255, 60, .25);
    font-size: .8rem;
    line-height: 1.55;
}
.cookie-banner-text { margin: 0; color: #C3CAD1; }
.cookie-banner-mark { color: var(--lime); margin-right: .3rem; }
.cookie-banner-btn { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .masthead-in { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
    .topnav-list { flex-direction: row; flex-wrap: wrap; gap: .4rem 1.6rem; }
    .route-wrap { grid-template-columns: minmax(0, 1fr); }
    .route-cycle { flex-direction: row; flex-wrap: wrap; gap: .3rem .7rem; padding: 1rem 0 0; border-left: 0; border-top: 1px solid var(--line); justify-content: flex-start; text-align: left; }
    .route-cycle-num { font-size: 2.2rem; }
    .route-cycle-note { margin: 0; flex-basis: 100%; }
    .route-hint { display: none; }
    .vcs-grid { grid-template-columns: minmax(0, 1fr); }
    .vcs-terms { flex-direction: row; flex-wrap: wrap; gap: .5rem 1.2rem; }
    .vcs-term { width: auto; }
    .vcs-figure { margin: 0; }
    .cards--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .duo { grid-template-columns: minmax(0, 1fr); }
    .duo > .block:first-child { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .duo > .block:last-child { padding-left: 0; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 2rem; }
    .layout-single { width: 100%; }
    .basement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .route-line { display: none; }
    .route-stops { grid-template-columns: minmax(0, 1fr); gap: 0; padding-left: .3rem; }
    .route-stop {
        --dy: 0px;
        display: grid;
        grid-template-columns: 22px 28px minmax(0, 1fr);
        align-items: center;
        column-gap: .8rem;
        text-align: left;
        padding: .45rem 0;
        position: relative;
    }
    .route-stop::before {
        content: "";
        position: absolute;
        left: 7px; top: 0; bottom: 0;
        width: 2px;
        background: var(--blue);
    }
    .route-stop.is-done::before { background: var(--lime); }
    .route-stop--1::before { top: 50%; }
    .route-stop--8::before { bottom: 50%; }
    .route-dot { grid-column: 1; grid-row: 1; margin: 0; }
    .route-icon { grid-column: 2; grid-row: 1; width: 22px; height: 22px; }
    .route-label { grid-column: 3; grid-row: 1; margin: 0; }
}
@media (max-width: 600px) {
    body { font-size: 14px; }
    .masthead { padding-top: 1.4rem; }
    .brand-svg { width: 44px; height: 44px; }
    .topnav-toggle { display: inline-flex; }
    .topnav-list { display: none; flex-direction: column; margin-top: .8rem; }
    .topnav-list.is-open { display: flex; }
    .statusbar { margin-top: 1rem; }
    .block { padding: 2rem 0; }
    .mega { gap: .6rem; }
    .mega-text { padding-left: .7rem; border-left-width: 4px; }
    .cards--three, .cards--two { grid-template-columns: minmax(0, 1fr); }
    .console { padding: 1rem .8rem .8rem; }
    .gauge-body { height: 150px; gap: .3rem; }
    .gauge-bar { width: 20px; }
    .layers-img { width: 60%; margin-left: 18%; }
    .layers-tag { font-size: .72rem; }
    .layers-tag::before, .layers-tag::after { width: 12px; }
    .layers-list div { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .entry { padding: 1.2rem 1.1rem 1.4rem; }
    .entry-nav { grid-template-columns: minmax(0, 1fr); }
    .entry-nav-link--next { grid-column: 1; }
    .sidebar { padding: 1.1rem 1.1rem .4rem; }
    .basement-grid { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
    .cookie-banner { flex-direction: column; align-items: flex-start; padding: .9rem 1rem; left: .6rem; right: .6rem; bottom: .6rem; }
    .search-form { flex-direction: column; }
    .comment-respond { padding: 1.1rem 1rem; }
    .alignleft, .alignright { float: none; margin: 1em 0; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
