/*
Theme Name: dds_livefearlessnc.com
Author: Алексей Рощин
Description: Информационно-аналитическая тема о загородной недвижимости нового типа. Дизайн-концепция «Ресурсный минимализм»: японская асимметрия, тёплый крафт и картографические оттенки.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: lfnc
*/

/* ============================================================
 * Переменные
 * ============================================================ */
:root {
    --bg:          #F7F3EB;
    --bg-alt:      #EDE6DA;
    --bg-craft:    #E1D5C4;
    --bg-footer:   #2C2A28;
    --text:        #2E2C2A;
    --text-muted:  #8F8A84;
    --accent:      #A67B5B;
    --accent-2:    #7D6B5D;
    --frame-in:    #EDE6DA;
    --frame-out:   #DCD3C6;
    --hero-to:     #D9CDC0;
    --font-head:   'Montserrat', 'Segoe UI', sans-serif;
    --font-body:   'Merriweather', Georgia, 'Times New Roman', serif;
    --shell:       1180px;
}

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

html { scroll-behavior: smooth; }

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

/* Деликатная «зернистость» бумаги ручной работы */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}

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

a {
    color: var(--accent);
    text-decoration: none;
    background-image: linear-gradient(to right, currentColor 40%, transparent 0);
    background-position: 0 1.05em;
    background-size: 6px 1px;
    background-repeat: repeat-x;
    transition: color .2s ease, background-size .2s ease;
}
a:hover {
    color: var(--accent-2);
    background-size: 6px 2px;
    background-image: linear-gradient(to right, currentColor 100%, transparent 0);
}

p { margin: 0 0 1.1em; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.18;
    color: var(--text);
    margin: 0 0 .6em;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.35rem; }

/* ============================================================
 * Контейнер ширины (единственный источник)
 * ============================================================ */
.shell {
    width: min(90%, var(--shell));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: #fff;
    padding: .6rem 1rem;
    z-index: 100;
    background-image: none;
}
.skip-link:focus { left: 8px; top: 8px; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}

/* ============================================================
 * Кнопки
 * ============================================================ */
.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .01em;
    padding: .7rem 1.5rem;
    border-radius: 16px;
    cursor: pointer;
    background-image: none;
    transition: transform .12s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
}
.btn-outline:hover {
    background: var(--accent);
    color: #FBF8F2;
    transform: translateY(2px);
}

/* ============================================================
 * Шапка (не липкая)
 * ============================================================ */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--frame-out);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.1rem 0;
    flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.brand-mark { flex: 0 0 auto; }
.brand-logo { display: block; }
.brand-logo-link { background-image: none; }
.brand-text { min-width: 0; }
.site-title-link { background-image: none; }
.site-title {
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--text);
    max-width: 48ch;
}
.site-description {
    margin: .35rem 0 0;
    font-size: .82rem;
    line-height: 1.5;
    color: var(--text-muted);
    max-width: 60ch;
}

.primary-nav .menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    margin: 0;
    padding: 0;
}
.primary-nav .menu a {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .95rem;
    color: var(--text);
    background-image: none;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}
.primary-nav .menu a:hover,
.primary-nav .menu .current-menu-item > a {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--frame-out);
    border-radius: 8px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0 auto;
    background: var(--text);
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
 * Основной блок / отступы
 * ============================================================ */
.site-main { display: block; }
.page-wrap { padding: 2rem 0 4rem; }

/* Хлебные крошки */
.breadcrumbs {
    font-family: var(--font-head);
    font-size: .82rem;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
}
.breadcrumbs a { color: var(--accent-2); background-image: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { margin: 0 .35rem; color: var(--frame-out); }

/* ============================================================
 * Раскладки
 * ============================================================ */
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: start;
}
.layout-single { display: block; }
.layout-single .content-area {
    max-width: 860px;
    margin-inline: auto;
}
.content-area { min-width: 0; }

.page-head { margin-bottom: 2rem; }
.page-title { font-size: 2.2rem; }

/* ============================================================
 * Заголовки секций: «врезаны» в край, декоративный мазок,
 * «живая линия» при наведении
 * ============================================================ */
