/*
Theme Name: dds_zelandiya.com
Theme URI: https://zelandiya.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: zeland
*/

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

/* ---------- Переменные ---------- */
:root {
    --bg: #0B1210;
    --bg-alt: #101A16;
    --bg-emerald: #123028;
    --bg-foot: #070D0B;
    --bg-aside: #0E1714;
    --bg-panel: #0D1613;
    --grid: #1E302A;
    --grid-strong: #243A33;
    --text: #E6F0E8;
    --muted: #7E958A;
    --lime: #C8FF4D;
    --amber: #FFB347;
    --line: #2A4A3E;
    --line-hi: #3E6A58;
    --frame: #8CC97A;
    --frame-glow: rgba(140, 201, 122, .22);
    --ink: #0B1210;
    --f-head: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    --f-body: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
    --f-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image:
        linear-gradient(var(--grid-strong) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px),
        linear-gradient(rgba(30, 48, 42, .55) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 48, 42, .55) 1px, transparent 1px);
    background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
    color: var(--text);
    font-family: var(--f-body);
    font-size: 1rem;
    line-height: 1.6;
    overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--lime); text-decoration: none; transition: color .15s ease; }
a:hover { color: #E4FF9E; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-weight: 500;
    line-height: 1.2;
    margin: 1.4em 0 .6em;
    color: var(--text);
    letter-spacing: .01em;
    hyphens: auto;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
.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;
    background: var(--lime); color: var(--ink); padding: .5rem 1rem;
    font-weight: 600;
}
.skip-link:focus { top: 1rem; color: var(--ink); }

/* ---------- Контейнер ---------- */
.shell { width: min(92%, 1180px); margin-inline: auto; }
.shell--front { width: min(92%, 1180px); }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4em;
    font-family: var(--f-head);
    font-size: 1.02rem;
    font-weight: 500;
    letter-spacing: .02em;
    line-height: 1.2;
    padding: .7em 1.35em;
    border: 1px solid var(--lime);
    border-radius: 0;
    cursor: pointer;
    text-align: center;
    position: relative;
    transition: background-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn--solid {
    background: var(--lime);
    color: var(--ink);
    box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--lime);
}
.btn--solid:hover { background: var(--ink); color: var(--lime); transform: translate(2px, -2px); }
.btn--line {
    background: transparent;
    color: var(--lime);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
}
.btn--line:hover { background: var(--lime); color: var(--ink); }

