/*
Theme Name: dds_texasoutdooroasisrockwall.com
Description: Информационная тема о бассейнах, террасах и благоустройстве участка. Японский минимализм и холодная океанская палитра.
Author: Антон Лукин
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: poolyard
*/

:root {
    --bg: #F4F7FA;
    --bg-alt: #E8F0F5;
    --bg-alt-deep: #D4E4ED;
    --surface: #FFFFFF;
    --deep: #132A3B;
    --ink: #1E2C3A;
    --accent: #008B9B;
    --accent-dark: #006B78;
    --amber: #E69A3C;
    --muted: #7A8B99;
    --line: #D0E0E8;
    --line-soft: #B0C8D4;
    --font-head: "Jost", "Montserrat", "Trebuchet MS", "Segoe UI", sans-serif;
    --font-body: "Inter", "Roboto", "Segoe UI", Arial, sans-serif;
}

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

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image: radial-gradient(circle, #D9E4EC 1px, transparent 1.4px);
    background-size: 40px 40px;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

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

h1 { font-size: 3.6rem; letter-spacing: 0.015em; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

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

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

.entry-content a,
.widget a,
.card-more,
.crumbs a {
    position: relative;
}

.entry-content a::after,
.card-more::after,
.crumbs a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: var(--amber);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .25s ease;
}

.entry-content a:hover::after,
.card-more:hover::after,
.crumbs a:hover::after { transform: scaleX(1); }

ul, ol { padding-left: 1.35rem; }

.entry-content ul { list-style: none; padding-left: 0; }
.entry-content ul li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.5em;
}
.entry-content ul li::before {
    content: "";
    position: absolute;
    left: 0.25rem;
    top: 0.55em;
    width: 10px;
    height: 13px;
    background: var(--accent);
    clip-path: polygon(50% 0%, 100% 62%, 82% 100%, 18% 100%, 0% 62%);
}

blockquote {
    margin: 2rem 0;
    padding: 2rem 2.2rem;
    background: linear-gradient(160deg, var(--bg-alt), var(--bg-alt-deep));
    position: relative;
    font-size: 1.12rem;
}
blockquote::before,
blockquote::after {
    content: "";
    position: absolute;
    left: 20%;
    right: 20%;
    height: 1px;
    background: var(--accent);
}
blockquote::before { top: 0; }
blockquote::after { bottom: 0; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
    background: var(--surface);
}
table th, table td {
    border: 1px solid var(--line);
    padding: 0.7rem 0.9rem;
    text-align: left;
}
table th { background: var(--bg-alt); font-family: var(--font-head); font-weight: 600; }

code, pre {
    font-family: "SFMono-Regular", Consolas, monospace;
    background: var(--bg-alt);
    font-size: 0.94em;
}
pre { padding: 1rem 1.2rem; overflow-x: auto; }

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--deep);
    color: #fff;
    padding: 0.6rem 1rem;
    z-index: 60;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* --- кнопки --- */
.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 0.78rem 1.6rem;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%);
    transition: background-color .22s ease, color .22s ease, transform .15s ease;
}
.btn:hover { background: var(--accent); color: #fff; }

.btn-solid {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-solid:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
    transform: translateY(2px);
}

.btn-on-dark { border-color: #fff; color: #fff; }
.btn-on-dark:hover { background: #fff; color: var(--deep); }

/* --- шапка --- */
.site-top {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}
.site-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    padding: 1.15rem 0;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    min-width: 0;
}
.brand-link { display: block; flex: 0 0 auto; }
.brand-logo { max-height: 58px; width: auto; }
.brand-mark { display: block; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
    font-family: var(--font-head);
    font-size: 1.06rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ink);
    line-height: 1.35;
}
.brand-desc {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.45;
    margin-top: 0.25rem;
    max-width: 46ch;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.45rem;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-head);
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    padding: 0.5rem 0.85rem;
    cursor: pointer;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%);
}
.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--accent);
}
.nav-toggle-bar + .nav-toggle-bar { margin-top: 3px; }
.nav-toggle-label { margin-left: 0.3rem; }

