/*
Theme Name: dds_styazhka-pola24.ru
Description: Тема информационного сайта о стяжке пола и ремонтных работах.
Author: Савелий Ермаков
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: stypol
*/

/* ===== Переменные ===== */
:root {
    --bg: #f0f4f9;
    --bg-alt: #e6edf5;
    --panel: #ffffff;
    --top: #1e2a3a;
    --bottom: #141e2b;
    --ink: #1f2a3e;
    --copper: #c67b3d;
    --copper-dark: #a9642c;
    --steel: #5b7f9a;
    --muted: #7a8b9e;
    --line: #d0dce8;
    --font-head: "Montserrat", "Urbanist", "Segoe UI Semibold", "Trebuchet MS", sans-serif;
    --font-text: "Inter", "Open Sans", "Segoe UI", Roboto, Arial, sans-serif;
}

/* ===== Управление видимостью через атрибут hidden ===== */
.cookie-banner[hidden] { display: none !important; }
[hidden] { display: none !important; }

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(91, 127, 154, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(91, 127, 154, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    color: var(--ink);
    font-family: var(--font-text);
    font-size: 17px;
    line-height: 1.72;
    letter-spacing: 0.012em;
}

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

a {
    color: var(--steel);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color .18s ease, text-decoration-color .18s ease;
}
a:hover {
    color: var(--copper);
    text-decoration-style: solid;
    text-decoration-color: var(--copper);
}

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

h1 { font-size: 3.25rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.15em; }

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

/* ===== Кнопки ===== */
.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.78rem 1.6rem;
    border-radius: 4px;
    border: 2px solid var(--copper);
    text-decoration: none;
    cursor: pointer;
    transition: background-color .18s ease, transform .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn-outline {
    background: transparent;
    color: var(--copper-dark);
}
.btn-outline:hover {
    background: rgba(198, 123, 61, 0.14);
    color: var(--copper-dark);
    text-decoration: none;
}
.btn-solid {
    background: var(--copper);
    color: #1a2230;
}
.btn-solid:hover {
    background: var(--copper-dark);
    color: #10161f;
    transform: translateY(-2px);
    text-decoration: none;
}
.btn-ghost {
    background: transparent;
    color: #f2d9c0;
}
.btn-ghost:hover {
    background: rgba(198, 123, 61, 0.22);
    color: #ffffff;
    text-decoration: none;
}
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.86rem; }

/* ===== Медная полоса и шапка ===== */
.copper-rail {
    height: 4px;
    background: linear-gradient(90deg, #a9642c, #c67b3d 45%, #e0a06a 70%, #c67b3d);
}

.site-top {
    background: var(--top);
    color: #e7eef6;
}
.top-inner {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: 1.5rem 0;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    min-width: 0;
    margin-right: auto;
}
.brand-link { display: inline-flex; line-height: 0; text-decoration: none; }
.brand-logo { max-height: 60px; width: auto; display: block; }
.brand-mark { display: block; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
    font-family: var(--font-head);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.32;
    letter-spacing: 0.01em;
}
.brand-name a { color: #f2f6fa; text-decoration: none; }
.brand-name a:hover { color: var(--copper); }
.brand-tagline {
    font-size: 0.8rem;
    color: #92a6ba;
    line-height: 1.45;
    margin-top: 0.25rem;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.45rem;
    background: transparent;
    border: 1px solid #3c5064;
    border-radius: 4px;
    color: #e7eef6;
    padding: 0.5rem 0.8rem;
    font-family: var(--font-head);
    font-size: 0.85rem;
    cursor: pointer;
}
.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--copper);
}
.nav-toggle-bar + .nav-toggle-bar { margin-top: 0; }
.nav-toggle.is-active { border-color: var(--copper); }

.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}
.nav-list a {
    color: #dbe6f0;
    font-family: var(--font-head);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}
.nav-list a:hover,
.nav-list .current-menu-item > a {
    color: var(--copper);
    border-bottom-color: var(--copper);
}
.nav-list .sub-menu {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
}

