/*
Theme Name: dds_twoj-sen.com
Theme URI: https://twoj-sen.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: tihrayon
*/

/* ---------- Правила для [hidden] (до основных стилей) ---------- */
.cookie-banner[hidden] { display: none !important; }

/* ---------- Шрифты (локально, OFL) ---------- */
@font-face {
    font-family: "Noto Serif Display";
    src: url("fonts/noto-serif-display.woff2") format("woff2");
    font-weight: 100 900;
    font-stretch: 62.5% 100%;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Fira Sans";
    src: url("fonts/fira-sans-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Fira Sans";
    src: url("fonts/fira-sans-italic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "Fira Sans";
    src: url("fonts/fira-sans-medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Fira Sans";
    src: url("fonts/fira-sans-semibold.woff2") format("woff2");
    font-weight: 600 700;
    font-style: normal;
    font-display: swap;
}

/* ---------- Переменные ---------- */
:root {
    --night: #0E1A1F;
    --night-grid: #12242A;
    --grid-line: #1E3A40;
    --night-deep: #0B1418;
    --night-notes: #101E23;
    --paper: #D8D2BE;
    --paper-cell: #B9B29A;
    --foot: #071012;
    --panel: #16272D;
    --rule: #2E4A50;
    --text: #E8E4D6;
    --muted: #8FA3A0;
    --amber: #E3B25B;
    --sage: #7FA98C;
    --ink: #1F2A26;
    --ink-amber: #A8792F;
    --side: #12242A;
    --font-head: "Noto Serif Display", "PT Serif", Georgia, "Times New Roman", serif;
    --font-body: "Fira Sans", "PT Sans", "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--night);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

p { margin: 0 0 1em; }

h1, h2, h3, h4, h5, h6 {
    margin: 1.4em 0 0.55em;
    font-family: var(--font-head);
    font-weight: 500;
    font-stretch: 75%;
    line-height: 1.15;
    color: var(--text);
}

p, li, h1, h2, h3, h4, h5, h6, td, th, dd, dt, figcaption, blockquote {
    overflow-wrap: break-word;
    hyphens: auto;
}

a {
    color: var(--amber);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.25em;
    transition: color .2s ease, text-decoration-color .2s ease;
}
a:hover { color: var(--text); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
}

img { max-width: 100%; height: auto; }

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

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

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    padding: .55rem 1.35rem;
    border: 1px solid var(--amber);
    border-radius: 0;
    background: transparent;
    color: var(--amber);
    font-family: var(--font-body);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.4;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.btn:hover, .btn:focus-visible {
    background: var(--amber);
    color: var(--foot);
    transform: translate(2px, -2px);
}

.link-line {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--amber);
    text-underline-offset: .35em;
}
.link-line:hover { color: var(--amber); }

/* ---------- Шапка ---------- */
.masthead {
    background: var(--night);
    border-bottom: 1px solid var(--rule);
}
.masthead-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.1rem 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    min-width: 0;
    color: var(--text);
    text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand-mark { flex: 0 0 auto; display: block; line-height: 0; }
.brand-svg { width: 64px; height: 64px; display: block; }
.brand-logo { display: block; max-height: 64px; width: auto; }
.brand-text { display: flex; flex-direction: column; min-width: 0; max-width: 620px; }
.brand-name {
    font-family: var(--font-head);
    font-stretch: 87.5%;
    font-size: 1.12rem;
    line-height: 1.25;
    color: var(--text);
}
.brand-tagline {
    margin-top: .3rem;
    font-size: .76rem;
    line-height: 1.4;
    color: var(--muted);
}

.site-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 2.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-nav-list a {
    display: inline-block;
    padding: .3rem 0;
    color: var(--text);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
.site-nav-list a:hover,
.site-nav-list .current-menu-item > a,
.site-nav-list .current_page_item > a {
    color: var(--amber);
    border-bottom-color: var(--amber);
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: .6rem;
    padding: .55rem .9rem;
    border: 1px solid var(--amber);
    background: transparent;
    color: var(--amber);
    font: 600 .78rem/1 var(--font-body);
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 18px;
    height: 1px;
    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; }

/* ---------- Секции главной ---------- */
.band { padding: 2.4rem 0 2.8rem; border-bottom: 1px solid #13272D; }
.band--hero { padding: 0; background: var(--night); }
.band--grid {
    background-color: var(--night-grid);
    background-image:
        linear-gradient(rgba(30, 58, 64, .9) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 58, 64, .9) 1px, transparent 1px),
        linear-gradient(rgba(30, 58, 64, .35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 58, 64, .35) 1px, transparent 1px);
    background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
    background-position: -1px -1px;
}
.band--deep { background: var(--night-deep); }
.band--notes { background: var(--night-notes); }
.band--paper {
    background-color: var(--paper);
    background-image:
        linear-gradient(rgba(185, 178, 154, .55) 1px, transparent 1px),
        linear-gradient(90deg, rgba(185, 178, 154, .55) 1px, transparent 1px);
    background-size: 16px 16px;
    color: var(--ink);
    border-bottom: 0;
}
.band--night { background: var(--night); }

.sec-head {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    margin: 0 0 2rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-stretch: 100%;
    font-size: 1.3rem;
    line-height: 1.2;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--text);
    hyphens: manual;
}
.sec-num {
    flex: 0 0 auto;
    font-size: 1.1rem;
    letter-spacing: 0;
    color: var(--amber);
}
.sec-name { flex: 0 1 auto; min-width: 0; }
.sec-head::after {
    content: "";
    flex: 1 1 40px;
    height: 1px;
    background: var(--muted);
    opacity: .55;
}
.band--paper .sec-head { color: var(--ink); }
.band--paper .sec-num { color: var(--ink-amber); }
.band--paper .sec-head::after { background: var(--ink); opacity: .7; }

/* Hero */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 74fr) minmax(0, 26fr);
    align-items: stretch;
}
.hero-figure {
    position: relative;
    margin: 0;
    min-width: 0;
    overflow: hidden;
}
.hero-figure img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 340px;
    aspect-ratio: 1593 / 652;
    object-fit: cover;
    object-position: 60% 50%;
}
.hero-figure::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(170deg, rgba(14, 26, 31, .62) 0%, rgba(14, 26, 31, .25) 38%, rgba(14, 26, 31, 0) 60%);
    pointer-events: none;
}
.hero-title {
    position: absolute;
    top: 5%;
    left: 5%;
    right: 4%;
    margin: 0;
    font-family: var(--font-head);
    font-stretch: 62.5%;
    font-weight: 750;
    font-size: clamp(2rem, 5.3vw, 5.2rem);
    line-height: .98;
    letter-spacing: .005em;
    text-transform: uppercase;
    color: #DDD3B6;
    text-shadow: 0 2px 18px rgba(4, 12, 15, .65);
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: manual;
}
.hero-aside {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.4rem;
    min-width: 0;
    padding: 2rem 0 2rem 2.2rem;
    border-left: 1px solid var(--rule);
}
.hero-lead {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.45;
    color: var(--text);
}
.hero-note {
    margin: 0;
    font-size: .85rem;
    color: var(--muted);
}