.nav-list {
    display: flex;
    align-items: center;
    gap: 1.7rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-list li { position: relative; }
.nav-list a {
    font-family: var(--font-head);
    font-size: 0.98rem;
    letter-spacing: 0.05em;
    color: var(--ink);
    padding: 0.35rem 0;
    display: inline-block;
    position: relative;
}
.nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--amber);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .25s ease;
}
.nav-list a:hover { color: var(--accent); }
.nav-list a:hover::after { transform: scaleX(1); }
.nav-list .current-menu-item > a { color: var(--accent); }
.nav-list .current-menu-item > a::after { transform: scaleX(1); background: var(--accent); }

.nav-list .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 0.5rem 0;
    list-style: none;
    z-index: 40;
}
.nav-list li:hover > .sub-menu { display: block; }
.nav-list .sub-menu a { display: block; padding: 0.45rem 1rem; }

/* --- hero --- */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--deep);
    padding: 5.6rem 0 5.2rem;
    isolation: isolate;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(19, 42, 59, 0.94) 8%, rgba(19, 42, 59, 0.72) 48%, rgba(19, 42, 59, 0.25) 100%);
    z-index: -1;
}
.hero-blob {
    position: absolute;
    left: -120px;
    bottom: -160px;
    width: 460px;
    height: 460px;
    background: var(--accent);
    opacity: 0.08;
    border-radius: 58% 42% 47% 53% / 46% 55% 45% 54%;
    z-index: -1;
}
.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 3.4rem;
    align-items: end;
}
.hero-kicker {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.85rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #8FD3DC;
    margin-bottom: 1.2rem;
    position: relative;
    padding-left: 2.4rem;
}
.hero-kicker::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 26px;
    height: 2px;
    background: var(--amber);
}
.hero-title {
    color: #fff;
    margin: 0;
    max-width: 16ch;
}
.hero-lead {
    color: #D5E4EC;
    font-size: 1.03rem;
    margin-bottom: 1.6rem;
}
.hero-right { padding-bottom: 0.4rem; }

/* --- секции главной --- */
.front-section { padding: 4.6rem 0; }
.front-section .shell,
.hero-inner { width: min(85%, 1180px); }
.section-alt { background: var(--bg-alt); }

.sec-head { margin-bottom: 2.6rem; padding-left: 0.9rem; }
.sec-head-center { padding-left: 0; text-align: center; }
.sec-mark {
    display: block;
    width: 10px;
    height: 10px;
    background: var(--accent);
    margin-bottom: 0.9rem;
}
.sec-head-center .sec-mark { margin-left: auto; margin-right: auto; }
.sec-title {
    position: relative;
    margin-bottom: 0.7rem;
    padding-bottom: 0.85rem;
    display: inline-block;
}
.sec-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50%;
    height: 2px;
    background: var(--accent);
}
.sec-head-center .sec-title::after { left: 25%; }
.sec-note {
    color: var(--muted);
    max-width: 62ch;
    margin: 0;
}
.sec-head-center .sec-note { margin-inline: auto; }

.wave-div { line-height: 0; padding: 0 0 0.4rem; }
.wave-div svg { display: block; width: 100%; }

/* --- статистика --- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    text-align: center;
}
.stat-cell {
    padding: 1.7rem 1.3rem;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--line);
    border-radius: 2px;
    min-width: 0;
}
.stat-num {
    display: block;
    font-family: var(--font-head);
    font-size: 2.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--accent);
    line-height: 1.1;
    margin-bottom: 0.7rem;
}
.stat-cap {
    display: block;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

/* --- чек-лист --- */
.check-wrap {
    display: grid;
    grid-template-columns: minmax(0, 70%) minmax(0, 30%);
    gap: 2.6rem;
    align-items: start;
}
.check-list { list-style: none; margin: 0; padding: 0; }
.check-item {
    display: flex;
    gap: 1.2rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--line-soft);
    min-width: 0;
}
.check-item:last-child { border-bottom: none; }
.check-icon { flex: 0 0 auto; line-height: 0; padding-top: 0.25rem; }
.check-text { min-width: 0; }
.check-title { font-size: 1.16rem; margin-bottom: 0.4rem; }
.check-text p { color: #3C4C5A; margin: 0; }
.check-side {
    background: linear-gradient(160deg, var(--bg-alt), var(--bg-alt-deep));
    padding: 2rem 1.8rem;
    border-radius: 2px;
    position: relative;
}
.check-side::before,
.check-side::after {
    content: "";
    position: absolute;
    left: 20%;
    right: 20%;
    height: 1px;
    background: var(--accent);
}
.check-side::before { top: 0; }
.check-side::after { bottom: 0; }
.check-side-quote {
    font-family: var(--font-head);
    font-size: 1.1rem;
    line-height: 1.55;
    color: var(--deep);
    margin: 0;
}

/* --- карта тем --- */
.map-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}
.map-tile {
    display: block;
    padding: 2rem 1.9rem 1.6rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--ink);
    min-width: 0;
    transition: border-color .25s ease;
}
.map-tile:hover { border-color: var(--accent); }
.map-num {
    display: block;
    font-family: var(--font-head);
    font-size: 0.85rem;
    letter-spacing: 0.22em;
    color: var(--amber);
    margin-bottom: 0.9rem;
}
.map-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 0.6rem;
}
.map-desc {
    display: block;
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 1.1rem;
}
.map-wave { opacity: 0; transition: opacity .25s ease; }
.map-tile:hover .map-wave { opacity: 1; }

