/*
Theme Name: dds_mosharekatsakht.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: msktech
*/

/* ---------- Шрифты ---------- */
@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: "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: 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 {
    --navy: #0E2A47;
    --grid: #17395C;
    --grid-major: #1D4268;
    --kalka: #E8E2D2;
    --steel: #C9D6DC;
    --night: #081A2E;
    --ink-light: #F2EEE3;
    --muted-dark: #8FA6B8;
    --ink: #0E2A47;
    --muted-light: #55707F;
    --orange: #E8622C;
    --orange-deep: #C94E1C;
    --yellow: #F2C230;
    --teal: #4FB3A9;
    --sheet: #E5EEF4;
    --ticket: #D3DDE2;
    --panel: #12334F;
    --line-dark: #2C5378;
    --head-font: "Oswald", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
    --body-font: "IBM Plex Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono-font: "IBM Plex Mono", "Consolas", "Courier New", monospace;
}

/* ---------- Состояния hidden (до основных стилей) ---------- */
.cookie-banner[hidden] { display: none !important; }
.tk-body[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(--body-font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink-light);
    background-color: var(--navy);
    background-image:
        linear-gradient(var(--grid-major) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
}
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--head-font);
    font-weight: 600;
    line-height: 1.12;
    margin: 0 0 .6em;
    letter-spacing: .01em;
}
h1, h2, h3, h4, h5, h6, p, li, td, th, dd, dt, blockquote, figcaption, .card-title, .brand-name, .brand-desc {
    overflow-wrap: break-word;
    hyphens: auto;
}
h1, h2, h3, h4, h5, h6, .card-title, .brand-name, .sec-title, .tk-name, .ask-quote p, .nav-list a, .btn {
    hyphens: manual;
}
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px dashed var(--yellow);
    outline-offset: 3px;
}
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 100;
    background: var(--yellow);
    color: var(--ink);
    padding: .6rem 1rem;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    position: relative;
    font-family: var(--head-font);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.2;
    color: var(--night);
    background: var(--orange);
    border: 2px solid var(--night);
    outline: 1px solid var(--orange);
    outline-offset: 2px;
    padding: .7rem 1.3rem;
    border-radius: 0;
    cursor: pointer;
    box-shadow: 6px 6px 0 0 var(--night);
    transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn:hover {
    background: var(--yellow);
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0 0 var(--night);
}
.btn:active { transform: translate(6px, 6px); box-shadow: 0 0 0 0 var(--night); }
.btn-sm { font-size: .82rem; padding: .5rem .95rem; box-shadow: 4px 4px 0 0 var(--navy); }
.btn-sm:hover { box-shadow: 2px 2px 0 0 var(--navy); transform: translate(2px, 2px); }
.btn-ghost {
    background: transparent;
    color: var(--ink-light);
    border-color: var(--ink-light);
    outline-color: var(--orange);
    box-shadow: 6px 6px 0 0 var(--orange);
}
.btn-ghost:hover { background: var(--orange); color: var(--night); box-shadow: 3px 3px 0 0 var(--ink-light); }

