/*
Theme Name: dds_siebenhundertsachen.com
Theme URI: https://siebenhundertsachen.com/
Author: Татьяна Орлова
Description: Тема для информационного сайта о рукоделии, шитье, вязании и садоводстве. Японский минимализм и текстильная фактура.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: kanva
*/

/* ============ Переменные ============ */
:root {
    --bg: #1A1716;
    --bg-alt: #24201E;
    --bg-head: #24201E;
    --bg-foot: #0F0D0C;
    --bg-side: #24201E;
    --ink: #F2EEE9;
    --accent: #D17A5A;
    --accent2: #8BAA7A;
    --muted: #9A908A;
    --line: #4A413C;
    --card-hover: #2F2A27;
    --serif: Georgia, "Times New Roman", "PT Serif", serif;
    --sans: "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background-color: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Мелкая канва — текстурный паттерн льняного полотна, только на больших экранах */
@media (min-width: 1200px) {
    body::before {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        z-index: 0;
        opacity: 0.05;
        background-image:
            repeating-linear-gradient(0deg, rgba(242, 238, 233, 0.5) 0 1px, transparent 1px 6px),
            repeating-linear-gradient(90deg, rgba(242, 238, 233, 0.5) 0 1px, transparent 1px 6px),
            repeating-linear-gradient(0deg, rgba(209, 122, 90, 0.4) 0 1px, transparent 1px 24px);
    }
}

body > * { position: relative; z-index: 1; }

.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;
}

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

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

.entry-body a,
.widget-inner a,
.breadcrumbs a {
    border-bottom: 1px dotted var(--accent);
}

.entry-body a:hover,
.widget-inner a:hover,
.breadcrumbs a:hover { color: var(--accent2); border-bottom-color: var(--accent2); }

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

h1 { font-size: 3.5rem; }
h2 { font-size: 2.05rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.22rem; }

p { margin: 0 0 1.15em; }

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

blockquote {
    margin: 1.8em 0;
    padding: 1.4rem 1.6rem;
    border-left: 3px solid var(--accent);
    background: var(--bg-alt);
    font-family: var(--serif);
    font-size: 1.12rem;
}

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

code, pre {
    font-family: "SFMono-Regular", Consolas, monospace;
    background: var(--bg-alt);
    font-size: 0.92em;
}

pre { padding: 1rem 1.2rem; overflow: auto; border: 1px solid var(--line); }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    border: 1px solid var(--line);
}

th, td {
    border: 1px solid var(--line);
    padding: 0.65rem 0.85rem;
    text-align: left;
}

th { background: var(--bg-alt); font-family: var(--serif); font-weight: 400; }

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

/* ============ Кнопки ============ */
.btn {
    display: inline-block;
    padding: 0.72rem 1.5rem;
    border-radius: 4px;
    font-size: 0.94rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: var(--bg);
    transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.btn:hover { background: var(--accent2); border-color: var(--accent2); color: var(--bg); }

.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: transparent; color: var(--accent2); border-color: var(--accent2); }

/* Подчёркивание ссылок от центра к краям */
.link-center {
    position: relative;
    border-bottom: none;
}

.link-center::after {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: -3px;
    height: 1px;
    background: var(--accent2);
    transition: left 0.25s ease, right 0.25s ease;
}

.link-center:hover::after { left: 0; right: 0; }

/* Акцентный текст-аппликация */
.stitch-mark {
    color: var(--bg);
    -webkit-text-stroke: 1px var(--accent);
    font-family: var(--serif);
}

/* ============ Заголовки секций ============ */
.section-title {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin: 0 0 1.6rem;
    font-size: 2.05rem;
}

.section-title::before {
    content: "";
    width: 46px;
    height: 1px;
    flex: 0 0 46px;
    background: var(--line);
}

.section-title::after {
    content: "";
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: var(--accent);
}

