/*
Theme Name: dds_beyondtechskills.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: btskill
*/

/* ---------- Шрифты ---------- */
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/oswald-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/oswald-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/oswald-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: "Oswald"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/oswald-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: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/oswald-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/oswald-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+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: 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: #0E1A24;
    --grid: #1E3346;
    --band: #13232F;
    --paper: #E8E4D8;
    --sheet: #F1EEE5;
    --head: #0A131B;
    --rule: #3E6E8E;
    --text: #E6EDF2;
    --mute: #7C93A3;
    --ink: #16222C;
    --ink-mute: #5C6E78;
    --orange: #FF6B2C;
    --orange-ink: #B9440E;
    --blue: #4FB3D9;
    --blue-ink: #2A6F94;
    --plate: #10202B;
    --plate-line: #2C5A78;
    --f-head: "Oswald", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
    --f-text: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
    --f-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

/* Элементы, скрываемые через атрибут hidden */
.cookie-banner[hidden] { display: none !important; }
.site-nav[hidden] { display: none !important; }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--f-text);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px),
        linear-gradient(rgba(30, 51, 70, .4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 51, 70, .4) 1px, transparent 1px);
    background-size: 64px 64px, 64px 64px, 16px 16px, 16px 16px;
    overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color .15s; }
a:hover { color: var(--orange); }
:focus-visible { outline: 2px dashed var(--orange); outline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-head); font-weight: 600; line-height: 1.15; margin: 1.6em 0 .6em; letter-spacing: .02em; hyphens: auto; }
h1, h2, h3, p, li, td, th, figcaption, blockquote { overflow-wrap: break-word; hyphens: auto; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--orange); color: var(--head); padding: .5rem 1rem; font-weight: 600; }
.skip:focus { top: 1rem; }

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