/* ---------- Шапка ---------- */
.masthead {
    position: relative;
    background: rgba(8, 26, 46, .55);
    border-bottom: 1px solid var(--line-dark);
}
.masthead::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 3px;
    background: repeating-linear-gradient(90deg, var(--orange) 0 24px, transparent 24px 40px);
    opacity: .7;
}
.masthead-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: 1.6rem 0 1.5rem;
}
.brand {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-decoration: none;
    flex: 1 1 520px;
    min-width: 0;
}
.brand-mark { flex: 0 0 auto; width: 64px; }
.brand-svg, .brand-logo { width: 64px; height: auto; }
.brand-text { display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.brand-name {
    font-family: var(--head-font);
    font-weight: 600;
    font-size: clamp(1.35rem, 1rem + 1.5vw, 2.15rem);
    line-height: 1.08;
    text-transform: uppercase;
    color: #F2E6C4;
    letter-spacing: .01em;
    max-width: 30ch;
}
.brand-desc {
    font-size: .84rem;
    line-height: 1.45;
    color: var(--muted-dark);
    max-width: 58ch;
}
.nav-toggle {
    display: none;
    align-items: center;
    gap: .6rem;
    background: transparent;
    color: var(--ink-light);
    border: 1px solid var(--ink-light);
    padding: .55rem .9rem;
    font-family: var(--head-font);
    text-transform: uppercase;
    letter-spacing: .1em;
    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; }
.site-nav { flex: 0 1 auto; min-width: 0; }
.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.6rem;
    max-width: 420px;
}
.nav-list a {
    display: inline-block;
    text-decoration: none;
    color: var(--ink-light);
    font-size: .98rem;
    padding: .15rem 0 .25rem;
    border-bottom: 2px solid transparent;
    transition: border-color .12s ease, color .12s ease;
}
.nav-list a:hover { border-bottom-color: var(--teal); color: #fff; }
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a { border-bottom-color: var(--orange); }

/* ---------- Секции главной ---------- */
.fs { position: relative; padding: 3.4rem 0; }
.marks::before, .marks::after {
    content: "";
    position: absolute;
    top: 22px;
    width: 18px; height: 18px;
    background:
        linear-gradient(var(--muted-dark), var(--muted-dark)) center / 100% 1px no-repeat,
        linear-gradient(var(--muted-dark), var(--muted-dark)) center / 1px 100% no-repeat;
    opacity: .8;
    pointer-events: none;
}
.marks::before { left: 2%; }
.marks::after { right: 2%; }
.band-kalka {
    background-color: var(--kalka);
    background-image:
        linear-gradient(rgba(14, 42, 71, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 42, 71, .05) 1px, transparent 1px);
    background-size: 8px 8px;
    color: var(--ink);
}
.band-steel {
    background-color: var(--steel);
    background-image:
        linear-gradient(rgba(14, 42, 71, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 42, 71, .06) 1px, transparent 1px);
    background-size: 40px 40px;
    color: var(--ink);
}
@media (min-width: 960px) {
    .site-main > .fs > .shell, .colophon > .shell, .masthead > .shell { width: min(85%, 1180px); }
}

.sec-head {
    border-left: 6px solid var(--orange);
    padding: .1rem 0 .1rem 1rem;
    margin: 0 0 1.6rem;
}
.sec-no {
    display: block;
    font-family: var(--mono-font);
    font-size: .76rem;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted-dark);
    margin-bottom: .25rem;
}
.sec-title {
    font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem);
    text-transform: uppercase;
    line-height: 1.02;
    margin: 0;
    color: var(--ink-light);
}
.sec-head-dark .sec-no { color: var(--muted-light); }
.sec-head-dark .sec-title { color: var(--ink); }