.site-main { display: block; }

/* ===== Hero ===== */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 68vh;
    display: flex;
    align-items: center;
    background: var(--top);
}
.hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.65) hue-rotate(-8deg);
}
.hero-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(30, 42, 58, 0.94) 0%, rgba(30, 42, 58, 0.78) 45%, rgba(30, 42, 58, 0.28) 100%);
}
.hero-inner {
    position: relative;
    padding: 5.5rem 0;
}
.hero-kicker {
    font-family: var(--font-head);
    font-size: 0.85rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #9db4c8;
    margin-bottom: 1rem;
}
.hero-title {
    color: var(--copper);
    font-size: 3.25rem;
    max-width: 16ch;
    margin-bottom: 1rem;
}
.hero-lead {
    color: #dce7f1;
    font-size: 1.13rem;
    max-width: 56ch;
    margin-bottom: 2rem;
}
.hero-btn { margin-top: 0.4rem; }

/* ===== Разделители секций ===== */
.rule-dot {
    position: relative;
    width: min(92%, 1180px);
    height: 12px;
    margin: 0 auto;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='12'%3E%3Cpath d='M0 9 L12 3 L24 9 L36 3 L48 9' fill='none' stroke='%235b7f9a' stroke-width='1' opacity='0.4'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: center;
}
.rule-dot::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: var(--copper);
    box-shadow: 0 0 0 5px var(--bg);
}

/* ===== Секции главной ===== */
.front-section {
    padding: 120px 1.4rem;
    position: relative;
    overflow: hidden;
}
.section-alt {
    background: var(--bg-alt);
}
.section-alt::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -20px;
    width: 260px;
    height: 200px;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 120'%3E%3Crect x='6' y='42' width='188' height='36' fill='none' stroke='%231e2a3a' stroke-width='4'/%3E%3Crect x='78' y='50' width='44' height='20' rx='10' fill='none' stroke='%231e2a3a' stroke-width='4'/%3E%3Cpath d='M100 50v20M30 42v36M170 42v36' stroke='%231e2a3a' stroke-width='4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

.section-title {
    position: relative;
    font-size: 2.05rem;
    padding-bottom: 0.85rem;
    margin-bottom: 2.6rem;
    display: table;
    max-width: 100%;
}
.section-title .cap {
    color: var(--copper);
    font-size: 1.3em;
    line-height: 0.8;
}
.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: #b9c9d8;
}
.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--copper);
}

