/*
Theme Name: dds_santexvar.ru
Description: Информационный справочник по сантехническому оборудованию и инженерным системам. Японский минимализм с индустриальным акцентом, холодная палитра.
Author: Сергей Кузнецов
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: sntxv
*/

/* ============================================================
   1. Переменные
   ============================================================ */

:root {
    --paper: #F4F6F9;
    --white: #FFFFFF;
    --head-bg: #1E293B;
    --foot-bg: #0F172A;
    --ink: #1E293B;
    --accent: #1E4A7A;
    --accent-soft: #2A639E;
    --steel: #A8B5C0;
    --muted: #94A3B8;
    --line: #E2E8F0;
    --sans: "Inter", "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --serif: "Merriweather", "Lora", Georgia, "Times New Roman", serif;
}

/* ============================================================
   2. Скрытые элементы (правило до основных стилей)
   ============================================================ */

.cookie-banner[hidden] { display: none !important; }
.site-nav[hidden] { display: none !important; }

/* ============================================================
   3. База
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.75;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        repeating-linear-gradient(0deg, rgba(30, 74, 122, 0.05) 0 1px, transparent 1px 22px),
        repeating-linear-gradient(90deg, rgba(30, 74, 122, 0.05) 0 1px, transparent 1px 22px);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sans);
    color: var(--ink);
    line-height: 1.22;
    letter-spacing: 0.01em;
    margin: 0 0 0.7em;
    font-weight: 700;
}

h1 { font-size: 2.1rem; text-transform: uppercase; letter-spacing: 0.02em; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

a { color: var(--accent); text-decoration: none; }

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

.site-main { display: block; padding-bottom: 3rem; }

/* ============================================================
   4. Кнопки и ссылки
   ============================================================ */

.btn {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--accent);
    border-radius: 0;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.btn:hover,
.btn:focus {
    background: var(--accent);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--accent);
    color: #FFFFFF;
}

.btn-accent:hover,
.btn-accent:focus {
    background: var(--head-bg);
    border-color: var(--head-bg);
}

.btn-small { padding: 0.55rem 1.1rem; font-size: 0.8rem; }

.btn-ghost-light {
    border-color: var(--steel);
    color: #FFFFFF;
}

.btn-ghost-light:hover,
.btn-ghost-light:focus {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
}

.entry-content a,
.card-excerpt a,
.widget-text a,
.page-note a {
    font-weight: 700;
    color: var(--accent);
    background-image: linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 2px;
    transition: background-size 0.25s ease;
}

.entry-content a:hover,
.card-excerpt a:hover,
.widget-text a:hover,
.page-note a:hover {
    background-size: 100% 2px;
}

/* ============================================================
   5. Шапка
   ============================================================ */

.site-head {
    background: var(--head-bg);
    color: #FFFFFF;
    border-bottom: 3px solid var(--accent);
}

.head-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    color: #FFFFFF;
}

.brand-mark {
    display: block;
    flex: 0 0 auto;
    color: var(--steel);
}

.brand-mark svg { display: block; width: 42px; height: 42px; }

.brand-logo { width: auto; max-height: 52px; }

.brand-text { display: block; min-width: 0; }

.brand-name {
    display: block;
    font-family: var(--sans);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #FFFFFF;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.55), 0 -1px 0 rgba(255, 255, 255, 0.14);
}

.brand-note {
    display: none;
    font-family: var(--sans);
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--steel);
    margin-top: 0.35rem;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
    background: transparent;
    border: 2px solid var(--steel);
    border-radius: 0;
    color: #FFFFFF;
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor;
}

.nav-toggle.is-active { border-color: var(--accent); background: var(--accent); }

.head-nav-wrap { border-top: 1px solid rgba(168, 181, 192, 0.25); }