/* Блок 1 — шкала тишины */
.gauge-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}
.gauge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
    min-width: 0;
    padding: .6rem 1rem .4rem;
    text-align: center;
}
.gauge + .gauge { border-left: 1px solid var(--rule); }
.gauge-place { font-weight: 500; font-size: 1.02rem; color: var(--text); }
.gauge-scale {
    position: relative;
    display: block;
    width: 74px;
    height: 150px;
    margin: .3rem 0 .4rem;
}
.gauge-scale::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: repeating-linear-gradient(90deg, rgba(127, 169, 140, .12) 0 2px, transparent 2px 5px);
    border-left: 1px solid rgba(127, 169, 140, .2);
}
.gauge-ruler {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 12px;
    border-left: 1px solid var(--sage);
    border-right: 1px solid var(--sage);
    background:
        repeating-linear-gradient(to top, var(--sage) 0 1px, transparent 1px 7.5px) left / 6px 100% no-repeat,
        repeating-linear-gradient(to top, var(--sage) 0 1px, transparent 1px 37.5px) left / 12px 100% no-repeat;
    opacity: .9;
}
.gauge-mark {
    position: absolute;
    left: 17px;
    width: 26px;
    height: 2px;
    margin-bottom: -1px;
    background: var(--amber);
    box-shadow: 0 0 10px rgba(227, 178, 91, .6);
}
.gauge-nums {
    position: absolute;
    left: 44px;
    top: -8px;
    bottom: -8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: .72rem;
    line-height: 1;
    color: var(--muted);
}
.gauge-level { font-weight: 500; color: var(--text); }
.gauge-db { margin-top: -.4rem; font-size: .85rem; color: var(--muted); }

