/*
Theme Name: dds_wss8.ru
Theme URI: https://wss8.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: sobrano
*/

/* ---------- Шрифты ---------- */
@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: 600; font-display: swap; src: url("fonts/roboto-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: "Roboto Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/roboto-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+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: italic; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-cyrillic-400-italic.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: italic; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-italic.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: "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+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-style: normal; 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-style: normal; 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; }

/* ---------- Переменные ---------- */
:root {
    --c-bg: #1B2026;
    --c-grid: #2C343D;
    --c-head: #1F252B;
    --c-blue: #14304A;
    --c-green: #123A32;
    --c-ink: #101418;
    --c-panel: #20262C;
    --c-panel-2: #252C33;
    --c-foot: #0E1216;
    --c-text: #F2EFE6;
    --c-muted: #8C97A3;
    --c-accent: #FF6B2C;
    --c-accent-dark: #E5551A;
    --c-cyan: #4FD1E8;
    --c-line: #3A4450;
    --f-head: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    --f-body: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
    --f-mono: "JetBrains Mono", "Consolas", "Courier New", monospace;
    --gap: clamp(1rem, 2.4vw, 2rem);
}

/* ---------- Сброс и база ---------- */
*, *::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;
    font-family: var(--f-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--c-text);
    background-color: var(--c-bg);
    background-image:
        linear-gradient(var(--c-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--c-grid) 1px, transparent 1px),
        linear-gradient(rgba(44, 52, 61, .45) 1px, transparent 1px),
        linear-gradient(90deg, rgba(44, 52, 61, .45) 1px, transparent 1px);
    background-size: 60px 60px, 60px 60px, 12px 12px, 12px 12px;
    background-position: -1px -1px;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 {
    margin: 1.4em 0 .55em;
    font-family: var(--f-head);
    font-weight: 500;
    line-height: 1.2;
    color: var(--c-text);
}
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.15rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4 { font-size: 1.15rem; }
p, li, dd, dt, h1, h2, h3, h4, td, th, blockquote, figcaption { overflow-wrap: break-word; hyphens: auto; }
a {
    color: var(--c-cyan);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
    transition: color .15s, text-decoration-color .15s;
}
a:hover { color: var(--c-accent); }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
::selection { background: var(--c-accent); color: var(--c-foot); }

.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: -4rem;
    z-index: 100;
    padding: .6rem 1rem;
    background: var(--c-accent);
    color: var(--c-foot);
    font-weight: 600;
    text-decoration: none;
}
.skip:focus { top: 1rem; color: var(--c-foot); }

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

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4em;
    padding: .62rem 1.25rem;
    font-family: var(--f-head);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: .03em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, background-color .15s, color .15s;
}
.btn--fill { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-foot); }
.btn--fill:hover { background: var(--c-accent); color: var(--c-foot); transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--c-cyan); }
.btn--ghost { background: transparent; border-color: var(--c-cyan); color: var(--c-cyan); }
.btn--ghost:hover { background: var(--c-cyan); color: var(--c-foot); }