/* ===== Таймлайн ===== */
.timeline {
    position: relative;
    display: grid;
    gap: 2.4rem;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 6px;
    bottom: 6px;
    width: 2px;
    margin-left: -1px;
    background: #b3c4d3;
}
.tl-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
    align-items: start;
}
.tl-side {
    text-align: right;
    padding-right: 1.6rem;
    min-width: 0;
}
.tl-num {
    display: block;
    font-family: var(--font-head);
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--copper);
    line-height: 1;
}
.tl-term {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}
.tl-node {
    justify-self: center;
    width: 15px;
    height: 15px;
    margin-top: 8px;
    border-radius: 50%;
    border: 3px solid var(--copper);
    background: var(--bg-alt);
}
.tl-body {
    min-width: 0;
    padding: 1.1rem 1.4rem;
    margin-left: 1.6rem;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid transparent;
    border-radius: 6px;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.tl-body:hover {
    border-color: var(--copper);
    box-shadow: 0 6px 18px rgba(120, 90, 60, 0.14);
}
.tl-body h3 { margin-bottom: 0.45rem; }
.tl-body p { margin: 0; color: #33445c; }

/* ===== Карточки записей ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.8rem;
}
.card-grid-blog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(66, 96, 128, 0.10);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
    transform: translateY(-4px);
    border-color: var(--copper);
    box-shadow: 0 10px 22px rgba(140, 100, 62, 0.20);
}
.card-thumb {
    position: relative;
    overflow: hidden;
}
.card-thumb a { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.card-veil {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(20, 30, 43, 0.45), rgba(20, 30, 43, 0) 58%);
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.4rem 1.5rem 1.6rem;
    min-width: 0;
}
.card-meta {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.55rem;
}
.card-title {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--copper); }
.card-excerpt { color: #3a4a60; font-size: 0.96rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more { margin: auto 0 0; padding-top: 1rem; }

.latest-more { margin-top: 2.4rem; text-align: center; }
.empty-note { color: var(--muted); }

/* ===== Статистика ===== */
.stats-section {
    background: var(--top);
    border-top: 3px solid var(--copper);
    padding: 100px 1.4rem;
    position: relative;
}
.stats-title { color: #eaf1f7; }
.stats-title::before { background: #43586e; }
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}
.stat-cell {
    min-width: 0;
    padding: 0.6rem 1.6rem;
    border-left: 1px solid #3a4d63;
}
.stat-cell:first-child { border-left: 0; padding-left: 0; }
.stat-num {
    display: block;
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--copper);
    line-height: 1.1;
    margin-bottom: 0.6rem;
}
.stat-label {
    display: block;
    color: #a8bccf;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ===== Карта тем ===== */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}
.topic-tile {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.8rem 1.5rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 6px;
    text-decoration: none;
    color: var(--steel);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.topic-tile:hover {
    transform: translateY(-4px);
    border-color: var(--copper);
    box-shadow: 0 10px 20px rgba(140, 100, 62, 0.16);
    text-decoration: none;
}
.topic-icon { color: var(--steel); line-height: 0; margin-bottom: 1.1rem; }
.topic-tile:hover .topic-icon { color: var(--copper); }
.topic-name {
    font-family: var(--font-head);
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--copper);
    margin-bottom: 0.5rem;
}
.topic-note { color: #46586f; font-size: 0.92rem; line-height: 1.55; }

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

.crumbs {
    font-size: 0.86rem;
    color: var(--muted);
    margin-bottom: 2rem;
}
.crumbs a { color: var(--steel); }
.crumbs .sep { margin: 0 0.4rem; color: var(--copper); }

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

.page-head { margin-bottom: 2.2rem; }
.page-title {
    font-size: 2.6rem;
    position: relative;
    padding-left: 1.1rem;
}
.page-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.18em;
    width: 3px;
    height: 0.8em;
    background: var(--copper);
}
.page-title .cap { color: var(--copper); font-size: 1.15em; }
.post-meta {
    color: var(--muted);
    font-size: 0.88rem;
    letter-spacing: 0.06em;
}
.meta-sep { margin: 0 0.5rem; color: var(--copper); }

.single-thumb { margin: 0 0 2rem; }
.single-thumb img { display: block; width: 100%; border-radius: 6px; }

.entry { font-size: 1.02rem; }
.entry h2 {
    position: relative;
    padding-left: 1rem;
    margin-top: 2.2rem;
}
.entry h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 3px;
    height: 0.8em;
    background: var(--copper);
}
.entry h3 { margin-top: 1.8rem; }
.entry ul, .entry ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.entry li { margin-bottom: 0.5em; }
.entry img { border-radius: 6px; display: block; }
.entry blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem 1.4rem 1.9rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-left: 5px solid var(--copper);
    border-radius: 0 6px 6px 0;
    background-image: repeating-linear-gradient(180deg, rgba(30, 42, 58, 0.55) 0 2px, transparent 2px 10px);
    background-size: 5px 100%;
    background-repeat: no-repeat;
    background-position: left top;
    font-size: 1.05rem;
    color: #2c3c54;
}
.entry blockquote p:last-child { margin-bottom: 0; }
.entry table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
    border: 1px solid var(--steel);
    background: var(--panel);
}
.entry th, .entry td {
    border: 1px solid var(--steel);
    padding: 0.7rem 0.9rem;
    text-align: left;
}
.entry th { background: var(--bg-alt); font-family: var(--font-head); }
.entry code {
    background: var(--bg-alt);
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    font-size: 0.94em;
}
.entry pre {
    background: var(--top);
    color: #e5edf5;
    padding: 1.2rem 1.4rem;
    border-radius: 6px;
    overflow-x: auto;
}
.page-links { margin: 1.5rem 0; }