/* Блок 2 — циферблаты */
.dial-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.dial {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    text-align: center;
}
.dial-svg { display: block; width: min(100%, 180px); height: auto; }
.dial-rim { fill: none; stroke: var(--sage); stroke-width: 3; opacity: .55; }
.dial-face { fill: #0F2329; stroke: rgba(127, 169, 140, .35); stroke-width: 1; }
.dial-tick { stroke: var(--sage); stroke-width: 1; opacity: .55; }
.dial-tick-major { stroke: var(--text); stroke-width: 1.6; }
.dial-num { fill: var(--muted); font-family: var(--font-body); font-size: 12px; text-anchor: middle; }
.dial-unit { fill: var(--text); font-family: var(--font-body); font-size: 13px; text-anchor: middle; }
.dial-hand { stroke: var(--amber); stroke-width: 2.4; stroke-linecap: round; }
.dial-hand-b { stroke: var(--sage); stroke-width: 1.4; stroke-linecap: round; }
.dial-cap { fill: var(--sage); }
.dial-moon { fill: var(--sage); }
.dial-label {
    margin-top: 1rem;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text);
}
.dial-desc { margin-top: .35rem; max-width: 240px; font-size: .85rem; line-height: 1.5; color: var(--muted); }
.dial-caption { margin: 2.2rem 0 0; text-align: center; color: var(--text); }

/* Последние записи и карточки */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem;
}
.layout-single .card-grid,
.card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1rem 1rem 1.3rem;
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: 0;
    overflow: hidden;
    transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--amber); transform: translateY(-3px); }
.card.sticky { border-top: 2px solid var(--amber); }
.card-thumb { display: block; overflow: hidden; }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 1;
    object-fit: cover;
    transition: transform .4s ease;
}
.card:hover .card-thumb img { transform: scale(1.03); }
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-top: 1rem;
}
.card-date { font-size: .82rem; color: var(--sage); }
.card-title {
    margin: .35rem 0 .55rem;
    font-family: var(--font-body);
    font-stretch: 100%;
    font-size: 1.22rem;
    font-weight: 500;
    line-height: 1.3;
}
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--amber); }
.card-excerpt { flex: 1; font-size: .92rem; line-height: 1.55; color: #CFCBBD; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt a { color: var(--amber); }
.card-more { align-self: flex-start; margin-top: 1rem; }
.notes-more { margin: 1.8rem 0 0; text-align: right; }
.empty-note { color: var(--muted); }

/* Блок 4 — бумажный разбор */
.parts {
    display: grid;
    grid-template-columns: minmax(0, 60fr) minmax(0, 40fr);
    gap: 3.5rem;
    align-items: center;
}
.parts-plan {
    position: relative;
    margin: 0;
    min-width: 0;
}
.parts-plan img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1474 / 490;
    mix-blend-mode: darken;
}
.parts-pin {
    position: absolute;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border-radius: 50%;
    background: #EDC27A;
    border: 1px solid var(--ink-amber);
    box-shadow: 0 0 0 4px rgba(227, 178, 91, .35);
    color: var(--ink);
    font-weight: 600;
    font-size: .85rem;
    line-height: 1;
}
.parts-list {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.parts-list li { display: flex; align-items: flex-start; gap: 1.1rem; }
.parts-num {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--ink);
    border-radius: 50%;
    font-size: .85rem;
    font-weight: 500;
    color: var(--ink);
}
.parts-text { display: flex; flex-direction: column; min-width: 0; }
.parts-text strong { font-weight: 600; font-size: 1.1rem; line-height: 1.3; color: var(--ink); }
.parts-text span { font-size: .88rem; line-height: 1.45; color: #4A564F; }
.parts-verdict {
    margin: 2rem 0 0;
    padding: .9rem 1.4rem;
    border: 1px solid var(--ink-amber);
    background: rgba(216, 210, 190, .75);
    color: var(--ink);
    font-size: .95rem;
}
.parts-verdict span {
    margin-right: .8rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-amber);
}

/* Блок 5 — карта спокойствия */
.calm { position: relative; padding-bottom: 2rem; }
.calm-map { margin: 0; width: 64%; }
.calm-map img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1600 / 540;
    mix-blend-mode: lighten;
}
.calm-legend {
    position: absolute;
    top: 0;
    bottom: 2rem;
    left: 64%;
    right: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.calm-item {
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    padding-left: 1.6rem;
}
.calm-item::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .62rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 8px rgba(227, 178, 91, .7);
    transform: translateY(-50%);
}
.calm-item--z1 { top: calc(6.3% - .62rem); }
.calm-item--z2 { top: calc(29.6% - .62rem); }
.calm-item--z3 { top: calc(53.7% - .62rem); }
.calm-item--z4 { top: calc(76.9% - .62rem); }
.calm-item strong { font-weight: 500; font-size: 1.08rem; line-height: 1.25; color: var(--text); }
.calm-item span { font-size: .86rem; line-height: 1.4; color: var(--muted); max-width: 300px; }

