/*
Theme Name: dds_pakstore.ru
Theme URI: https://pakstore.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: tvsdom
*/

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

/* ---------- Переменные ---------- */
:root {
    --bg: #14202B;
    --grid: #2E4557;
    --frame: #3E505E;
    --panel: #1C2A35;
    --panel-deep: #101A23;
    --metal: #C6CDD2;
    --copper: #B46A3C;
    --foot: #0C1319;
    --text: #E8EEF2;
    --muted: #8FA3B0;
    --head: #B9C8D2;
    --ink: #17242E;
    --ink-muted: #52646F;
    --accent: #F2701D;
    --accent-dark: #C9560F;
    --water: #59C3D6;
    --f-head: "Roboto Condensed", "Arial Narrow", "Liberation Sans Narrow", Arial, sans-serif;
    --f-body: "Roboto", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --f-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

/* ---------- Состояния hidden (до основных стилей) ---------- */
.cookie-banner[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-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(46, 69, 87, .22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 69, 87, .22) 1px, transparent 1px),
        linear-gradient(rgba(46, 69, 87, .32) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 69, 87, .32) 1px, transparent 1px);
    background-size: 24px 24px, 24px 24px, 144px 144px, 144px 144px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--water); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-head); font-weight: 500; line-height: 1.2; margin: 0 0 .6em; color: var(--text); }
h1, h2, h3, h4, h5, h6, p, li, td, th, dd, dt, figcaption, .card-title, .brand-name { overflow-wrap: break-word; hyphens: auto; }
button { font: inherit; }

