/*
Theme Name: dds_manosolovivelarevolution.com
Author: Чернова Виктория
Description: Тема для информационного сайта об идеях загородного отдыха и путешествий. Природная цветовая гамма, журнальная подача карточек, плавающее меню, ненавязчивый интерфейс.
Version: 1.1
Text Domain: dds_manosolovivelarevolution
*/

/* ============================
   1. БАЗОВЫЕ ПЕРЕМЕННЫЕ И СБРОС
   ============================ */

:root {
    --bg-sand: #F9F6F0;
    --bg-paper: #FFFFFF;
    --bg-mist: #D8E4E0;
    --color-forest: #2F5D3A;
    --color-forest-dark: #234628;
    --color-clay: #C2834B;
    --color-clay-dark: #A66E3A;
    --color-text: #2C302E;
    --color-text-soft: #5A6360;
    --color-line: #E2DDD1;
    --shadow-soft: 0 6px 18px rgba(47, 93, 58, 0.08);
    --shadow-lift: 0 12px 30px rgba(47, 93, 58, 0.14);
    --radius-card: 18px;
    --radius-pill: 40px;
    --radius-btn: 12px;
    --maxw: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Manrope', 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--color-text);
    background-color: var(--bg-sand);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--color-forest);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color .2s ease;
}
a:hover { color: var(--color-clay); }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 700;
    color: var(--color-forest);
    line-height: 1.25;
    margin: 1.4em 0 .6em;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }

p { margin: 0 0 1em; }

blockquote {
    border-left: 4px solid var(--color-clay);
    padding: .6em 1.2em;
    margin: 1.5em 0;
    font-style: italic;
    font-size: 1.15em;
    color: var(--color-text);
    background: var(--bg-mist);
    border-radius: 0 12px 12px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    border: 1px solid var(--color-line);
    background: var(--bg-paper);
    border-radius: 12px;
    overflow: hidden;
}
th, td {
    padding: .7em 1em;
    border: 1px solid var(--color-line);
    text-align: left;
}
th { background: var(--bg-mist); color: var(--color-forest); }

code, pre {
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-size: .92em;
    background: var(--bg-mist);
    border-radius: 6px;
}
code { padding: .15em .4em; }
pre { padding: 1em; overflow-x: auto; }

::selection { background: var(--color-clay); color: #fff; }

/* ============================
   2. УТИЛИТЫ И КОНТЕЙНЕРЫ
   ============================ */

.shell {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-block;
    padding: .8em 1.6em;
    border-radius: var(--radius-pill);
    background: var(--color-forest);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.btn:hover {
    color: #fff;
    border-color: var(--color-clay);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}
.btn-card {
    border-radius: var(--radius-btn);
    padding: .55em 1.1em;
    font-size: .92em;
}
.btn-ghost {
    background: transparent;
    color: var(--color-forest);
    border: 1px solid var(--color-forest);
}
.btn-ghost:hover { background: var(--color-forest); color: #fff; }

/* Cookie banner — правило hidden ДО основного блока стилей (см. A11) */
.cookie-banner[hidden] { display: none !important; }

/* ============================
   3. ШАПКА
   ============================ */

.site-header {
    background: var(--bg-paper);
    border-bottom: 1px solid var(--color-line);
    padding: 14px 0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--color-text);
}
.brand:hover { color: var(--color-text); }
.brand-logo, .brand-svg {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: block;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-forest);
}
.brand-desc {
    font-size: .82rem;
    color: var(--color-text-soft);
    max-width: 380px;
}

.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.primary-nav a {
    display: block;
    padding: .55em 1.1em;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 600;
    color: var(--color-text);
    transition: background .2s ease, color .2s ease;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
    background: var(--color-forest);
    color: #fff;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--color-forest);
    font-weight: 600;
}
.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-forest);
    margin: 4px 0;
}

/* ============================
   4. HERO + СЛАЙДЕР НА ГЛАВНОЙ
   ============================ */