.site-nav .nav-list {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav.is-open .nav-list { display: block; padding: 0.4rem 0 0.8rem; }

.nav-list li { margin: 0; }

.nav-list a {
    display: block;
    font-family: var(--sans);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #FFFFFF;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(168, 181, 192, 0.18);
}

.nav-list a:hover,
.nav-list .current-menu-item > a {
    color: var(--steel);
}

.nav-list .sub-menu {
    list-style: none;
    margin: 0;
    padding-left: 1rem;
}

/* ============================================================
   6. Хлебные крошки
   ============================================================ */

.page-wrap { padding: 1.6rem 0 0; }

.trail {
    font-family: var(--sans);
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px dotted var(--steel);
    word-break: break-word;
}

.trail a { color: var(--accent); font-weight: 600; }
.trail a:hover { text-decoration: underline; }
.trail-sep { color: var(--steel); margin: 0 0.2rem; }

/* ============================================================
   7. Раскладки
   ============================================================ */

.layout-single {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.layout-with-sidebar { display: block; }

.content-area { min-width: 0; }

.sidebar {
    min-width: 0;
    margin-top: 2.5rem;
    background: var(--white);
    border: 1px solid var(--line);
    padding: 1.5rem 1.4rem;
}

.page-head { margin-bottom: 1.8rem; }

.page-title { margin-bottom: 0.5rem; }

.page-note { color: var(--muted); font-size: 0.98rem; }

.empty-note {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 1.4rem 1.4rem;
    color: var(--muted);
}

/* ============================================================
   8. Заголовки секций (техническая выноска)
   ============================================================ */

.sec-title {
    position: relative;
    padding-left: 15px;
    margin-bottom: 0.6rem;
    text-align: left;
}

.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.16em;
    bottom: 0.16em;
    width: 3px;
    background: var(--accent);
}

.sec-note {
    color: var(--muted);
    font-size: 0.96rem;
    margin: 0 0 1.6rem;
    padding-left: 15px;
}

/* ============================================================
   9. Карточки записей
   ============================================================ */

.card-stack { display: block; }

.card {
    display: flex;
    flex-direction: column;
    border-radius: 0;
    border-bottom: 2px solid var(--line);
    background: transparent;
    padding: 0 0 1.6rem;
    margin: 0 0 1.8rem;
    transition: border-color 0.2s ease;
}

.card:hover { border-bottom-color: var(--accent); }

.card-thumb-wrap {
    flex: none;
    width: 100%;
    position: static;
    overflow: hidden;
    margin-bottom: 1rem;
}

.card-thumb-wrap a { display: block; position: static; }

.card-thumb-wrap img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    filter: grayscale(1) contrast(1.08);
    transition: filter 0.25s ease;
}

.card:hover .card-thumb-wrap img { filter: grayscale(0.6) contrast(1.05); }

.card-body { flex: 1; min-width: 0; }

.entry-meta {
    font-family: var(--sans);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.entry-meta a { color: var(--muted); }
.entry-meta a:hover { color: var(--accent); }
.meta-sep { color: var(--steel); }

.card-title {
    font-size: 1.35rem;
    margin: 0 0 0.6rem;
    transition: transform 0.2s ease;
}

.card-title a { color: var(--ink); }
.card:hover .card-title { transform: translateX(5px); }
.card:hover .card-title a { color: var(--accent); }

.card-excerpt { color: #33445A; font-size: 0.98rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

.card-more { margin: 0.9rem 0 0; }

/* ============================================================
   10. Главная — Hero
   ============================================================ */

.fs-hero {
    position: relative;
    overflow: hidden;
    background: var(--head-bg);
    color: #FFFFFF;
    padding: 3rem 0;
}

.hero-grid-art {
    position: absolute;
    inset: 0;
    opacity: 0.16;
    pointer-events: none;
}

.hero-grid-art svg { width: 100%; height: 100%; display: block; }

.hero-pipe {
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 220px;
    height: 220px;
    opacity: 0.05;
    pointer-events: none;
}

.hero-pipe svg { width: 100%; height: 100%; display: block; }

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}

.hero-main { min-width: 0; }

.hero-kicker {
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--steel);
    margin-bottom: 0.9rem;
}

.hero-title {
    color: #FFFFFF;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.hero-rule {
    display: block;
    width: 90px;
    height: 6px;
    background: var(--accent);
    margin-bottom: 1.2rem;
}

.hero-lead { color: #D6DEE8; font-size: 1.02rem; }

.hero-side { min-width: 0; }

.hero-claim {
    border-left: 8px solid var(--accent);
    background: rgba(255, 255, 255, 0.04);
    padding: 1.2rem 1.3rem;
    margin-bottom: 1.4rem;
    color: #E4EAF1;
    font-size: 0.98rem;
}

/* ============================================================
   11. Главная — секции
   ============================================================ */

.fs-block { padding: 2.8rem 0; border-bottom: 1px dotted var(--steel); }
.fs-block:last-of-type { border-bottom: 0; }
.alt-bg { background: var(--white); }

/* Таймлайн */

.flow-list {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1.5rem;
    border-left: 2px dotted var(--steel);
}

.flow-item {
    position: relative;
    min-width: 0;
    margin: 0 0 1.8rem;
    padding-left: 0.2rem;
}

.flow-item:last-child { margin-bottom: 0; }

.flow-dot {
    position: absolute;
    left: calc(-1.5rem - 9px);
    top: 0.35rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--paper);
}