/* Орнамент-ромбы между секциями */
.stitch-rule {
    height: 12px;
    margin: 0;
    border: 0;
    background-image:
        repeating-linear-gradient(90deg, var(--line) 0 3px, transparent 3px 12px);
    background-size: 100% 1px;
    background-position: 0 50%;
    background-repeat: repeat-x;
    position: relative;
}

.stitch-rule::after {
    content: "";
    position: absolute;
    left: 18%;
    top: 50%;
    width: 40px;
    height: 6px;
    transform: translateY(-50%);
    background-image: repeating-linear-gradient(45deg, var(--accent) 0 1px, transparent 1px 3px),
        repeating-linear-gradient(-45deg, var(--accent) 0 1px, transparent 1px 3px);
    opacity: 0.75;
}

/* ============ Шапка ============ */
.site-head {
    background: var(--bg-head);
    border-bottom: 1px solid var(--line);
}

.head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    padding: 1.5rem 0;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    min-width: 0;
}

.brand-logo { display: block; width: 52px; height: 52px; }

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

.brand-name {
    display: block;
    font-family: var(--serif);
    font-size: 1.28rem;
    color: var(--ink);
    line-height: 1.25;
}

.brand-desc {
    display: block;
    margin-top: 0.28rem;
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.45;
    max-width: 44ch;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink);
    border-radius: 4px;
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: var(--sans);
}

.main-nav[hidden] { display: none !important; }

.main-nav ul {
    display: flex;
    gap: 1.6rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.main-nav li { margin: 0; }

.main-nav a {
    color: var(--ink);
    font-size: 0.92rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 3px;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 0;
    height: 1px;
    background: var(--accent);
    transition: left 0.25s ease, right 0.25s ease;
}

.main-nav a:hover::after { left: 0; right: 0; }

.main-nav .current-menu-item > a { color: var(--accent); }

/* ============ Хлебные крошки ============ */
.breadcrumbs {
    padding: 1.1rem 0 0;
    font-size: 0.84rem;
    color: var(--muted);
}

.breadcrumbs a { color: var(--muted); }
.breadcrumbs .sep { margin: 0 0.45rem; color: var(--line); }

/* ============ Раскладка ============ */
.site-main { padding: 2.2rem 0 3.4rem; }

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

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

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

/* ============ Сайдбар ============ */
.sidebar {
    min-width: 0;
    background: var(--bg-side);
    border: 1px solid var(--line);
    padding: 1.5rem 1.4rem;
}

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

.sidebar .widget-title {
    font-family: var(--serif);
    font-size: 1.18rem;
    color: var(--ink);
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--line);
}

.sidebar .widget-inner,
.sidebar .widget-inner p,
.sidebar .widget-inner li { color: var(--ink); font-size: 0.94rem; }

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

.sidebar .widget-inner li {
    padding: 0.55rem 0 0.55rem 1rem;
    border-bottom: 1px dotted var(--line);
    position: relative;
}

.sidebar .widget-inner li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.1rem;
    width: 5px;
    height: 5px;
    background: var(--accent2);
    transform: rotate(45deg);
}

.sidebar .widget-inner li:last-child { border-bottom: none; }

.sidebar .widget-inner a { color: var(--ink); border-bottom: none; }
.sidebar .widget-inner a:hover { color: var(--accent); }
.sidebar .widget-inner .post-date { display: block; color: var(--muted); font-size: 0.8rem; }

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

.card-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 0;
    overflow: hidden;
    position: relative;
    transition: background-color 0.24s ease, transform 0.24s ease;
}

/* «Швейная метка» — уголок-засечка */
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 0;
    height: 0;
    border-top: 16px solid var(--accent);
    border-right: 16px solid transparent;
}

/* «Принцип ступеньки» */
.card-grid > .card:nth-child(3n + 1) { transform: translateY(-10px); }
.card-grid > .card:nth-child(3n + 2) { transform: translateY(2px); }
.card-grid > .card:nth-child(3n + 3) { transform: translateY(12px); }