.empty-note { color: var(--muted); }

/* --- раскладки внутренних страниц --- */
.page-wrap { padding: 2.2rem 0 4.4rem; }

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

.crumbs {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 1.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}
.crumbs a { color: var(--accent); }
.crumbs-sep { color: var(--line-soft); }

.page-head { margin-bottom: 2.4rem; }
.page-title {
    font-size: 2.6rem;
    position: relative;
    padding-bottom: 0.8rem;
    display: inline-block;
    margin-bottom: 0;
}
.page-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50%;
    height: 2px;
    background: var(--accent);
}
.page-head-desc { margin-top: 1.1rem; color: var(--muted); }
.entry-intro { margin-bottom: 2.4rem; }

/* --- карточки записей --- */
.card-list { display: flex; flex-direction: column; gap: 1.5rem; }
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 2px;
    overflow: hidden;
    min-width: 0;
    transition: border-color .25s ease;
}
.card:hover { border-color: var(--accent); }

.card-thumb { overflow: hidden; background: var(--bg-alt); }
.card-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-thumb-top img {
    aspect-ratio: 4 / 3;
    height: auto;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.card-thumb-side {
    flex: 0 0 260px;
    position: relative;
}
.card-thumb-side a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
.card-thumb-side img {
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.card-body {
    flex: 1;
    min-width: 0;
    padding: 1.5rem 1.7rem 1.7rem;
    display: flex;
    flex-direction: column;
}
.card-bar {
    display: block;
    width: 54px;
    height: 3px;
    background: var(--accent);
    margin-bottom: 0.9rem;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .28s ease;
}
.card:hover .card-bar { transform: scaleX(1); }
.card-title { font-size: 1.3rem; margin-bottom: 0.5rem; }
.card-title a { color: var(--ink); }
.card:hover .card-title a { color: var(--accent); }
.card-excerpt { color: #3C4C5A; font-size: 0.97rem; margin-bottom: 1.1rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt p:last-child { margin-bottom: 0; }
.card-more {
    align-self: flex-start;
    margin-top: auto;
    font-family: var(--font-head);
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    color: var(--accent);
}

.post-meta {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.9rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.post-meta a { color: var(--muted); }
.post-meta a:hover { color: var(--accent); }
.meta-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    background: var(--amber);
    border-radius: 50%;
}

/* --- запись и страница --- */
.single-entry { margin-bottom: 2.6rem; }
.entry-head { margin-bottom: 1.8rem; }
.entry-title {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 0.8rem;
    display: inline-block;
    margin-bottom: 0.9rem;
}
.entry-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50%;
    height: 2px;
    background: var(--accent);
}
.entry-cover { margin: 0 0 2rem; }
.entry-cover img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}
.entry-content h2 { margin-top: 2.2rem; }
.entry-content h3 { margin-top: 1.8rem; }
.entry-content img { margin: 1.5rem 0; }
.entry-content figure { margin: 1.6rem 0; }
.entry-content figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 0.5rem; }

.entry-tags {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.entry-tags a {
    display: inline-block;
    font-size: 0.85rem;
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--line);
    color: var(--muted);
    background: var(--surface);
}
.entry-tags a:hover { border-color: var(--accent); color: var(--accent); }