/* ---------- Шапка ---------- */
.topbar {
    position: relative;
    z-index: 20;
    background: var(--c-head);
    border-bottom: 1px solid var(--c-line);
}
.topbar-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.35rem 0;
}
.brand {
    display: flex;
    align-items: flex-start;
    gap: .95rem;
    min-width: 0;
    color: var(--c-text);
    text-decoration: none;
}
.brand:hover { color: var(--c-text); }
.brand-mark { flex: 0 0 auto; display: block; width: 52px; }
.brand-cube, .brand-logo { display: block; width: 52px; height: auto; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
    font-family: var(--f-head);
    font-size: clamp(1.25rem, 2.3vw, 1.7rem);
    font-weight: 500;
    line-height: 1.15;
}
.brand-desc {
    max-width: 30rem;
    margin-top: .35rem;
    font-size: .9rem;
    line-height: 1.4;
    color: var(--c-muted);
}
.topnav-list {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.topnav-list a {
    position: relative;
    display: block;
    padding: .35rem 0;
    font-family: var(--f-head);
    font-size: 1.02rem;
    color: var(--c-text);
    text-decoration: none;
}
.topnav-list a::after {
    content: "";
    position: absolute;
    left: 0; right: 100%; bottom: 0;
    height: 2px;
    background: var(--c-accent);
    transition: right .2s;
}
.topnav-list a:hover::after,
.topnav-list .current-menu-item > a::after,
.topnav-list .current_page_item > a::after { right: 0; }
.topnav-list a:hover { color: var(--c-text); }
.menu-toggle { display: none; }

/* ---------- Заголовки секций ---------- */
.layer { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.layer-head {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: .7rem;
    margin: 0 0 1.6rem;
    padding-top: 1rem;
}
.layer-head::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 52px;
    height: 4px;
    background: var(--c-accent);
}
.layer-no {
    flex: 0 0 auto;
    font-family: var(--f-mono);
    font-size: .95rem;
    font-weight: 500;
    color: var(--c-accent);
}
.layer-title {
    margin: 0;
    min-width: 0;
    font-size: clamp(1.5rem, 2.9vw, 2.25rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.layer-lead {
    max-width: 44rem;
    margin: -.6rem 0 1.4rem;
    color: #C9CED3;
}

/* Плашки-листы */
.plate {
    position: relative;
    padding: clamp(1.6rem, 3.4vw, 2.6rem) clamp(1.3rem, 3.4vw, 2.8rem);
    border: 1px solid var(--c-line);
}
.plate::before,
.plate::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid var(--c-cyan);
    pointer-events: none;
}
.plate::before { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.plate::after { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.plate--blue { background: var(--c-blue); }
.plate--ink { background: var(--c-ink); }
.front .layer--scheme { padding-bottom: 0; }
.front .layer--parts { padding-top: 0; }
.front .layer--scheme .plate { border-bottom: 0; }

/* ---------- 01 Схема сборки ---------- */
.scheme { position: relative; }
.scheme-count {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: baseline;
    gap: .35em;
    padding-top: .9rem;
    font-family: var(--f-head);
    font-weight: 500;
    line-height: .95;
    text-transform: uppercase;
    color: var(--c-text);
}
.scheme-count::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 52%;
    height: 7px;
    background: var(--c-accent);
}
.scheme-count-num,
.scheme-count-word { font-size: clamp(2.6rem, 6vw, 4rem); letter-spacing: .02em; }
.scheme-figure {
    position: relative;
    margin: 0;
    padding-top: 1.5rem;
}
.scheme-figure img,
.parts-figure img {
    width: 100%;
    height: auto;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%);
    mask-composite: intersect;
}
.scheme-canvas { position: relative; }
.scheme-tags { margin: 0; padding: 0; list-style: none; }
.scheme-tag {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .4rem;
    font-family: var(--f-head);
    font-size: clamp(.82rem, 1.45vw, 1.05rem);
    line-height: 1;
    white-space: nowrap;
    color: var(--c-text);
}
.scheme-tag-no {
    display: inline-grid;
    place-items: center;
    width: 1.45em;
    height: 1.45em;
    font-family: var(--f-mono);
    font-size: .78em;
    color: var(--c-foot);
    background: var(--c-cyan);
}
.scheme-tag--1 { left: 5.2%; top: 53%; }
.scheme-tag--2 { left: 20.6%; top: 65%; }
.scheme-tag--3 { left: 42%; top: 77.5%; }
.scheme-tag--4 { left: 55.6%; top: 85.5%; }

/* ---------- 02 Разбор страницы ---------- */
.parts {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
}
.parts-figure { position: relative; margin: 0; min-width: 0; }
.parts-mark,
.parts-dim {
    position: absolute;
    transform: translate(-50%, -50%);
    font-family: var(--f-mono);
    line-height: 1;
    pointer-events: none;
}
.parts-mark { font-size: clamp(.62rem, 1.1vw, .82rem); font-weight: 500; color: var(--c-cyan); }
.parts-dim { font-size: clamp(.5rem, .85vw, .66rem); color: var(--c-muted); padding: 0 .3em; background: var(--c-ink); }
.parts-dim--top { left: 50%; top: 9.8%; }
.parts-dim--bottom { left: 50%; top: 96%; }
.parts-mark--t1 { left: 27.4%; top: 4.2%; }
.parts-mark--t2 { left: 39%; top: 4.2%; }
.parts-mark--t3 { left: 81.2%; top: 4.2%; }
.parts-mark--r1 { left: 96.4%; top: 21.5%; }
.parts-mark--r2 { left: 96.4%; top: 41%; }
.parts-mark--r3 { left: 96.4%; top: 51.5%; }
.parts-mark--r4 { left: 96.4%; top: 70%; }
.parts-mark--r5 { left: 96.4%; top: 85.5%; }
.parts-list { margin: 0; padding: 0; list-style: none; min-width: 0; }
.parts-list li {
    display: flex;
    gap: 1rem;
    padding: .85rem 0;
    border-bottom: 1px solid #222A31;
}
.parts-list li:last-child { border-bottom: 0; }
.parts-list-no {
    flex: 0 0 2.4rem;
    font-family: var(--f-head);
    font-size: 1.6rem;
    line-height: 1.1;
    color: var(--c-cyan);
}
.parts-list-body { min-width: 0; }
.parts-list h3 { margin: 0 0 .2rem; font-size: clamp(1.15rem, 1.9vw, 1.4rem); font-weight: 400; }
.parts-list p { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--c-muted); }

/* ---------- Записи ---------- */
.layer--posts {
    background-color: #20262C;
    background-image: repeating-linear-gradient(135deg, rgba(58, 68, 80, .5) 0 1px, transparent 1px 9px);
    border-top: 1px solid var(--c-line);
    border-bottom: 1px solid var(--c-line);
}
.front .layer--posts { margin-top: clamp(.5rem, 2vw, 1.5rem); }
.front .cards > .card:nth-child(n+4) { display: none; }
.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    padding: .8rem;
    background: var(--c-panel);
    border: 1px solid var(--c-cyan);
    transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--c-accent); }