/* Блок 1: анатомия узла */
.node-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}
.node-main { min-width: 0; }
.node-lead { color: var(--muted-dark); max-width: 52ch; margin-bottom: 1.4rem; }
.node-fig {
    margin: 0 auto;
    max-width: 760px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 320px) minmax(0, 1fr);
    align-items: stretch;
}
.node-pic { min-width: 0; }
.node-pic img { width: 100%; height: auto; aspect-ratio: 704 / 968; object-fit: contain; }
.node-side { position: relative; min-width: 0; }
.node-lbl {
    position: absolute;
    left: 0; right: 0;
    display: flex;
    align-items: center;
    gap: .5rem;
    transform: translateY(-50%);
    font-size: .95rem;
    line-height: 1.2;
    color: var(--ink-light);
}
.node-side-l .node-lbl { text-align: right; }
.node-side-l .node-lbl-t { margin-left: auto; }
.node-lbl-line { flex: 1 1 auto; min-width: 12px; height: 1px; background: rgba(242, 238, 227, .85); }
.node-side-l .node-lbl-line { flex: 0 0 14px; }
.node-side-r .node-lbl-line { flex: 0 0 14px; }
.node-lbl-t {
    flex: 0 1 auto;
    padding: .15rem .45rem;
    border: 1px solid rgba(79, 179, 169, .5);
    background: rgba(14, 42, 71, .85);
}
.node-cap {
    grid-column: 1 / -1;
    margin-top: 1.2rem;
    font-size: .88rem;
    color: var(--muted-dark);
    text-align: center;
    font-family: var(--mono-font);
    letter-spacing: .02em;
}
.node-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem 2.4rem;
    border-top: 2px solid var(--ink-light);
    padding-top: 1.4rem;
}
.fact { display: flex; flex-direction: column; min-width: 0; }
.fact-num {
    font-family: var(--head-font);
    font-weight: 600;
    font-size: 2.9rem;
    line-height: 1;
    color: var(--ink-light);
    position: relative;
    padding-left: .9rem;
}
.fact-num::before {
    content: "";
    position: absolute;
    left: 0; top: .15em; bottom: .12em;
    width: 3px;
    background: var(--orange);
}
.fact-cap {
    font-size: .88rem;
    color: var(--muted-dark);
    padding-left: .9rem;
    line-height: 1.35;
    margin-top: .3rem;
}
@media (min-width: 960px) {
    .node-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 190px); gap: 3rem; }
    .node-facts {
        flex-direction: column;
        justify-content: center;
        border-top: 0;
        border-left: 2px solid var(--ink-light);
        padding: 0 0 0 1.8rem;
        margin: 7rem 0 3rem;
        gap: 2.2rem;
    }
}

/* Блок 2: билеты конференций */
.tk-lead { color: var(--muted-light); max-width: 60ch; margin: -.6rem 0 1.6rem; }
.tickets {
    display: flex;
    flex-direction: column;
    gap: .9rem;
}
.ticket {
    position: relative;
    min-width: 0;
    background-color: var(--ticket);
    border: 1px solid var(--ink);
    color: var(--ink);
    transition: background-color .15s ease, box-shadow .15s ease;
    background-image: radial-gradient(circle at 0 0, var(--kalka) 9px, transparent 10px);
}
.ticket::after {
    content: "";
    position: absolute;
    top: 8px; bottom: 8px; right: 12px;
    border-right: 2px dashed rgba(14, 42, 71, .45);
    pointer-events: none;
}
.ticket.is-open {
    background-color: #F7F4EC;
    box-shadow: 6px 6px 0 0 var(--ink);
}
.tk-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .2rem;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 1rem 2.4rem 1rem 1.2rem;
}
.tk-head:hover .tk-name { color: var(--orange-deep); }
.tk-no {
    font-family: var(--mono-font);
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted-light);
}
.tk-name {
    font-family: var(--head-font);
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 1.15;
    transition: color .12s ease;
}
.ticket.is-open .tk-name { color: var(--ink); }
.ticket.is-open .tk-no { color: var(--orange-deep); }
.tk-body { padding: 0 2.4rem 1.1rem 1.2rem; }
.tk-list { list-style: none; margin: 0; padding: .7rem 0 0; border-top: 1px solid rgba(14, 42, 71, .25); }
.tk-list li {
    position: relative;
    padding-left: 1rem;
    font-size: .88rem;
    line-height: 1.45;
    margin-bottom: .35rem;
    color: #22384B;
}
.tk-list li::before {
    content: "";
    position: absolute;
    left: 0; top: .5em;
    width: 6px; height: 6px;
    background: var(--orange);
}
@media (min-width: 960px) {
    .tickets { flex-direction: row; align-items: flex-start; gap: .7rem; }
    .ticket { flex: 1 1 0; }
    .ticket.is-open { flex: 1.7 1 0; }
    .tk-head { min-height: 5.6rem; justify-content: center; }
}