.post-tags { margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.post-tags a {
    font-size: 0.85rem;
    color: var(--steel);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 0.25rem 0.7rem;
    text-decoration: none;
    background: var(--panel);
}
.post-tags a:hover { border-color: var(--copper); color: var(--copper); }

.post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: 2.6rem;
}
.post-nav-item {
    display: block;
    min-width: 0;
    padding: 1.1rem 1.3rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 6px;
    text-decoration: none;
}
.post-nav-item:hover { border-color: var(--copper); }
.post-nav-item.next { text-align: right; }
.post-nav-label {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.35rem;
}
.post-nav-title { display: block; color: var(--ink); font-family: var(--font-head); font-size: 0.98rem; }

.error-box {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2rem 2.2rem;
}
.error-actions { margin-top: 1.4rem; }

/* ===== Сайдбар ===== */
.sidebar { min-width: 0; }
.sidebar .widget {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.5rem 1.6rem;
    margin-bottom: 1.6rem;
    color: var(--ink);
}
.sidebar .widget-title {
    font-size: 1.05rem;
    color: var(--ink);
    padding-left: 0.8rem;
    position: relative;
    margin-bottom: 1rem;
}
.sidebar .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.18em;
    width: 3px;
    height: 0.8em;
    background: var(--copper);
}
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li {
    padding: 0.55rem 0;
    border-bottom: 1px dashed var(--line);
}
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: var(--steel); }
.sidebar .widget a:hover { color: var(--copper); }
.sidebar .widget .post-date { color: var(--muted); font-size: 0.82rem; display: block; }

/* ===== Пагинация ===== */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.8rem;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--panel);
    color: var(--steel);
    font-family: var(--font-head);
    font-size: 0.92rem;
    text-decoration: none;
}
.pager a.page-numbers:hover {
    border-color: var(--copper);
    color: var(--copper);
}
.pager .page-numbers.current {
    background: var(--copper);
    border-color: var(--copper);
    color: #1a2230;
}
.pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
}

/* ===== Формы ===== */
.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: flex-end;
    margin: 1.2rem 0;
}
.search-label { display: block; flex: 1 1 220px; min-width: 0; }
.search-label-text {
    display: block;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.35rem;
}
input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--panel);
    color: var(--ink);
    font-family: var(--font-text);
    font-size: 0.98rem;
}
input:focus, textarea:focus { outline: 2px solid rgba(198, 123, 61, 0.5); outline-offset: 1px; }
.search-submit { border-width: 2px; }

/* ===== Комментарии ===== */
.comments-area {
    margin-top: 3rem;
    padding: 2rem 2.2rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 6px;
}
.comments-title { font-size: 1.4rem; }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list .children { list-style: none; margin: 1rem 0 0 1.4rem; padding: 0; }
.comment-item {
    padding: 1.1rem 0;
    border-bottom: 1px dashed var(--line);
}
.comment-head { display: flex; gap: 0.8rem; align-items: baseline; margin-bottom: 0.4rem; }
.comment-author { font-family: var(--font-head); font-weight: 600; }
.comment-date { color: var(--muted); font-size: 0.82rem; }
.comment-hold { color: var(--copper-dark); font-size: 0.9rem; }
.comment-actions a { font-size: 0.86rem; }
.comment-form label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.3rem; }
.comment-form .submit { border-width: 2px; }