.card-stamp {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    padding: .2rem .45rem;
    font-family: var(--f-mono);
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--c-foot);
    background: var(--c-cyan);
}
.card-thumb {
    display: block;
    overflow: hidden;
    background: #2B3138;
    border: 1px solid var(--c-line);
}
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    transition: transform .3s;
}
.card:hover .card-thumb img { transform: scale(1.04); }
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: .9rem .2rem .2rem;
}
.card-title {
    margin: 0 0 .45rem;
    font-size: clamp(1.15rem, 1.6vw, 1.3rem);
    font-weight: 500;
    line-height: 1.25;
}
.card-title a { color: var(--c-text); text-decoration: none; }
.card-title a:hover { color: var(--c-accent); }
.card-excerpt { flex: 1; font-size: .9rem; line-height: 1.5; color: #C4CAD0; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt a { color: var(--c-cyan); }
.card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    margin-top: .6rem;
}
.card-date { font-family: var(--f-mono); font-size: .8rem; color: var(--c-muted); }
.card-more { padding: .5rem 1rem; font-size: .95rem; }
.cards--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.layout-single .cards--list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.posts-more { margin: 2rem 0 0; text-align: center; }
.empty-note {
    padding: 1.3rem 1.5rem;
    color: var(--c-muted);
    background: var(--c-panel);
    border: 1px dashed var(--c-line);
}

/* ---------- 04 Проверка ---------- */
.layer--check { background: var(--c-green); }
.check {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
}
.check-main { min-width: 0; }
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    padding: .55rem 0;
}
.check-box {
    position: relative;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    margin-top: .1rem;
    border: 2px solid #C9D2CE;
}
.is-done .check-box::after {
    content: "";
    position: absolute;
    left: 5px;
    top: -9px;
    width: 12px;
    height: 24px;
    border-right: 4px solid var(--c-accent);
    border-bottom: 4px solid var(--c-accent);
    transform: rotate(40deg);
}
.check-text { min-width: 0; color: #D5DCD8; }
.check-text strong {
    font-family: var(--f-head);
    font-size: clamp(1.15rem, 1.9vw, 1.4rem);
    font-weight: 400;
    color: var(--c-text);
}
.check-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--f-head);
    line-height: 1;
    color: var(--c-text);
}
.check-count-num { font-size: clamp(6rem, 14vw, 10rem); font-weight: 500; line-height: .85; }
.check-count-word { margin-top: .4rem; font-size: clamp(1.2rem, 2vw, 1.55rem); }

