/*
Theme Name: dds_ajsweddingphotography.com
Author: Анна Жданова
Description: Тёмная тема в духе японского минимализма с бронзовым металлическим акцентом для образовательного проекта о выборе, покупке и управлении жильём.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: ajhome
*/

:root {
    --bg: #121212;
    --bg-alt: #1A1A1A;
    --bg-foot: #0A0A0A;
    --bg-side: #181818;
    --ink: #E8E6E3;
    --muted: #8A8885;
    --copper: #CD7F32;
    --gold: #D4AF37;
    --line: #2A2A2A;
    --line-soft: #3A3A3A;
    --font-head: "Montserrat", "Futura", "Trebuchet MS", "Segoe UI", sans-serif;
    --font-body: "Inter", "Roboto", "Helvetica Neue", Arial, sans-serif;
    --font-serif: Georgia, "Times New Roman", serif;
}

/* --- скрытие через атрибут hidden (должно идти до стилей элементов) --- */
.cookie-note[hidden] { display: none !important; }
.site-nav[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: repeating-linear-gradient(45deg, rgba(232, 230, 227, 0.03) 0 1px, transparent 1px 40px);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    width: 520px;
    height: 420px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.13;
    background-repeat: no-repeat;
    background-position: top right;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 420'%3E%3Cg fill='none' stroke='%232A2A2A' stroke-width='3'%3E%3Cpath d='M60 400V210l90-70 90 70v190'/%3E%3Cpath d='M240 400V150l100-78 100 78v250'/%3E%3Cpath d='M20 400V280l50-40 50 40v120'/%3E%3Cpath d='M150 400V300h80v100'/%3E%3Cpath d='M330 400V290h80v110'/%3E%3Cpath d='M0 400h520'/%3E%3C/g%3E%3C/svg%3E");
}

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

a { color: var(--copper); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--gold); }

p { margin: 0 0 1.15em; }

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

h1 { font-size: 4.2rem; letter-spacing: 0.02em; margin-bottom: 1.1em; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

/* «Медная точка» у заголовков H2/H3 */
.site-main h2:not(.plain):not(.widget-title)::before,
.site-main h3:not(.plain):not(.widget-title)::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--copper);
    margin-right: 0.65em;
    vertical-align: 0.12em;
}

/* --- контейнер --- */
.shell { width: min(92%, 1180px); margin-inline: auto; }

.layout-single { width: 85%; margin-left: auto; margin-right: auto; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    justify-content: space-between;
    align-items: start;
}

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

/* --- «архитектурная полоса» --- */
.top-rule {
    height: 4px;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    background: var(--copper);
}

/* --- шапка --- */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 3;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.8rem 0;
    flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 1.1rem; min-width: 0; max-width: 640px; }
.brand-logo { width: 56px; height: auto; flex: 0 0 auto; }
.brand svg.brand-logo { width: 56px; height: 56px; }
.brand-text { min-width: 0; }

.site-title {
    font-family: var(--font-head);
    font-size: 0.92rem;
    line-height: 1.45;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 0.35rem;
    font-weight: 600;
}
.site-title a { color: var(--ink); }
.site-title a:hover { color: var(--copper); }

.site-desc {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1.5px solid var(--copper);
    color: var(--copper);
    border-radius: 2px;
    padding: 0.6rem 1rem;
    font-family: var(--font-head);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
}
.nav-toggle:hover { background: var(--copper); color: #0A0A0A; }

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 2.1rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.site-nav a {
    font-family: var(--font-head);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    padding-bottom: 4px;
    background-image: repeating-linear-gradient(90deg, var(--copper) 0 4px, transparent 4px 8px);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size .3s ease, color .25s ease;
}
.site-nav a:hover { color: var(--copper); background-size: 100% 1px; }
.site-nav .current-menu-item > a { color: var(--copper); background-size: 100% 1px; }

/* --- кнопки --- */
.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.9rem 1.9rem;
    border: 1.5px solid var(--copper);
    border-radius: 2px;
    color: var(--copper);
    background: transparent;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease;
}
.btn:hover { background: var(--copper); color: #0A0A0A; }

.btn-ghost { border-color: transparent; padding-left: 0; padding-right: 0; }
.btn-ghost:hover { background: transparent; color: var(--gold); }

.btn-sm { padding: 0.6rem 1.3rem; font-size: 0.72rem; }

/* --- ссылки в контенте --- */
.entry-content a,
.card-excerpt a,
.comment-body a,
.widget-area a {
    padding-bottom: 2px;
    background-image: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 8px);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size .3s ease, color .25s ease;
}
.entry-content a:hover,
.card-excerpt a:hover,
.comment-body a:hover,
.widget-area a:hover { background-size: 100% 1px; }