/* ---------- Внутренние страницы ---------- */
.page-wrap { padding: 1.6rem 0 3.5rem; }

.crumbs {
    margin: 0 0 1.8rem;
    font-size: .85rem;
    color: var(--muted);
}
.crumbs a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--rule); }
.crumbs a:hover { color: var(--amber); border-bottom-color: var(--amber); }
.crumbs-sep { margin: 0 .45rem; color: var(--amber); }
.crumbs-current { color: var(--muted); }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 6%;
    align-items: start;
}
.layout-single { display: block; }
.layout-single .content-area { width: 85%; margin-left: auto; margin-right: auto; }
.content-area { min-width: 0; }

.page-head { margin-bottom: 2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--rule); }
.page-title,
.entry-title {
    margin: 0;
    font-family: var(--font-head);
    font-stretch: 62.5%;
    font-weight: 700;
    font-size: clamp(2.2rem, 4.6vw, 3.8rem);
    line-height: 1.02;
    text-transform: uppercase;
    letter-spacing: .01em;
    color: #DDD3B6;
}
.page-sub { margin: .7rem 0 0; color: var(--muted); }

.entry-head { margin-bottom: 1.6rem; }
.entry-meta { margin: .8rem 0 0; font-size: .88rem; color: var(--sage); }
.entry-meta a { color: var(--sage); }
.entry-meta-sep { margin: 0 .5rem; color: var(--rule); }
.entry-cover { margin: 0 0 2rem; border: 1px solid var(--rule); }
.entry-cover img { display: block; width: 100%; height: auto; }