/* Блок 3: последние записи + карточки */
.card-grid { display: grid; gap: 1.8rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) {
    .card-grid-2, .card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
    .card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--sheet);
    color: var(--ink);
    border: 1px solid #5A7EA0;
    padding: 2.2rem 1rem 1.7rem;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .35);
    transition: transform .15s ease;
}
.card::after {
    content: "";
    position: absolute;
    right: 0; bottom: 0;
    width: 30px; height: 30px;
    background: linear-gradient(135deg, #B9CAD6 0 50%, transparent 50%);
    box-shadow: -2px -2px 0 rgba(14, 42, 71, .2);
}
.card:hover { transform: translate(-3px, -3px); }
.card-stamp {
    position: absolute;
    top: .55rem; right: 1rem;
    font-family: var(--mono-font);
    font-size: .78rem;
    letter-spacing: .05em;
    color: var(--muted-light);
    padding: .05rem .45rem;
    border: 1px solid rgba(85, 112, 127, .5);
}
.card-thumb { border: 2px solid var(--ink); overflow: hidden; background: var(--navy); }
.card-thumb a { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 8.5;
    object-fit: cover;
    transition: transform .3s ease;
}
.card:hover .card-thumb img { transform: scale(1.04); }
.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; padding-top: 1rem; }
.card-pin {
    align-self: flex-start;
    font-family: var(--mono-font);
    font-size: .7rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    background: var(--yellow);
    color: var(--ink);
    padding: .1rem .5rem;
    margin-bottom: .5rem;
}
.card-title { font-size: 1.28rem; margin: 0 0 .5rem; line-height: 1.18; }
.card-title a { text-decoration: none; color: var(--ink); }
.card-title a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.card-excerpt { font-size: .9rem; line-height: 1.5; color: #2A4256; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt a { color: var(--ink); }
.card-foot {
    margin-top: auto;
    padding-top: .9rem;
    padding-right: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
}
.card-cat {
    font-family: var(--mono-font);
    font-size: .75rem;
    letter-spacing: .06em;
    color: var(--muted-light);
    text-decoration: none;
    min-width: 0;
}
.card-cat:hover { color: var(--orange-deep); }
.latest-more { margin: 2.2rem 0 0; text-align: center; }
.empty-note {
    padding: 1.4rem 1.6rem;
    border: 1px dashed var(--muted-dark);
    color: var(--muted-dark);
}

/* Блок 4: сравнение технологий */
.cmp-wrap { overflow-x: auto; border: 2px solid var(--ink); background: #EEF2F3; }
.cmp {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: .95rem;
}
.cmp th, .cmp td {
    border: 1px solid var(--ink);
    padding: .7rem 1rem;
    text-align: left;
    vertical-align: middle;
}
.cmp thead th {
    font-family: var(--head-font);
    font-weight: 600;
    font-size: 1.02rem;
    background: #DCE5E9;
    text-align: center;
}
.cmp thead th:first-child { text-align: left; }
.cmp th { hyphens: manual; }
.cmp-sub {
    display: block;
    font-family: var(--mono-font);
    font-weight: 400;
    font-size: .7rem;
    letter-spacing: .04em;
    color: var(--muted-light);
    margin-top: .15rem;
}
.cmp tbody th { font-weight: 400; }
.cmp td { text-align: center; }
.meter { display: inline-flex; gap: 6px; vertical-align: middle; }
.meter i { display: block; width: 14px; height: 14px; border: 1px solid #2E6F69; }
.meter i.on { background: var(--teal); }
.meter i.off { background: transparent; border-color: rgba(14, 42, 71, .3); }
.cmp tbody tr:hover td, .cmp tbody tr:hover th { background: rgba(232, 98, 44, .07); }
.cmp-note { margin: 1rem 0 0; font-size: .85rem; color: var(--muted-light); max-width: 80ch; }

/* Блок 5: вопросы с площадки */
.ask-quote {
    margin: 0 0 1rem;
    padding: 0;
    position: relative;
}
.ask-quote p {
    font-family: var(--head-font);
    font-weight: 600;
    font-size: clamp(1.7rem, 1rem + 3vw, 3.1rem);
    line-height: 1.08;
    text-transform: uppercase;
    color: #F2E6C4;
    margin: 0;
}
.ask-quote p::before, .ask-quote p::after { color: var(--yellow); font-size: 1.25em; line-height: 0; }
.ask-quote p::before { content: "«"; margin-right: .15em; }
.ask-quote p::after { content: "»"; margin-left: .15em; }
.ask-lead { color: var(--muted-dark); max-width: 62ch; margin-bottom: 1.6rem; }
.ask-grid { display: grid; gap: 1.4rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) {
    .ask-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.ask-card {
    position: relative;
    min-width: 0;
    background: var(--sheet);
    color: var(--ink);
    border: 1px solid #5A7EA0;
    padding: 1.2rem 1.4rem 1.6rem;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}
.ask-card::after {
    content: "";
    position: absolute;
    right: 0; bottom: 0;
    width: 26px; height: 26px;
    background: linear-gradient(135deg, #B9CAD6 0 50%, transparent 50%);
}
.ask-no {
    display: block;
    font-family: var(--head-font);
    font-weight: 600;
    font-size: 1.7rem;
    line-height: 1;
    color: var(--ink);
    margin-bottom: .6rem;
    border-bottom: 3px solid var(--yellow);
    width: max-content;
    padding-bottom: .15rem;
}
.ask-card p { margin: 0; font-size: .95rem; line-height: 1.5; }

/* ---------- Внутренние страницы ---------- */
.inner { padding: 1.6rem 0 3.6rem; }
.breadcrumbs {
    font-family: var(--mono-font);
    font-size: .8rem;
    letter-spacing: .03em;
    color: var(--muted-dark);
    margin-bottom: 1.6rem;
    padding: .5rem .9rem;
    border: 1px solid var(--line-dark);
    background: rgba(8, 26, 46, .5);
    display: inline-block;
    max-width: 100%;
}
.breadcrumbs a { color: var(--ink-light); text-decoration: none; border-bottom: 1px solid var(--orange); }
.breadcrumbs a:hover { color: var(--yellow); }
.breadcrumbs .sep { color: var(--orange); margin: 0 .3rem; }
.breadcrumbs span[aria-current] { color: var(--muted-dark); }

.layout-single { display: block; }
.layout-single > .content-area { min-width: 0; }
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
.content-area, .sidebar { min-width: 0; }
@media (min-width: 960px) {
    .layout-single > .content-area { width: 85%; margin-left: auto; margin-right: auto; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); column-gap: 6%; }
}

.page-head { border-left: 6px solid var(--orange); padding-left: 1rem; margin-bottom: 2rem; }
.page-title {
    font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.7rem);
    text-transform: uppercase;
    line-height: 1.05;
    margin: 0;
    color: var(--ink-light);
}
.page-lead { margin: .6rem 0 0; color: var(--muted-dark); max-width: 60ch; }
.page-lead p { margin: 0; }

.sheet {
    position: relative;
    background-color: var(--kalka);
    background-image:
        linear-gradient(rgba(14, 42, 71, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 42, 71, .045) 1px, transparent 1px);
    background-size: 8px 8px;
    color: var(--ink);
    border: 1px solid #8FA6B8;
    padding: 2rem 2.2rem 2.4rem;
    margin-bottom: 2rem;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%);
}
.sheet::after {
    content: "";
    position: absolute;
    right: 0; bottom: 0;
    width: 40px; height: 40px;
    background: linear-gradient(135deg, #C9C0AA 0 50%, transparent 50%);
}
.entry-head { margin-bottom: 1.4rem; }
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem 1rem;
    margin-bottom: .8rem;
    font-family: var(--mono-font);
    font-size: .8rem;
}
.stamp { border: 1px solid var(--orange-deep); color: var(--orange-deep); padding: .1rem .5rem; letter-spacing: .05em; }
.entry-cats { display: flex; flex-wrap: wrap; gap: .5rem; }
.entry-cats a { color: var(--muted-light); text-decoration: none; }
.entry-cats a:hover { color: var(--orange-deep); }
.entry-title {
    font-size: clamp(1.7rem, 1.1rem + 2vw, 2.5rem);
    text-transform: uppercase;
    line-height: 1.08;
    margin: 0;
    color: var(--ink);
}
.entry-thumb { margin: 0 0 1.6rem; border: 2px solid var(--ink); }
.entry-thumb img { width: 100%; height: auto; display: block; }
.entry-content { font-size: 1.04rem; line-height: 1.72; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--ink); margin-top: 1.8em; }
.entry-content h2 { font-size: 1.75rem; border-left: 4px solid var(--orange); padding-left: .7rem; }
.entry-content h3 { font-size: 1.35rem; }
.entry-content a {
    color: #1D4F86;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: var(--orange);
}
.entry-content a:hover { color: var(--orange-deep); }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.entry-content ul { list-style: none; padding-left: 1.2rem; }
.entry-content ul li { position: relative; }
.entry-content ul li::before {
    content: "";
    position: absolute;
    left: -1.1rem; top: .62em;
    width: 7px; height: 7px;
    background: var(--orange);
}
.entry-content li { margin-bottom: .35em; }
.entry-content blockquote {
    margin: 1.6em 0;
    padding: 1.2rem 1.5rem;
    background: var(--navy);
    color: var(--ink-light);
    border-left: 6px solid var(--yellow);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: .6rem; font-size: .85rem; color: var(--muted-dark); font-style: normal; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; display: block; overflow-x: auto; }
.entry-content table, .entry-content th, .entry-content td { border: 1px solid var(--ink); }
.entry-content th, .entry-content td { padding: .55rem .8rem; text-align: left; }
.entry-content th { background: var(--steel); font-family: var(--head-font); font-weight: 600; }
.entry-content img { height: auto; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: .85rem; color: var(--muted-light); margin-top: .4rem; font-family: var(--mono-font); }
.entry-content pre, .entry-content code { font-family: var(--mono-font); font-size: .9rem; }
.entry-content pre { background: var(--night); color: var(--ink-light); padding: 1rem 1.2rem; overflow-x: auto; }
.entry-content hr { border: 0; border-top: 2px dashed var(--muted-light); margin: 2em 0; }
.entry-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid rgba(14, 42, 71, .2); }
.entry-tags a { font-family: var(--mono-font); font-size: .8rem; color: var(--ink); text-decoration: none; padding: .15rem .5rem; border: 1px solid var(--ink); }
.entry-tags a:hover { background: var(--yellow); }
.page-links { margin-top: 1.4rem; font-family: var(--mono-font); }

