/*
Theme Name: dds_littlelapland.com
Theme URI: https://littlelapland.com/
Author: Василиса Ершова
Description: Информационная тема о детских игрушках и развивающих играх: тёплая палитра, соты на фоне, карточки с волнистым разделителем и ярлычками у заголовков.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: laplay
*/

/* ==========================================================
   1. Переменные
   ========================================================== */
:root {
    --bg:        #FBF5F0;
    --bg-alt:    #FFF9F0;
    --bg-head:   #FFFFFF;
    --bg-foot:   #2D1B14;
    --bg-side:   #FFFFFF;
    --ink:       #2D1B14;
    --accent:    #E8A359;
    --accent-2:  #D4864B;
    --muted:     #A68B7A;
    --line:      rgba(232, 163, 89, 0.28);
    --shadow:    0 10px 30px -10px rgba(45, 27, 20, 0.1);
    --font-head: 'Montserrat Alternates', 'Montserrat', 'Raleway', 'Trebuchet MS', 'Segoe UI', sans-serif;
    --font-body: 'Nunito', 'Quicksand', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ==========================================================
   2. Скрытие через атрибут hidden (до основных стилей)
   ========================================================== */
.cookie-banner[hidden] { display: none !important; }
.nav-list[hidden]      { display: none !important; }

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='48' viewBox='0 0 56 48'%3E%3Cg fill='none' stroke='%23E8A359' stroke-width='1.4' opacity='0.3'%3E%3Cpath d='M14 0l14 8v16l-14 8L0 24V8z'/%3E%3Cpath d='M42 0l14 8v16l-14 8-14-8V8z'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    background-attachment: fixed;
}

img { max-width: 100%; height: auto; }
figure { margin: 0 0 1.4rem; }

a { color: var(--accent-2); text-decoration: none; }
a:hover {
    text-decoration-line: underline;
    text-decoration-style: wavy;
    text-decoration-color: var(--accent);
    text-underline-offset: 5px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.16;
    letter-spacing: -0.01em;
    margin: 0 0 1rem;
    font-weight: 800;
}
h1 { font-size: 4.2rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

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

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

/* ==========================================================
   4. Кнопки
   ========================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .82rem 1.8rem;
    border: none;
    border-radius: 100px;
    background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: .98rem;
    line-height: 1.2;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, .38) 0%, rgba(255, 255, 255, 0) 55%);
    pointer-events: none;
}
.btn:hover,
.btn:focus {
    color: #fff;
    text-decoration: none;
    transform: translateY(2px);
    box-shadow: 0 12px 24px -10px var(--accent-2);
}
.btn-ghost {
    background: #fff;
    color: var(--accent-2);
    border: 1.5px solid var(--accent);
}
.btn-ghost:hover { color: var(--accent-2); }

/* ==========================================================
   5. Шапка
   ========================================================== */
.site-head {
    position: relative;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    border-bottom: 1px solid var(--line);
}
.head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    padding: 1.1rem 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-width: 0;
}
.brand a { color: inherit; text-decoration: none; }
.brand a:hover { text-decoration: none; }
.brand-logo, .brand-mark { display: block; width: auto; max-height: 56px; flex: none; }
.brand-text { min-width: 0; }
.brand-name {
    display: block;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.02rem;
    line-height: 1.25;
    color: var(--ink);
    max-width: 34ch;
}
.brand-tagline {
    display: block;
    font-size: .78rem;
    color: var(--muted);
    line-height: 1.4;
    max-width: 46ch;
    margin-top: .2rem;
}
.nav-toggle {
    display: none;
    border: 1.5px solid var(--accent);
    background: #fff;
    color: var(--accent-2);
    border-radius: 100px;
    padding: .5rem 1.1rem;
    font-family: var(--font-body);
    font-weight: 800;
    cursor: pointer;
}
.nav-list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-list li { position: relative; }
.nav-list a {
    color: var(--ink);
    font-weight: 700;
    font-size: .98rem;
    padding: .35rem 0;
    display: inline-block;
}
.nav-list a:hover { color: var(--accent-2); }
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a { color: var(--accent-2); }
.nav-list .current-menu-item > a::after,
.nav-list .current_page_item > a::after {
    content: '';
    display: block;
    height: 3px;
    border-radius: 100px;
    background: var(--accent);
    margin-top: 2px;
}
.nav-list .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: .5rem 0;
    margin: 0;
    list-style: none;
    box-shadow: var(--shadow);
    display: none;
    z-index: 20;
}
.nav-list li:hover > .sub-menu { display: block; }
.nav-list .sub-menu a { padding: .4rem 1rem; display: block; }