.entry-content { font-size: 1.05rem; line-height: 1.75; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: 2rem; font-stretch: 75%; }
.entry-content h3 { font-size: 1.5rem; }
.entry-content h4 { font-size: 1.2rem; font-family: var(--font-body); font-stretch: 100%; font-weight: 600; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.entry-content li { margin-bottom: .35em; }
.entry-content ul li::marker { color: var(--sage); }
.entry-content ol li::marker { color: var(--amber); font-weight: 600; }
.entry-content blockquote {
    margin: 1.6em 0;
    padding: 1.3rem 1.6rem;
    background: var(--night-grid);
    border-left: 3px solid var(--amber);
    font-family: var(--font-head);
    font-stretch: 87.5%;
    font-size: 1.25rem;
    line-height: 1.5;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption, .wp-caption-text { font-size: .85rem; color: var(--muted); }
.entry-content img { display: block; }
.entry-content table { width: 100%; margin: 1.5em 0; border-collapse: collapse; border: 1px solid var(--rule); font-size: .95rem; }
.entry-content th, .entry-content td { padding: .6rem .8rem; border: 1px solid var(--rule); text-align: left; }
.entry-content th { background: var(--panel); color: var(--amber); font-weight: 600; }
.entry-content pre { overflow-x: auto; padding: 1rem; background: var(--foot); border: 1px solid var(--rule); }
.entry-content code { font-size: .9em; color: var(--amber); }
.entry-content hr { border: 0; border-top: 1px dashed var(--rule); margin: 2em 0; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.page-links { margin-top: 1.5rem; color: var(--muted); }

.entry-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0 0; }
.entry-tags a {
    padding: .2rem .7rem;
    border: 1px solid var(--rule);
    color: var(--muted);
    font-size: .85rem;
    text-decoration: none;
}
.entry-tags a:hover { border-color: var(--sage); color: var(--sage); }

.entry-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 2.5rem 0 0;
}
.entry-nav a {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    padding: 1rem 1.2rem;
    background: var(--panel);
    border: 1px solid var(--rule);
    color: var(--text);
    text-decoration: none;
}
.entry-nav a span { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.entry-nav a:hover { border-color: var(--amber); }
.entry-nav-next { grid-column: 2; text-align: right; }

/* Сайдбар и виджеты */
.sidebar {
    min-width: 0;
    padding: 1.5rem 1.4rem;
    background: var(--side);
    border: 1px solid var(--rule);
    color: var(--text);
}
.sidebar .widget + .widget { margin-top: 2rem; }
.sidebar .widget-title,
.colophon .widget-title {
    margin: 0 0 1rem;
    font-family: var(--font-body);
    font-stretch: 100%;
    font-weight: 600;
    font-size: .9rem;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.sidebar .widget-title { color: var(--amber); }
.sidebar ul { margin: 0; padding: 0; list-style: none; }
.sidebar li { padding: .55rem 0; border-bottom: 1px dashed var(--rule); color: var(--text); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--text); text-decoration: none; }
.sidebar a:hover { color: var(--amber); }
.sidebar .post-date { display: block; font-size: .8rem; color: var(--muted); }
.sidebar p, .sidebar .textwidget { color: var(--text); }

/* Пагинация */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin: 2.5rem 0 0;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    padding: .45rem .8rem;
    border: 1px solid var(--rule);
    background: var(--panel);
    color: var(--text);
    font-size: .9rem;
    text-decoration: none;
}
.pager a.page-numbers:hover { border-color: var(--amber); color: var(--amber); }
.pager .page-numbers.current { background: var(--amber); border-color: var(--amber); color: var(--foot); font-weight: 600; }
.pager .page-numbers.dots { border-color: transparent; background: none; color: var(--muted); }

/* Поиск */
.search-form { display: flex; gap: .5rem; max-width: 520px; margin: 1.2rem 0; }
.search-field {
    flex: 1;
    min-width: 0;
    padding: .65rem .9rem;
    border: 1px solid var(--rule);
    border-radius: 0;
    background: var(--foot);
    color: var(--text);
    font: inherit;
}
.search-field::placeholder { color: var(--muted); }
.search-submit {
    padding: .6rem 1.2rem;
    border: 1px solid var(--amber);
    border-radius: 0;
    background: transparent;
    color: var(--amber);
    font: 600 .8rem/1 var(--font-body);
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
}
.search-submit:hover { background: var(--amber); color: var(--foot); }
.sidebar .search-form { margin: 0; }

/* 404 */
.lost { text-align: left; }
.lost-code {
    margin: 0;
    font-family: var(--font-head);
    font-stretch: 62.5%;
    font-weight: 700;
    font-size: clamp(6rem, 18vw, 12rem);
    line-height: .9;
    color: transparent;
    -webkit-text-stroke: 1px var(--amber);
}
.lost-text { margin: 1rem 0; max-width: 620px; color: var(--muted); }

/* Комментарии */
.remarks { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.remarks-title, .comment-reply-title {
    margin: 0 0 1.4rem;
    font-family: var(--font-body);
    font-stretch: 100%;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.remarks-title span { color: var(--amber); }
.remark-list, .remark-list .children { margin: 0; padding: 0; list-style: none; }
.remark-list .children { margin-left: 1.8rem; }
.remark-body {
    margin-bottom: 1rem;
    padding: 1.1rem 1.3rem;
    background: var(--panel);
    border: 1px solid var(--rule);
}
.remark-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.remark-head img { display: block; border-radius: 0; border: 1px solid var(--rule); }
.remark-author { display: block; font-weight: 600; }
.remark-date { font-size: .8rem; color: var(--sage); }
.remark-wait { color: var(--amber); font-size: .85rem; }
.remark-text p:last-child { margin-bottom: 0; }
.remark-reply a { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.comment-respond { margin-top: 2rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; margin-bottom: .35rem; font-size: .9rem; color: var(--muted); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .65rem .85rem;
    border: 1px solid var(--rule);
    border-radius: 0;
    background: var(--foot);
    color: var(--text);
    font: inherit;
}
.comment-form-cookies-consent { display: flex; gap: .6rem; align-items: flex-start; }
.comment-form-cookies-consent label { margin: 0; }
.comment-form .submit {
    padding: .7rem 1.6rem;
    border: 1px solid var(--amber);
    border-radius: 0;
    background: var(--amber);
    color: var(--foot);
    font: 600 .82rem/1 var(--font-body);
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
}
.comment-form .submit:hover { background: transparent; color: var(--amber); }
.req { color: var(--amber); }
.comment-notes, .logged-in-as, .must-log-in { font-size: .88rem; color: var(--muted); }
.remarks .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0; }

/* ---------- Подвал ---------- */
.colophon {
    background: var(--foot);
    color: var(--muted);
    border-top: 1px solid var(--rule);
    padding: 2.6rem 0 1.4rem;
}
.colophon-cols {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--rule);
}
.colophon-col { min-width: 0; }
.colophon .widget + .widget { margin-top: 1.5rem; }
.colophon .widget-title { color: var(--text); }
.colophon p, .colophon .textwidget { color: var(--muted); font-size: .9rem; line-height: 1.6; }
.colophon ul { margin: 0; padding: 0; list-style: none; }
.colophon li { padding: .2rem 0; color: var(--muted); }
.colophon a { color: var(--text); text-decoration: none; font-size: .9rem; }
.colophon a:hover { color: var(--amber); text-decoration: underline; }
.colophon .textwidget a { color: var(--amber); }
.colophon-copy { margin: 1.3rem 0 0; text-align: center; 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.4rem;
    padding: 1rem 1.5rem;
    background: var(--panel);
    border-top: 1px solid var(--amber);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, .35);
}
.cookie-text { margin: 0; max-width: 760px; font-size: .88rem; line-height: 1.5; color: var(--text); }
.cookie-accept {
    flex: 0 0 auto;
    padding: .55rem 1.5rem;
    border: 1px solid var(--amber);
    border-radius: 0;
    background: var(--amber);
    color: var(--foot);
    font: 600 .8rem/1 var(--font-body);
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
}
.cookie-accept:hover { background: transparent; color: var(--amber); }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
    .calm-item span { font-size: .8rem; }
    .calm-item strong { font-size: 1rem; }
}