.section-diamond {
    display: block;
    color: var(--accent);
    font-size: .8rem;
    margin-bottom: .7rem;
    line-height: 1;
}
.section-title {
    position: relative;
    display: inline-block;
    font-size: 1.85rem;
    padding-bottom: .55rem;
    margin-bottom: 1.1rem;
}
.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 66px;
    height: 5px;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--accent) 22%, var(--accent) 78%, transparent);
    transition: width .25s ease, height .25s ease, background .25s ease;
}
.section-title:hover::after {
    width: 128px;
    height: 12px;
    border-radius: 0;
    background: no-repeat left center / contain
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='12' viewBox='0 0 128 12'%3E%3Cpath d='M1 7 C 10 1, 20 11, 30 6 S 50 1, 60 7 S 82 11, 94 5 S 116 2, 127 7' fill='none' stroke='%23A67B5B' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.section-intro {
    max-width: 62ch;
    color: var(--accent-2);
    margin-bottom: 2rem;
}

/* ============================================================
 * Front page: секции
 * ============================================================ */
.fp-hero,
.fp-slices,
.fp-latest,
.fp-stats,
.fp-checklist {
    padding: 80px 0;
    border-bottom: 1px dashed var(--frame-out);
}
.alt-bg { background: var(--bg-alt); }

/* Hero */
.fp-hero {
    background: linear-gradient(135deg, var(--bg) 0%, var(--hero-to) 100%);
}
.fp-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.fp-hero-text { min-width: 0; }
.fp-hero-title {
    font-size: 3.5rem;
    line-height: 1.08;
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
    padding-bottom: .4rem;
}
.fp-hero-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 180px;
    max-width: 60%;
    height: 12px;
    background: no-repeat left center / contain
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='12' viewBox='0 0 180 12'%3E%3Cpath d='M1 7 C 14 2, 28 11, 44 6 S 74 1, 90 7 S 122 12, 138 5 S 168 2, 179 7' fill='none' stroke='%23A67B5B' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}
.fp-hero-lead {
    font-size: 1.15rem;
    color: var(--accent-2);
    max-width: 52ch;
    margin-bottom: 1.8rem;
}
.fp-hero-art { min-width: 0; }
.plot-schematic {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(6px 6px 0 rgba(166, 123, 91, 0.08));
}

/* Три среза */
.slices-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}
.slice {
    background: var(--bg);
    border: 1px solid var(--frame-out);
    border-radius: 4px;
    padding: 1.8rem 1.6rem;
    min-width: 0;
}
.slice-figure {
    display: block;
    width: 46px;
    height: 46px;
    margin-bottom: 1rem;
}
.figure-circle {
    border-radius: 50%;
    background:
        repeating-linear-gradient(45deg, var(--accent) 0 2px, transparent 2px 6px),
        var(--bg-craft);
    border: 2px solid var(--accent);
}
.figure-square {
    background:
        repeating-linear-gradient(0deg, var(--accent-2) 0 2px, transparent 2px 7px),
        var(--bg-alt);
    border: 2px solid var(--accent-2);
}
.figure-triangle {
    width: 0;
    height: 0;
    border-left: 24px solid transparent;
    border-right: 24px solid transparent;
    border-bottom: 44px solid var(--accent);
    background: none;
    border-radius: 0;
}
.slice-title { font-size: 1.5rem; margin-bottom: .3rem; }
.slice-earth .slice-title { font-size: 1.7rem; }
.slice-law .slice-title { font-size: 1.35rem; }
.slice-lead {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .95rem;
    color: var(--accent);
    margin-bottom: .8rem;
}
.slice-text { color: var(--text); margin: 0; }

/* Свежая аналитика */
.fp-latest-more { margin-top: 2.2rem; }
.empty-note { color: var(--text-muted); }

/* Статистика — «вырванные листы» */
.fp-stats {
    background: linear-gradient(120deg, var(--bg-alt) 0%, var(--bg-craft) 100%);
}
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.6rem;
}
.stat-torn {
    background: var(--bg);
    padding: 1.4rem 1.4rem 1.6rem;
    box-shadow: 7px 7px 0 var(--frame-out);
    clip-path: polygon(0 0, 100% 2%, 98% 100%, 2% 98%);
    text-align: left;
    min-width: 0;
}
.stat-torn:nth-child(odd)  { transform: rotate(-1.4deg); }
.stat-torn:nth-child(even) { transform: rotate(1.2deg); }
.stat-num {
    display: block;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 2.9rem;
    line-height: 1;
    color: var(--accent);
    letter-spacing: -0.03em;
}
.stat-cap {
    display: block;
    margin-top: .6rem;
    font-size: .92rem;
    color: var(--accent-2);
    line-height: 1.45;
}