/* ---------- 05 Словарь ---------- */
.layer--terms { background: #1F2429; }
.terms {
    display: grid;
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}
.terms-head { margin: 0; }
.terms-table { margin: 0; border-top: 1px solid var(--c-line); }
.terms-row {
    display: grid;
    grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr);
    border-bottom: 1px solid var(--c-line);
}
.terms-row dt,
.terms-row dd { margin: 0; padding: .75rem 1rem; }
.terms-row dt {
    font-family: var(--f-head);
    font-size: 1.08rem;
    color: var(--c-text);
    border-right: 1px solid var(--c-line);
}
.terms-row dd { font-size: .93rem; color: #C4CAD0; }

/* ---------- Подвал ---------- */
.basement {
    padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.6rem;
    color: #C4CAD0;
    background: var(--c-foot);
    border-top: 1px solid var(--c-line);
}
.basement-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.basement-col {
    min-width: 0;
    padding: 0 clamp(1rem, 3vw, 2.5rem);
    border-left: 1px solid var(--c-grid);
}
.basement-col:first-child { padding-left: 0; border-left: 0; }
.basement .widget { margin: 0 0 1.4rem; color: #C4CAD0; font-size: .92rem; }
.basement .widget-title {
    margin: 0 0 .7rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--c-text);
}
.basement .widget p { color: #C4CAD0; }
.basement .widget a { color: #D9DEE2; text-decoration: none; }
.basement .widget a:hover { color: var(--c-accent); text-decoration: underline; }
.basement .widget ul { margin: 0; padding: 0; list-style: none; }
.basement .widget li { padding: .18rem 0; }
.basement-copy {
    margin: 1.4rem 0 0;
    padding-top: 1.2rem;
    font-size: .85rem;
    text-align: center;
    color: var(--c-muted);
    border-top: 1px solid var(--c-grid);
}

/* ---------- Внутренние страницы ---------- */
.inner { padding: 1.6rem 0 clamp(3rem, 6vw, 4.5rem); }
.crumbs {
    margin: 0 0 1.6rem;
    font-family: var(--f-mono);
    font-size: .8rem;
    line-height: 1.6;
    color: var(--c-muted);
}
.crumbs a { color: var(--c-cyan); text-decoration: none; }
.crumbs a:hover { color: var(--c-accent); text-decoration: underline; }
.crumbs-sep { margin: 0 .25rem; color: var(--c-accent); }
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 6%;
    align-items: start;
}
.layout-single { display: block; }
.content-area { min-width: 0; }
.page-head {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .7rem;
    margin-bottom: 1.8rem;
    padding-top: 1rem;
}
.page-head::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 52px;
    height: 4px;
    background: var(--c-accent);
}
.page-title {
    margin: 0;
    min-width: 0;
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.page-desc { flex-basis: 100%; color: var(--c-muted); }
.page-intro { margin-bottom: 1.8rem; }
.search-again { margin-bottom: 1.8rem; }

.entry {
    padding: clamp(1.4rem, 3.4vw, 2.6rem);
    background: var(--c-panel);
    border: 1px solid var(--c-line);
}
.entry-head { position: relative; margin-bottom: 1.6rem; padding-top: 1rem; }
.entry-head::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 52px;
    height: 4px;
    background: var(--c-accent);
}
.entry-head .page-title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); text-transform: none; letter-spacing: .01em; }
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .7rem;
    font-family: var(--f-mono);
    font-size: .8rem;
    color: var(--c-muted);
}
.entry-meta a { color: var(--c-cyan); text-decoration: none; }
.entry-meta-sep { color: var(--c-accent); }
.entry-cover { margin: 0 0 1.8rem; border: 1px solid var(--c-line); }
.entry-cover img { width: 100%; height: auto; }
.entry-content { font-size: 1.03rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 {
    padding-left: .9rem;
    border-left: 4px solid var(--c-accent);
}
.entry-content h3 { color: #E6E2D8; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.entry-content li { margin-bottom: .35em; }
.entry-content ul { list-style: none; padding-left: 1.4em; }
.entry-content ul > li { position: relative; }
.entry-content ul > li::before {
    content: "";
    position: absolute;
    left: -1.1em;
    top: .62em;
    width: 7px;
    height: 7px;
    background: var(--c-accent);
}
.entry-content ol > li::marker { font-family: var(--f-mono); color: var(--c-cyan); }
.entry-content blockquote {
    margin: 1.6em 0;
    padding: 1.2rem 1.5rem;
    font-family: var(--f-head);
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--c-text);
    background: var(--c-blue);
    border-left: 4px solid var(--c-accent);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: .6rem; font-family: var(--f-mono); font-size: .8rem; font-style: normal; color: var(--c-muted); }
.entry-content table {
    width: 100%;
    margin: 1.5em 0;
    border-collapse: collapse;
    font-size: .93rem;
    border: 1px solid var(--c-line);
}
.entry-content th, .entry-content td {
    padding: .6rem .8rem;
    text-align: left;
    vertical-align: top;
    border: 1px solid var(--c-line);
}
.entry-content th { font-family: var(--f-head); font-weight: 500; background: var(--c-ink); color: var(--c-text); }
.entry-content .wp-block-table { overflow-x: auto; margin: 1.5em 0; }
.entry-content code, .entry-content pre { font-family: var(--f-mono); font-size: .88em; }
.entry-content code { padding: .1em .35em; background: var(--c-ink); color: var(--c-cyan); }
.entry-content pre {
    overflow-x: auto;
    padding: 1rem 1.2rem;
    background: var(--c-ink);
    border: 1px solid var(--c-line);
}
.entry-content pre code { padding: 0; background: none; }
.entry-content img { height: auto; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption, .wp-caption-text { margin-top: .5rem; font-size: .85rem; color: var(--c-muted); }
.entry-content hr { height: 0; margin: 2em 0; border: 0; border-top: 1px dashed var(--c-line); }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.entry-pages { margin-top: 1.5rem; font-family: var(--f-mono); }
.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 1.8rem 0 0;
    padding: 0;
    list-style: none;
}
.entry-tags a {
    display: block;
    padding: .25rem .6rem;
    font-family: var(--f-mono);
    font-size: .8rem;
    color: var(--c-cyan);
    text-decoration: none;
    border: 1px solid var(--c-line);
}
.entry-tags a:hover { color: var(--c-foot); background: var(--c-cyan); border-color: var(--c-cyan); }
.entry-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
.entry-nav-link {
    display: block;
    padding: 1rem 1.2rem;
    font-family: var(--f-head);
    font-size: 1.05rem;
    line-height: 1.3;
    color: var(--c-text);
    text-decoration: none;
    background: var(--c-panel);
    border: 1px solid var(--c-line);
    transition: border-color .15s;
}
.entry-nav-link span { display: block; margin-bottom: .3rem; font-family: var(--f-mono); font-size: .75rem; color: var(--c-accent); }
.entry-nav-link:hover { color: var(--c-text); border-color: var(--c-cyan); }
.entry-nav-link--next { grid-column: 2; text-align: right; }

/* ---------- Сайдбар ---------- */
.sidebar {
    min-width: 0;
    padding: 1.5rem 1.4rem;
    color: #C4CAD0;
    background: #161B20;
    border: 1px solid var(--c-line);
    border-top: 4px solid var(--c-cyan);
}
.sidebar .widget { margin: 0 0 1.8rem; font-size: .93rem; color: #C4CAD0; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    margin: 0 0 .9rem;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--c-text);
}
.sidebar .widget ul { margin: 0; padding: 0; list-style: none; }
.sidebar .widget li {
    position: relative;
    padding: .55rem 0 .55rem 1.1rem;
    border-bottom: 1px solid #262D34;
}
.sidebar .widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05rem;
    width: 6px;
    height: 6px;
    background: var(--c-accent);
}
.sidebar .widget a { color: #E3E6E9; text-decoration: none; }
.sidebar .widget a:hover { color: var(--c-accent); text-decoration: underline; }
.sidebar .widget .post-date { display: block; font-family: var(--f-mono); font-size: .75rem; color: var(--c-muted); }
.sidebar .widget p { color: #C4CAD0; }

/* ---------- Пагинация ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: 2.2rem;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    padding: .45rem .8rem;
    font-family: var(--f-mono);
    font-size: .88rem;
    line-height: 1.2;
    color: var(--c-text);
    text-decoration: none;
    background: var(--c-panel);
    border: 1px solid var(--c-line);
    transition: border-color .15s, background-color .15s, color .15s;
}
.pager a.page-numbers:hover { color: var(--c-cyan); border-color: var(--c-cyan); }
.pager .page-numbers.current { color: var(--c-foot); background: var(--c-accent); border-color: var(--c-accent); }
.pager .page-numbers.dots { background: none; border-color: transparent; color: var(--c-muted); }

/* ---------- Поиск ---------- */
.finder { display: flex; max-width: 34rem; }
.finder-field {
    flex: 1;
    min-width: 0;
    padding: .7rem .9rem;
    font: inherit;
    color: var(--c-text);
    background: var(--c-ink);
    border: 1px solid var(--c-line);
    border-right: 0;
    border-radius: 0;
}
.finder-field::placeholder { color: var(--c-muted); }
.finder-field:focus { outline: none; border-color: var(--c-cyan); }
.finder-btn {
    padding: .7rem 1.2rem;
    font-family: var(--f-head);
    font-size: 1rem;
    color: var(--c-foot);
    background: var(--c-accent);
    border: 0;
    border-radius: 0;
    cursor: pointer;
}
.finder-btn:hover { background: var(--c-cyan); }

/* ---------- 404 ---------- */
.lost {
    position: relative;
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1.4rem, 4vw, 3rem);
    background: var(--c-blue);
    border: 1px solid var(--c-line);
}
.lost-code {
    display: block;
    font-family: var(--f-head);
    font-size: clamp(5rem, 15vw, 9rem);
    font-weight: 500;
    line-height: .9;
    color: transparent;
    -webkit-text-stroke: 2px var(--c-accent);
}
.lost .page-title { margin: 1rem 0; }
.lost-text { max-width: 38rem; color: #C9CED3; }
.lost-search { margin: 1.5rem 0; }

/* ---------- Комментарии ---------- */
.notes {
    margin-top: 2rem;
    padding: clamp(1.4rem, 3vw, 2.2rem);
    background: var(--c-panel);
    border: 1px solid var(--c-line);
}
.notes-title { margin: 0 0 1.2rem; font-size: 1.4rem; text-transform: uppercase; letter-spacing: .04em; }
.notes-list, .notes-list .children { margin: 0; padding: 0; list-style: none; }
.notes-list .children { margin-left: clamp(1rem, 3vw, 2rem); }
.note-body { padding: 1rem 0; border-bottom: 1px solid var(--c-line); }
.note-head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.note-avatar { border: 1px solid var(--c-line); }
.note-author { font-family: var(--f-head); font-size: 1.05rem; }
.note-date { font-family: var(--f-mono); font-size: .75rem; color: var(--c-muted); }
.note-wait { font-size: .85rem; color: var(--c-accent); }
.note-text p { margin-bottom: .6em; }
.note-reply a { font-family: var(--f-mono); font-size: .8rem; color: var(--c-cyan); }
.notes-closed { color: var(--c-muted); }
.comment-respond { margin-top: 1.4rem; }
.comment-reply-title { margin: 0 0 .8rem; font-size: 1.3rem; }
.comment-reply-title small { margin-left: .6rem; font-family: var(--f-mono); font-size: .8rem; }
.comment-notes, .logged-in-as, .must-log-in { font-size: .88rem; color: var(--c-muted); }
.comment-form label { display: block; margin-bottom: .3rem; font-family: var(--f-head); font-size: .95rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .65rem .8rem;
    font: inherit;
    color: var(--c-text);
    background: var(--c-ink);
    border: 1px solid var(--c-line);
    border-radius: 0;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--c-cyan); }
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent label { font-family: var(--f-body); font-size: .85rem; color: var(--c-muted); }
.comment-form .submit {
    padding: .65rem 1.4rem;
    font-family: var(--f-head);
    font-size: 1rem;
    color: var(--c-foot);
    background: var(--c-accent);
    border: 0;
    border-radius: 0;
    cursor: pointer;
}
.comment-form .submit:hover { background: var(--c-cyan); }
.comments-navigation, .comment-navigation { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0; font-family: var(--f-mono); font-size: .85rem; }

/* ---------- Cookie-баннер ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding: 1rem 0;
    background: var(--c-foot);
    border-top: 3px solid var(--c-accent);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, .45);
}
.cookie-banner-in {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: min(85%, 1180px);
    margin-inline: auto;
    padding: 0 .2rem;
}
.cookie-banner-tag {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 1.8rem;
    height: 1.8rem;
    font-family: var(--f-mono);
    font-weight: 500;
    color: var(--c-foot);
    background: var(--c-cyan);
}
.cookie-banner-text { flex: 1; min-width: 0; margin: 0; font-size: .88rem; line-height: 1.5; color: #C4CAD0; }
.cookie-banner-btn {
    flex: 0 0 auto;
    padding: .6rem 1.4rem;
    font-family: var(--f-head);
    font-size: 1rem;
    color: var(--c-foot);
    background: var(--c-accent);
    border: 0;
    border-radius: 0;
    cursor: pointer;
}
.cookie-banner-btn:hover { background: var(--c-cyan); }

/* ---------- WordPress ---------- */
.sticky .card-stamp { background: var(--c-accent); }
.bypostauthor > .note-body .note-author { color: var(--c-accent); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.wp-block-image img { height: auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .shell { width: 92%; }
    .cookie-banner-in { width: 92%; }
    .topbar-in { flex-wrap: wrap; }
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: .55rem;
        padding: .5rem .8rem;
        font-family: var(--f-head);
        font-size: 1rem;
        color: var(--c-text);
        background: transparent;
        border: 1px solid var(--c-line);
        border-radius: 0;
        cursor: pointer;
    }
    .menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
        display: block;
        width: 18px;
        height: 2px;
        background: var(--c-accent);
    }
    .menu-toggle-bars { position: relative; }
    .menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
    .menu-toggle-bars::before { top: -6px; }
    .menu-toggle-bars::after { top: 6px; }
    .topnav { display: none; flex-basis: 100%; }
    .topnav.is-open { display: block; }
    .topnav-list { flex-direction: column; gap: 0; border-top: 1px solid var(--c-line); }
    .topnav-list a { padding: .7rem 0; border-bottom: 1px solid var(--c-grid); }
    .topnav-list a::after { display: none; }
    .parts { grid-template-columns: minmax(0, 1fr); }
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .layout-single .cards--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .layout-with-sidebar { display: block; }
    .layout-with-sidebar .sidebar { margin-top: 2.5rem; }
    .terms { grid-template-columns: minmax(0, 1fr); }
    .basement-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 0; }
    .basement-col:nth-child(3) { padding-left: 0; border-left: 0; }
}