/* ---------- Кнопки ---------- */
.bt-btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .62rem 1.3rem;
    border: 3px solid var(--orange);
    border-radius: 0;
    background: transparent;
    color: var(--orange);
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 1.02rem;
    letter-spacing: .03em;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, color .15s, transform .15s, box-shadow .15s;
}
.bt-btn .arr { display: inline-block; transition: transform .15s; }
.bt-btn:hover, .bt-btn:focus-visible { background: var(--orange); color: var(--head); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--blue); }
.bt-btn:hover .arr { transform: translateX(4px); }
.bt-btn-sm { padding: .38rem .9rem; font-size: .92rem; border-width: 2px; }
.is-paper .bt-btn, .card .bt-btn { border-color: var(--orange-ink); color: var(--orange-ink); }
.is-paper .bt-btn:hover, .card .bt-btn:hover { background: var(--orange-ink); color: #fff; box-shadow: 4px 4px 0 var(--blue-ink); }

/* ---------- Шапка ---------- */
.topbar { background: var(--head); border-bottom: 2px solid var(--rule); position: relative; z-index: 20; }
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.1rem 0; }
.brand { display: flex; align-items: center; gap: 1.1rem; color: inherit; text-decoration: none; min-width: 0; }
.brand:hover { color: inherit; }
.brand-mark { flex: 0 0 auto; display: block; width: 72px; height: 72px; }
.brand-svg, .brand-logo { display: block; width: 72px; height: 72px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; min-width: 0; max-width: 560px; }
.brand-name { font-family: var(--f-head); font-weight: 600; font-size: 1.28rem; line-height: 1.2; text-transform: uppercase; letter-spacing: .05em; color: var(--blue); }
.brand-desc { margin-top: .3rem; font-size: .8rem; line-height: 1.4; color: var(--mute); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.brand:hover .brand-name { color: var(--orange); }

.nav-toggle { display: none; align-items: center; gap: .6rem; background: transparent; border: 2px solid var(--rule); color: var(--text); padding: .5rem .8rem; font-family: var(--f-head); font-size: 1rem; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: var(--orange); 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; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 2.2rem; }
.nav-list a { display: inline-block; padding: .35rem 0; color: var(--text); text-decoration: none; font-family: var(--f-head); font-weight: 500; font-size: 1.08rem; letter-spacing: .03em; border-bottom: 3px solid transparent; }
.nav-list a:hover { color: var(--blue); border-bottom-color: var(--blue); }
.nav-list .current-menu-item > a, .nav-list .current_page_item > a { color: var(--text); border-bottom-color: var(--orange); }

/* ---------- Размерная линия у заголовков ---------- */
.side-rule { position: relative; padding-left: 3.2rem; min-width: 0; }
.side-rule::before {
    content: "";
    position: absolute;
    left: .75rem; top: 0; bottom: 0;
    border-left: 1px solid var(--blue);
}
.side-rule::after {
    content: "";
    position: absolute;
    left: .1rem; top: 0; bottom: 0;
    width: 1.3rem;
    background:
        linear-gradient(var(--blue), var(--blue)) top / 100% 1px no-repeat,
        linear-gradient(var(--blue), var(--blue)) bottom / 100% 1px no-repeat,
        linear-gradient(var(--blue), var(--blue)) center / 40% 1px no-repeat;
}
.is-paper .side-rule::before { border-color: var(--blue-ink); }
.is-paper .side-rule::after {
    background:
        linear-gradient(var(--blue-ink), var(--blue-ink)) top / 100% 1px no-repeat,
        linear-gradient(var(--blue-ink), var(--blue-ink)) bottom / 100% 1px no-repeat,
        linear-gradient(var(--blue-ink), var(--blue-ink)) center / 40% 1px no-repeat;
}
.kicker { display: block; font-family: var(--f-head); font-weight: 500; font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.is-paper .kicker { color: var(--ink-mute); }
.sec-title { margin: .2rem 0 0; font-family: var(--f-head); font-weight: 600; font-size: clamp(1.8rem, 2.7vw, 2.75rem); line-height: 1.08; text-transform: uppercase; letter-spacing: .035em; hyphens: manual; overflow-wrap: normal; word-break: normal; color: var(--text); }
.is-paper .sec-title { color: var(--ink); }

/* ---------- Секции главной ---------- */
.fs { position: relative; }
.is-paper {
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        linear-gradient(rgba(42, 111, 148, .12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(42, 111, 148, .12) 1px, transparent 1px);
    background-size: 48px 48px;
    border-top: 2px solid var(--blue-ink);
}
.is-paper a:not(.bt-btn) { color: var(--blue-ink); }
.is-paper a:not(.bt-btn):hover { color: var(--orange-ink); }

/* Блок 1: ввод + разбор узла */
.lead-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 3rem; align-items: center; padding: 3.2rem 0 3.4rem; }
.lead-text { padding-top: .4rem; padding-bottom: .4rem; }
.lead-title { margin: .4rem 0 1.2rem; font-weight: 600; font-size: clamp(2.1rem, 3.9vw, 3.6rem); hyphens: manual; overflow-wrap: normal; line-height: 1.06; text-transform: uppercase; letter-spacing: .04em; color: var(--text); }
.lead-sub { max-width: 34rem; font-size: 1.14rem; color: var(--text); opacity: .92; margin-bottom: 1.8rem; }
.lead-figure { margin: 0; min-width: 0; }
.lead-figure img, .site-figure img {
    display: block; width: 100%;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 58%, transparent 98%);
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 58%, transparent 98%);
}
.node-band { background: var(--band); border-top: 1px solid var(--rule); }
.node { display: grid; grid-template-columns: minmax(0, 270px) minmax(0, 1fr); gap: 2.5rem; padding: 2.4rem 0 0; }
.node-head { padding-bottom: 2.4rem; }
.node-note { margin-top: 1.1rem; font-size: .93rem; color: var(--mute); max-width: 17rem; }
.node-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr) minmax(0, 1fr); align-items: stretch; min-width: 0; }
.node-figure { margin: 0; align-self: end; min-width: 0; }
.node-figure img { display: block; width: 100%; aspect-ratio: 1000 / 644; object-fit: cover; }
.node-tags { position: relative; list-style: none; margin: 0; padding: 0; min-width: 0; }
.node-tags li {
    position: absolute; left: 0; right: 0;
    transform: translateY(-50%);
    display: flex; align-items: center; gap: .6rem;
    font-family: var(--f-head); font-weight: 500; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase;
    color: var(--blue); line-height: 1.2;
}
.node-tags-l li { justify-content: flex-end; text-align: right; }
.node-tags-l li::after, .node-tags-r li::before { content: ""; flex: 0 0 18%; border-top: 1px solid var(--blue); }
.node-tags-r li { justify-content: flex-start; }
.node-tags-r li::before { background: none; }
.node-tags li:hover { color: var(--orange); }