/* ---------- Шапка ---------- */
.masthead {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    position: relative;
}
.masthead-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    padding: 1.1rem 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text);
    flex: 1 1 320px;
    min-width: 0;
}
.brand:hover { color: var(--text); }
.brand-mark { flex: 0 0 auto; display: block; }
.brand-svg { width: 84px; height: auto; display: block; filter: drop-shadow(0 0 6px rgba(200, 255, 77, .25)); }
.brand-logo { max-height: 72px; width: auto; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
    font-family: var(--f-head);
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.brand-desc {
    margin-top: .35rem;
    font-size: .8rem;
    line-height: 1.45;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: transparent;
    border: 1px solid var(--line-hi);
    color: var(--text);
    font-family: var(--f-head);
    font-size: 1rem;
    padding: .55rem .9rem;
    cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 20px; 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: -6px; }
.nav-toggle-bars::after { top: 6px; }
.site-nav { display: none; width: 100%; }
.site-nav.is-open { display: block; }
.site-nav-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.site-nav-list li { border-bottom: 1px solid var(--line); }
.site-nav-list a {
    display: block;
    padding: .75rem 0;
    font-family: var(--f-head);
    font-size: 1.1rem;
    color: var(--text);
}
.site-nav-list a:hover,
.site-nav-list .current-menu-item > a,
.site-nav-list .current_page_item > a { color: var(--lime); }

/* ---------- Рамки-панели ---------- */
.frame {
    position: relative;
    border: 1px solid var(--frame);
    box-shadow: 0 0 8px var(--frame-glow), inset 0 0 18px rgba(140, 201, 122, .06);
    background: rgba(11, 18, 16, .55);
    padding: 1.6rem 1.3rem;
}
.frame-tick { position: absolute; top: 50%; width: 3px; height: 72px; margin-top: -36px; background: #9BE36F; box-shadow: 0 0 8px rgba(155, 227, 111, .6); }
.frame-tick--l { left: 10px; }
.frame-tick--r { right: 10px; }
.frame-corner { position: absolute; width: 26px; height: 26px; border-color: var(--line-hi); border-style: solid; border-width: 0; pointer-events: none; }
.frame-corner--tl { top: 10px; left: 10px; border-top-width: 1px; border-left-width: 1px; }
.frame-corner--tr { top: 10px; right: 10px; border-top-width: 1px; border-right-width: 1px; }
.frame-corner--bl { bottom: 10px; left: 10px; border-bottom-width: 1px; border-left-width: 1px; }
.frame-corner--br { bottom: 10px; right: 10px; border-bottom-width: 1px; border-right-width: 1px; }

/* ---------- Секции главной ---------- */
.fs { padding: 2.6rem 0; position: relative; }
.fs-title {
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    font-weight: 500;
    margin: 0 0 .5rem;
    letter-spacing: .015em;
}
.fs-lead { color: var(--muted); max-width: 62ch; margin: 0 0 1.4rem; }
.fs-lead--out { margin-bottom: 1.2rem; }

/* Блок 1 — план */
.fs-plan { padding-top: 2.2rem; }
.frame--plan { padding: 1.6rem 1.3rem 1.8rem; }
.plan-head { position: relative; z-index: 1; }
.plan-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
.plan-figure { position: relative; margin: 0; min-width: 0; }
.plan-figure img { width: 100%; height: auto; aspect-ratio: 1920 / 1030; }
.plan-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 30px; height: 30px;
    display: grid; place-items: center;
    border: 1px solid var(--amber);
    border-radius: 50%;
    background: rgba(11, 18, 16, .85);
    box-shadow: 0 0 0 4px rgba(255, 179, 71, .14), 0 0 12px rgba(255, 179, 71, .35);
}
.plan-pin b { font-family: var(--f-mono); font-size: .8rem; font-weight: 500; color: var(--amber); }
.plan-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; min-width: 0; }
.plan-legend li { display: flex; gap: .8rem; align-items: flex-start; padding-bottom: .9rem; border-bottom: 1px dashed var(--line); }
.plan-legend li:last-child { border-bottom: 0; padding-bottom: 0; }
.plan-legend-no {
    flex: 0 0 auto;
    width: 26px; height: 26px;
    display: grid; place-items: center;
    border: 1px solid var(--amber);
    color: var(--amber);
    font-family: var(--f-mono);
    font-size: .78rem;
    border-radius: 50%;
}
.plan-legend strong { display: block; font-family: var(--f-head); font-weight: 500; font-size: 1.08rem; color: var(--amber); letter-spacing: .02em; }
.plan-legend p { margin: .15rem 0 0; font-size: .87rem; color: var(--muted); line-height: 1.5; }