/* Чек-лист + цитата */
.fp-checklist { border-bottom: none; }
.fp-checklist-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
.checklist-side { min-width: 0; }
.map-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: 2.2rem;
}
.map-checklist li {
    position: relative;
    padding-left: 1.7rem;
    margin-bottom: 1.1rem;
    font-size: 1.2rem;
    line-height: 1.5;
    break-inside: avoid;
}
.map-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(166, 123, 91, 0.18);
}
.checklist-quote {
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg-craft) 100%);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    padding: 2rem 1.9rem;
    min-width: 0;
}
.checklist-quote blockquote { margin: 0; }
.checklist-quote p {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.6;
}
.checklist-quote cite {
    display: block;
    margin-top: 1rem;
    font-family: var(--font-head);
    font-style: normal;
    font-weight: 600;
    color: var(--accent-2);
}

/* ============================================================
 * Карточки записей
 * ============================================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
}
.cards-grid-list {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border: 2px solid var(--frame-out);
    border-radius: 4px;
    overflow: hidden;
    transition: transform .18s ease, border-color .18s ease;
    min-width: 0;
}
.card::before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid var(--frame-in);
    pointer-events: none;
    z-index: 2;
    border-radius: 2px;
}
.card:hover {
    transform: translateX(-6px);
    border-left-color: var(--accent);
}
.card-thumb-wrap {
    position: relative;
    overflow: hidden;
}
.card-thumb-wrap a { display: block; background-image: none; }
.card-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
    transition: transform .3s ease;
}
.card:hover .card-thumb { transform: scale(1.03); }
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.3rem 1.4rem 1.5rem;
}
.card-meta {
    font-family: var(--font-head);
    font-size: .78rem;
    color: var(--text-muted);
    margin-bottom: .5rem;
}
.card-title { font-size: 1.25rem; margin-bottom: .6rem; }
.card-title a { color: var(--text); background-image: none; }
.card-title a:hover { color: var(--accent); }
.card-excerpt { color: var(--text); font-size: .96rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    margin-top: auto;
    padding-top: .8rem;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .9rem;
    background-image: none;
}

/* ============================================================
 * Одиночная запись / страница
 * ============================================================ */
.single-post { margin-bottom: 2.5rem; }
.single-title { font-size: 2.4rem; margin-bottom: .6rem; }
.single-meta {
    font-family: var(--font-head);
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: 1.6rem;
}
.single-meta a { color: var(--accent-2); background-image: none; }
.single-meta a:hover { color: var(--accent); }
.meta-sep { margin: 0 .2rem; }
.single-thumb { margin-bottom: 1.8rem; }
.single-thumb img {
    display: block;
    width: 100%;
    border-radius: 4px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}
.single-content { font-size: 1.05rem; }
.single-content img { display: block; border-radius: 4px; margin: 1.5rem 0; }
.single-content h2 { margin-top: 1.8em; }
.single-content h3 { margin-top: 1.5em; }
.single-content blockquote {
    margin: 1.6rem 0;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg-craft) 100%);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    font-style: italic;
    color: var(--accent-2);
}
.single-content blockquote p:last-child { margin-bottom: 0; }
.single-content ul, .single-content ol { padding-left: 1.4rem; }
.single-content li { margin-bottom: .4rem; }

.single-tags { margin-top: 1.8rem; }
.tag-link {
    display: inline-block;
    font-family: var(--font-head);
    font-size: .82rem;
    color: var(--accent-2);
    background-image: none;
    margin: 0 .5rem .5rem 0;
    padding: .25rem .7rem;
    border: 1px solid var(--frame-out);
    border-radius: 12px;
}
.tag-link:hover { color: var(--accent); border-color: var(--accent); }

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

/* ============================================================
 * Таблицы в контенте
 * ============================================================ */
.single-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border: 1px solid var(--frame-out);
}
.single-content th,
.single-content td {
    border: 1px solid var(--frame-out);
    padding: .6rem .8rem;
    text-align: left;
}
.single-content th {
    background: var(--bg-alt);
    font-family: var(--font-head);
}