/* ===== Подвал ===== */
.site-bottom {
    background: var(--bottom);
    color: #c3d1de;
    padding: 3.4rem 0 1.8rem;
    margin-top: 0;
}
.bottom-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.2rem;
}
.bottom-col { min-width: 0; }
.site-bottom .widget { margin-bottom: 1.4rem; color: #c3d1de; }
.site-bottom .widget-title {
    font-size: 1.02rem;
    color: #f0f5fa;
    padding-left: 0.8rem;
    position: relative;
    margin-bottom: 0.9rem;
}
.site-bottom .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 3px;
    height: 0.8em;
    background: var(--copper);
}
.site-bottom .widget p { color: #b4c3d2; font-size: 0.94rem; }
.site-bottom .widget ul { list-style: none; margin: 0; padding: 0; }
.site-bottom .widget li { padding: 0.35rem 0; }
.site-bottom .widget a { color: #dce7f1; text-decoration-style: dotted; }
.site-bottom .widget a:hover { color: var(--copper); text-decoration-style: solid; }
.site-bottom .widget .post-date { color: #8fa2b5; font-size: 0.82rem; display: block; }
.bottom-note {
    margin-top: 2rem;
    padding-top: 1.4rem;
    border-top: 1px solid #26364a;
    font-size: 0.88rem;
    color: #8ea0b3;
}

/* ===== Cookie-баннер ===== */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.1rem 1.6rem;
    background: var(--top);
    border-top: 3px solid var(--copper);
    color: #dce7f1;
}
.cookie-text { margin: 0; font-size: 0.92rem; max-width: 78ch; }
.cookie-accept { flex: 0 0 auto; }

/* ===== Адаптив ===== */
@media (max-width: 960px) {
    h1 { font-size: 2.4rem; }
    .hero-title { font-size: 2.5rem; }
    .page-title { font-size: 2.1rem; }
    .nav-toggle { display: inline-flex; }
    .primary-nav {
        flex: 1 1 100%;
        display: none;
    }
    .primary-nav.is-open { display: block; }
    .nav-list {
        flex-direction: column;
        gap: 0.2rem;
        padding-top: 1rem;
        border-top: 1px solid #2c3e52;
        margin-top: 0.8rem;
    }
    .nav-list a { display: block; padding: 0.55rem 0; }
    .card-grid, .card-grid-blog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
    .stat-cell:nth-child(3) { border-left: 0; padding-left: 0; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .layout-single .content-area { width: 100%; }
    .front-section { padding: 80px 1.4rem; }
    .stats-section { padding: 70px 1.4rem; }
    .bottom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2rem; }
    .hero { min-height: 0; }
    .hero-inner { padding: 3.6rem 0; }
    .hero-title { font-size: 2rem; }
    .hero-lead { font-size: 1rem; }
    .section-title { font-size: 1.6rem; margin-bottom: 2rem; }
    .page-title { font-size: 1.8rem; }
    .front-section { padding: 56px 1.1rem; }
    .stats-section { padding: 48px 1.1rem; }
    .card-grid, .card-grid-blog { grid-template-columns: minmax(0, 1fr); }
    .topic-grid { grid-template-columns: minmax(0, 1fr); }
    .stats-row { grid-template-columns: minmax(0, 1fr); row-gap: 1.6rem; }
    .stat-cell { border-left: 0; padding: 0 0 0 1rem; border-left: 3px solid var(--copper); }
    .stat-cell:first-child { padding-left: 1rem; }
    .timeline::before { left: 9px; }
    .tl-item { grid-template-columns: 20px minmax(0, 1fr); row-gap: 0.6rem; }
    .tl-side { grid-column: 2; text-align: left; padding-right: 0; }
    .tl-node { grid-column: 1; grid-row: 1; margin-top: 12px; justify-self: start; }
    .tl-body { grid-column: 2; margin-left: 0; padding: 1rem 1.2rem; }
    .tl-num { font-size: 1.8rem; }
    .post-nav { grid-template-columns: minmax(0, 1fr); }
    .post-nav-item.next { text-align: left; }
    .comments-area { padding: 1.5rem 1.3rem; }
    .error-box { padding: 1.5rem 1.3rem; }
    .cookie-banner { padding: 1rem 1.2rem; }
    .entry blockquote { padding: 1.2rem 1.2rem 1.2rem 1.5rem; }
    .sidebar .widget { padding: 1.3rem 1.3rem; }
}