/* Блок 2 — разбор по частям */
.frame--parts { padding: 1.4rem 1.6rem; overflow: hidden; }
.chain { position: relative; padding: 2.4rem 0 2.3rem; }
.chain-img { width: 100%; height: auto; aspect-ratio: 2272 / 344; }
.chain-labels, .chain-badges { list-style: none; margin: 0; padding: 0; position: absolute; left: 0; right: 0; }
.chain-labels { top: 0; }
.chain-badges { bottom: 0; }
.chain-labels li, .chain-badges li { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.chain-labels li { font-family: var(--f-head); font-size: 1.25rem; color: var(--text); top: 0; }
.chain-badges li {
    bottom: 0;
    font-family: var(--f-mono);
    font-size: .78rem;
    color: var(--amber);
    border: 1px solid var(--amber);
    border-radius: 999px;
    padding: .05rem .6rem;
    background: rgba(11, 18, 16, .9);
}
.chain-notes {
    list-style: none;
    margin: 1.2rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .9rem;
}
.chain-notes li {
    border-left: 2px solid var(--line-hi);
    padding: .2rem 0 .2rem .9rem;
    min-width: 0;
}
.chain-notes span { font-family: var(--f-mono); font-size: .75rem; color: var(--amber); display: block; }
.chain-notes strong { font-family: var(--f-head); font-weight: 500; font-size: 1.08rem; display: block; }
.chain-notes p { margin: .2rem 0 0; font-size: .87rem; color: var(--muted); line-height: 1.5; }

/* Последние записи */
.fs-latest { background: rgba(16, 26, 22, .92); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fs-latest-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1.3rem; }
.fs-latest-head .fs-title { margin: 0; }
.fs-latest-all { font-family: var(--f-head); font-size: 1.05rem; }

/* Блок 3 — шкала комфорта */
.fs-scale {
    background-color: var(--bg-emerald);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 360' fill='none' stroke='%23C8FF4D' stroke-opacity='.09' stroke-width='3'%3E%3Cpath d='M20 20h560v320H20z'/%3E%3Cpath d='M20 20h360v320M380 120h200M470 120v70M470 230a60 60 0 0 1 60 60M120 60v240M200 140h120v120H200z'/%3E%3Cpath d='M60 40l40 40M60 320l40-40' stroke-dasharray='8 8'/%3E%3C/svg%3E"),
        linear-gradient(rgba(200, 255, 77, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 255, 77, .05) 1px, transparent 1px);
    background-repeat: no-repeat, repeat, repeat;
    background-position: right -60px center, 0 0, 0 0;
    background-size: min(720px, 90%) auto, 24px 24px, 24px 24px;
    border-top: 1px solid var(--line-hi);
    border-bottom: 1px solid var(--line-hi);
}
.fs-scale .fs-lead { color: #9FB7AA; }
.frame--scale { background: rgba(11, 18, 16, .78); padding: 2.2rem 1.4rem 1.6rem; }
.scale-tag {
    position: absolute; top: 12px;
    font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em;
    color: var(--amber);
    border: 1px solid rgba(255, 179, 71, .5);
    padding: .05rem .5rem;
    text-transform: uppercase;
}
.scale-tag--l { left: 12px; }
.scale-tag--r { right: 12px; color: var(--muted); border-color: var(--line-hi); }
.scale-arc { position: relative; max-width: 900px; margin: 1rem auto 0; padding-bottom: 3.4rem; }
.scale-arc-in { position: relative; }
.scale-arc img { width: 100%; height: auto; aspect-ratio: 1610 / 260; }
.scale-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 26px; height: 26px;
    display: grid; place-items: center;
    background: var(--lime);
    color: var(--ink);
    font-family: var(--f-mono);
    font-size: .75rem;
    font-weight: 500;
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--bg), 0 0 14px rgba(200, 255, 77, .7);
}
.scale-pin--amber { background: var(--amber); box-shadow: 0 0 0 3px var(--bg), 0 0 14px rgba(255, 179, 71, .7); }
.scale-unit {
    position: absolute; left: 50%; bottom: .2rem; transform: translateX(-50%);
    display: flex; align-items: center; gap: 1rem;
    font-family: var(--f-head); font-size: 2.2rem; color: #9BE36F; line-height: 1;
}
.scale-unit i {
    display: block; width: 54px; height: 10px;
    background: repeating-linear-gradient(115deg, var(--amber) 0 5px, transparent 5px 9px);
    opacity: .85;
}
.scale-unit i:last-child { background: repeating-linear-gradient(115deg, var(--amber) 0 5px, transparent 5px 9px); }
.scale-steps {
    list-style: none; margin: 1.6rem 0 0; padding: 0;
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem;
    counter-reset: none;
}
.scale-steps li {
    position: relative;
    border-top: 2px solid var(--line-hi);
    padding: .9rem .2rem 0;
    min-width: 0;
}
.scale-steps li:first-child, .scale-steps li:last-child { border-top-color: var(--amber); }
.scale-steps li:nth-child(2), .scale-steps li:nth-child(3), .scale-steps li:nth-child(4) { border-top-color: var(--lime); }
.scale-ico { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-hi); margin-bottom: .5rem; }
.scale-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--lime); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.scale-db { display: block; font-family: var(--f-mono); font-weight: 500; font-size: 1.3rem; color: var(--amber); line-height: 1.2; }
.scale-steps strong { display: block; font-family: var(--f-head); font-weight: 500; font-size: 1.1rem; margin-top: .15rem; }
.scale-steps p { margin: .25rem 0 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }

/* Блок 4 — каталог */
.fs-catalog { border-top: 4px solid var(--lime); box-shadow: inset 0 10px 24px -14px rgba(200, 255, 77, .45); }
.catalog-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.3rem; }
.catalog-col { border: 1px solid var(--frame); box-shadow: 0 0 8px var(--frame-glow); background: rgba(11, 18, 16, .7); min-width: 0; }
.catalog-head {
    margin: 0;
    padding: .65rem 1rem;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--lime);
    border-bottom: 1px solid var(--frame);
    letter-spacing: .02em;
}
.catalog-list { list-style: none; margin: 0; padding: 0; }
.catalog-list li {
    display: flex; align-items: center; justify-content: space-between; gap: .8rem;
    padding: .45rem .55rem .45rem 1rem;
    border-bottom: 1px solid var(--line);
    font-size: .86rem;
    line-height: 1.35;
}
.catalog-list li:last-child { border-bottom: 0; }
.catalog-list li:hover { background: rgba(200, 255, 77, .05); }
.catalog-name { min-width: 0; }
.catalog-icons { display: flex; gap: 5px; flex: 0 0 auto; }
.catalog-ico { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line); }
.catalog-ico svg { width: 16px; height: 16px; fill: none; stroke: var(--line-hi); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.catalog-ico.is-on { border-color: var(--line-hi); background: rgba(200, 255, 77, .06); }
.catalog-ico.is-on svg { stroke: var(--lime); }
.catalog-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 1.4rem; }
.catalog-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; color: var(--muted); font-size: .86rem; }
.catalog-legend li { display: flex; align-items: center; gap: .45rem; }

/* ---------- Карточки ---------- */
.cards--three .card:nth-child(n+4) { display: none; }
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    background: rgba(11, 18, 16, .88);
    border: 1px solid var(--frame);
    box-shadow: 0 0 8px var(--frame-glow);
    padding: 1rem 1rem 1.1rem;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
    transition: transform .15s ease, box-shadow .15s ease;
}
.card::after {
    content: "";
    position: absolute; right: -1px; bottom: -1px;
    width: 26px; height: 26px;
    background: linear-gradient(135deg, transparent calc(50% - 1px), var(--frame) calc(50% - 1px), var(--frame) calc(50% + 1px), transparent calc(50% + 1px));
    pointer-events: none;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 0 14px rgba(200, 255, 77, .3); }
.card-cross { position: absolute; top: 6px; left: 6px; width: 11px; height: 11px; pointer-events: none; }
.card-cross::before, .card-cross::after { content: ""; position: absolute; background: var(--lime); }
.card-cross::before { left: 5px; top: 0; width: 1px; height: 11px; }
.card-cross::after { top: 5px; left: 0; height: 1px; width: 11px; }
.card-title { font-size: 1.3rem; font-weight: 500; margin: .35rem 0 .8rem; line-height: 1.25; padding-left: .55rem; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--lime); }
.card-thumb { border: 1px solid var(--line-hi); background: var(--bg); overflow: hidden; }
.card-thumb a { display: block; }
.card-thumb img { width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; display: block; 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-top: .8rem; }
.card-excerpt { color: #B6C7BC; font-size: .9rem; line-height: 1.55; flex: 1; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem 1rem; margin-top: .6rem; }
.card-meta { display: flex; flex-direction: column; gap: .15rem; font-family: var(--f-mono); font-size: .74rem; color: var(--muted); min-width: 0; }
.card-cat { color: var(--amber); }
.card-more { font-size: .95rem; padding: .5em 1.1em; }

/* Список на внутренних страницах */
.cards--list { grid-template-columns: minmax(0, 1fr); }

/* ---------- Внутренние страницы ---------- */
.page-shell { padding: 1.6rem 0 3rem; }
.crumbs {
    font-family: var(--f-mono);
    font-size: .78rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
    padding: .55rem .9rem;
    border: 1px solid var(--line);
    background: rgba(11, 18, 16, .8);
    display: inline-block;
    max-width: 100%;
}
.crumbs a { color: var(--lime); }
.crumbs-sep { color: var(--line-hi); margin: 0 .2rem; }
.crumbs span:last-child { color: var(--text); }
.layout { display: block; }
.content-area { min-width: 0; }
.page-head { margin-bottom: 1.6rem; }
.page-title { margin: 0 0 .5rem; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-intro { color: var(--muted); }

.sheet {
    background: rgba(11, 18, 16, .9);
    border: 1px solid var(--line-hi);
    padding: 1.6rem 1.3rem;
    position: relative;
}
.sheet::before {
    content: ""; position: absolute; top: 8px; left: 8px; width: 12px; height: 12px;
    background:
        linear-gradient(var(--lime), var(--lime)) center / 1px 100% no-repeat,
        linear-gradient(var(--lime), var(--lime)) center / 100% 1px no-repeat;
}
.sheet-head { margin-bottom: 1.2rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--line-hi); }
.sheet-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }
.sheet-cat { color: var(--amber); }
.sheet-cover { margin: 0 0 1.4rem; border: 1px solid var(--line-hi); }
.sheet-cover img { width: 100%; }
.sheet-tags { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.sheet-tags a { display: inline-block; font-family: var(--f-mono); font-size: .8rem; border: 1px solid var(--line-hi); padding: .2rem .6rem; }
.sheet-tags a:hover { border-color: var(--lime); }
.sheet-nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 1.6rem; }
.sheet-nav a { display: block; border: 1px solid var(--line); padding: .9rem 1.1rem; color: var(--text); background: rgba(11, 18, 16, .85); }
.sheet-nav a:hover { border-color: var(--lime); }
.sheet-nav span { display: block; font-family: var(--f-mono); font-size: .75rem; color: var(--lime); margin-bottom: .2rem; }
.sheet-nav-next { text-align: right; }