.card-list > .card:nth-child(2n + 1) { transform: translateY(-8px); }
.card-list > .card:nth-child(2n) { transform: translateY(6px); }

.card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s ease;
}

.card:hover { background: var(--card-hover); }
.card:hover::after { transform: scaleX(1); }

.card-thumb { display: block; border-bottom: 1px solid var(--line); }

.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    filter: grayscale(1) sepia(0.55) saturate(1.35) hue-rotate(-8deg) brightness(0.86);
    transition: filter 0.3s ease;
}

.card:hover .card-thumb img { filter: grayscale(0.35) sepia(0.2) saturate(1.1) brightness(0.95); }

.card-thumb-empty {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-bottom: 1px solid var(--line);
    background-color: #1F1B19;
    background-image:
        repeating-linear-gradient(45deg, rgba(209, 122, 90, 0.22) 0 1px, transparent 1px 9px),
        repeating-linear-gradient(-45deg, rgba(139, 170, 122, 0.18) 0 1px, transparent 1px 9px);
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.3rem 1.4rem;
    min-width: 0;
}

.card-title {
    font-size: 1.2rem;
    margin: 0 0 0.55rem;
    line-height: 1.28;
}

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

.card-meta {
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
}

.card-excerpt { font-size: 0.94rem; color: #DAD3CC; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt a { color: var(--accent); }

.card-more {
    margin-top: auto;
    padding-top: 0.9rem;
    align-self: flex-start;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.card-more:hover { color: var(--accent2); }

/* ============ Пагинация ============ */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.6rem;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--ink);
    font-size: 0.9rem;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

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

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

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

/* ============ Записи и страницы ============ */
.entry-head { margin-bottom: 1.8rem; }

.entry-title { font-size: 2.6rem; margin-bottom: 0.5rem; }

.entry-meta {
    font-size: 0.82rem;
    color: var(--muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.entry-thumb { margin: 0 0 1.8rem; }

.entry-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid var(--line);
}

.entry-body { font-size: 1.02rem; }
.entry-body h2 { margin-top: 1.7em; font-size: 1.85rem; }
.entry-body h3 { margin-top: 1.5em; }
.entry-body img { display: block; height: auto; }
.entry-body figure { margin: 1.6em 0; }
.entry-body figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }

.entry-taxonomy {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    font-size: 0.88rem;
    color: var(--muted);
}

.entry-taxonomy a { color: var(--accent2); }

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1.4rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

/* ============ Комментарии ============ */
.comments-area {
    margin-top: 3rem;
    padding: 1.8rem 1.7rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
}

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

.comment-list { list-style: none; margin: 0 0 1.8rem; padding: 0; }
.comment-list ul.children { list-style: none; margin: 1rem 0 0 1.4rem; padding: 0; }

.comment-list li { margin-bottom: 1.2rem; }

.comment-box {
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--line);
    background: var(--bg);
}

.comment-author { font-family: var(--serif); font-size: 1.05rem; }
.comment-date { font-size: 0.78rem; color: var(--muted); }
.comment-text { margin-top: 0.6rem; font-size: 0.95rem; }

.comment-form label { display: block; font-size: 0.85rem; 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,
.search-field {
    width: 100%;
    padding: 0.65rem 0.8rem;
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--ink);
    border-radius: 4px;
    font-family: var(--sans);
    font-size: 0.95rem;
}

.comment-form textarea { min-height: 150px; }

.comment-form .form-submit input[type="submit"],
.search-submit {
    padding: 0.7rem 1.5rem;
    background: var(--accent);
    border: 1px solid var(--accent);
    color: var(--bg);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background-color 0.22s ease, border-color 0.22s ease;
}

.comment-form .form-submit input[type="submit"]:hover,
.search-submit:hover { background: var(--accent2); border-color: var(--accent2); }

/* ============ Форма поиска ============ */
.search-form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.search-form .search-field { flex: 1 1 200px; min-width: 0; }

/* ============ Главная ============ */
.front-wrap { width: 85%; margin-left: auto; margin-right: auto; }