@media (max-width: 600px) {
    body { font-size: .97rem; }
    .brand-mark, .brand-cube, .brand-logo { width: 42px; }
    .brand-desc { font-size: .82rem; }
    .layer { padding: 2.2rem 0; }
    .plate { padding: 1.5rem 1.2rem; }
    .scheme-count { position: static; margin-bottom: .5rem; }
    .scheme-count::before { left: 0; right: auto; width: 40%; height: 5px; }
    .scheme-figure { padding-top: 0; }
    .scheme-tags {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .6rem;
        margin-top: 1rem;
    }
    .scheme-tag { position: static; white-space: normal; }
    .parts-mark { font-size: .55rem; }
    .parts-dim { display: none; }
    .parts-list-no { flex-basis: 2rem; font-size: 1.35rem; }
    .cards, .cards--list, .layout-single .cards--list { grid-template-columns: minmax(0, 1fr); }
    .check { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .check-count { flex-direction: row; align-items: baseline; gap: .6rem; }
    .check-count-num { font-size: 5rem; }
    .terms-row { grid-template-columns: minmax(0, 1fr); }
    .terms-row dt { padding-bottom: .2rem; border-right: 0; }
    .terms-row dd { padding-top: 0; }
    .basement-cols { grid-template-columns: minmax(0, 1fr); }
    .basement-col, .basement-col:nth-child(3) { padding: 0; border-left: 0; }
    .entry { padding: 1.3rem 1.1rem; }
    .entry-nav { grid-template-columns: minmax(0, 1fr); }
    .entry-nav-link--next { grid-column: auto; }
    .cookie-banner-in { flex-wrap: wrap; }
    .cookie-banner-tag { display: none; }
    .cookie-banner-btn { width: 100%; }
    .finder-btn { padding: .7rem .9rem; }
    .alignleft, .alignright { float: none; margin: 1em 0; }
}