.hero {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border-radius: 0 0 24px 24px;
    margin-bottom: 60px;
}
.hero-slides {
    position: absolute;
    inset: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(35, 70, 40, 0.55), rgba(47, 93, 58, 0.25) 60%, rgba(194, 131, 75, 0.45));
}
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 100px 0 110px;
    text-align: left;
    max-width: 760px;
}
.hero-eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    padding: .4em 1em;
    border-radius: var(--radius-pill);
    font-size: .9rem;
    margin-bottom: 18px;
    letter-spacing: .02em;
}
.hero-title {
    color: #fff;
    margin: 0 0 20px;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.15;
    text-shadow: 0 3px 18px rgba(0,0,0,0.25);
}
.hero-lead {
    font-size: 1.15rem;
    margin-bottom: 28px;
    max-width: 600px;
    color: rgba(255,255,255,0.95);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions .btn {
    background: var(--color-clay);
}
.hero-actions .btn-ghost {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.7);
}
.hero-actions .btn-ghost:hover { background: #fff; color: var(--color-forest); }

.hero-dots {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}
.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .2s ease, transform .2s ease;
}
.hero-dot.is-active {
    background: #fff;
    transform: scale(1.3);
}

/* ============================
   5. МАКЕТ КОНТЕНТА
   ============================ */

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding: 40px 0 80px;
}
.layout.has-sidebar {
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    justify-content: space-between;
    gap: 6%;
}
.layout-narrow { max-width: 85%; margin: 0 auto; padding: 40px 0 80px; }

.main-content { min-width: 0; }
.sidebar { min-width: 0; }

/* ============================
   6. ХЛЕБНЫЕ КРОШКИ
   ============================ */

.crumbs {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: .9rem;
    color: var(--color-text-soft);
}
.crumbs li { display: flex; align-items: center; gap: 10px; }
.crumbs li + li::before {
    content: '/';
    color: var(--color-line);
}
.crumbs a {
    text-decoration: none;
    color: var(--color-forest);
}
.crumbs a:hover { color: var(--color-clay); }
.crumbs .crumb-current { color: var(--color-text-soft); }

/* ============================
   7. КАРТОЧКИ ЗАПИСЕЙ (журнальный поток)
   ============================ */

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--bg-paper);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lift);
}

.card-row {
    flex-direction: row;
    align-items: stretch;
}
.card-row.is-reverse { flex-direction: row-reverse; }

.card-thumb-wrap {
    flex: 0 0 60%;
    position: relative;
    overflow: hidden;
    background: var(--bg-mist);
}
.card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    text-decoration: none;
}
.card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.card:hover .card-thumb-wrap img { transform: scale(1.04); }

.card-no-thumb {
    flex: 0 0 60%;
    background: linear-gradient(135deg, var(--bg-mist), var(--bg-sand));
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    color: var(--color-forest);
    font-size: 4rem;
    opacity: .55;
}