.alt-bg .flow-dot { border-color: var(--white); }

.flow-step {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.flow-head { font-size: 1.12rem; margin-bottom: 0.4rem; }

.flow-item p { font-size: 0.96rem; color: #33445A; margin: 0; }

/* Последние записи */

.latest-more { margin: 1.6rem 0 0; }

/* Статистика */

.facts-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
}

.fact {
    min-width: 0;
    padding: 0 0 1.4rem;
    border-bottom: 1px solid var(--line);
}

.fact:last-child { border-bottom: 0; padding-bottom: 0; }

.fact-num {
    display: block;
    font-family: var(--sans);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.fact-label {
    display: block;
    font-family: var(--sans);
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--muted);
}

/* Карта тем */

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

.map-tile {
    position: relative;
    min-width: 0;
    display: block;
    border: 3px solid var(--line);
    border-radius: 0;
    background: var(--white);
    padding: 1.4rem 1.3rem;
    color: var(--ink);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.alt-bg .map-tile { background: var(--paper); }

.map-tile:hover { border-color: var(--accent); transform: translateY(-2px); }

.map-icon { display: block; color: var(--steel); margin-bottom: 0.7rem; }
.map-icon svg { width: 32px; height: 32px; display: block; }
.map-tile:hover .map-icon { color: var(--accent); }

.map-name {
    display: block;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.map-arrow {
    position: absolute;
    top: 0.9rem;
    right: 1rem;
    font-size: 1rem;
    color: var(--accent);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.map-tile:hover .map-arrow { opacity: 1; }

/* ============================================================
   12. Пагинация
   ============================================================ */

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.4rem;
    border-top: 1px dotted var(--steel);
}

.pager .page-numbers {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border: 2px solid var(--line);
    border-radius: 0;
    padding: 0.5rem 0.9rem;
    color: var(--accent);
    background: var(--white);
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.pager a.page-numbers:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
}

.pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
}

.pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
}

/* ============================================================
   13. Запись и страница
   ============================================================ */

.entry {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 1.6rem 1.3rem;
}

.entry-head { margin-bottom: 1.2rem; }

.entry-title { font-size: 1.9rem; margin-bottom: 0.6rem; }

.entry-cover { margin: 0 0 1.4rem; }
.entry-cover img { width: 100%; display: block; filter: grayscale(1) contrast(1.05); }

.entry-content { min-width: 0; }

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    position: relative;
    padding-left: 15px;
    margin-top: 1.8em;
}

.entry-content h2::before,
.entry-content h3::before,
.entry-content h4::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.16em;
    bottom: 0.16em;
    width: 3px;
    background: var(--accent);
}

.entry-content img { margin: 1.2rem 0; }

.entry-content blockquote {
    margin: 1.6rem 0;
    padding: 1.3rem 1.4rem;
    background: var(--paper);
    border-left: 8px solid var(--accent);
    font-size: 1.02rem;
}

.entry-content blockquote p:last-child { margin-bottom: 0; }

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4rem 0;
    font-size: 0.94rem;
    border: 1px solid var(--ink);
}

.entry-content th,
.entry-content td {
    border: 1px solid var(--ink);
    padding: 0.6rem 0.7rem;
    text-align: left;
}