/* ============================================================
 * Сайдбар
 * ============================================================ */
.sidebar {
    background: var(--bg);
    padding: 1.4rem 1.5rem;
    border: 1px solid var(--frame-out);
    border-radius: 4px;
    min-width: 0;
}
.sidebar .widget { margin-bottom: 2rem; color: var(--text); }
.sidebar .widget:last-child { margin-bottom: 0; }
.widget-title {
    font-size: 1.05rem;
    margin-bottom: .9rem;
    padding-bottom: .5rem;
    border-bottom: 1px dashed var(--frame-out);
    color: var(--text);
}
.sidebar .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar .widget li {
    padding: .5rem 0;
    border-bottom: 1px dotted var(--frame-out);
    line-height: 1.4;
}
.sidebar .widget li:last-child { border-bottom: none; }
.sidebar .widget a { color: var(--text); background-image: none; }
.sidebar .widget a:hover { color: var(--accent); }
.sidebar .post-date {
    display: block;
    font-family: var(--font-head);
    font-size: .75rem;
    color: var(--text-muted);
    margin-top: .15rem;
}

/* ============================================================
 * Пагинация
 * ============================================================ */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 3rem;
    justify-content: center;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 .7rem;
    font-family: var(--font-head);
    font-size: .95rem;
    color: var(--accent);
    background: transparent;
    background-image: none;
    border: 1.5px solid var(--frame-out);
    border-radius: 12px;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.pagination a.page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent-2);
}
.pagination .page-numbers.current {
    background: var(--accent);
    color: #FBF8F2;
    border-color: var(--accent);
}
.pagination .page-numbers.dots {
    border: none;
    color: var(--text-muted);
}

/* Пагинация комментариев */
.comment-navigation, .comments-area .navigation {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    font-family: var(--font-head);
}

/* ============================================================
 * Формы (поиск, комментарии)
 * ============================================================ */
.search-form {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    margin: 1.2rem 0;
}
.search-field {
    flex: 1;
    min-width: 0;
    padding: .65rem .9rem;
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--text);
    background: var(--bg);
    border: 1.5px solid var(--frame-out);
    border-radius: 12px;
}
.search-field:focus { outline: none; border-color: var(--accent); }
.search-submit {
    background: var(--accent);
    color: #FBF8F2;
    border: 1.5px solid var(--accent);
}
.search-submit:hover { transform: translateY(2px); }

.comments-area { margin-top: 3rem; }
.comments-title { font-size: 1.5rem; margin-bottom: 1.5rem; }
.comment-list {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
}
.comment-list ol { list-style: none; padding-left: 1.6rem; }
.comment-item { margin-bottom: 1.2rem; }
.comment-inner {
    background: var(--bg);
    border: 1px solid var(--frame-out);
    border-radius: 4px;
    padding: 1.1rem 1.3rem;
}
.comment-head {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    margin-bottom: .5rem;
    font-family: var(--font-head);
}
.comment-author { font-weight: 600; }
.comment-date { font-size: .8rem; color: var(--text-muted); }
.comment-reply a { font-family: var(--font-head); font-size: .85rem; background-image: none; }

.comment-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.comment-form p { margin: 0; }
.comment-form label { font-family: var(--font-head); font-size: .9rem; display: block; margin-bottom: .3rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .65rem .9rem;
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--text);
    background: var(--bg);
    border: 1.5px solid var(--frame-out);
    border-radius: 10px;
}
.comment-form textarea:focus,
.comment-form input:focus { outline: none; border-color: var(--accent); }
.form-submit .submit,
.comment-form .submit {
    background: var(--accent);
    color: #FBF8F2;
    border: 1.5px solid var(--accent);
}

/* ============================================================
 * Карта сайта
 * ============================================================ */
.sitemap-heading { font-size: 1.3rem; margin: 1.6rem 0 .8rem; }
.sitemap-list { padding-left: 1.2rem; }
.sitemap-list li { margin-bottom: .4rem; }

/* 404 */
.error-404 { text-align: left; padding: 1rem 0 2rem; }
.error-lead { color: var(--accent-2); max-width: 56ch; margin-bottom: 1.5rem; }
.error-home { margin-top: 1.5rem; }

.archive-desc { color: var(--accent-2); margin-top: .8rem; }

/* ============================================================
 * Подвал
 * ============================================================ */