/* ==========================================================
   6. Каркас страниц
   ========================================================== */
.page-body { padding: 2.6rem 0 3.4rem; }

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

.crumbs {
    font-size: .84rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    align-items: center;
}
.crumbs a { color: var(--accent-2); font-weight: 700; }
.crumbs-sep { color: var(--accent); }

.page-title {
    font-size: 2.6rem;
    margin-bottom: 1.6rem;
    position: relative;
}

/* Заголовок секции: слева текст, справа декоративная точка */
.sec-title {
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin-bottom: 1.6rem;
}
.sec-title::after {
    content: '';
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    margin-left: 10px;
    flex: none;
}
.sec-lead {
    color: var(--muted);
    max-width: 68ch;
    margin-bottom: 2rem;
}

/* Ярлычок игрушки у h2 / h3 в контенте */
.entry-content h2,
.entry-content h3,
.widget-title,
.tl-title,
.topic-title {
    position: relative;
    padding-left: 30px;
}
.entry-content h2::before,
.entry-content h3::before,
.widget-title::before,
.tl-title::before,
.topic-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: .28em;
    width: 15px;
    height: 15px;
    border-radius: 3px;
    background: var(--accent);
    border-left: 3px dotted #fff;
}
.entry-content h2::after,
.entry-content h3::after {
    content: '';
    position: absolute;
    left: 7px;
    top: calc(.28em + 15px);
    width: 0;
    height: 16px;
    border-left: 2px dotted var(--accent);
}

/* ==========================================================
   7. Разделители секций
   ========================================================== */
.sec-split {
    height: 2px;
    border: none;
    margin: 0;
    background: linear-gradient(90deg, rgba(232, 163, 89, 0) 0%, rgba(232, 163, 89, .75) 50%, rgba(232, 163, 89, 0) 100%);
    filter: blur(1px);
}
.tri-band {
    height: 24px;
    background-image:
        linear-gradient(135deg, rgba(232, 163, 89, .15) 25%, transparent 25%),
        linear-gradient(225deg, rgba(232, 163, 89, .15) 25%, transparent 25%);
    background-size: 24px 24px;
    background-position: 0 0;
}

/* ==========================================================
   8. Карточки записей
   ========================================================== */
.cards {
    display: grid;
    gap: 1.9rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
}
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
    background: #fff;
    border: none;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}
.card::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 0;
    border-left: 26px solid transparent;
    border-bottom: 26px solid var(--accent);
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 38px -14px rgba(45, 27, 20, .22); }
.card:hover::after { opacity: 1; }

.card-thumb { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.card-thumb-empty {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    background:
        radial-gradient(circle at 30% 35%, rgba(232, 163, 89, .35) 0 18%, transparent 19%),
        radial-gradient(circle at 70% 65%, rgba(212, 134, 75, .3) 0 14%, transparent 15%),
        linear-gradient(140deg, var(--bg-alt), #F3E3D2);
}
.card-body {
    flex: 1;
    min-width: 0;
    padding: 1.3rem 1.4rem .9rem;
}
.card-cats {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 800;
    color: var(--accent-2);
    margin-bottom: .5rem;
}
.card-title {
    font-size: 1.24rem;
    margin: 0 0 .6rem;
}
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent-2); }
.card-excerpt { color: #5A4136; font-size: .95rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-wave {
    height: 8px;
    margin: 0 1.4rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='8' viewBox='0 0 80 8'%3E%3Cpath d='M0 5 Q10 0 20 5 T40 5 T60 5 T80 5' fill='none' stroke='%23E8A359' stroke-width='1.6'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: center;
}
.card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: .9rem 1.4rem 1.3rem;
}
.card-meta {
    font-size: .8rem;
    color: var(--muted);
}
.card-foot .btn { padding: .58rem 1.25rem; font-size: .86rem; }

/* ==========================================================
   9. Главная — блок 1: hero
   ========================================================== */