.entry-content th {
    background: var(--paper);
    font-family: var(--sans);
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.entry-content pre {
    overflow-x: auto;
    background: var(--head-bg);
    color: #E4EAF1;
    padding: 1rem;
    font-size: 0.88rem;
}

.entry-content code { font-size: 0.92em; }

.entry-pages { margin-top: 1.2rem; font-family: var(--sans); font-size: 0.9rem; }

.entry-tags {
    margin-top: 1.6rem;
    padding-top: 1rem;
    border-top: 1px dotted var(--steel);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.entry-tags a {
    font-family: var(--sans);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid var(--line);
    padding: 0.3rem 0.7rem;
    color: var(--accent);
}

.entry-tags a:hover { border-color: var(--accent); }

.entry-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin-top: 1.8rem;
}

.entry-nav-link {
    display: block;
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-bottom: 2px solid var(--line);
    padding: 1rem 1.1rem;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.entry-nav-link:hover { border-bottom-color: var(--accent); color: var(--accent); }

.entry-nav-link span {
    display: block;
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.3rem;
}

.err-box {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 1.6rem 1.4rem;
}

.err-links { margin: 1.2rem 0 0; }

/* ============================================================
   14. Форма поиска
   ============================================================ */

.search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.7rem;
}

.search-label { display: block; flex: 1 1 220px; min-width: 0; }

.search-label-text {
    display: block;
    font-family: var(--sans);
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.search-field {
    width: 100%;
    font-family: var(--serif);
    font-size: 0.96rem;
    padding: 0.65rem 0.8rem;
    border: 2px solid var(--line);
    border-radius: 0;
    background: var(--white);
    color: var(--ink);
}

.search-field:focus { outline: none; border-color: var(--accent); }

/* ============================================================
   15. Виджеты
   ============================================================ */

.widget { margin-bottom: 1.8rem; }
.widget:last-child { margin-bottom: 0; }

.widget-title {
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    padding-left: 13px;
    margin-bottom: 0.9rem;
}

.widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.16em;
    bottom: 0.16em;
    width: 3px;
    background: var(--accent);
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget li {
    margin: 0;
    padding: 0.5rem 0;
    border-bottom: 1px dotted var(--line);
    font-family: var(--sans);
    font-size: 0.92rem;
    line-height: 1.5;
}

.widget li:last-child { border-bottom: 0; }

/* Сайдбар — светлый фон, тёмный текст */

.sidebar .widget-title { color: var(--ink); }
.sidebar .widget,
.sidebar .widget p,
.sidebar .widget li { color: var(--ink); }
.sidebar .widget a { color: var(--accent); font-weight: 600; }
.sidebar .widget a:hover { text-decoration: underline; }
.sidebar .post-date,
.sidebar .rss-date { color: var(--muted); font-size: 0.8rem; }

/* ============================================================
   16. Подвал
   ============================================================ */

.site-foot {
    background: var(--foot-bg);
    color: #C7D2E0;
    border-top: 3px solid var(--accent);
    padding: 2.6rem 0 1.4rem;
    margin-top: 3rem;
}

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

.foot-col { min-width: 0; }

.site-foot .widget-title { color: #FFFFFF; }
.site-foot .widget-title::before { background: var(--steel); }

.site-foot .widget,
.site-foot .widget p,
.site-foot .widget li,
.site-foot .textwidget { color: #C7D2E0; font-size: 0.93rem; }

.site-foot .widget a { color: #FFFFFF; font-weight: 600; }
.site-foot .widget a:hover { color: var(--steel); text-decoration: underline; }
.site-foot .widget li { border-bottom-color: rgba(168, 181, 192, 0.22); }
.site-foot .post-date { color: var(--steel); }

.foot-line {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px dotted rgba(168, 181, 192, 0.4);
}

.foot-copy {
    font-family: var(--sans);
    font-size: 0.82rem;
    color: var(--steel);
    margin: 0;
}

/* ============================================================
   17. Комментарии
   ============================================================ */

.comments {
    margin-top: 2.2rem;
    background: var(--white);
    border: 1px solid var(--line);
    padding: 1.6rem 1.3rem;
}

.comments-title { font-size: 1.3rem; margin-bottom: 1.2rem; }

.comment-list,
.comment-list .children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list .children { padding-left: 1.1rem; border-left: 1px dotted var(--steel); }

.comment-item { margin-bottom: 1.4rem; }

.comment-body {
    border-bottom: 2px solid var(--line);
    padding-bottom: 1rem;
}

.comment-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: baseline;
    font-family: var(--sans);
    margin-bottom: 0.5rem;
}

.comment-author { font-weight: 700; font-size: 0.95rem; }
.comment-date { font-size: 0.78rem; color: var(--muted); }
.comment-text { font-size: 0.97rem; }
.comment-hold { color: var(--muted); font-style: italic; }

.comment-actions { margin-top: 0.5rem; font-family: var(--sans); font-size: 0.84rem; }

.comment-pager { margin-top: 1.2rem; font-family: var(--sans); }

.comment-respond { margin-top: 1.8rem; }

.comment-reply-title { font-size: 1.15rem; }

.comment-form label {
    display: block;
    font-family: var(--sans);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.3rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    font-family: var(--serif);
    font-size: 0.96rem;
    padding: 0.6rem 0.7rem;
    border: 2px solid var(--line);
    border-radius: 0;
    background: var(--white);
    color: var(--ink);
}

.comment-form textarea:focus,
.comment-form input:focus { outline: none; border-color: var(--accent); }

.comment-notes,
.comment-form-cookies-consent label {
    font-size: 0.82rem;
    color: var(--muted);
    text-transform: none;
    letter-spacing: 0;
}

.comment-form-cookies-consent { display: flex; gap: 0.5rem; align-items: flex-start; }

.form-submit input[type="submit"],
.comment-form .submit {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--accent);
    border-radius: 0;
    background: var(--accent);
    color: #FFFFFF;
    cursor: pointer;
}

.form-submit input[type="submit"]:hover { background: var(--head-bg); border-color: var(--head-bg); }

/* ============================================================
   18. Cookie-баннер
   ============================================================ */

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: var(--head-bg);
    border-top: 3px solid var(--accent);
    color: #E4EAF1;
    padding: 1rem 0;
}

.cookie-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.cookie-text {
    flex: 1 1 260px;
    min-width: 0;
    margin: 0;
    font-family: var(--sans);
    font-size: 0.86rem;
    line-height: 1.55;
}

.cookie-banner .btn-accent { border-color: var(--accent); }
.cookie-banner .btn-accent:hover { background: #FFFFFF; border-color: #FFFFFF; color: var(--head-bg); }

/* ============================================================
   19. Адаптив
   ============================================================ */

@media (min-width: 600px) {
    h1 { font-size: 2.5rem; }

    .fs-block { padding: 3.4rem 0; }

    .fs-hero { padding: 4rem 0; }
    .hero-title { font-size: 2.6rem; }

    .facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fact { border-bottom: 0; padding-bottom: 0; }

    .map-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .entry-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }

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

    .entry { padding: 2rem 1.8rem; }
    .comments { padding: 2rem 1.8rem; }

    .card {
        flex-direction: row;
        gap: 1.4rem;
        align-items: stretch;
    }

    .card-thumb-wrap {
        flex: 0 0 260px;
        width: auto;
        position: relative;
        margin-bottom: 0;
    }

    .card-thumb-wrap a {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .card-thumb-wrap img {
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        object-fit: cover;
        display: block;
    }
}

@media (min-width: 960px) {
    body { font-size: 18px; }

    h1 { font-size: 3.2rem; }
    h2 { font-size: 1.9rem; }

    .brand-note { display: block; }
    .brand-name { font-size: 1.06rem; }

    .head-top { padding: 1.4rem 0; }

    .nav-toggle { display: none; }

    .site-nav .nav-list {
        display: flex;
        flex-wrap: wrap;
        gap: 1.8rem;
    }

    .nav-list a { border-bottom: 0; padding: 0.9rem 0; }

    .nav-list a::after {
        content: "";
        display: block;
        height: 2px;
        width: 0;
        background: var(--steel);
        transition: width 0.22s ease;
    }

    .nav-list a:hover::after,
    .nav-list .current-menu-item > a::after { width: 100%; }

    .nav-list .sub-menu { display: none; }

    .fs-hero { padding: 5rem 0; }
    .hero-title { font-size: 3.2rem; }
    .hero-inner { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
    .hero-pipe { width: 300px; height: 300px; right: -30px; bottom: -50px; }

    .fs-block { padding: 4.2rem 0; }

    .layout-with-sidebar {
        display: grid;
        grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
        gap: 6%;
        align-items: start;
    }

    .layout-single { width: 85%; }

    .sidebar { margin-top: 0; padding: 1.8rem 1.6rem; }

    .facts-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0;
    }

    .fact {
        padding: 0 1.6rem;
        border-bottom: 0;
        border-right: 1px solid var(--line);
    }

    .fact:first-child { padding-left: 0; }
    .fact:last-child { border-right: 0; padding-right: 0; }
    .fact-num { font-size: 4rem; }

    .map-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }

    .flow-list { padding-left: 2rem; }
    .flow-dot { left: calc(-2rem - 9px); }

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

    .entry { padding: 2.6rem 2.4rem; }
    .entry-title { font-size: 2.3rem; }
}