/* Блок 2: справочник материалов */
.fs-mat { padding: 3.2rem 0; }
.mat-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 2.6rem; align-items: stretch; }
.mat-grid .side-rule { padding-top: 1.6rem; padding-bottom: 1.6rem; }
.mat-note { margin-top: 1.2rem; font-size: .88rem; color: var(--ink-mute); max-width: 17rem; }
.ref-frame { position: relative; border: 2px solid var(--blue-ink); padding: 2.7rem 0 0; background: rgba(241, 238, 229, .55); min-width: 0; }
.ref-stamp { position: absolute; top: 0; right: 0; padding: .3rem 1rem; border-left: 2px solid var(--blue-ink); border-bottom: 2px solid var(--blue-ink); font-family: var(--f-head); font-weight: 600; font-size: 1.1rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-ink); }
.ref-table { width: 100%; border-collapse: collapse; border: 0; font-family: var(--f-head); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }
.ref-table thead th { font-family: var(--f-mono); font-weight: 500; font-size: .72rem; letter-spacing: .08em; color: var(--ink-mute); text-align: left; padding: .4rem 1.4rem; border-top: 1px solid var(--blue-ink); border-bottom: 1px solid var(--blue-ink); }
.ref-table td { text-transform: none; }
.ref-table tbody th, .ref-table td { padding: .55rem 1.4rem; border-bottom: 1px solid var(--blue-ink); text-align: left; font-size: 1.02rem; font-weight: 500; vertical-align: middle; }
.ref-table tbody tr:last-child th, .ref-table tbody tr:last-child td { border-bottom: 0; }
.ref-table th + th, .ref-table th + td, .ref-table td + td { border-left: 1px solid var(--blue-ink); }
.ref-table td:nth-child(4), .ref-table th:nth-child(4) { border-left-color: transparent; }
.ref-table tbody th { width: 26%; }
.ref-icon { width: 23%; text-align: center; }
.ref-icon img { display: block; width: 96px; height: 52px; object-fit: contain; margin: 0 auto; transition: transform .2s; }
.ref-table tbody tr:hover { background: rgba(255, 107, 44, .08); }
.ref-table tbody tr:hover .ref-icon img { transform: scale(1.1) rotate(-3deg); }

/* Последние записи */
.fs-posts { padding: 3rem 0 3.4rem; }
.posts-head { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.6rem; }
.posts-mark { flex: 0 0 auto; color: var(--blue-ink); }
.posts-more { margin: 2.2rem 0 0; text-align: right; }
.empty { color: var(--mute); }
.is-paper .empty { color: var(--ink-mute); }

/* Карточки — чертёжные листы */
.cards { display: grid; gap: 1.8rem; }
.cards-stagger { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.cards-stagger .card:nth-child(2) { margin-top: 1.6rem; }
.cards-stagger .card:nth-child(3) { margin-top: .8rem; }
.cards-list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--sheet);
    border: 1px solid var(--blue-ink);
    box-shadow: inset 0 0 0 4px var(--sheet), inset 0 0 0 5px rgba(42, 111, 148, .35);
    color: var(--ink);
    overflow: hidden;
    min-width: 0;
    transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: inset 0 0 0 4px var(--sheet), inset 0 0 0 5px rgba(42, 111, 148, .35), 6px 6px 0 var(--orange); }