.fs-hero {
    position: relative;
    overflow: hidden;
    background-color: var(--bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='360' viewBox='0 0 320 360'%3E%3Cg fill='%23E8A359' opacity='0.1'%3E%3Cpath d='M160 18l58 88h-36l50 76h-40l56 84H32l56-84H48l50-76H62z'/%3E%3Crect x='142' y='266' width='36' height='62' rx='9'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(160deg, var(--bg) 0%, var(--bg-alt) 100%);
    background-repeat: no-repeat, no-repeat;
    background-position: left -40px bottom -30px, center;
    background-size: 340px auto, cover;
    padding: 3.6rem 0 3.8rem;
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 2.6rem;
    align-items: center;
}
.hero-eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent-2);
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 100px;
    padding: .4rem 1rem;
    margin-bottom: 1.2rem;
}
.hero-title { margin-bottom: 1.2rem; }
.hero-dot {
    display: inline-block;
    width: .34em;
    height: .34em;
    border-radius: 50%;
    background: var(--accent);
    margin-left: .12em;
    vertical-align: baseline;
    animation: laplay-swing 3.4s ease-in-out infinite;
    transform-origin: 50% -180%;
}
@keyframes laplay-swing {
    0%, 100% { transform: rotate(-9deg); }
    50%      { transform: rotate(9deg); }
}
.hero-text { font-size: 1.06rem; color: #57402F; max-width: 56ch; margin-bottom: 1.7rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-art { min-width: 0; }
.hero-art svg { display: block; width: 100%; height: auto; }

/* ==========================================================
   10. Главная — блок 2: таймлайн выбора
   ========================================================== */
.front-section { padding: 3.4rem 0; }
.front-section.is-alt {
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
    clip-path: polygon(0 0, 100% 14px, 100% 100%, 0 calc(100% - 14px));
}

.timeline {
    position: relative;
    margin: 0;
    padding: .4rem 0 .4rem 0;
    list-style: none;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 26px;
    top: 6px;
    bottom: 6px;
    width: 0;
    border-left: 3px dashed var(--accent);
}
.tl-item {
    position: relative;
    min-width: 0;
    padding: 0 0 2rem 84px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-mark {
    position: absolute;
    left: 0;
    top: 0;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.24rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .55), var(--shadow);
}
.tl-title {
    font-size: 1.3rem;
    margin: .35rem 0 .5rem;
    padding-left: 26px;
}
.tl-item p { color: #57402F; max-width: 74ch; }

/* ==========================================================
   11. Главная — блок 3: статистика
   ========================================================== */
.fs-stats {
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
    clip-path: polygon(0 16px, 100% 0, 100% calc(100% - 16px), 0 100%);
    padding: 3.6rem 2.2rem;
    border-radius: 4px;
}
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}
.stat-cell {
    min-width: 0;
    text-align: center;
    padding: .6rem 1rem;
    border-right: 2px solid var(--accent);
}
.stat-cell:last-child { border-right: none; }
.stat-num {
    display: block;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 5rem;
    line-height: 1;
    color: var(--ink);
}
.stat-cap {
    display: block;
    margin-top: .6rem;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.45;
}

/* ==========================================================
   12. Главная — блок 4: рубрикатор-кубики
   ========================================================== */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}
.topic-tile {
    display: block;
    min-width: 0;
    padding: 2.1rem 1.8rem;
    background: var(--bg-alt);
    border: 2px solid var(--accent);
    clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
    color: var(--ink);
    transition: background .25s ease, color .25s ease, transform .25s ease;
}
.topic-tile:hover {
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    transform: translateY(-4px);
}
.topic-tile svg { display: block; width: 54px; height: 54px; margin-bottom: 1rem; }
.topic-tile svg path,
.topic-tile svg circle,
.topic-tile svg rect { transition: fill .25s ease, stroke .25s ease; }
.topic-tile:hover svg [fill="#D4864B"],
.topic-tile:hover svg [fill="#E8A359"] { fill: #fff; }
.topic-tile:hover svg [stroke="#2D1B14"] { stroke: #fff; }
.topic-title {
    font-size: 1.3rem;
    margin-bottom: .5rem;
    color: inherit;
    padding-left: 26px;
}
.topic-tile:hover .topic-title::before { background: #fff; border-left-color: var(--accent-2); }
.topic-tile p { color: inherit; font-size: .95rem; opacity: .9; margin: 0; }

/* ==========================================================
   13. Секция «последние записи» на главной
   ========================================================== */
.fs-hero > .shell,
.front-section > .shell,
.fs-latest > .shell { width: min(85%, 1180px); }

.fs-latest { padding: 3.4rem 0; }
.latest-more { margin-top: 2.2rem; }

/* ==========================================================
   14. Контент записи и страницы
   ========================================================== */
.entry {
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: var(--shadow);
    padding: 2rem 2.1rem 2.3rem;
}
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: .84rem;
    color: var(--muted);
    margin-bottom: 1.4rem;
}
.entry-thumb { margin: 0 0 1.6rem; }
.entry-thumb img { display: block; width: 100%; border-radius: 12px; object-fit: cover; }
.entry-content { font-size: 1.02rem; }
.entry-content h2 { font-size: 1.75rem; margin: 2rem 0 .9rem; }
.entry-content h3 { font-size: 1.32rem; margin: 1.6rem 0 .8rem; }
.entry-content ul,
.entry-content ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.entry-content li { margin-bottom: .5rem; }
.entry-content img { border-radius: 12px; display: block; }
.entry-content blockquote {
    margin: 1.8rem 0;
    padding: 1.6rem 1.8rem;
    background: var(--bg-alt);
    border-left: 5px solid var(--accent);
    border-radius: 12px;
    font-size: 1.1rem;
}
.entry-content blockquote strong,
.entry-content blockquote b {
    color: var(--accent-2);
    background: linear-gradient(180deg, rgba(255, 255, 255, .9) 60%, rgba(232, 163, 89, .3) 60%);
    padding: 0 .18em;
    border-radius: 3px;
}
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.5rem;
    border: 1px solid var(--accent);
}
.entry-content th,
.entry-content td {
    border: 1px solid var(--accent);
    padding: .7rem .85rem;
    text-align: left;
}
.entry-content th { background: var(--bg-alt); font-family: var(--font-head); }
.entry-content pre {
    overflow-x: auto;
    background: var(--bg-alt);
    padding: 1rem;
    border-radius: 10px;
}
.entry-tags { margin-top: 1.8rem; font-size: .88rem; color: var(--muted); }
.entry-tags a {
    display: inline-block;
    margin: .25rem .3rem .25rem 0;
    padding: .28rem .8rem;
    border: 1.5px solid var(--line);
    border-radius: 100px;
}

.post-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.post-nav a {
    display: block;
    min-width: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 1rem 1.2rem;
    color: var(--ink);
}
.post-nav span {
    display: block;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--accent-2);
    font-weight: 800;
    margin-bottom: .3rem;
}
.post-nav a:hover { text-decoration: none; color: var(--accent-2); }