/* --- основная область --- */
.site-main { position: relative; z-index: 1; padding: 3.2rem 0 5rem; }

/* --- хлебные крошки --- */
.breadcrumbs {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 2.4rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--copper); }
.breadcrumbs .sep { color: var(--copper); margin: 0 0.45rem; }
.breadcrumbs span:last-child { color: var(--ink); }

/* --- заголовки секций --- */
.sec-title {
    font-size: 1.9rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    margin: 0 0 1.6rem;
    padding-top: 1.3rem;
    position: relative;
}
.sec-title::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 54px;
    height: 2px;
    background: var(--copper);
}

.page-title { font-size: 2.6rem; letter-spacing: 0.04em; margin-bottom: 1.6rem; }

/* --- главная: секции --- */
.front-sections > section { margin-bottom: 3.4rem; }
.front-sections > section:last-child { margin-bottom: 0; }

.fs {
    padding: 3rem 2.6rem;
    position: relative;
}
.fs-alt { background: var(--bg-alt); }
.fs-line { border-top: 1px solid var(--line); }

.fs:not(:first-child)::before {
    content: "";
    display: block;
    width: 46px;
    height: 2px;
    background: var(--copper);
    margin: 0 0 2rem auto;
}

/* Блок 1 — Hero */
.fs-hero {
    padding: 0;
    background: #0E0E10;
}
.fs-hero::before { display: none; }
.hero-media { position: relative; }
.hero-media img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
    filter: grayscale(0.25) contrast(1.05);
}
.hero-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(10, 10, 12, 0.94) 0%, rgba(10, 10, 12, 0.82) 42%, rgba(205, 127, 50, 0.20) 100%);
}
.hero-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 3.2rem;
    min-width: 0;
}
.hero-mark { width: 8px; height: 44px; background: var(--copper); margin-bottom: 1.6rem; }
.hero-inner h1 {
    font-size: 4.2rem;
    margin: 0 0 1.2rem;
    max-width: 16ch;
    color: var(--ink);
}
.hero-sub {
    font-size: 1.12rem;
    color: var(--muted);
    max-width: 46ch;
    margin: 0 0 2.2rem;
}
.hero-sub b { color: var(--copper); font-weight: 600; }

/* Блок 2 — Чек-лист */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--line);
    min-width: 0;
}
.checklist li:last-child { border-bottom: none; }
.checklist li > div { min-width: 0; }
.checklist .tick { flex: 0 0 auto; margin-top: 0.25rem; }
.checklist .tick svg { width: 20px; height: 20px; display: block; }
.checklist strong {
    display: block;
    font-family: var(--font-head);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}
.checklist p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* Блок 3 — Статистика */
.stats-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
}
.stat { text-align: center; min-width: 0; flex: 1 1 150px; }
.stat b {
    display: block;
    font-family: var(--font-head);
    font-size: 3.4rem;
    line-height: 1;
    color: var(--copper);
    letter-spacing: 0.02em;
}
.stat span {
    display: block;
    margin-top: 0.7rem;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}
.stat-dash { color: var(--line-soft); font-size: 2rem; line-height: 1; flex: 0 0 auto; }

/* Блок 4 — Карта тем */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
}
.topic-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2.4rem 1.2rem;
    border: 1px solid var(--line-soft);
    border-radius: 0;
    color: var(--ink);
    min-width: 0;
    transition: border-color .25s ease, transform .25s ease;
}
.topic-tile svg { width: 42px; height: 42px; display: block; stroke: var(--muted); transition: stroke .25s ease; }
.topic-tile span {
    font-family: var(--font-head);
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.topic-tile:hover { border-color: var(--copper); transform: translateY(-4px); color: var(--copper); }
.topic-tile:hover svg { stroke: var(--copper); }

/* --- карточки записей --- */
.cards { display: block; }

.card {
    display: flex;
    flex-direction: column;
    background: var(--bg-alt);
    border: 1px solid var(--line-soft);
    border-bottom: none;
    border-radius: 0;
    margin-bottom: 2rem;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
    transform: translateY(-4px);
    border-left-color: var(--copper);
    box-shadow: inset 2px 0 0 var(--copper);
}
.card-inner { display: flex; flex: 1; min-width: 0; }

.card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
}
.card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}
.card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(1) sepia(0.55) saturate(1.5) hue-rotate(-12deg) brightness(0.85);
    transition: filter .35s ease;
}
.card:hover .card-thumb-wrap img { filter: grayscale(0.35) sepia(0.25) saturate(1.15) brightness(0.95); }