.card-stamp {
    position: absolute; top: 0; right: 0; z-index: 2;
    padding: .25rem .7rem;
    background: var(--sheet);
    border-left: 1px solid var(--blue-ink); border-bottom: 1px solid var(--blue-ink);
    font-family: var(--f-mono); font-size: .76rem; color: var(--ink-mute);
}
.card-thumb { display: block; margin: 1rem 1rem 0; border: 1px solid rgba(42, 111, 148, .45); background: #E5E6D8; }
.card-thumb img { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 1rem 1.2rem 1.3rem; min-width: 0; }
.card-pin { align-self: flex-start; margin-bottom: .5rem; padding: .1rem .5rem; background: var(--orange-ink); color: #fff; font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.card-title { hyphens: manual; margin: 0 0 .55rem; font-size: 1.22rem; line-height: 1.2; text-transform: uppercase; letter-spacing: .03em; }
.card-title a { color: var(--ink) !important; text-decoration: none; }
.card-title a:hover { color: var(--orange-ink) !important; }
.card-excerpt { flex: 1; font-size: .92rem; line-height: 1.5; color: var(--ink-mute); }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-excerpt a { color: var(--blue-ink); }
.card-more { align-self: flex-start; margin-top: .9rem; }

/* Блок 3: цифровая площадка */
.fs-site { padding: 3.2rem 0; border-top: 2px solid var(--blue-ink); }
.site-grid { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 2.4rem; align-items: stretch; }
.site-grid .side-rule { padding-top: 1rem; padding-bottom: 1rem; }
.site-note { margin-top: 1.1rem; font-size: .93rem; color: var(--mute); max-width: 16rem; }
.site-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; align-items: center; min-width: 0; }
.site-figure { margin: 0; min-width: 0; }
.site-col { display: flex; flex-direction: column; gap: 3.2rem; min-width: 0; }
.plate {
    display: flex; gap: .85rem; align-items: flex-start;
    padding: .95rem 1rem;
    background: var(--plate);
    border: 1px solid var(--plate-line);
    box-shadow: inset 0 0 0 3px var(--plate), inset 0 0 0 4px rgba(79, 179, 217, .18);
    transition: border-color .15s, transform .15s;
}
.plate:hover { border-color: var(--orange); transform: translateY(-3px); }
.plate svg { flex: 0 0 40px; color: var(--blue); display: block; }
.plate b { display: block; font-family: var(--f-head); font-weight: 600; font-size: 1.05rem; line-height: 1.15; letter-spacing: .05em; text-transform: uppercase; color: var(--blue); }
.plate span { display: block; margin-top: .3rem; font-size: .8rem; line-height: 1.4; color: var(--mute); }

/* Блок 4: хроника */
.fs-chron { padding: 3rem 0 3.4rem; }
.chron-grid { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 2.6rem; align-items: stretch; }
.chron-grid .side-rule { padding-top: .4rem; padding-bottom: .4rem; }
.chron { min-width: 0; padding-top: .6rem; }
.chron-dims { position: relative; height: 1.4rem; margin: 0 2% 1.2rem; border-bottom: 1px solid var(--blue-ink); }
.chron-dims::before, .chron-dims::after { content: ""; position: absolute; bottom: -7px; width: 1px; height: 14px; background: var(--blue-ink); }
.chron-dims::before { left: 0; }
.chron-dims::after { right: 0; }
.chron-dims span { position: absolute; left: 0; right: 0; bottom: -5px; height: 10px; background: repeating-linear-gradient(90deg, var(--blue-ink) 0 1px, transparent 1px 20%); }
.chron-line { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; }
.chron-line::before { content: ""; position: absolute; left: 0; right: 14px; top: 8px; height: 4px; background: var(--orange-ink); }
.chron-line::after { content: ""; position: absolute; right: 0; top: 1px; border-left: 16px solid var(--orange-ink); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.chron-line li { position: relative; text-align: center; min-width: 0; padding-top: 1.9rem; }
.chron-dot { position: absolute; top: 0; left: 50%; width: 20px; height: 20px; margin-left: -10px; border: 4px solid var(--orange-ink); border-radius: 50%; background: var(--paper); z-index: 1; transition: background .15s; }
.chron-line li:hover .chron-dot { background: var(--orange-ink); }
.chron-year { display: block; font-family: var(--f-head); font-weight: 600; font-size: 1.45rem; line-height: 1.1; color: var(--ink); }
.chron-event { hyphens: manual; display: block; margin-top: .3rem; font-family: var(--f-head); font-weight: 500; font-size: .9rem; line-height: 1.25; letter-spacing: .03em; text-transform: uppercase; color: var(--ink); }

/* ---------- Внутренние страницы ---------- */
.inner { padding: 1.6rem 0 3.6rem; }
.crumbs { margin-bottom: 1.8rem; padding: .55rem .9rem; border: 1px solid var(--plate-line); background: rgba(10, 19, 27, .7); font-family: var(--f-mono); font-size: .8rem; color: var(--mute); }
.crumbs a { color: var(--blue); text-decoration: none; }
.crumbs a:hover { color: var(--orange); }
.crumbs .sep { color: var(--orange); margin: 0 .35rem; }
.layout-single { display: block; }
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); gap: 6%; align-items: start; }
.content-area { min-width: 0; }
.page-head { margin-bottom: 2rem; padding-top: .3rem; padding-bottom: .3rem; }
.page-head .sec-title { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.page-intro { margin-top: 1rem; color: var(--mute); }
.cards-list .card { height: 100%; }

.sheet { position: relative; background: var(--sheet); color: var(--ink); border: 1px solid var(--blue-ink); padding: 2.4rem 2.6rem 2.6rem; box-shadow: inset 0 0 0 6px var(--sheet), inset 0 0 0 7px rgba(42, 111, 148, .3); }
.sheet::after { content: "ЛИСТ"; position: absolute; right: 0; bottom: 0; padding: .2rem .8rem; border-left: 1px solid var(--blue-ink); border-top: 1px solid var(--blue-ink); font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; color: var(--ink-mute); }
.sheet-head { margin-bottom: 1.6rem; padding-bottom: 1rem; border-bottom: 2px solid var(--blue-ink); }
.sheet-title { margin: 0 0 .7rem; font-size: clamp(1.8rem, 3.2vw, 2.6rem); text-transform: uppercase; letter-spacing: .03em; color: var(--ink); }
.sheet-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; font-family: var(--f-mono); font-size: .8rem; color: var(--ink-mute); }
.sheet-cats a { margin-right: .6rem; color: var(--blue-ink); }
.sheet-cover { margin: 0 0 1.6rem; }
.sheet-cover img { display: block; width: 100%; border: 1px solid rgba(42, 111, 148, .4); }
.sheet-tags { margin-top: 2rem; font-family: var(--f-mono); font-size: .82rem; }
.sheet-tags a { margin-right: .8rem; color: var(--blue-ink); }
.sheet a { color: var(--blue-ink); }
.sheet a:hover { color: var(--orange-ink); }