.front-section { padding: 3.2rem 0; }

.front-section.on-alt {
    background: var(--bg-alt);
    padding: 3.2rem 2.4rem;
    border: 1px solid var(--line);
    border-radius: 0;
}

.front-lead { color: #DAD3CC; max-width: 62ch; }

/* Блок 1 — Hero */
.fs-hero {
    position: relative;
    overflow: hidden;
    margin-top: 1.6rem;
    border: 1px solid var(--line);
    padding: 0;
}

.fs-hero img.hero-bg {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    filter: brightness(0.62) saturate(0.9);
}

.hero-plate {
    position: absolute;
    left: 4%;
    top: 50%;
    transform: translateY(-50%);
    width: min(90%, 560px);
    padding: 2rem 2rem 2.1rem;
    background: rgba(26, 23, 22, 0.66);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    border: 1px solid rgba(242, 238, 233, 0.14);
    border-radius: 4px;
}

.hero-plate h1 { font-size: 3.5rem; margin-bottom: 0.55rem; }
.hero-plate p { color: #E4DDD5; margin-bottom: 1.4rem; }

.hero-branch {
    position: absolute;
    right: -20px;
    bottom: -30px;
    width: 260px;
    opacity: 0.1;
    pointer-events: none;
}

/* Блок 2 — Чек-лист */
.checklist { list-style: none; margin: 0; padding: 0; }

.checklist li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.05rem 0;
    border-bottom: 1px dashed var(--line);
    margin: 0;
}

.checklist li:last-child { border-bottom: none; }

.checklist .hook { flex: 0 0 26px; width: 26px; margin-top: 4px; }

.checklist .ck-title {
    display: block;
    font-family: var(--serif);
    font-size: 1.18rem;
    margin-bottom: 0.25rem;
}

.checklist .ck-text { display: block; color: #D3CBC4; font-size: 0.96rem; }

/* Блок 3 — Статистика */
.fs-stats {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--bg-alt) 0%, var(--bg) 100%);
    border: 1px solid var(--line);
    padding: 3rem 2.4rem;
}

.fs-stats::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.05;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(45deg, var(--ink) 0 2px, transparent 2px 14px),
        repeating-linear-gradient(-45deg, var(--ink) 0 2px, transparent 2px 14px);
}