.card-body {
    flex: 1;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-mood {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
}
.mood-tag {
    font-size: .76rem;
    padding: .25em .8em;
    border-radius: var(--radius-pill);
    background: var(--bg-mist);
    color: var(--color-forest);
    text-decoration: none;
    border: 1px solid transparent;
    transition: border-color .2s ease;
}
.mood-tag:hover { border-color: var(--color-clay); color: var(--color-forest); }

.card-title {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.3;
}
.card-title a {
    text-decoration: none;
    color: var(--color-forest);
}
.card-title a:hover { color: var(--color-clay); }

.card-meta {
    font-size: .85rem;
    color: var(--color-text-soft);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.card-meta a {
    color: var(--color-text-soft);
    text-decoration: none;
}
.card-meta a:hover { color: var(--color-clay); }

.card-excerpt { color: var(--color-text); }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt p:last-child { margin-bottom: 0; }

.card-foot {
    margin-top: auto;
    padding-top: 8px;
}

/* ============================
   8. КАТЕГОРИИ-ПЛИТКИ
   ============================ */

.section {
    margin: 0 0 60px;
}
.section-head {
    text-align: center;
    margin-bottom: 36px;
}
.section-head h2 { margin: 0 0 10px; }
.section-head p { color: var(--color-text-soft); margin: 0; }

.tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.tile {
    background: var(--bg-paper);
    border-radius: var(--radius-card);
    padding: 28px 24px;
    text-decoration: none;
    color: var(--color-text);
    box-shadow: var(--shadow-soft);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid var(--color-line);
}
.tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
    color: var(--color-text);
}
.tile-icon {
    width: 44px;
    height: 44px;
    color: var(--color-clay);
}
.tile-title {
    margin: 0;
    font-size: 1.15rem;
    color: var(--color-forest);
}
.tile-desc {
    margin: 0;
    color: var(--color-text-soft);
    font-size: .92rem;
}

/* ============================
   9. БЛОК «ПРИРОДА КАК ВОССТАНОВЛЕНИЕ»
   ============================ */

.recovery {
    background:
        repeating-linear-gradient(45deg, rgba(194,131,75,0.04) 0 2px, transparent 2px 8px),
        var(--bg-mist);
    padding: 48px 40px;
    border-radius: var(--radius-card);
    margin: 60px 0;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}
.recovery h2 { margin-top: 0; }
.recovery-tip {
    font-style: italic;
    color: var(--color-text);
}
.audio-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-paper);
    padding: 8px 18px 8px 8px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-soft);
}
.audio-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--color-forest);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s ease;
}
.audio-btn:hover { background: var(--color-forest-dark); }
.audio-btn svg { width: 18px; height: 18px; }
.audio-label {
    font-weight: 600;
    color: var(--color-forest);
    font-size: .95rem;
}

/* ============================
   10. ФОРМА-ОТКРЫТКА (подписка)
   ============================ */

.postcard {
    background: var(--bg-paper);
    border: 2px dashed var(--color-clay);
    border-radius: var(--radius-card);
    padding: 36px;
    margin: 60px 0;
    box-shadow: var(--shadow-soft);
    position: relative;
}
.postcard::before {
    content: 'Загородные советы';
    position: absolute;
    top: -14px;
    left: 28px;
    background: var(--bg-sand);
    padding: 0 12px;
    color: var(--color-clay);
    font-weight: 600;
    font-size: .9rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.postcard h3 { margin-top: 0; }
.postcard-form {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.postcard-form input[type="email"] {
    flex: 1 1 240px;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid var(--color-line);
    padding: 10px 4px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--color-text);
    outline: none;
}
.postcard-form input[type="email"]:focus { border-color: var(--color-forest); }
.postcard-btn {
    background: var(--color-clay);
    color: #fff;
    border: none;
    padding: .7em 1.4em;
    border-radius: var(--radius-pill);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}
.postcard-btn:hover { background: var(--color-clay-dark); }
.postcard-btn svg { width: 18px; height: 18px; }

/* ============================
   11. САЙДБАР
   ============================ */

.sidebar .widget {
    background: var(--bg-paper);
    border-radius: var(--radius-card);
    padding: 22px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-soft);
}
.sidebar .widget h2,
.sidebar .widget .widget-title {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 1.1rem;
    color: var(--color-forest);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-line);
}
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li {
    padding: 6px 0;
    border-bottom: 1px dashed var(--color-line);
}
.sidebar li:last-child { border-bottom: none; }
.sidebar a { text-decoration: none; }
.sidebar a:hover { color: var(--color-clay); }

/* ============================
   12. SINGLE / PAGE контент
   ============================ */

.entry-header { margin-bottom: 26px; }
.entry-title { margin-top: 0; }
.entry-meta {
    color: var(--color-text-soft);
    font-size: .9rem;
    margin-top: 8px;
}
.entry-meta a { color: var(--color-text-soft); text-decoration: none; }
.entry-meta a:hover { color: var(--color-clay); }

.entry-thumb {
    margin-bottom: 30px;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: var(--bg-mist);
}
.entry-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-content > p:first-of-type { font-size: 1.1rem; }
.entry-content img { border-radius: 12px; margin: 1em 0; display: block; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .35em; }