/* Типографика записи */
.entry { font-size: 1.04rem; line-height: 1.75; hyphens: auto; }
.entry > *:first-child { margin-top: 0; }
.entry h2 { padding-left: .8rem; border-left: 3px solid var(--lime); }
.entry h3 { color: var(--lime); }
.entry a { text-decoration: underline; text-decoration-color: rgba(200, 255, 77, .45); text-underline-offset: 3px; }
.entry a:hover { text-decoration-color: var(--lime); }
.entry ul { list-style: none; padding-left: 1.3em; }
.entry ul li { position: relative; margin-bottom: .4em; }
.entry ul li::before { content: ""; position: absolute; left: -1.1em; top: .72em; width: 7px; height: 7px; border: 1px solid var(--lime); }
.entry ol li { margin-bottom: .4em; }
.entry ol li::marker { color: var(--amber); font-family: var(--f-mono); }
.entry blockquote {
    margin: 1.5em 0;
    padding: 1.1rem 1.4rem;
    border: 1px solid var(--line-hi);
    border-left: 4px solid var(--amber);
    background: rgba(18, 48, 40, .55);
    font-family: var(--f-head);
    font-size: 1.2rem;
    line-height: 1.5;
}
.entry blockquote p:last-child { margin-bottom: 0; }
.entry table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .92rem; border: 1px solid var(--line-hi); }
.entry .wp-block-table { overflow-x: auto; }
.entry th, .entry td { border: 1px solid var(--line-hi); padding: .55rem .75rem; text-align: left; vertical-align: top; }
.entry th { background: rgba(200, 255, 77, .08); color: var(--lime); font-family: var(--f-head); font-weight: 500; }
.entry tr:nth-child(even) td { background: rgba(255, 255, 255, .02); }
.entry img { border: 1px solid var(--line); }
.entry figure { margin: 1.5em 0; }
.entry figcaption, .wp-element-caption { font-family: var(--f-mono); font-size: .78rem; color: var(--muted); margin-top: .4rem; }
.entry code { font-family: var(--f-mono); font-size: .88em; background: rgba(200, 255, 77, .08); padding: .1em .35em; color: var(--lime); }
.entry pre { font-family: var(--f-mono); background: var(--bg-foot); border: 1px solid var(--line); padding: 1rem; overflow-x: auto; font-size: .88rem; }
.entry pre code { background: none; padding: 0; color: var(--text); }
.entry hr { border: 0; border-top: 1px dashed var(--line-hi); 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; }

/* ---------- Пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 2rem; align-items: center; }
.pager .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 42px; height: 42px; padding: 0 .8rem;
    border: 1px solid var(--line-hi);
    font-family: var(--f-mono); font-size: .88rem;
    color: var(--text);
    background: rgba(11, 18, 16, .85);
}
.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(--ink); font-weight: 500; }
.pager .page-numbers.dots { border-color: transparent; background: none; color: var(--muted); }

/* ---------- Сайдбар и виджеты ---------- */
.sidebar { min-width: 0; margin-top: 2.4rem; }
.sidebar .widget {
    background: var(--bg-aside);
    border: 1px solid var(--line-hi);
    padding: 1.2rem 1.2rem 1rem;
    margin-bottom: 1.4rem;
    color: #CFDCD3;
    position: relative;
}
.sidebar .widget::before { content: ""; position: absolute; top: -1px; left: -1px; width: 42px; height: 3px; background: var(--lime); }
.sidebar .widget-title { margin: 0 0 .8rem; font-size: 1.2rem; color: var(--text); }
.sidebar .widget a { color: var(--text); }
.sidebar .widget a:hover { color: var(--lime); }
.sidebar .widget ul { list-style: none; padding: 0; margin: 0; }
.sidebar .widget li { padding: .5rem 0; border-bottom: 1px dashed var(--line); font-size: .93rem; line-height: 1.45; }
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget .post-date { display: block; font-family: var(--f-mono); font-size: .74rem; color: var(--muted); }
.widget select { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line-hi); padding: .5rem; }