/* ==========================================================
   15. Сайдбар и виджеты
   ========================================================== */
.sidebar { min-width: 0; }
.sidebar .widget {
    background: var(--bg-side);
    border-radius: 16px 16px 0 0;
    box-shadow: var(--shadow);
    padding: 1.4rem 1.5rem 1.6rem;
    margin-bottom: 1.6rem;
    color: var(--ink);
}
.sidebar .widget-title {
    font-size: 1.12rem;
    margin-bottom: 1rem;
    color: var(--ink);
}
.sidebar .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar .widget li {
    padding: .5rem 0;
    border-bottom: 1px dashed var(--line);
    color: var(--ink);
}
.sidebar .widget li:last-child { border-bottom: none; }
.sidebar .widget a { color: var(--ink); font-weight: 600; }
.sidebar .widget a:hover { color: var(--accent-2); }
.sidebar .widget .post-date { color: var(--muted); font-size: .8rem; display: block; }

/* ==========================================================
   16. Подвал
   ========================================================== */
.site-foot {
    background: var(--bg-foot);
    color: #EFE0D3;
    padding: 3rem 0 1.6rem;
    margin-top: 2rem;
}
.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}
.site-foot .widget { min-width: 0; color: #EFE0D3; }
.site-foot .widget-title {
    color: var(--accent);
    font-size: 1.08rem;
    margin-bottom: .9rem;
    padding-left: 26px;
}
.site-foot .widget-title::before { background: var(--accent); border-left-color: var(--bg-foot); }
.site-foot .widget p,
.site-foot .widget li { color: #EFE0D3; }
.site-foot .widget ul { list-style: none; margin: 0; padding: 0; }
.site-foot .widget li { padding: .35rem 0; border-bottom: 1px dashed rgba(232, 163, 89, .28); }
.site-foot .widget li:last-child { border-bottom: none; }
.site-foot .widget a { color: #F6E9DC; }
.site-foot .widget a:hover { color: var(--accent); }
.foot-bottom {
    margin-top: 2.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(232, 163, 89, .3);
    font-size: .86rem;
    color: #D9C4B2;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    justify-content: space-between;
    align-items: center;
}
.foot-mail { color: var(--accent); font-weight: 700; }

/* ==========================================================
   17. Пагинация
   ========================================================== */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 2.4rem;
    align-items: center;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 .9rem;
    border-radius: 100px;
    background: #fff;
    border: 1.5px solid var(--line);
    color: var(--ink);
    font-weight: 800;
    font-size: .94rem;
}
.pager a.page-numbers:hover {
    background: var(--bg-alt);
    border-color: var(--accent);
    color: var(--accent-2);
    text-decoration: none;
}
.pager .page-numbers.current {
    background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
    border-color: transparent;
    color: #fff;
}
.pager .page-numbers.dots {
    border: none;
    background: none;
    min-width: auto;
    padding: 0 .3rem;
    color: var(--muted);
}

/* ==========================================================
   18. Формы поиска и комментариев
   ========================================================== */
.search-form {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}
.search-form label { flex: 1 1 200px; min-width: 0; }
.search-field {
    width: 100%;
    padding: .78rem 1.1rem;
    border: 1.5px solid var(--line);
    border-radius: 100px;
    background: #fff;
    font-family: var(--font-body);
    font-size: .96rem;
    color: var(--ink);
}
.comments-area {
    margin-top: 2.4rem;
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: var(--shadow);
    padding: 1.8rem 2rem 2rem;
}
.comments-title { font-size: 1.5rem; margin-bottom: 1.2rem; }
.comment-list { list-style: none; margin: 0 0 1.8rem; padding: 0; }
.comment-list .children { list-style: none; margin: 1rem 0 0 1.4rem; padding: 0 0 0 1rem; border-left: 2px dashed var(--line); }
.comment-item { padding: 1rem 0; border-bottom: 1px dashed var(--line); }
.comment-head { display: flex; flex-wrap: wrap; gap: .8rem; align-items: baseline; margin-bottom: .4rem; }
.comment-author { font-family: var(--font-head); font-weight: 800; }
.comment-date { font-size: .8rem; color: var(--muted); }
.comment-reply a { font-size: .86rem; font-weight: 700; }
.comment-form { display: grid; gap: .9rem; }
.comment-form label { font-size: .88rem; font-weight: 700; display: block; margin-bottom: .3rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: .8rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: var(--bg-alt);
    font-family: var(--font-body);
    font-size: .96rem;
    color: var(--ink);
}
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form .submit {
    display: inline-flex;
    align-items: center;
    padding: .82rem 1.8rem;
    border: none;
    border-radius: 100px;
    background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 800;
    cursor: pointer;
    justify-self: start;
}
.comment-form .submit:hover { transform: translateY(2px); box-shadow: 0 12px 24px -10px var(--accent-2); }

/* ==========================================================
   19. 404 и служебные блоки
   ========================================================== */
.notice-plate {
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: var(--shadow);
    padding: 2rem 2.1rem;
}
.notice-plate .search-form { margin: 1.4rem 0; }
.err-code {
    font-family: var(--font-head);
    font-size: 5rem;
    line-height: 1;
    color: var(--accent);
    margin: 0 0 .6rem;
}

/* ==========================================================
   20. Cookie-баннер
   ========================================================== */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 1.6rem;
    background: var(--bg-foot);
    color: #F1E3D6;
    border-top: 3px solid var(--accent);
    font-size: .9rem;
}
.cookie-banner p { margin: 0; max-width: 74ch; }
.cookie-banner a { color: var(--accent); }

/* ==========================================================
   21. Адаптив
   ========================================================== */
@media (max-width: 960px) {
    h1 { font-size: 3rem; }
    .page-title { font-size: 2.1rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .layout-single { width: 100%; }
    .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-art { order: -1; max-width: 460px; }
    .cards-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
    .topics-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-cell:nth-child(2n) { border-right: none; }
    .stat-cell:nth-child(-n+2) { border-bottom: 2px solid var(--accent); padding-bottom: 1.4rem; margin-bottom: 1.4rem; }
    .stat-num { font-size: 4rem; }
    .foot-cols { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
}

@media (max-width: 700px) {
    .nav-toggle { display: inline-block; }
    .head-inner { flex-wrap: wrap; }
    .site-nav { width: 100%; }
    .nav-list { display: none; }
    .nav-list.is-open {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: .2rem;
        width: 100%;
        padding: .8rem 0 .2rem;
        border-top: 1px dashed var(--line);
    }
    .nav-list a { padding: .5rem 0; }
    .nav-list .sub-menu { position: static; display: block; box-shadow: none; border: none; padding-left: .8rem; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2.3rem; }
    h2 { font-size: 1.6rem; }
    .page-title { font-size: 1.8rem; }
    .front-section { padding: 2.4rem 0; }
    .fs-hero { padding: 2.4rem 0 2.6rem; background-size: 220px auto, cover; }
    .fs-latest { padding: 2.4rem 0; }
    .fs-stats { padding: 2.2rem 1.4rem; }
    .stat-num { font-size: 3.2rem; }
    .entry, .comments-area, .notice-plate { padding: 1.4rem 1.2rem 1.6rem; }
    .tl-item { padding-left: 66px; }
    .tl-mark { width: 46px; height: 46px; font-size: 1.05rem; }
    .timeline::before { left: 22px; }
    .topic-tile { padding: 1.6rem 1.4rem; }
    .cookie-banner { padding: .9rem 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation: none !important; transition: none !important; }
}