.entry-checklist {
    background:
        repeating-linear-gradient(transparent 0 28px, rgba(194,131,75,0.18) 28px 29px),
        var(--bg-paper);
    border: 1px solid var(--color-line);
    border-left: 6px solid var(--color-clay);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 36px 0;
    box-shadow: var(--shadow-soft);
}
.entry-checklist h3 {
    margin-top: 0;
    color: var(--color-clay);
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .95rem;
}
.entry-checklist ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.entry-checklist li {
    padding: 4px 0 4px 28px;
    position: relative;
    line-height: 28px;
}
.entry-checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--color-forest);
    border-radius: 4px;
}

/* Прогресс чтения */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--color-forest);
    z-index: 80;
    transition: width .1s linear;
}

/* Соц-шеринг (вырванный уголок) */
.share-row {
    margin: 36px 0;
    padding-top: 22px;
    border-top: 1px solid var(--color-line);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.share-row-label {
    font-weight: 600;
    color: var(--color-forest);
    margin-right: 8px;
}
.share-link {
    position: relative;
    display: inline-block;
    padding: 8px 16px 8px 14px;
    background: var(--bg-paper);
    color: var(--color-forest);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
    border: 1px solid var(--color-line);
    border-radius: 10px 10px 10px 2px;
}
.share-link::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: var(--bg-sand);
    border-bottom: 1px solid var(--color-line);
    border-left: 1px solid var(--color-line);
    border-radius: 0 0 0 4px;
}
.share-link:hover {
    color: var(--color-clay);
    border-color: var(--color-clay);
}

/* Навигация по записям */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 40px 0;
}
.post-nav a {
    display: block;
    padding: 16px 18px;
    background: var(--bg-paper);
    border-radius: 12px;
    text-decoration: none;
    color: var(--color-text);
    border: 1px solid var(--color-line);
    transition: border-color .2s ease, transform .2s ease;
}
.post-nav a:hover { border-color: var(--color-clay); transform: translateY(-2px); }
.post-nav .post-nav-label {
    font-size: .8rem;
    color: var(--color-text-soft);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 4px;
}
.post-nav .post-nav-title {
    color: var(--color-forest);
    font-weight: 600;
}
.post-nav-next { text-align: right; }

/* ============================
   13. КОММЕНТАРИИ
   ============================ */

.comments-area {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--color-line);
}
.comments-area h2.comments-title { margin-top: 0; }
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}
.comment-list li.comment {
    background: var(--bg-paper);
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-soft);
}
.comment-author {
    font-weight: 600;
    color: var(--color-forest);
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 6px;
}
.comment-author img { border-radius: 50%; }
.comment-meta-time { font-size: .82rem; color: var(--color-text-soft); }
.comment-content { color: var(--color-text); }
.comment-reply-link {
    display: inline-block;
    margin-top: 8px;
    font-size: .88rem;
    color: var(--color-clay);
    text-decoration: none;
    font-weight: 600;
}
.children { list-style: none; padding-left: 24px; margin-top: 16px; }

.comment-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--color-forest);
    font-size: .9rem;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-line);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-paper);
    color: var(--color-text);
    margin-bottom: 14px;
    outline: none;
    transition: border-color .2s ease;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--color-forest); }
.comment-form .form-submit input { /* form-submit */ }
.comment-form .submit {
    background: var(--color-forest);
    color: #fff;
    border: none;
    padding: .7em 1.6em;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}
.comment-form .submit:hover { background: var(--color-forest-dark); }

/* ============================
   14. ФОРМА ПОИСКА
   ============================ */