@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .masthead-row { flex-wrap: wrap; }
    .site-nav { display: none; width: 100%; }
    .site-nav.is-open { display: block; }
    .site-nav-list { flex-direction: column; gap: 0; padding: .6rem 0 .3rem; border-top: 1px solid var(--rule); }
    .site-nav-list a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--rule); }

    .hero { grid-template-columns: minmax(0, 1fr); }
    .hero-aside { padding: 1.6rem 0 2rem; border-left: 0; border-top: 1px solid var(--rule); gap: 1rem; }
    .hero-title { font-size: clamp(2.2rem, 7.4vw, 4.4rem); }

    .gauge-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.6rem; }
    .gauge:nth-child(4) { border-left: 0; }

    .dial-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.4rem; }

    .card-grid--three,
    .layout-single .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .parts { grid-template-columns: minmax(0, 1fr); gap: 2rem; }

    .calm { padding-bottom: 0; }
    .calm-map { width: 100%; }
    .calm-legend {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.2rem 2rem;
        margin-top: 1.6rem;
    }
    .calm-item { position: relative; top: auto; }

    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
    .layout-single .content-area { width: 100%; }

    .colophon-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
}

@media (max-width: 600px) {
    .home .shell { width: 92%; }
    .brand { gap: 1rem; }
    .brand-svg { width: 48px; height: 48px; }
    .brand-name { font-size: 1.02rem; }
    .brand-tagline { display: none; }

    .band { padding: 2rem 0 2.2rem; }
    .band--hero { padding: 0; }
    .sec-head { gap: .9rem; font-size: 1.02rem; letter-spacing: .2em; margin-bottom: 1.5rem; }
    .hero-figure img { min-height: 300px; aspect-ratio: 4 / 5; object-position: 38% 50%; }
    .hero-title { font-size: clamp(1.9rem, 9.6vw, 3rem); right: 4%; }
    .hero-lead { font-size: 1.15rem; }

    .gauge-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gauge:nth-child(n) { border-left: 0; }
    .gauge:nth-child(2n) { border-left: 1px solid var(--rule); }

    .dial-row { gap: 1.4rem; }
    .dial-desc { font-size: .8rem; }

    .card-grid,
    .card-grid--three,
    .layout-single .card-grid { grid-template-columns: minmax(0, 1fr); }

    .parts-pin { width: 22px; height: 22px; margin: -11px 0 0 -11px; font-size: .7rem; box-shadow: 0 0 0 3px rgba(227, 178, 91, .35); }
    .parts-verdict { padding: .9rem 1.1rem; }
    .parts-verdict span { display: block; margin: 0 0 .3rem; }

    .calm-legend { grid-template-columns: minmax(0, 1fr); }

    .entry-nav { grid-template-columns: minmax(0, 1fr); }
    .entry-nav-next { grid-column: 1; }
    .entry-content blockquote { padding: 1.1rem 1.2rem; }
    .remark-list .children { margin-left: .8rem; }

    .search-form { flex-direction: column; }

    .colophon-cols { grid-template-columns: minmax(0, 1fr); }
    .cookie-banner { flex-direction: column; align-items: stretch; padding: 1rem 1.2rem; text-align: left; }
}