.screen-reader-text {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; background: var(--accent); color: #fff; font-family: var(--f-head); text-decoration: none; }
.skip:focus { top: 1rem; color: #fff; }

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

/* ---------- Декоративные трубы по краям ---------- */
.site { position: relative; }
.site::before, .site::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    z-index: 0;
    opacity: .75;
    background-repeat: repeat-y;
    background-size: 40px 640px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='640' viewBox='0 0 40 640'%3E%3Cg fill='none' stroke='%234A6274' stroke-width='1.4'%3E%3Cpath d='M16 0v640M24 0v640'/%3E%3Crect x='12' y='150' width='16' height='10' fill='%2314202B'/%3E%3Crect x='10' y='170' width='20' height='34' rx='3' fill='%2314202B'/%3E%3Cpath d='M20 170v-14M12 156h16'/%3E%3Ccircle cx='20' cy='187' r='6'/%3E%3Crect x='12' y='214' width='16' height='10' fill='%2314202B'/%3E%3Crect x='12' y='420' width='16' height='10' fill='%2314202B'/%3E%3Cpath d='M24 436h16M24 444h16' /%3E%3Crect x='12' y='450' width='16' height='10' fill='%2314202B'/%3E%3C/g%3E%3C/svg%3E");
}
.site::before { left: 8px; }
.site::after { right: 8px; background-position: 0 320px; transform: scaleX(-1); }
.masthead, .main-area, .basement { position: relative; z-index: 1; }

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

/* ---------- Шапка ---------- */
.masthead { padding-top: 1.6rem; }
.masthead-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; padding-bottom: 1.3rem; }
.brand { display: flex; align-items: flex-start; gap: .9rem; text-decoration: none; color: var(--text); min-width: 0; max-width: 34rem; flex: 0 1 auto; }
.nav-toggle, .topnav { flex: 0 0 auto; }
.brand:hover { color: var(--text); }
.brand-icon { flex: 0 0 auto; display: block; padding-top: .15rem; }
.brand-logo { width: 52px; height: auto; }
.brand-text { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.brand-name { font-family: var(--f-head); font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.15; font-weight: 400; color: var(--text); }
.brand-desc { font-size: .82rem; line-height: 1.45; color: #B3C2CC; }

.topnav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; }
.topnav-list a {
    display: block;
    padding: .25rem 0;
    font-family: var(--f-head);
    font-size: .95rem;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
.topnav-list a:hover, .topnav-list .current-menu-item > a, .topnav-list .current_page_item > a { color: var(--accent); border-bottom-color: var(--accent); }
.nav-toggle { display: none; align-items: center; gap: .55rem; padding: .5rem .8rem; background: transparent; color: var(--text); border: 1px solid var(--frame); border-radius: 0; cursor: pointer; font-family: var(--f-head); letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; 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-toggle[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }

/* линия-труба под шапкой */
.mainline {
    height: 9px;
    border-top: 1.5px solid #4D6578;
    border-bottom: 1.5px solid #4D6578;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='9' viewBox='0 0 360 9'%3E%3Crect x='170' y='0' width='14' height='9' fill='%234D6578'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 360px 9px;
    opacity: .9;
}

/* ---------- Заголовки секций ---------- */
.sec-head {
    display: flex;
    align-items: baseline;
    gap: .8rem;
    font-family: var(--f-head);
    font-weight: 400;
    font-size: clamp(1.5rem, 3vw, 2.15rem);
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--head);
    margin: 0 0 1.6rem;
    padding-bottom: .55rem;
    border-bottom: 1px solid var(--grid);
    position: relative;
}
.sec-head::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 56px; height: 3px; background: var(--accent); }
.sec-no { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .04em; color: var(--accent); font-weight: 500; flex: 0 0 auto; transform: translateY(-.15em); }
.sec-head, .brand-name, .card-title, .page-title, .entry-title, .post-step, .lost-code { hyphens: manual; }
.sec-head-dark { color: var(--ink); border-bottom-color: rgba(23, 36, 46, .35); }
.sec-head-dark .sec-no { color: var(--ink); }
.sec-head-dark::after { background: var(--ink); }

/* ---------- Главная: секции ---------- */
.fs { padding: 3rem 0; }

/* 1. Схема */
.fs-scheme { padding-top: 2.4rem; }
.scheme-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.scheme-fig { position: relative; margin: 0; min-width: 0; }
.scheme-fig img { width: 100%; height: auto; }
.tag {
    position: absolute;
    transform: translate(-50%, -50%);
    font-family: var(--f-head);
    font-size: clamp(.68rem, 1.15vw, .92rem);
    line-height: 1;
    color: #D6E0E7;
    white-space: nowrap;
    pointer-events: none;
}
.scheme-legend { display: flex; gap: 1.4rem; margin-top: .9rem; font-family: var(--f-mono); font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.lg { display: inline-flex; align-items: center; gap: .5rem; }
.lg::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.lg-hot::before { background: var(--accent); }
.lg-cold::before { background: var(--water); }
.scheme-facts { min-width: 0; border-left: 1px solid var(--grid); padding: .4rem 0 .4rem 1.4rem; }
.facts { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: 1rem; }
.facts li { font-family: var(--f-head); font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: var(--head); }
.facts b { display: inline-block; min-width: 4.6rem; font-weight: 500; color: var(--text); }
.facts li:nth-child(1) b { color: var(--accent); }
.facts li:nth-child(2) b { color: var(--water); }
.facts-note { font-size: .86rem; color: var(--muted); margin: 0; }

/* 2. Разбор узла */
.fs-node {
    background-color: var(--metal);
    background-image: url("images/metal-texture.jpg");
    background-size: cover;
    background-position: center;
    color: var(--ink);
    padding-bottom: 2.2rem;
    border-top: 1px solid #8C979F;
    border-bottom: 1px solid #8C979F;
}
.fs-node .sec-head { margin-bottom: .6rem; }
.node-lead { color: var(--ink-muted); font-size: .92rem; margin: 0 0 .6rem; }
.node-scroll { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.node-scroll:focus-visible { outline-offset: -2px; }
.node-track { position: relative; min-width: 760px; padding-bottom: 3.6rem; }
.node-track img { width: 100%; height: auto; }
.node-labels { list-style: none; margin: 0; padding: 0; position: absolute; left: 0; right: 0; bottom: 0; height: 3.6rem; }
.node-labels li { position: absolute; top: 0; transform: translateX(-50%); width: 10.5rem; text-align: center; display: flex; flex-direction: column; gap: .15rem; }
.node-name { font-family: var(--f-head); font-size: 1.02rem; color: var(--ink); }
.node-hint { font-size: .74rem; line-height: 1.3; color: var(--ink-muted); }

/* 3. Последние записи */
.cards { display: grid; gap: 1.4rem; }
.cards-front { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-front .card:nth-child(n+4) { display: none; }
.cards-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.layout-single .cards-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: rgba(28, 42, 53, .92);
    border: 1px solid var(--frame);
    padding: 10px;
    transition: border-color .15s, transform .15s, box-shadow .15s;
}
.card:hover { border-color: var(--accent); transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--grid); }
.card-thumb { display: block; overflow: hidden; background: var(--panel-deep); }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s; }
.card:hover .card-thumb img { transform: scale(1.04); }
.card-body { flex: 1; display: flex; flex-direction: column; padding: .8rem .35rem .4rem; min-width: 0; }
.card-date { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card-title { font-family: var(--f-head); font-weight: 500; font-size: 1.24rem; line-height: 1.18; letter-spacing: .03em; text-transform: uppercase; margin: .3rem 0 .5rem; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-excerpt { flex: 1; font-size: .88rem; line-height: 1.5; color: #C3CFD7; margin-bottom: .9rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more { align-self: flex-start; }
.empty-note { color: var(--muted); }

/* 4. Карта теплопотерь */
.fs-heat {
    background-color: var(--copper);
    background-image:
        linear-gradient(100deg, #9C5428 0%, #C27B4E 24%, #EDA06F 50%, #E19461 64%, #C47A4A 82%, #A65C30 100%);
    color: var(--ink);
    padding: 2.6rem 0;
}
.heat-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr) minmax(0, .7fr); gap: 2rem; align-items: center; }
.heat-intro { min-width: 0; align-self: start; }
.heat-intro p { color: #2E1C10; font-size: .95rem; margin: 0; }
.heat-fig { position: relative; margin: 0; min-width: 0; }
.heat-fig img { width: 100%; height: auto; mix-blend-mode: multiply; }
.heat-tag { position: absolute; transform: translate(-50%, -50%); font-family: var(--f-head); font-weight: 700; font-size: clamp(.7rem, 1.2vw, .95rem); color: #2A170C; line-height: 1; pointer-events: none; }
.heat-scale { list-style: none; margin: 0; padding: 0 0 0 2.1rem; min-width: 0; position: relative; }
.heat-scale li {
    position: relative;
    min-height: calc(var(--share) * .2rem + 1.8rem);
    padding: 0 0 .4rem;
    font-family: var(--f-head);
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.1;
    color: var(--ink);
    transform: translateY(-.55em);
}
.heat-scale li span { font-weight: 400; }
.heat-scale li::before {
    content: "";
    position: absolute;
    left: -2.1rem;
    top: .55em;
    bottom: -.55em;
    width: 1.3rem;
    border-top: 2px solid #2B1B12;
    border-left: 2px solid #2B1B12;
    border-right: 2px solid #2B1B12;
    background: repeating-linear-gradient(to bottom, transparent 0 6px, rgba(43, 27, 18, .75) 6px 7px) right top / 45% 100% no-repeat;
}
.heat-scale li::after { content: ""; position: absolute; left: -.8rem; top: .55em; width: .55rem; height: 2px; background: #2B1B12; }
.heat-scale li:last-child::before { border-bottom: 2px solid #2B1B12; }
.heat-scale li.is-max::before { background-color: rgba(43, 27, 18, .32); }

/* 5. Чек-лист */
.check-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
    padding: 1.6rem 2rem;
    border: 1px solid var(--frame);
    background: rgba(16, 26, 35, .55);
}
.check-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: repeat(3, auto); gap: .7rem 2rem; min-width: 0; }
.check-item {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    width: 100%;
    padding: .15rem 0;
    background: none;
    border: 0;
    color: var(--text);
    font-family: var(--f-body);
    font-size: .95rem;
    text-align: left;
    cursor: pointer;
}
.check-item::before {
    content: "";
    flex: 0 0 18px;
    height: 18px;
    margin-top: .15em;
    border: 1.5px solid var(--muted);
    background: transparent center / 13px 13px no-repeat;
    transition: border-color .15s, background-color .15s;
}
.check-item[aria-pressed="true"]::before {
    border-color: var(--accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7.5l3.2 3.2L12 3.5' fill='none' stroke='%23F2701D' stroke-width='2.4' stroke-linecap='square'/%3E%3C/svg%3E");
}
.check-item:hover { color: var(--accent); }
.check-item:hover::before { border-color: var(--accent); }
.check-total { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: .7rem; padding-left: 2rem; border-left: 1px solid var(--grid); }
.check-num { grid-row: span 2; font-family: var(--f-head); font-weight: 400; font-size: 5rem; line-height: .9; color: var(--accent); }
.check-cap { font-family: var(--f-head); font-size: 1rem; line-height: 1.15; color: var(--accent); max-width: 6.5rem; }
.check-done { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Внутренние страницы ---------- */
.page-wrap { padding: 1.6rem 0 3.5rem; }
.crumbs { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .03em; color: var(--muted); margin-bottom: 1.6rem; }
.crumbs a { color: var(--water); }
.crumbs-sep { color: var(--accent); margin: 0 .2rem; }
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); column-gap: 6%; align-items: start; }
.layout-single { display: block; }
.content-area { min-width: 0; }
.page-head { margin-bottom: 1.8rem; }
.page-title, .entry-title { font-family: var(--f-head); font-weight: 500; font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: .04em; text-transform: uppercase; color: var(--text); margin: 0 0 .6rem; }
.page-intro { color: var(--muted); }

.entry { background: rgba(16, 26, 35, .7); border: 1px solid var(--frame); padding: 2rem 2.2rem; }
.entry-head { margin-bottom: 1.4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--grid); }
.entry-date { font-family: var(--f-mono); font-size: .76rem; color: var(--muted); letter-spacing: .06em; margin-right: .8rem; }
.entry-cats a { font-family: var(--f-mono); font-size: .76rem; color: var(--accent); text-decoration: none; margin-right: .5rem; text-transform: uppercase; }
.entry-head .entry-title { margin-top: .5rem; }
.entry-cover { margin: 0 0 1.6rem; }
.entry-cover img { width: 100%; }
.entry-content { color: #DCE4EA; font-size: 1.03rem; line-height: 1.7; }
.entry-content h2, .entry-content h3, .entry-content h4 { text-transform: uppercase; letter-spacing: .04em; margin-top: 1.8em; color: var(--text); }
.entry-content h2 { font-size: 1.55rem; border-bottom: 1px solid var(--grid); padding-bottom: .3rem; }
.entry-content h3 { font-size: 1.25rem; color: var(--head); }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .35em; }
.entry-content ul li::marker { color: var(--accent); }
.entry-content ol li::marker { color: var(--accent); font-family: var(--f-mono); }
.entry-content blockquote { margin: 1.6em 0; padding: 1rem 1.4rem; border-left: 3px solid var(--accent); background: rgba(46, 69, 87, .35); color: var(--text); font-family: var(--f-head); font-size: 1.15rem; }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .93rem; border: 1px solid var(--grid); }
.entry-content th, .entry-content td { border: 1px solid var(--grid); padding: .55rem .75rem; text-align: left; vertical-align: top; }
.entry-content th { background: #1E2F3C; font-family: var(--f-head); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--text); }
.entry-content tr:nth-child(even) td { background: rgba(46, 69, 87, .18); }
.entry-content img { margin: 1.2em 0; }
.entry-content figure { margin: 1.4em 0; }
.entry-content figcaption { font-size: .82rem; color: var(--muted); margin-top: .4rem; }
.entry-content code { font-family: var(--f-mono); font-size: .9em; background: var(--panel-deep); padding: .1em .35em; }
.entry-content pre { font-family: var(--f-mono); background: var(--panel-deep); border: 1px solid var(--grid); padding: 1rem; overflow-x: auto; }
.entry-content hr { border: 0; border-top: 1px dashed var(--grid); margin: 2em 0; }
.entry-tags { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.entry-tags a { font-family: var(--f-mono); font-size: .78rem; text-decoration: none; border: 1px solid var(--frame); padding: .2rem .55rem; color: var(--muted); }
.entry-tags a:hover { border-color: var(--accent); color: var(--accent); }

.post-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.6rem; }
.post-step { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.2rem; border: 1px solid var(--frame); text-decoration: none; color: var(--text); font-family: var(--f-head); font-size: 1.05rem; background: rgba(16, 26, 35, .6); }
.post-step span { font-family: var(--f-mono); font-size: .72rem; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.post-step-next { text-align: right; grid-column: 2; }
.post-step:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Сайдбар ---------- */
.sidebar { min-width: 0; background: var(--panel-deep); border: 1px solid var(--frame); padding: 1.4rem 1.4rem .6rem; color: var(--text); }
.sidebar .widget { margin-bottom: 1.6rem; }
.sidebar .widget-title { font-family: var(--f-head); font-weight: 500; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text); padding-bottom: .5rem; border-bottom: 1px solid var(--grid); margin-bottom: .8rem; position: relative; }
.sidebar .widget-title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 32px; height: 3px; background: var(--accent); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .5rem 0; border-bottom: 1px dashed var(--grid); color: var(--muted); font-size: .92rem; }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--text); text-decoration: none; }
.sidebar a:hover { color: var(--accent); }
.sidebar .post-date { display: block; font-family: var(--f-mono); font-size: .72rem; color: var(--muted); }
.sidebar p, .sidebar .textwidget { color: #C3CFD7; font-size: .92rem; }

/* ---------- Пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 2.2rem; }
.pager .page-numbers, .pager > span, .pager > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 .75rem;
    border: 1px solid var(--frame);
    background: rgba(16, 26, 35, .7);
    color: var(--text);
    font-family: var(--f-mono);
    font-size: .85rem;
    text-decoration: none;
}
.pager a.page-numbers:hover, .pager > a:hover { border-color: var(--accent); color: var(--accent); }
.pager .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager .page-numbers.dots { border-color: transparent; background: none; color: var(--muted); }

/* ---------- Поиск, 404 ---------- */
.search-form { display: flex; gap: 0; max-width: 34rem; margin: 1rem 0 1.4rem; }
.search-field { flex: 1; min-width: 0; padding: .6rem .8rem; background: var(--panel-deep); border: 1px solid var(--frame); border-right: 0; border-radius: 0; color: var(--text); font: inherit; }
.search-field::placeholder { color: var(--muted); }
.search-submit { flex: 0 0 auto; }
.lost { background: rgba(16, 26, 35, .7); border: 1px solid var(--frame); padding: 2.4rem 2.2rem; }
.lost-code { font-family: var(--f-head); font-size: clamp(4rem, 12vw, 8rem); line-height: 1; color: var(--accent); margin: 0 0 .5rem; letter-spacing: .06em; }
.empty-box { background: rgba(16, 26, 35, .7); border: 1px solid var(--frame); padding: 1.6rem; }

/* ---------- Комментарии ---------- */
.talk { margin-top: 2rem; background: rgba(16, 26, 35, .7); border: 1px solid var(--frame); padding: 1.8rem 2rem; }
.talk-title, .comment-reply-title { font-family: var(--f-head); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; font-size: 1.3rem; color: var(--text); }
.talk-list, .talk-list .children { list-style: none; margin: 0; padding: 0; }
.talk-list .children { padding-left: 1.6rem; border-left: 1px solid var(--grid); }
.note-body { padding: 1rem 0; border-bottom: 1px dashed var(--grid); }
.note-head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: .5rem; }
.note-head img { border-radius: 0; }
.note-author { font-family: var(--f-head); font-weight: 500; color: var(--text); }
.note-date { font-family: var(--f-mono); font-size: .74rem; color: var(--muted); }
.note-wait { color: var(--accent); font-size: .85rem; }
.note-text { color: #DCE4EA; font-size: .95rem; }
.note-reply a { font-family: var(--f-mono); font-size: .76rem; text-transform: uppercase; color: var(--accent); }
.form-note { color: var(--muted); font-size: .85rem; }
.comment-form label { display: block; font-family: var(--f-head); font-size: .9rem; color: var(--head); margin-bottom: .3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; padding: .6rem .8rem; background: var(--panel-deep); border: 1px solid var(--frame); border-radius: 0; color: var(--text); font: inherit;
}
.comment-form .comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { display: inline; font-family: var(--f-body); font-size: .85rem; color: var(--muted); }
.comment-form .req { color: var(--accent); }
.comment-form .submit { background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 0; padding: .6rem 1.3rem; font-family: var(--f-head); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.comment-form .submit:hover { background: var(--accent-dark); }
.talk-closed { color: var(--muted); }

/* ---------- Подвал ---------- */
.basement { background: var(--foot); color: var(--muted); padding: 2.6rem 0 1.4rem; border-top: 1px solid #1E2A33; }
.basement-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; }
.basement-col { min-width: 0; }
.basement .widget { margin-bottom: 1.2rem; }
.basement .widget-title { font-family: var(--f-head); font-weight: 400; font-size: 1.25rem; color: var(--text); margin-bottom: .6rem; }
.basement p, .basement .textwidget { color: #A8B8C3; font-size: .9rem; line-height: 1.5; }
.basement ul { list-style: none; margin: 0; padding: 0; }
.basement li { margin-bottom: .2rem; font-size: .9rem; color: #A8B8C3; }
.basement a { color: #C4D1DA; text-decoration: none; border-bottom: 1px solid rgba(143, 163, 176, .35); }
.basement a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.basement-copy { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid #1E2A33; }
.basement-copy p { margin: 0; font-size: .82rem; color: var(--muted); }

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: 1rem 1.6rem;
    background: var(--foot);
    border-top: 2px solid var(--accent);
    color: var(--text);
}
.cookie-text { margin: 0; font-size: .88rem; max-width: 52rem; color: #C3CFD7; }

/* ---------- Gutenberg ---------- */
.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; }
.wp-caption-text, .wp-element-caption { font-size: .82rem; color: var(--muted); }
.sticky .card-date::after { content: " · закреплено"; color: var(--accent); }

/* ---------- Адаптив ---------- */
@media (max-width: 1240px) {
    .site::before, .site::after { display: none; }
}

@media (max-width: 960px) {
    .shell { width: min(92%, 1180px); }
    .masthead-row { align-items: center; flex-wrap: wrap; }
    .nav-toggle { display: inline-flex; }
    .topnav { display: none; width: 100%; }
    .topnav.is-open { display: block; }
    .topnav-list { flex-direction: column; gap: 0; border-top: 1px solid var(--grid); }
    .topnav-list a { padding: .7rem 0; border-bottom: 1px solid var(--grid); }
    .masthead-row { flex-wrap: wrap; }
    .brand { flex: 1 1 0; max-width: none; }
    .scheme-grid { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
    .scheme-facts { border-left: 0; border-top: 1px solid var(--grid); padding: 1.2rem 0 0; }
    .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
    .facts b { display: block; }
    .cards-front, .layout-single .cards-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .heat-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
    .heat-intro { grid-column: 1 / -1; }
    .check-panel { grid-template-columns: minmax(0, 1fr); padding: 1.4rem 1.6rem; }
    .check-total { border-left: 0; border-top: 1px solid var(--grid); padding: 1.2rem 0 0; justify-content: start; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); }
    .sidebar { margin-top: 2.2rem; }
    .basement-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .masthead { padding-top: 1.1rem; }
    .brand-desc { font-size: .78rem; }
    .brand .brand-mark { width: 42px; height: 42px; }
    .fs { padding: 2.2rem 0; }
    .sec-head { font-size: 1.35rem; }
    .tag { font-size: .56rem; }
    .heat-tag { font-size: .62rem; }
    .facts { grid-template-columns: minmax(0, 1fr); }
    .facts b { display: inline-block; }
    .cards-front, .cards-list, .layout-single .cards-list { grid-template-columns: minmax(0, 1fr); }
    .heat-grid { grid-template-columns: minmax(0, 1fr); }
    .heat-scale { max-width: 18rem; }
    .check-list { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; grid-template-rows: none; }
    .check-panel { padding: 1.2rem 1.2rem; }
    .entry { padding: 1.3rem 1.2rem; }
    .lost, .talk, .empty-box { padding: 1.4rem 1.2rem; }
    .post-steps { grid-template-columns: minmax(0, 1fr); }
    .post-step-next { grid-column: auto; }
    .basement-cols { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
    .cookie-banner { flex-direction: column; align-items: flex-start; padding: 1rem 1.2rem; }
    .alignleft, .alignright { float: none; margin: 1rem 0; }
}

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