/* ---------- Поиск ---------- */
.search-form { display: flex; flex-wrap: wrap; gap: .5rem; max-width: 560px; }
.search-field {
    flex: 1 1 220px; min-width: 0;
    background: var(--bg-foot); color: var(--text);
    border: 1px solid var(--line-hi);
    padding: .7rem .9rem;
    font: inherit;
    border-radius: 0;
}
.search-field::placeholder { color: var(--muted); }
.search-field:focus { border-color: var(--lime); outline: none; }
.empty-note { color: var(--muted); font-family: var(--f-mono); font-size: .9rem; }
.empty-block { border: 1px dashed var(--line-hi); padding: 1.4rem 1.3rem; }

/* ---------- 404 ---------- */
.lost {
    position: relative;
    border: 1px solid var(--frame);
    box-shadow: 0 0 8px var(--frame-glow);
    background: rgba(11, 18, 16, .88);
    padding: 2.6rem 1.4rem;
    text-align: left;
    max-width: 860px;
    margin: 0 auto;
}
.lost-code { font-family: var(--f-mono); font-size: clamp(4rem, 14vw, 8rem); line-height: 1; color: var(--lime); margin: 0 0 .5rem; text-shadow: 0 0 22px rgba(200, 255, 77, .4); }
.lost p { color: #B6C7BC; max-width: 56ch; }
.lost .search-form { margin: 1.4rem 0; }

/* ---------- Комментарии ---------- */
.talk { margin-top: 2.2rem; border: 1px solid var(--line); background: rgba(11, 18, 16, .9); padding: 1.5rem 1.3rem; }
.talk-title, .comment-reply-title { font-size: 1.4rem; margin: 0 0 1rem; }
.talk-list, .talk-list .children { list-style: none; margin: 0; padding: 0; }
.talk-list .children { margin-left: 1.2rem; padding-left: 1rem; border-left: 1px dashed var(--line-hi); }
.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-head img { border: 1px solid var(--line-hi); }
.note-author { font-family: var(--f-head); font-weight: 500; font-size: 1.05rem; }
.note-date { font-family: var(--f-mono); font-size: .75rem; color: var(--muted); }
.note-wait { color: var(--amber); font-size: .88rem; }
.note-text { font-size: .95rem; }
.note-reply a { font-family: var(--f-mono); font-size: .8rem; }
.comment-respond { margin-top: 1.4rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-family: var(--f-mono); font-size: .8rem; color: var(--muted); margin-bottom: .3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; background: var(--bg-foot); color: var(--text);
    border: 1px solid var(--line-hi); padding: .65rem .8rem; font: inherit; border-radius: 0;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--lime); outline: none; }
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; margin: 0; }
.comment-notes, .logged-in-as, .must-log-in { font-size: .85rem; color: var(--muted); }
.talk-closed { color: var(--muted); }