.site-footer {
    background: var(--bg-footer);
    color: #D8D2C8;
    margin-top: 4rem;
}
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    padding: 3.2rem 0 2.4rem;
}
.footer-col { min-width: 0; }
.footer-widgets .widget { color: #C8C2B8; }
.footer-widgets .widget-title {
    color: #F3EEE4;
    border-bottom-color: rgba(255, 255, 255, 0.14);
}
.footer-widgets .widget p { color: #C0BAB0; }
.footer-widgets .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-widgets .widget li {
    padding: .4rem 0;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.1);
}
.footer-widgets .widget li:last-child { border-bottom: none; }
.footer-widgets .widget a {
    color: #D8D2C8;
    background-image: none;
}
.footer-widgets .widget a:hover { color: var(--accent); }
.footer-widgets .post-date {
    display: block;
    font-family: var(--font-head);
    font-size: .75rem;
    color: #9A948A;
}
.footer-bottom {
    padding: 1.4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.copyright {
    margin: 0;
    font-family: var(--font-head);
    font-size: .82rem;
    color: #9A948A;
}

/* ============================================================
 * Декоративный «водяной знак» территории (широкие экраны)
 * ============================================================ */
.map-watermark {
    position: fixed;
    right: -40px;
    bottom: -40px;
    width: 360px;
    height: 360px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.2;
    display: none;
    background: no-repeat center / contain
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360' viewBox='0 0 360 360'%3E%3Cg fill='none' stroke='%23EDE6DA' stroke-width='2'%3E%3Ccircle cx='180' cy='180' r='150'/%3E%3Ccircle cx='180' cy='180' r='110'/%3E%3Ccircle cx='180' cy='180' r='70'/%3E%3Cpath d='M180 20 L180 340 M20 180 L340 180'/%3E%3Cpath d='M180 60 L210 180 L180 300 L150 180 Z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ============================================================
 * Cookie-баннер
 * ============================================================ */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: 1rem 1.4rem;
    background: var(--bg-footer);
    color: #E7E2D8;
    border-top: 2px solid var(--accent);
}
.cookie-text {
    margin: 0;
    font-size: .9rem;
    line-height: 1.5;
    max-width: 70ch;
    min-width: 0;
}
.cookie-accept {
    background: var(--accent);
    color: #FBF8F2;
    border: 1.5px solid var(--accent);
    flex: 0 0 auto;
}
.cookie-accept:hover { transform: translateY(2px); }

/* ============================================================
 * Адаптив
 * ============================================================ */
@media (min-width: 1200px) {
    .map-watermark { display: block; }
}

@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); }
    .sidebar { margin-top: 2.5rem; }
    .fp-hero-inner { grid-template-columns: minmax(0, 1fr); }
    .fp-hero-art { max-width: 420px; }
    .fp-checklist-inner { grid-template-columns: minmax(0, 1fr); }
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fp-hero-title { font-size: 2.9rem; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2rem; }
    .fp-hero-title { font-size: 2.3rem; }
    .single-title { font-size: 1.9rem; }

    .nav-toggle { display: flex; }
    .primary-nav {
        flex-basis: 100%;
        display: none;
    }
    .primary-nav.is-open { display: block; }
    .primary-nav .menu {
        flex-direction: column;
        gap: .2rem;
        padding-top: 1rem;
    }
    .primary-nav .menu a {
        display: block;
        padding: .6rem 0;
        border-bottom: 1px dotted var(--frame-out);
    }

    .fp-hero, .fp-slices, .fp-latest, .fp-stats, .fp-checklist { padding: 56px 0; }
    .slices-grid { grid-template-columns: minmax(0, 1fr); }
    .slice { padding: 1.5rem 1.3rem; }
    .stats-row { grid-template-columns: minmax(0, 1fr); }
    .stat-torn { padding: 1.3rem 1.3rem 1.5rem; }
    .map-checklist { columns: 1; }
    .checklist-quote { padding: 1.6rem 1.4rem; }
    .cards-grid, .cards-grid-list { grid-template-columns: minmax(0, 1fr); }

    .footer-widgets { grid-template-columns: minmax(0, 1fr); gap: 2rem; }

    .cookie-banner { padding: 1rem 1.1rem; }
    .card-thumb-wrap { position: static; }
    .card-thumb-wrap a { position: static; }
}