.card-body {
    flex: 1;
    min-width: 0;
    padding: 1.8rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.card-meta {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.8rem;
}
.card-title { font-size: 1.35rem; margin: 0 0 0.8rem; letter-spacing: 0.02em; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--copper); }
.card-excerpt { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.3rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-body .btn { margin-top: auto; }

/* --- запись / страница --- */
.entry-header { margin-bottom: 2rem; }
.entry-meta {
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.9rem;
}
.entry-thumb { margin-bottom: 2.2rem; }
.entry-thumb img { width: 100%; height: auto; display: block; filter: grayscale(0.6) sepia(0.3) saturate(1.2); }

.entry-content { font-size: 1.02rem; }
.entry-content h2 { margin-top: 2.4rem; }
.entry-content h3 { margin-top: 2rem; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; margin: 0 0 1.4rem; }
.entry-content li { margin-bottom: 0.5rem; }
.entry-content blockquote {
    margin: 2rem 0;
    padding: 1.8rem 2rem;
    background: linear-gradient(120deg, #1A1A1A 0%, rgba(205, 127, 50, 0.22) 100%);
    border-left: 3px solid var(--copper);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content img { margin: 1.4rem 0; }
.entry-content figure { margin: 1.6rem 0; }
.entry-content figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 0.5rem; }

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.8rem 0;
    font-size: 0.94rem;
}
.entry-content table, .entry-content th, .entry-content td { border: 1px solid var(--line-soft); }
.entry-content th, .entry-content td { padding: 0.75rem 0.95rem; text-align: left; }
.entry-content th { background: var(--bg-alt); font-family: var(--font-head); letter-spacing: 0.05em; }

.entry-footer {
    margin-top: 2.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    font-size: 0.82rem;
    color: var(--muted);
}
.entry-footer a { color: var(--copper); }

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2.4rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
}
.post-nav > div { max-width: 46%; min-width: 0; }

/* --- сайдбар и виджеты --- */
.sidebar {
    background: var(--bg-side);
    border: 1px solid var(--line);
    padding: 1.8rem 1.6rem;
    min-width: 0;
    color: var(--ink);
}
.sidebar .widget { margin-bottom: 2rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title,
.sidebar h2, .sidebar h3 {
    font-size: 0.9rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    padding-bottom: 0.7rem;
    margin-bottom: 1.1rem;
    border-bottom: 1px solid var(--line-soft);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 0.55rem 0; border-bottom: 1px dashed var(--line); color: var(--ink); }
.sidebar li:last-child { border-bottom: none; }
.sidebar a { color: var(--ink); font-size: 0.94rem; }
.sidebar a:hover { color: var(--copper); }
.sidebar .post-date, .sidebar .rss-date { display: block; color: var(--muted); font-size: 0.76rem; letter-spacing: 0.08em; }
.sidebar p, .sidebar .textwidget { color: var(--muted); font-size: 0.94rem; }

/* --- подвал --- */
.site-footer {
    background: var(--bg-foot);
    border-top: 1px solid var(--line);
    padding: 3.4rem 0 1.6rem;
    position: relative;
    z-index: 1;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.6rem;
}
.footer-cols .widget-title,
.footer-cols h2, .footer-cols h3 {
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 1.1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--line);
}
.footer-cols, .footer-cols p, .footer-cols li, .footer-cols .textwidget { color: var(--muted); font-size: 0.9rem; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { padding: 0.4rem 0; }
.footer-cols a { color: var(--ink); }
.footer-cols a:hover { color: var(--copper); }

.footer-bottom {
    margin-top: 2.8rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0.05em;
}

/* --- пагинация --- */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 2.6rem;
    align-items: center;
}
.pagination .page-numbers {
    display: inline-block;
    min-width: 44px;
    text-align: center;
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--line-soft);
    border-radius: 0;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.pagination .page-numbers:hover { border-color: var(--copper); color: var(--copper); }