.stats-row {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.stat-item { min-width: 0; text-align: left; }

.stat-num {
    display: block;
    font-family: var(--serif);
    font-size: 4.4rem;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-label { display: block; font-size: 0.9rem; color: #D3CBC4; }

.stat-item + .stat-item { border-left: 1px solid var(--line); padding-left: 2rem; }

/* Блок 4 — Карта тем */
.topic-map {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
}

.topic-tile {
    position: relative;
    display: block;
    min-width: 0;
    padding: 2rem 1.9rem 2.4rem;
    border: 1px solid var(--line);
    background-color: var(--bg-alt);
    color: var(--ink);
    overflow: hidden;
    transition: border-color 0.24s ease, background-color 0.24s ease;
}

.topic-tile::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 54px;
    opacity: 0.28;
    pointer-events: none;
}

.topic-tile:nth-child(1)::after {
    background-image: repeating-linear-gradient(90deg, var(--accent) 0 1px, transparent 1px 10px);
}

.topic-tile:nth-child(2)::after {
    background-image: radial-gradient(circle at 6px 6px, var(--accent2) 2px, transparent 2px);
    background-size: 18px 18px;
}

.topic-tile:nth-child(3)::after {
    background-image: repeating-linear-gradient(45deg, var(--accent2) 0 1px, transparent 1px 12px);
}

.topic-tile:nth-child(4)::after {
    background-image: repeating-linear-gradient(0deg, var(--accent) 0 1px, transparent 1px 9px),
        repeating-linear-gradient(90deg, var(--accent) 0 1px, transparent 1px 9px);
}

.topic-tile:hover { border-color: var(--accent2); background-color: var(--card-hover); }

.topic-name {
    display: block;
    font-family: var(--serif);
    font-size: 2.05rem;
    line-height: 1.15;
    margin-bottom: 0.5rem;
}

.topic-note { display: block; color: #D3CBC4; font-size: 0.94rem; max-width: 34ch; }

/* ============ Подвал ============ */
.site-foot {
    background: var(--bg-foot);
    border-top: 1px solid var(--line);
    padding: 2.8rem 0 1.6rem;
    color: #E6E0DA;
}

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

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

.foot-col .widget-title {
    font-family: var(--serif);
    font-size: 1.1rem;
    color: var(--ink);
    margin: 0 0 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--line);
}

.foot-col .widget-inner,
.foot-col .widget-inner p,
.foot-col .widget-inner li { color: #E6E0DA; font-size: 0.92rem; }

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

.foot-col .widget-inner li {
    margin: 0;
    padding: 0.36rem 0 0.36rem 0.95rem;
    position: relative;
}

.foot-col .widget-inner li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.95rem;
    width: 5px;
    height: 5px;
    background: var(--accent);
    transform: rotate(45deg);
}

.foot-col .widget-inner a { color: #E6E0DA; border-bottom: none; }
.foot-col .widget-inner a:hover { color: var(--accent); }
.foot-col .widget-inner .post-date { display: block; color: var(--muted); font-size: 0.78rem; }

.foot-bottom {
    margin-top: 2.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    font-size: 0.84rem;
    color: var(--muted);
}

/* ============ Cookie-баннер ============ */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: 1rem 1.6rem;
    background: #14100F;
    border-top: 1px solid var(--line);
    font-size: 0.88rem;
    color: #E6E0DA;
}

.cookie-banner p { margin: 0; max-width: 78ch; }

/* ============ 404 ============ */
.page-404 { text-align: left; padding: 1rem 0 2rem; }
.page-404 .code {
    font-family: var(--serif);
    font-size: 6rem;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.page-404 .search-form { margin: 1.6rem 0; max-width: 480px; }

/* ============ Адаптив ============ */
@media (max-width: 960px) {
    h1 { font-size: 2.6rem; }
    .hero-plate h1 { font-size: 2.4rem; }
    .entry-title { font-size: 2.1rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 2.4rem; }
    .layout-single { width: 100%; }
    .front-wrap { width: 100%; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card-grid > .card, .card-list > .card { transform: none; }
    .hero-plate { position: static; transform: none; width: 100%; }
    .fs-hero img.hero-bg { aspect-ratio: 16 / 9; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.65rem; }
    .section-title { font-size: 1.65rem; }
    .hero-plate { padding: 1.5rem 1.3rem 1.6rem; }
    .hero-plate h1 { font-size: 2rem; }
    .entry-title { font-size: 1.8rem; }
    .head-inner { padding: 1.1rem 0; }
    .nav-toggle { display: inline-block; }
    .main-nav { flex-basis: 100%; }
    .main-nav[hidden] { display: none !important; }
    .main-nav ul { flex-direction: column; gap: 0.85rem; padding-top: 0.8rem; }
    .card-grid, .card-list { grid-template-columns: minmax(0, 1fr); }
    .front-section { padding: 2.2rem 0; }
    .front-section.on-alt { padding: 2rem 1.4rem; }
    .fs-stats { padding: 1.9rem 1.4rem; }
    .stats-row { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
    .stat-item + .stat-item { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 1.4rem; }
    .stat-num { font-size: 3.4rem; }
    .topic-map { grid-template-columns: minmax(0, 1fr); }
    .topic-name { font-size: 1.7rem; }
    .foot-cols { grid-template-columns: minmax(0, 1fr); }
    .sidebar { padding: 1.3rem 1.2rem; }
    .comments-area { padding: 1.4rem 1.2rem; }
    .cookie-banner { padding: 1rem 1.2rem; }
    .hero-branch { width: 160px; }
}