.page-links { margin-top: 1.4rem; font-family: var(--font-head); }

.entry-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    margin-bottom: 2.8rem;
}
.entry-nav-link {
    display: block;
    padding: 1.1rem 1.3rem;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 1rem;
    min-width: 0;
    transition: border-color .25s ease;
}
.entry-nav-link:hover { border-color: var(--accent); }
.entry-nav-link span {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 0.4rem;
}
.entry-nav-next { text-align: right; }

/* --- сайдбар --- */
.sidebar { min-width: 0; }
.sidebar .widget {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 1.6rem 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--ink);
}
.sidebar .widget-title {
    font-size: 1.12rem;
    color: var(--ink);
    position: relative;
    padding-bottom: 0.7rem;
    margin-bottom: 1rem;
}
.sidebar .widget-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 45%;
    height: 2px;
    background: var(--accent);
}
.sidebar .widget ul { list-style: none; padding: 0; margin: 0; }
.sidebar .widget li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.5rem;
    border-bottom: 1px solid var(--bg-alt);
    color: var(--ink);
}
.sidebar .widget li:last-child { border-bottom: none; }
.sidebar .widget li::before {
    content: "";
    position: absolute;
    left: 0.1rem;
    top: 0.95em;
    width: 9px;
    height: 12px;
    background: var(--accent);
    clip-path: polygon(50% 0%, 100% 62%, 82% 100%, 18% 100%, 0% 62%);
}
.sidebar .widget a { color: var(--ink); }
.sidebar .widget a:hover { color: var(--accent); }
.sidebar .widget .post-date { display: block; color: var(--muted); font-size: 0.82rem; }

/* --- пагинация --- */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.6rem;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.85rem;
    border: 2px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 0.96rem;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%);
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.pager a.page-numbers:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}
.pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
}

.comments-area .navigation .page-numbers { margin-right: 0.4rem; }

/* --- форма поиска --- */
.search-form {
    display: flex;
    gap: 0.6rem;
    align-items: stretch;
    flex-wrap: wrap;
    margin: 1.4rem 0;
}
.search-label { flex: 1 1 220px; min-width: 0; }
.search-label-text {
    display: block;
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 0.35rem;
}
.search-field {
    width: 100%;
    padding: 0.72rem 0.9rem;
    border: 2px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.98rem;
}
.search-field:focus { outline: none; border-color: var(--accent); }
.search-submit { align-self: flex-end; }

/* --- комментарии --- */
.comments-area {
    margin-top: 3rem;
    padding-top: 2.2rem;
    border-top: 1px solid var(--line);
}
.comments-title { font-size: 1.5rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.comment-list .children { list-style: none; padding-left: 1.6rem; }
.comment-item { margin-bottom: 1.2rem; }
.comment-inner {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 1.3rem 1.5rem;
    border-radius: 2px;
}
.comment-head {
    display: flex;
    gap: 0.8rem;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}
.comment-author { font-family: var(--font-head); font-weight: 600; }
.comment-date { color: var(--muted); font-size: 0.85rem; }
.comment-hold { color: var(--amber); font-size: 0.9rem; }
.comment-actions { margin-top: 0.7rem; font-size: 0.9rem; }
.comments-closed { color: var(--muted); }

.comment-respond {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 1.8rem 1.9rem;
    border-radius: 2px;
}
.comment-reply-title { font-size: 1.3rem; }
.comment-notes { color: var(--muted); font-size: 0.9rem; }
.comment-form label { display: block; font-size: 0.88rem; margin-bottom: 0.3rem; color: var(--muted); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 2px solid var(--line);
    background: var(--bg);
    font-family: var(--font-body);
    font-size: 0.98rem;
    color: var(--ink);
}
.comment-form textarea { resize: vertical; }
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--accent); }
.comment-form p { margin-bottom: 1rem; }
.form-submit .submit { cursor: pointer; }

/* --- 404 --- */
.error-box {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 3rem 2.4rem;
    border-radius: 2px;
    text-align: center;
}
.error-num {
    display: block;
    font-family: var(--font-head);
    font-size: 4.6rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 1rem;
}
.error-box .search-form { justify-content: center; margin-bottom: 1.6rem; }