.post-nav { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); margin-bottom: 2rem; }
@media (min-width: 600px) { .post-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.post-nav-link {
    display: block;
    padding: 1rem 1.2rem;
    border: 1px solid var(--line-dark);
    background: rgba(8, 26, 46, .55);
    color: var(--ink-light);
    text-decoration: none;
    font-family: var(--head-font);
    font-size: 1.05rem;
    line-height: 1.25;
    transition: border-color .12s ease, transform .12s ease;
}
.post-nav-link span { display: block; font-family: var(--mono-font); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: .3rem; }
.post-nav-link.next { text-align: right; }
.post-nav-link:hover { border-color: var(--orange); transform: translateY(-2px); }

/* ---------- Сайдбар ---------- */
.sidebar .widget {
    background: var(--panel);
    border: 1px solid var(--line-dark);
    border-top: 4px solid var(--teal);
    padding: 1.3rem 1.4rem;
    margin-bottom: 1.6rem;
    color: var(--ink-light);
}
.sidebar .widget-title {
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #F2E6C4;
    margin-bottom: .9rem;
}
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { padding: .55rem 0; border-bottom: 1px dashed var(--line-dark); line-height: 1.4; }
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: var(--ink-light); text-decoration: none; }
.sidebar .widget a:hover { color: var(--yellow); }
.sidebar .widget .post-date, .sidebar .widget .rss-date { display: block; font-family: var(--mono-font); font-size: .75rem; color: var(--muted-dark); }
.sidebar .widget p { color: var(--ink-light); }