.entry { font-size: 1.05rem; }
.entry > *:first-child { margin-top: 0; }
.entry h2 { font-size: 1.75rem; text-transform: uppercase; color: var(--ink); padding-left: .9rem; border-left: 4px solid var(--orange-ink); }
.entry h3 { font-size: 1.35rem; color: var(--blue-ink); }
.entry h4, .entry h5, .entry h6 { font-size: 1.12rem; color: var(--ink); }
.entry ul, .entry ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.entry li { margin-bottom: .35em; }
.entry ul li::marker { color: var(--orange-ink); }
.entry img { display: block; border: 1px solid rgba(42, 111, 148, .35); }
.entry figure { margin: 1.6em 0; }
.entry figcaption, .wp-caption-text { margin-top: .4rem; font-family: var(--f-mono); font-size: .78rem; color: var(--ink-mute); }
.entry blockquote { margin: 1.6em 0; padding: 1.1rem 1.4rem; background: var(--band); color: var(--text); border-left: 5px solid var(--orange); font-size: 1.08rem; }
.entry blockquote p:last-child { margin-bottom: 0; }
.entry blockquote cite { display: block; margin-top: .5rem; font-size: .85rem; color: var(--mute); font-style: normal; }
.entry table { width: 100%; border-collapse: collapse; margin: 1.6em 0; border: 2px solid var(--blue-ink); font-size: .95rem; }
.entry th, .entry td { border: 1px solid var(--blue-ink); padding: .55rem .75rem; text-align: left; vertical-align: top; }
.entry th { background: rgba(42, 111, 148, .12); font-family: var(--f-head); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.entry pre, .entry code { font-family: var(--f-mono); font-size: .88rem; }
.entry pre { overflow-x: auto; padding: 1rem; background: var(--head); color: var(--text); }
.entry hr { border: 0; border-top: 1px dashed var(--blue-ink); margin: 2em 0; }
.alignleft { float: left; margin: .3rem 1.4rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.4rem; }
.aligncenter { margin-left: auto; margin-right: auto; }

/* Пагинация */
.pager { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.4rem; }
.pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem; padding: .45rem .8rem; border: 2px solid var(--plate-line); background: var(--plate); color: var(--text); font-family: var(--f-head); font-weight: 500; text-decoration: none; }
.pager a.page-numbers:hover { border-color: var(--orange); color: var(--orange); }
.pager .page-numbers.current { border-color: var(--orange); background: var(--orange); color: var(--head); }
.pager .page-numbers.dots { border-color: transparent; background: none; }