.pagination .page-numbers.current { background: var(--copper); border-color: var(--copper); color: #0A0A0A; }
.pagination .page-numbers.dots { border-color: transparent; }

/* --- поиск --- */
.search-form { display: flex; gap: 0.6rem; max-width: 460px; }
.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    background: var(--bg-alt);
    border: 1px solid var(--line-soft);
    border-radius: 0;
    color: var(--ink);
    padding: 0.75rem 0.9rem;
    font-family: var(--font-body);
    font-size: 0.92rem;
}
.search-form input[type="search"]:focus { outline: none; border-color: var(--copper); }
.search-form button {
    background: transparent;
    border: 1.5px solid var(--copper);
    border-radius: 2px;
    color: var(--copper);
    font-family: var(--font-head);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.75rem 1.2rem;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease;
}
.search-form button:hover { background: var(--copper); color: #0A0A0A; }

/* --- комментарии --- */
.comments-area { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.comments-title { font-size: 1.4rem; }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list ul.children { list-style: none; margin: 0; padding-left: 1.8rem; }
.comment-body {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-bottom: none;
    padding: 1.3rem 1.5rem;
    margin-bottom: 1.2rem;
}
.comment-author { font-family: var(--font-head); letter-spacing: 0.06em; font-size: 0.95rem; }
.comment-date { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.7rem; display: block; }
.comment-reply-link { font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; }

.comment-respond { margin-top: 1.8rem; }
.comment-respond .comment-reply-title { font-size: 1.2rem; }
.comment-form label { display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background: var(--bg-alt);
    border: 1px solid var(--line-soft);
    border-radius: 0;
    color: var(--ink);
    padding: 0.7rem 0.9rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--copper); }
.comment-form .submit {
    background: transparent;
    border: 1.5px solid var(--copper);
    border-radius: 2px;
    color: var(--copper);
    font-family: var(--font-head);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.85rem 1.8rem;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease;
}
.comment-form .submit:hover { background: var(--copper); color: #0A0A0A; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 0.6rem; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { text-transform: none; letter-spacing: 0.02em; font-size: 0.85rem; }

/* --- служебное --- */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.archive-desc { color: var(--muted); margin-bottom: 2rem; }
.page-links { margin-top: 1.4rem; font-size: 0.85rem; letter-spacing: 0.08em; }
.footer-col { min-width: 0; }

/* --- 404 --- */
.error-code {
    font-family: var(--font-head);
    font-size: 6rem;
    line-height: 1;
    color: var(--copper);
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* --- cookie --- */
.cookie-note {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    background: var(--bg-foot);
    border-top: 2px solid var(--copper);
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    flex-wrap: wrap;
    font-size: 0.86rem;
    color: var(--muted);
}
.cookie-note p { margin: 0; max-width: 70ch; }

/* --- адаптив --- */
@media (max-width: 960px) {
    h1 { font-size: 3rem; }
    .hero-inner h1 { font-size: 2.8rem; }
    .hero-media img { height: 460px; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); }
    .sidebar { margin-top: 2.6rem; }
    .layout-single { width: 100%; }
    .topics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nav-toggle { display: inline-block; }
    .site-nav { flex-basis: 100%; display: none; }
    .site-nav.nav-open { display: block; }
    .site-nav ul { flex-direction: column; gap: 0; margin-top: 1.2rem; }
    .site-nav li { border-bottom: 1px solid var(--line); }
    .site-nav li a { display: block; padding: 0.85rem 0; }
    .stat-dash { display: none; }
    .stat { flex: 1 1 40%; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.5rem; }
    .hero-inner h1 { font-size: 2rem; }
    .hero-inner { position: static; padding: 2rem 1.4rem; }
    .hero-media img { height: 240px; }
    .hero-veil { background: linear-gradient(180deg, rgba(10, 10, 12, 0.55) 0%, rgba(205, 127, 50, 0.20) 100%); }
    .fs { padding: 2rem 1.4rem; }
    .fs-hero { padding: 0; }
    .sec-title { font-size: 1.4rem; }
    .page-title { font-size: 1.8rem; }
    .site-main { padding: 2.2rem 0 3.2rem; }

    .card-inner { flex-direction: column; }
    .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }
    .card-thumb-wrap a { position: static; }
    .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .card-body { padding: 1.4rem 1.3rem; }

    .topics-grid { grid-template-columns: minmax(0, 1fr); }
    .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .stat b { font-size: 2.4rem; }
    .stats-row { gap: 1.6rem; }
    .post-nav > div { max-width: 100%; }
    .entry-content blockquote { padding: 1.4rem 1.3rem; }
    .cookie-note { padding: 1rem 1.2rem; gap: 1rem; }
    body::before { width: 280px; height: 240px; }
}