.search-form {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.search-form input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-pill);
    background: var(--bg-paper);
    font-family: inherit;
    font-size: .95rem;
    outline: none;
}
.search-form input[type="search"]:focus { border-color: var(--color-forest); }
.search-form .search-submit {
    background: var(--color-forest);
    color: #fff;
    border: none;
    padding: 0 18px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.search-form .search-submit:hover { background: var(--color-forest-dark); }

/* ============================
   15. ПАГИНАЦИЯ
   ============================ */

.pager {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 50px 0 20px;
    flex-wrap: wrap;
}
.pager a, .pager span {
    display: inline-flex;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
    background: var(--bg-paper);
    color: var(--color-forest);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--color-line);
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.pager a:hover {
    border-color: var(--color-forest);
    color: var(--color-forest);
}
.pager .current {
    background: var(--color-forest);
    color: #fff;
    border-color: var(--color-forest);
}
.pager .dots {
    background: transparent;
    border-color: transparent;
}

/* ============================
   16. 404
   ============================ */

.notfound {
    text-align: center;
    padding: 80px 20px;
}
.notfound-code {
    font-size: clamp(5rem, 14vw, 9rem);
    line-height: 1;
    color: var(--color-clay);
    font-weight: 800;
    margin: 0;
}
.notfound-title { margin: 8px 0 12px; }
.notfound .search-form { max-width: 480px; margin: 26px auto 24px; }

/* ============================
   17. ПОДВАЛ
   ============================ */

.site-footer {
    background: var(--color-forest-dark);
    color: rgba(255,255,255,0.85);
    padding: 60px 0 26px;
    margin-top: 60px;
}
.site-footer h2,
.site-footer .widget-title {
    color: #fff;
    font-size: 1.05rem;
    margin: 0 0 16px;
    border-bottom: 1px solid rgba(255,255,255,0.18);
    padding-bottom: 10px;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--color-clay); }
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
}
.footer-col .widget { margin-bottom: 22px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li {
    padding: 5px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.12);
}
.footer-col li:last-child { border-bottom: none; }
.footer-bottom {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.16);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    font-size: .9rem;
    color: rgba(255,255,255,0.7);
}
.footer-byline {
    font-style: italic;
    color: rgba(255,255,255,0.85);
}

/* ============================
   18. COOKIE-БАННЕР
   ============================ */

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 90;
    background: var(--bg-paper);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-card);
    padding: 16px 20px;
    box-shadow: var(--shadow-lift);
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 880px;
    margin: 0 auto;
}
.cookie-banner p { margin: 0; font-size: .92rem; color: var(--color-text); flex: 1; }
.cookie-accept {
    background: var(--color-forest);
    color: #fff;
    border: none;
    padding: .55em 1.3em;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    flex: 0 0 auto;
}
.cookie-accept:hover { background: var(--color-forest-dark); }

/* ============================
   19. WP-АЛАЙНМЕНТЫ И ВСПОМОГ.
   ============================ */

.alignleft  { float: left; margin: 0 1.2em 1em 0; max-width: 50%; }
.alignright { float: right; margin: 0 0 1em 1.2em; max-width: 50%; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide  { max-width: 100%; }
.alignfull  { max-width: 100%; }

.wp-caption { max-width: 100%; }
.wp-caption-text {
    font-size: .85rem;
    color: var(--color-text-soft);
    text-align: center;
    margin-top: 6px;
}
.sticky { /* для прилепленных постов */ }
.bypostauthor { /* выделение автора в комментариях */ }
.gallery-caption { font-size: .85rem; color: var(--color-text-soft); }

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ============================
   20. АДАПТИВ
   ============================ */

@media (max-width: 960px) {
    .layout.has-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }
    .layout-narrow { max-width: 100%; }
    .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .recovery {
        grid-template-columns: 1fr;
        padding: 36px 28px;
    }
    .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .nav-toggle { display: inline-block; }
    .primary-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #4a6f3a;
        padding: 14px 24px;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
        z-index: 70;
    }
    .primary-nav.is-open { max-height: 600px; }
    .primary-nav ul {
        flex-direction: column;
        gap: 2px;
    }
    .primary-nav a {
        color: #fff;
        padding: .8em 1em;
    }
    .primary-nav a:hover,
    .primary-nav .current-menu-item > a,
    .primary-nav .current_page_item > a {
        background: rgba(255,255,255,0.16);
    }
    .header-inner { position: relative; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .shell { padding: 0 16px; }

    .hero { min-height: 440px; border-radius: 0 0 18px 18px; }
    .hero-content { padding: 70px 0 80px; }

    .card-row, .card-row.is-reverse { 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-no-thumb { flex: none; width: 100%; min-height: 200px; }
    .card-body { padding: 22px 22px; }

    .tiles { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr; }
    .post-nav { grid-template-columns: 1fr; }

    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
    .cookie-accept { align-self: flex-end; }

    .recovery { padding: 28px 22px; }
}