/* ---------- Подвал ---------- */
.colophon {
    background: var(--bg-foot);
    border-top: 2px solid #9BE36F;
    box-shadow: 0 -4px 16px -6px rgba(155, 227, 111, .45);
    margin-top: 0;
    padding: 2.6rem 0 1.6rem;
    position: relative;
    color: #B9C9BE;
}
.colophon-rail span {
    position: absolute; top: -2px; width: 48px; height: 7px;
    background: #9BE36F;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 15% 100%);
}
.colophon-rail span:first-child { left: 8%; }
.colophon-rail span:last-child { right: 8%; }
.colophon-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
.colophon-col { min-width: 0; }
.colophon .widget { margin-bottom: 1rem; color: #B9C9BE; font-size: .9rem; line-height: 1.6; }
.colophon .widget-title { margin: 0 0 .7rem; font-size: 1.15rem; color: var(--text); }
.colophon .widget a { color: #D4E2D8; }
.colophon .widget a:hover { color: var(--lime); }
.colophon .widget ul { list-style: none; margin: 0; padding: 0; }
.colophon .widget li { padding: .3rem 0; }
.colophon .widget li a::before { content: "› "; color: var(--lime); }
.colophon-col--plate .widget {
    position: relative;
    border: 1px solid var(--line-hi);
    padding: 1.4rem 1.2rem 1.1rem;
    margin-top: 10px;
    background: rgba(18, 48, 40, .25);
}
.colophon-col--plate .widget::before {
    content: "";
    position: absolute; top: -9px; left: -1px;
    width: 72px; height: 9px;
    background: #2E6E78;
    clip-path: polygon(0 0, 82% 0, 100% 100%, 0 100%);
}
.colophon-col--plate .widget-title { color: var(--lime); }
.colophon-copy {
    margin: 2rem 0 0;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: .82rem;
    color: var(--muted);
}

/* ---------- Cookie-баннер ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 1rem; right: 1rem; bottom: 1rem;
    z-index: 90;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .8rem 1.4rem;
    padding: 1rem 1.2rem;
    background: rgba(7, 13, 11, .97);
    border: 1px solid var(--frame);
    box-shadow: 0 0 18px rgba(140, 201, 122, .3);
    max-width: 880px;
    margin-inline: auto;
}
.cookie-banner-text { margin: 0; flex: 1 1 280px; font-size: .88rem; color: #CFDCD3; }
.cookie-banner-btn { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (min-width: 600px) {
    .frame { padding: 1.8rem 2rem; }
    .frame--plan { padding: 1.8rem 2.2rem 2rem; }
    .frame--parts { padding: 1.6rem 2.4rem; }
    .frame--scale { padding: 2.4rem 2.2rem 1.8rem; }
    .chain-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .scale-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cards--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cards--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .colophon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sheet { padding: 2.2rem 2.2rem; }
    .talk { padding: 1.8rem 2rem; }
    .sheet-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lost { padding: 3rem 2.6rem; }
    .brand-desc { -webkit-line-clamp: 3; }
}

@media (min-width: 960px) {
    .shell--front { width: min(85%, 1180px); }
    .fs { padding: 3.2rem 0; }
    .nav-toggle { display: none; }
    .site-nav { display: block; width: auto; flex: 0 1 auto; }
    .site-nav-list { display: flex; flex-wrap: wrap; gap: .4rem 1.9rem; border: 0; }
    .site-nav-list li { border: 0; }
    .site-nav-list a { padding: .3rem 0; font-size: 1.1rem; border-bottom: 1px solid transparent; }
    .site-nav-list a:hover { border-bottom-color: rgba(200, 255, 77, .5); }
    .site-nav-list .current-menu-item > a,
    .site-nav-list .current_page_item > a { border-bottom-color: var(--lime); }
    .brand-svg { width: 132px; }
    .brand-name { font-size: 1.35rem; }
    .plan-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); align-items: center; gap: 2rem; }
    .chain-notes { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .scale-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .cards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .colophon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.6rem; }
    .layout--aside { display: grid; grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); column-gap: 6%; align-items: start; }
    .layout--aside .sidebar { margin-top: 0; }
    .layout--wide .content-area { width: 85%; margin-left: auto; margin-right: auto; }
    .layout--aside .cards--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .layout--wide .cards--list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
    .chain-labels li { font-size: .95rem; }
}

@media (max-width: 600px) {
    .fs { padding: 2rem 0; }
    .frame { padding: 1.4rem 1rem; }
    .frame--scale { padding: 2.6rem 1rem 1.4rem; }
    .frame-tick { display: none; }
    .chain { padding: 0; }
    .chain-labels, .chain-badges { display: none; }
    .scale-pin { width: 20px; height: 20px; font-size: .62rem; }
    .scale-unit { font-size: 1.6rem; }
    .scale-unit i { width: 34px; }
    .scale-arc { padding-bottom: 2.6rem; }
    .plan-pin { width: 22px; height: 22px; }
    .plan-pin b { font-size: .66rem; }
    .brand-svg { width: 64px; }
    .brand-name { font-size: 1.05rem; }
    .cookie-banner { left: .5rem; right: .5rem; bottom: .5rem; padding: .9rem 1rem; }
    .sheet { padding: 1.4rem 1rem; }
    .talk { padding: 1.3rem 1rem; }
    .lost { padding: 2rem 1.1rem; }
    .colophon-col--plate .widget { padding: 1.3rem 1rem 1rem; }
    .alignleft, .alignright { float: none; margin: 1em 0; }
}

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