/* Сайдбар и виджеты */
.sidebar { min-width: 0; background: var(--band); border: 1px solid var(--plate-line); padding: 1.5rem 1.4rem; color: var(--text); }
.sidebar .wdg + .wdg { margin-top: 2rem; }
.wdg-title { margin: 0 0 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--rule); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text); }
.sidebar .wdg-title::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: .6rem; background: var(--orange); vertical-align: middle; }
.wdg ul { list-style: none; margin: 0; padding: 0; }
.sidebar .wdg li { padding: .55rem 0; border-bottom: 1px dashed var(--plate-line); line-height: 1.4; }
.sidebar .wdg li:last-child { border-bottom: 0; }
.sidebar .wdg a { color: var(--blue); text-decoration: none; }
.sidebar .wdg a:hover { color: var(--orange); }
.sidebar .wdg, .sidebar .wdg p { color: var(--text); }
.sidebar .post-date { display: block; font-size: .78rem; color: var(--mute); }
.wdg .search-form { margin: 0; }

/* Поиск */
.search-form { display: flex; gap: 0; margin: 1.4rem 0; max-width: 560px; }
.search-field { flex: 1; min-width: 0; padding: .7rem .9rem; border: 2px solid var(--plate-line); border-right: 0; background: var(--head); color: var(--text); font: inherit; border-radius: 0; }
.search-field::placeholder { color: var(--mute); }
.search-field:focus { outline: none; border-color: var(--blue); }
.search-submit { padding: .7rem 1.2rem; border: 2px solid var(--orange); background: var(--orange); color: var(--head); font-family: var(--f-head); font-weight: 600; font-size: 1rem; cursor: pointer; border-radius: 0; }
.search-submit:hover { background: transparent; color: var(--orange); }
.empty-box { padding: 1.4rem; border: 1px dashed var(--plate-line); }

/* 404 */
.nf { position: relative; padding: 2rem 0; }
.nf-code { display: block; font-family: var(--f-head); font-weight: 700; font-size: clamp(6rem, 18vw, 12rem); line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--blue); letter-spacing: .06em; }
.nf .sec-title { margin-bottom: 1rem; }
.nf p { max-width: 38rem; color: var(--mute); }