/* ---------- Поиск ---------- */
.search-form { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.2rem 0; }
.search-field {
    flex: 1 1 220px;
    min-width: 0;
    padding: .7rem .9rem;
    font: inherit;
    color: var(--ink);
    background: #FBF9F3;
    border: 2px solid var(--ink);
    border-radius: 0;
}
.sidebar .search-field { background: #FBF9F3; }
.search-submit { flex: 0 0 auto; }

/* ---------- 404 ---------- */
.nf { text-align: left; }
.nf-code {
    display: block;
    font-family: var(--head-font);
    font-weight: 600;
    font-size: clamp(5rem, 3rem + 10vw, 9rem);
    line-height: .9;
    color: transparent;
    -webkit-text-stroke: 2px var(--orange);
    margin-bottom: 1rem;
}
.nf-home { margin-top: 1.4rem; }
.empty-sheet p { margin-bottom: .6rem; }

/* ---------- Пагинация ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin: 2.4rem 0 0;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 .8rem;
    font-family: var(--mono-font);
    font-size: .9rem;
    text-decoration: none;
    color: var(--ink-light);
    border: 1px solid var(--ink-light);
    background: rgba(8, 26, 46, .5);
    transition: background-color .12s ease, color .12s ease;
}
.pager a.page-numbers:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.pager .page-numbers.current { background: var(--orange); color: var(--night); border-color: var(--orange); font-weight: 500; box-shadow: 3px 3px 0 0 var(--night); }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; padding: 0 .3rem; }

/* ---------- Комментарии ---------- */
.comments-title, .comment-reply-title { font-size: 1.5rem; text-transform: uppercase; color: var(--ink); }
.comment-reply-title small { margin-left: .8rem; font-size: .8rem; text-transform: none; font-family: var(--body-font); }
.comment-reply-title small a { color: var(--orange-deep); }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: 1.6rem; border-left: 2px dashed rgba(14, 42, 71, .25); margin-left: .4rem; }
.cmt-box { background: #F6F2E8; border: 1px solid rgba(14, 42, 71, .3); padding: 1rem 1.2rem; margin-bottom: 1rem; }
.cmt-head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin-bottom: .5rem; }
.cmt-head img { width: 40px; height: 40px; display: block; border: 1px solid var(--ink); }
.cmt-author { font-weight: 600; }
.cmt-date { font-family: var(--mono-font); font-size: .78rem; color: var(--muted-light); }
.cmt-wait { font-size: .85rem; color: var(--orange-deep); margin-bottom: .4rem; }
.cmt-text p:last-child { margin-bottom: 0; }
.cmt-reply { margin-top: .6rem; }
.cmt-reply a { font-family: var(--mono-font); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .3rem; }
.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(--ink);
    background: #FBF9F3;
    border: 2px solid var(--ink);
    border-radius: 0;
}
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: .5rem; }
.comment-form-cookies-consent label { font-weight: 400; margin: 0; }
.comment-form .submit {
    font-family: var(--head-font);
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--night);
    background: var(--orange);
    border: 2px solid var(--night);
    padding: .7rem 1.4rem;
    cursor: pointer;
    box-shadow: 5px 5px 0 0 var(--night);
}
.comment-form .submit:hover { background: var(--yellow); transform: translate(2px, 2px); box-shadow: 3px 3px 0 0 var(--night); }
.req { color: var(--orange-deep); }
.comment-notes, .logged-in-as, .must-log-in, .comments-closed { font-size: .88rem; color: var(--muted-light); }
.comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }

/* ---------- Подвал ---------- */
.colophon {
    background-color: var(--night);
    background-image:
        linear-gradient(rgba(23, 57, 92, .35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 57, 92, .35) 1px, transparent 1px);
    background-size: 40px 40px;
    color: var(--ink-light);
    border-top: 3px solid var(--orange);
    padding: 3rem 0 1.4rem;
}
.colophon-grid { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .colophon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.colophon-col { min-width: 0; }
.colophon .widget { margin-bottom: 1.4rem; color: var(--ink-light); }
.colophon .widget-title {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #F2E6C4;
    margin-bottom: .8rem;
}
.colophon .widget p, .colophon .textwidget { color: #C9D3DC; font-size: .92rem; line-height: 1.6; }
.colophon .widget ul { list-style: none; margin: 0; padding: 0; }
.colophon .widget li { margin-bottom: .4rem; }
.colophon .widget a {
    color: var(--ink-light);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: rgba(242, 238, 227, .45);
}
.colophon .widget_nav_menu a { position: relative; padding-left: 1rem; display: inline-block; }
.colophon .widget_nav_menu a::before {
    content: "";
    position: absolute;
    left: 0; top: .55em;
    width: 6px; height: 6px;
    background: var(--orange);
}
.colophon .widget a:hover { color: var(--yellow); text-decoration-color: var(--yellow); }
.colophon .post-date { color: var(--muted-dark); font-size: .78rem; display: block; }
.colophon-base {
    margin-top: 1.6rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line-dark);
    text-align: center;
}
.colophon-base p { margin: 0; font-size: .82rem; color: var(--muted-dark); }

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem; right: 1rem; bottom: 1rem;
    z-index: 90;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.6rem;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.1rem 1.4rem;
    background: var(--night);
    color: var(--ink-light);
    border: 1px solid var(--line-dark);
    border-left: 6px solid var(--orange);
    box-shadow: 8px 8px 0 0 rgba(0, 0, 0, .35);
}
.cookie-text { margin: 0; font-size: .88rem; line-height: 1.5; flex: 1 1 320px; min-width: 0; }
.cookie-accept { flex: 0 0 auto; box-shadow: 4px 4px 0 0 var(--ink-light); }
.cookie-accept:hover { box-shadow: 2px 2px 0 0 var(--ink-light); }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .site-nav { flex: 1 1 100%; display: none; }
    .site-nav.is-open { display: block; }
    .nav-list { flex-direction: column; max-width: none; gap: 0; border-top: 1px solid var(--line-dark); }
    .nav-list li { border-bottom: 1px solid var(--line-dark); }
    .nav-list a { display: block; padding: .7rem 0; border-bottom: 0; }
    .nav-list .current-menu-item > a { color: var(--orange); }
}
@media (max-width: 600px) {
    .fs { padding: 2.4rem 0; }
    .masthead-row { padding: 1.1rem 0; }
    .brand-mark, .brand-svg, .brand-logo { width: 48px; }
    .brand-desc { font-size: .8rem; }
    .node-fig { grid-template-columns: minmax(0, 1fr) minmax(0, 150px) minmax(0, 1fr); }
    .node-lbl { font-size: .72rem; }
    .node-lbl-t { padding: .1rem .3rem; }
    .node-side-l .node-lbl-line, .node-side-r .node-lbl-line { flex-basis: 6px; }
    .sheet { padding: 1.4rem 1.2rem 2rem; }
    .card { padding: 2.1rem .85rem 1.1rem; }
    .cookie-banner { left: .5rem; right: .5rem; bottom: .5rem; padding: 1rem 1.1rem; }
    .marks::before, .marks::after { top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