/* --- подвал --- */
.site-bottom {
    background: var(--deep);
    color: #C9DAE4;
    padding: 3.6rem 0 1.8rem;
    margin-top: 3rem;
}
.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
}
.foot-col { min-width: 0; }
.site-bottom .widget { color: #C9DAE4; margin-bottom: 1.6rem; }
.site-bottom .widget:last-child { margin-bottom: 0; }
.site-bottom .widget-title {
    color: #FFFFFF;
    font-size: 1.08rem;
    position: relative;
    padding-bottom: 0.7rem;
    margin-bottom: 1rem;
}
.site-bottom .widget-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 45%;
    height: 2px;
    background: var(--accent);
}
.site-bottom .widget p { color: #C9DAE4; }
.site-bottom .widget ul { list-style: none; padding: 0; margin: 0; }
.site-bottom .widget li {
    position: relative;
    padding: 0.42rem 0 0.42rem 1.5rem;
    color: #C9DAE4;
}
.site-bottom .widget li::before {
    content: "";
    position: absolute;
    left: 0.1rem;
    top: 0.85em;
    width: 9px;
    height: 12px;
    background: var(--accent);
    clip-path: polygon(50% 0%, 100% 62%, 82% 100%, 18% 100%, 0% 62%);
}
.site-bottom .widget a { color: #DCE9F0; }
.site-bottom .widget a:hover { color: var(--amber); }
.site-bottom .widget .post-date { color: #94AFBF; font-size: 0.82rem; display: block; }

.foot-line {
    margin-top: 2.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(176, 200, 212, 0.25);
}
.copy { color: #94AFBF; font-size: 0.88rem; margin: 0; }

/* --- cookie-баннер --- */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--deep);
    border-top: 2px solid var(--accent);
    padding: 1.1rem 0;
    z-index: 80;
}
.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    flex-wrap: wrap;
}
.cookie-text {
    color: #D5E4EC;
    font-size: 0.92rem;
    margin: 0;
    flex: 1 1 380px;
    min-width: 0;
}

/* --- адаптив --- */
@media (max-width: 960px) {
    h1 { font-size: 2.6rem; }
    h2 { font-size: 1.8rem; }

    .nav-toggle { display: inline-flex; }
    .site-nav {
        flex: 1 0 100%;
        display: none;
    }
    .site-nav.nav-open { display: block; }
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding-top: 0.8rem;
        width: 100%;
    }
    .nav-list li { width: 100%; border-bottom: 1px solid var(--line); }
    .nav-list a { display: block; width: 100%; padding: 0.7rem 0; }
    .nav-list .sub-menu {
        position: static;
        border: none;
        padding-left: 1rem;
        display: block;
        min-width: 0;
    }

    .hero { padding: 4rem 0 3.6rem; }
    .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
    .hero-title { max-width: none; }

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

    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .map-grid { grid-template-columns: minmax(0, 1fr); }
    .check-wrap { grid-template-columns: minmax(0, 1fr); }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .front-section .shell, .hero-inner { width: min(92%, 1180px); }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.55rem; }
    .page-title, .entry-title { font-size: 1.85rem; }

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

    .hero-title { font-size: 2.1rem; }

    .card-grid { grid-template-columns: minmax(0, 1fr); }
    .stats-row { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
    .stat-cell { padding: 1.4rem 1.2rem; }
    .stat-num { font-size: 2.4rem; }
    .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }

    .card-thumb-side {
        flex: none;
        width: 100%;
        position: static;
    }
    .card-thumb-side a { position: static; }
    .card-thumb-side img {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
    }
    .card-body { padding: 1.2rem 1.2rem 1.4rem; }

    .check-side { padding: 1.6rem 1.4rem; }
    .map-tile { padding: 1.6rem 1.4rem 1.3rem; }
    .error-box { padding: 2.2rem 1.4rem; }
    .comment-respond { padding: 1.4rem 1.3rem; }
    .comment-inner { padding: 1.1rem 1.2rem; }
    .cookie-inner { align-items: flex-start; }
    blockquote { padding: 1.6rem 1.4rem; }
    .entry-nav { grid-template-columns: minmax(0, 1fr); }
    .entry-nav-next { text-align: left; }
    .sidebar .widget { padding: 1.3rem 1.2rem; }
}

@media (min-width: 601px) {
    .card-h { flex-direction: row; }
}