/* Комментарии */
.talk { margin-top: 2.6rem; padding: 2rem 2.2rem; background: var(--band); border: 1px solid var(--plate-line); }
.talk-title, .comment-reply-title { margin: 0 0 1.2rem; font-size: 1.4rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text); }
.comment-reply-title small { margin-left: .8rem; font-size: .85rem; text-transform: none; }
.talk-list, .talk-list .children { list-style: none; margin: 0; padding: 0; }
.talk-list .children { margin-left: 1.6rem; padding-left: 1rem; border-left: 1px dashed var(--plate-line); }
.note-body { padding: 1rem 0; border-bottom: 1px solid var(--plate-line); }
.note-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin-bottom: .5rem; font-size: .85rem; color: var(--mute); }
.note-avatar { display: block; border: 1px solid var(--plate-line); }
.note-author { font-family: var(--f-head); font-weight: 600; font-size: 1rem; color: var(--text); }
.note-wait { color: var(--orange); font-size: .88rem; }
.note-text p { margin-bottom: .6em; }
.note-reply a { font-family: var(--f-head); font-size: .9rem; color: var(--orange); }
.comment-respond { margin-top: 1.6rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; margin-bottom: .3rem; font-family: var(--f-head); font-size: .95rem; letter-spacing: .03em; color: var(--text); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: .65rem .8rem; border: 2px solid var(--plate-line); background: var(--head); color: var(--text); font: inherit; border-radius: 0; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--blue); }
.comment-form-cookies-consent { display: flex; gap: .6rem; align-items: flex-start; }
.comment-form-cookies-consent label { font-family: var(--f-text); font-size: .85rem; color: var(--mute); }
.comment-notes, .logged-in-as, .must-log-in, .talk-closed { font-size: .88rem; color: var(--mute); }
.req { color: var(--orange); }
.form-submit .submit { padding: .65rem 1.4rem; border: 3px solid var(--orange); background: transparent; color: var(--orange); font-family: var(--f-head); font-weight: 600; font-size: 1rem; cursor: pointer; border-radius: 0; }
.form-submit .submit:hover { background: var(--orange); color: var(--head); }
.comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; font-family: var(--f-head); }

/* ---------- Подвал ---------- */
.footbar { background: var(--head); border-top: 2px solid var(--rule); color: var(--text); padding: 2.6rem 0 1.6rem; }
.foot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.foot-col { min-width: 0; padding: 0 2rem; border-left: 1px solid var(--plate-line); }
.foot-col:first-child { padding-left: 0; border-left: 0; }
.footbar .wdg-title { color: var(--text); border-bottom: 0; padding-bottom: 0; margin-bottom: .8rem; }
.footbar .wdg, .footbar .wdg p { color: #C3D0DA; font-size: .92rem; }
.footbar .wdg a { color: var(--blue); }
.footbar .wdg a:hover { color: var(--orange); }
.footbar .wdg li { padding: .2rem 0; }
.footbar .menu a { text-decoration: none; }
.footbar .menu a::before { content: "→"; margin-right: .55rem; color: var(--blue); }
.footbar .wdg + .wdg { margin-top: 1.6rem; }
.copyright { margin: 2.4rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--rule); text-align: center; font-size: .86rem; color: var(--blue); }

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90;
    display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
    max-width: 860px; margin-inline: auto;
    padding: 1rem 1.3rem;
    background: var(--head);
    border: 2px solid var(--orange);
    box-shadow: 6px 6px 0 rgba(79, 179, 217, .35);
    color: var(--text);
}
.cookie-text { margin: 0; font-size: .88rem; line-height: 1.45; }

/* ---------- Адаптив ---------- */
@media (max-width: 1200px) {
    .nav-list { gap: .4rem 1.4rem; }
    .brand-text { max-width: 400px; }
}
@media (max-width: 960px) {
    .shell { width: 92%; }
    .nav-toggle { display: inline-flex; }
    .topbar-row { flex-wrap: wrap; gap: 1rem; }
    .brand-mark, .brand-svg, .brand-logo { width: 56px; height: 56px; }
    .site-nav { display: none; width: 100%; }
    .site-nav.is-open { display: block; }
    .nav-list { flex-direction: column; gap: 0; border-top: 1px solid var(--rule); }
    .nav-list a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--plate-line); }
    .lead-hero { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding: 2.4rem 0; }
    .node, .mat-grid, .site-grid, .chron-grid { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
    .node { padding-bottom: 2rem; }
    .node-head { padding-bottom: 0; }
    .node-note, .mat-note, .site-note { max-width: 36rem; }
    .node-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 1.4rem; }
    .node-figure { grid-column: 1 / -1; order: -1; }
    .node-tags li { position: static; transform: none; justify-content: flex-start; text-align: left; padding: .45rem 0; border-bottom: 1px dashed var(--plate-line); }
    .node-tags-l li::after, .node-tags-r li::before { display: none; }
    .node-tags li::before { content: ""; }
    .node-tags-l li::before, .node-tags-r li::before { display: inline-block; width: 8px; height: 8px; flex: 0 0 8px; border: 0; background: var(--orange); }
    .site-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .site-figure { grid-column: 1 / -1; order: -1; }
    .site-col { gap: 1rem; }
    .cards-stagger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cards-stagger .card:nth-child(n) { margin-top: 0; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
    .foot-col { padding: 1.4rem 0 0; border-left: 0; border-top: 1px solid var(--plate-line); }
    .foot-col:first-child { padding-top: 0; border-top: 0; }
    .chron-dims { display: none; }
    .chron-line { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; padding-left: 2.4rem; }
    .chron-line::before { left: 8px; right: auto; top: 0; bottom: 14px; width: 4px; height: auto; }
    .chron-line::after { left: 1px; right: auto; top: auto; bottom: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 16px solid var(--orange-ink); border-bottom: 0; }
    .chron-line li { text-align: left; padding-top: 0; }
    .chron-dot { left: -2.4rem; margin-left: 0; top: .2rem; }
}
@media (max-width: 600px) {
    .brand-desc { display: none; }
    .brand-name { font-size: 1rem; }
    .lead-title { font-size: 1.85rem; }
    .sec-title { font-size: 1.7rem; overflow-wrap: break-word; }
    .lead-sub { font-size: 1rem; }
    .side-rule { padding-left: 2.4rem; }
    .fs-mat, .fs-site, .fs-chron, .fs-posts { padding: 2.4rem 0; }
    .node-stage, .site-stage { grid-template-columns: minmax(0, 1fr); }
    .cards-stagger { grid-template-columns: minmax(0, 1fr); }
    .ref-frame { padding-top: 2.6rem; }
    .ref-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .ref-table, .ref-table tbody { display: block; }
    .ref-table tr { display: grid; grid-template-columns: 84px minmax(0, 1fr); grid-template-areas: "ico name" "ico val" "ico den"; column-gap: .9rem; padding: .8rem 1rem; border-bottom: 1px solid var(--blue-ink); }
    .ref-table tbody tr:last-child { border-bottom: 0; }
    .ref-table tbody th, .ref-table td { display: block; width: auto; padding: 0; border: 0 !important; font-size: .95rem; }
    .ref-table tbody th { grid-area: name; font-weight: 600; }
    .ref-icon { grid-area: ico; align-self: center; }
    .ref-icon img { width: 84px; height: 46px; }
    .ref-table td[data-label="Показатель"] { grid-area: val; color: var(--ink-mute); }
    .ref-table td[data-label="Плотность"] { grid-area: den; color: var(--ink-mute); }
    .sheet { padding: 1.6rem 1.2rem 2.4rem; }
    .talk { padding: 1.4rem 1.1rem; }
    .cookie-banner { flex-direction: column; align-items: flex-start; left: .6rem; right: .6rem; bottom: .6rem; padding: 1rem 1.1rem; }
    .alignleft, .alignright { float: none; margin: 1rem 0; }
    .posts-more { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
