/*
Theme Name: dds_giftelit.ru
Description: Тема для информационно-образовательного портала о скульптуре, художественном литье и декоративно-прикладном искусстве.
Author: Анна Коваль
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: gelit
*/

/* ======================= Переменные ======================= */
:root {
    --bg: #F8F6FC;
    --alt: #EDEAF5;
    --head-bg: #FFFFFF;
    --foot-bg: #1E1A2B;
    --side-bg: #F3F0FA;
    --ink: #1E1A2B;
    --accent: #7C5CBF;
    --accent-2: #A78BDB;
    --muted: #8F83A3;
    --line: #D9D0E5;
    --card-shadow: 0 6px 24px rgba(30, 26, 43, .08);
    --card-shadow-hover: 0 16px 34px rgba(124, 92, 191, .22);
    --title-font: "Montserrat", "Exo 2", "Segoe UI Semibold", "Trebuchet MS", sans-serif;
    --text-font: "Inter", "Open Sans", "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--text-font);
    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='320' height='420' viewBox='0 0 320 420'%3E%3Cg fill='none' stroke='%23D9D0E5' stroke-width='6' opacity='0.55'%3E%3Cpath d='M126 44h68c0 22-14 30-14 46 0 26 42 40 42 96 0 74-38 96-38 152 0 26 12 34 12 46h-72c0-12 12-20 12-46 0-56-38-78-38-152 0-56 42-70 42-96 0-16-14-24-14-46z'/%3E%3Cpath d='M112 400h96'/%3E%3Cpath d='M104 420h112'/%3E%3C/g%3E%3C/svg%3E"),
        repeating-linear-gradient(45deg, rgba(124, 92, 191, .05) 0 1px, transparent 1px 22px),
        repeating-linear-gradient(-45deg, rgba(124, 92, 191, .05) 0 1px, transparent 1px 22px);
    background-repeat: no-repeat, repeat, repeat;
    background-position: right -40px bottom -30px, 0 0, 0 0;
    background-attachment: fixed, fixed, fixed;
}

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

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

.entry-content a,
.crumbs a,
.widget a,
.comment-text a {
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-size: 100% 1px;
    background-position: 0 135%;
    transition: background-position .25s ease;
}
.entry-content a:hover,
.crumbs a:hover,
.widget a:hover,
.comment-text a:hover { background-position: 0 100%; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--title-font);
    color: var(--ink);
    line-height: 1.22;
    letter-spacing: -.01em;
    margin: 1.8rem 0 .9rem;
}

h1 { font-size: 3.25rem; margin-top: 0; }
h2 { font-size: 2rem; }
h3 { font-size: 1.45rem; }

.entry-content h2,
.entry-content h3,
.widget-title,
.sec-title { position: relative; }

.entry-content h2::before,
.entry-content h3::before,
.sec-title::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-2);
    margin-right: .65rem;
    vertical-align: middle;
    transform: translateY(-2px);
}

p { margin: 0 0 1.05rem; }

ul, ol { padding-left: 1.3rem; }

.entry-content ul { list-style: none; padding-left: 0; }
.entry-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: .5rem;
}
.entry-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .72em;
    width: 8px;
    height: 8px;
    background: var(--accent-2);
    transform: rotate(45deg);
}

blockquote {
    margin: 1.6rem 0;
    padding: 1.4rem 1.6rem;
    border-left: 4px solid var(--accent);
    background: linear-gradient(135deg, var(--alt), var(--line));
    border-radius: 0 10px 10px 0;
    font-size: 1.08rem;
}
blockquote p:last-child { margin-bottom: 0; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4rem 0;
    border: 1px solid var(--line);
    background: #fff;
}
th, td {
    border: 1px solid var(--line);
    padding: .7rem .9rem;
    text-align: left;
}
th { background: var(--alt); font-family: var(--title-font); }

code, pre { font-family: "SFMono-Regular", Consolas, monospace; font-size: .92em; }
pre { background: var(--alt); padding: 1rem; border-radius: 8px; overflow-x: auto; }

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

.skip-link { position: absolute; left: -9999px; }

/* ======================= Кнопки ======================= */
.btn {
    display: inline-block;
    padding: .82rem 1.7rem;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-family: var(--title-font);
    font-size: .98rem;
    font-weight: 600;
    border: 2px solid var(--accent);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(124, 92, 191, .38);
    color: #fff;
}
.btn-outline {
    background: transparent;
    color: #fff;
    border-color: var(--accent-2);
}
.btn-outline:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* ======================= Верхняя полоса и шапка ======================= */
.top-bar {
    height: 4px;
    width: 100%;
    background: var(--accent);
}

.site-head {
    background: var(--head-bg);
    border-bottom: 1px solid var(--line);
}
.head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    padding: 1.15rem 0;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-width: 0;
    color: var(--ink);
}
.brand-logo { display: block; max-height: 62px; width: auto; }
.brand-mark { display: block; flex: 0 0 auto; }
.brand-text { min-width: 0; }
.brand-name {
    font-family: var(--title-font);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
    display: block;
    max-width: 34ch;
}
.brand-desc {
    display: block;
    font-size: .8rem;
    color: var(--muted);
    line-height: 1.45;
    max-width: 46ch;
    margin-top: .25rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: 2px solid var(--line);
    border-radius: 8px;
    padding: .5rem .9rem;
    font-family: var(--title-font);
    font-size: .92rem;
    color: var(--ink);
    cursor: pointer;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}
.main-nav a {
    font-family: var(--title-font);
    font-size: .97rem;
    font-weight: 600;
    color: var(--ink);
    position: relative;
    padding-bottom: 3px;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width .25s ease;
}
.main-nav a:hover { color: var(--accent); }
.main-nav a:hover::after { width: 100%; }
.main-nav .current-menu-item > a { color: var(--accent); }
.main-nav .current-menu-item > a::after { width: 100%; }

/* ======================= Хлебные крошки ======================= */
.crumbs {
    font-size: .87rem;
    color: var(--muted);
    padding: 1.1rem 0 .2rem;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs-sep { color: var(--accent-2); margin: 0 .25rem; }

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

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

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

/* ======================= Карточки записей ======================= */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
    gap: 1.7rem;
}
.cards-wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border-radius: 12px;
    border: 2px solid transparent;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--accent);
}
.card-thumb { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}
.card-thumb-empty {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--alt), var(--line));
    border-radius: 10px 10px 0 0;
}
.card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.35rem 1.45rem;
}
.card-title {
    font-size: 1.16rem;
    margin: 0 0 .55rem;
    line-height: 1.35;
}
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent); }
.card-excerpt { color: #43394f; font-size: .95rem; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-foot { margin-top: auto; padding-top: .9rem; }
.card-more {
    font-family: var(--title-font);
    font-weight: 600;
    font-size: .93rem;
    color: var(--accent);
}
.card-more:hover { color: #5f43a0; }

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: .55rem;
}
.post-meta a { color: var(--muted); }
.post-meta a:hover { color: var(--accent); }
.post-meta-cat::before { content: "•"; margin-right: .55rem; color: var(--accent-2); }

/* ======================= Главная ======================= */
.front-section {
    padding: 3rem 2.2rem;
    border-radius: 14px;
    margin-bottom: 2.6rem;
}
.front-section.is-alt { background: var(--alt); }
.front-section.is-plain { padding-left: 0; padding-right: 0; }

.sec-head { margin-bottom: 1.9rem; }
.sec-title {
    font-size: 2rem;
    margin: 0 0 .8rem;
    display: inline-block;
}
.sec-title::after {
    content: "";
    display: block;
    width: 74px;
    height: 2px;
    background: var(--accent);
    margin-top: .7rem;
}
.sec-lead { color: var(--muted); max-width: 74ch; margin: 0; }

.dots-divider {
    display: flex;
    justify-content: center;
    gap: .55rem;
    margin: 0 0 2.6rem;
}
.dots-divider span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-2);
    display: block;
}

/* Блок 1 — Hero */
.hero {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 2.6rem;
    min-height: 470px;
    display: flex;
    align-items: center;
    padding: 3.6rem 3rem;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-veil {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(105deg, rgba(30, 26, 43, .88) 0%, rgba(30, 26, 43, .62) 55%, rgba(124, 92, 191, .42) 100%);
}
.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 41rem;
    min-width: 0;
}
.hero-eyebrow {
    display: inline-block;
    font-family: var(--title-font);
    font-size: .8rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent-2);
    border: 1px solid rgba(167, 139, 219, .55);
    border-radius: 6px;
    padding: .35rem .8rem;
    margin-bottom: 1.3rem;
}
.hero h1 {
    color: #fff;
    margin: 0 0 1rem;
    font-size: 3.25rem;
}
.hero h1 .grad {
    background: linear-gradient(95deg, #E7DDFA 0%, #A78BDB 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero p {
    color: #DCD4EA;
    font-size: 1.08rem;
    margin: 0 0 1.9rem;
    max-width: 36rem;
}

/* Блок 2 — Таймлайн */
.timeline {
    position: relative;
    padding-left: 2.6rem;
    margin: 0;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: .8rem;
    bottom: .8rem;
    width: 2px;
    background: var(--accent);
}
.tl-item {
    position: relative;
    padding-bottom: 1.9rem;
    min-width: 0;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
    content: "";
    position: absolute;
    left: -2.6rem;
    top: .55rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--accent);
}
.tl-year {
    font-family: var(--title-font);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    line-height: 1.3;
}
.tl-item h3 { margin: .2rem 0 .35rem; font-size: 1.18rem; }
.tl-item p { margin: 0; color: #4a4058; }

/* Блок 3 — Статистика */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 168px), 1fr));
    gap: 1.6rem;
    text-align: center;
}
.stat-num {
    font-family: var(--title-font);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.15;
    display: block;
}
.stat-label {
    display: block;
    color: var(--muted);
    font-size: .95rem;
    margin-top: .35rem;
}

/* Блок 4 — Рубрикатор */
.rubrics {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 218px), 1fr));
    gap: 1.3rem;
}
.rubric {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .8rem;
    min-width: 0;
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem 1.4rem;
    box-shadow: var(--card-shadow);
    color: var(--ink);
    transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.rubric svg { stroke: var(--accent); transition: stroke .25s ease; }
.rubric-name {
    font-family: var(--title-font);
    font-weight: 700;
    font-size: 1.06rem;
}
.rubric-note { font-size: .88rem; color: var(--muted); transition: color .25s ease; }
.rubric:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}
.rubric:hover svg { stroke: #fff; }
.rubric:hover .rubric-note { color: rgba(255, 255, 255, .82); }

/* CTA-плашка на записи */
.post-cta {
    background: linear-gradient(135deg, var(--alt), var(--line));
    border-radius: 12px;
    padding: 1.7rem 1.8rem;
    margin: 2.2rem 0 0;
}
.post-cta h3 { margin-top: 0; }
.post-cta p { margin-bottom: 1.1rem; }

/* ======================= Записи и страницы ======================= */
.entry {
    background: #fff;
    border-radius: 14px;
    padding: 2.2rem 2.3rem 2.5rem;
    box-shadow: var(--card-shadow);
}
.entry-title { font-size: 2.4rem; margin: 0 0 .7rem; }
.entry-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    margin: 1.3rem 0 1.7rem;
}
.entry-content { min-width: 0; }
.entry-content img { border-radius: 10px; display: block; }
.entry-content > *:first-child { margin-top: 0; }

.page-head { margin-bottom: 1.8rem; }
.page-head h1 { font-size: 2.6rem; margin-bottom: .5rem; }
.page-head p { color: var(--muted); margin: 0; }

.nothing {
    background: #fff;
    border-radius: 12px;
    padding: 2rem 2.1rem;
    box-shadow: var(--card-shadow);
}

/* ======================= Пагинация ======================= */
.pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    margin: 2.6rem 0 .4rem;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 .85rem;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-family: var(--title-font);
    font-size: .95rem;
    font-weight: 600;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.pager a.page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}
.pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.pager .page-numbers.dots {
    border-color: transparent;
    background: none;
    color: var(--muted);
}

/* ======================= Сайдбар и виджеты ======================= */
.sidebar { min-width: 0; }
.sidebar .widget {
    background: var(--side-bg);
    border-radius: 12px;
    padding: 1.4rem 1.5rem 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--ink);
}
.sidebar .widget-title {
    font-size: 1.12rem;
    margin: 0 0 1rem;
    color: var(--ink);
}
.sidebar .widget-title::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-2);
    margin-right: .6rem;
    vertical-align: middle;
    transform: translateY(-2px);
}
.sidebar .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar .widget li {
    padding: .5rem 0;
    border-bottom: 1px dashed var(--line);
}
.sidebar .widget li:last-child { border-bottom: none; }
.sidebar .widget a { color: var(--ink); }
.sidebar .widget a:hover { color: var(--accent); }
.sidebar .widget .post-date,
.sidebar .widget .rss-date {
    display: block;
    font-size: .8rem;
    color: var(--muted);
}
.sidebar .widget p { color: #443a51; font-size: .95rem; }

.search-form {
    display: flex;
    gap: .5rem;
    min-width: 0;
}
.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: .7rem .9rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-family: var(--text-font);
    font-size: .95rem;
}
.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--accent);
}
.search-form button {
    border: none;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    padding: 0 1.15rem;
    font-family: var(--title-font);
    font-weight: 600;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}
.search-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(124, 92, 191, .35);
}

/* ======================= Подвал ======================= */
.site-foot {
    background: var(--foot-bg);
    color: #D6CFE4;
    padding: 3rem 0 1.6rem;
    margin-top: 2rem;
}
.foot-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 2rem;
}
.foot-cols .widget { min-width: 0; color: #D6CFE4; }
.foot-cols .widget-title {
    color: #FFFFFF;
    font-size: 1.08rem;
    margin: 0 0 1rem;
}
.foot-cols .widget-title::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-2);
    margin-right: .6rem;
    vertical-align: middle;
    transform: translateY(-2px);
}
.foot-cols .widget p { color: #C2B9D4; font-size: .94rem; }
.foot-cols .widget ul { list-style: none; margin: 0; padding: 0; }
.foot-cols .widget li { padding: .42rem 0; }
.foot-cols .widget a { color: #C9B8EE; }
.foot-cols .widget a:hover { color: #FFFFFF; }
.foot-cols .widget .post-date { color: #9C93B0; font-size: .8rem; display: block; }

.foot-bottom {
    border-top: 1px solid rgba(217, 208, 229, .18);
    margin-top: 2.4rem;
    padding-top: 1.3rem;
    font-size: .87rem;
    color: #9C93B0;
}

/* ======================= Комментарии ======================= */
.comments-area {
    background: #fff;
    border-radius: 14px;
    padding: 1.9rem 2.1rem 2.1rem;
    box-shadow: var(--card-shadow);
    margin-top: 2rem;
}
.comments-title { margin-top: 0; font-size: 1.5rem; }
.comment-list { list-style: none; margin: 0 0 1.8rem; padding: 0; }
.comment-list .children { list-style: none; padding-left: 1.4rem; }
.comment-item {
    background: var(--alt);
    border-radius: 10px;
    padding: 1.1rem 1.3rem;
    margin-bottom: 1rem;
}
.comment-head {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    align-items: baseline;
    margin-bottom: .4rem;
}
.comment-author { font-family: var(--title-font); font-weight: 700; }
.comment-date { font-size: .82rem; color: var(--muted); }
.comment-text p:last-child { margin-bottom: 0; }
.comment-reply a { font-size: .88rem; font-weight: 600; }
.comment-await { color: var(--muted); font-style: italic; }

.comment-form label {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: .35rem;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .75rem .9rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: var(--text-font);
    font-size: .96rem;
    background: #fff;
    color: var(--ink);
}
.comment-form textarea { min-height: 150px; resize: vertical; }
.comment-form .submit {
    display: inline-block;
    padding: .8rem 1.7rem;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    border: none;
    font-family: var(--title-font);
    font-weight: 600;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}
.comment-form .submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(124, 92, 191, .35);
}

/* ======================= 404 ======================= */
.error-box {
    background: #fff;
    border-radius: 14px;
    padding: 2.6rem 2.4rem;
    box-shadow: var(--card-shadow);
    text-align: center;
}
.error-code {
    font-family: var(--title-font);
    font-size: 4.6rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(95deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
    margin-bottom: .6rem;
}
.error-box .search-form { max-width: 30rem; margin: 1.6rem auto; }

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    background: var(--foot-bg);
    color: #DCD4EA;
    border-top: 2px solid var(--accent);
    padding: 1rem 1.5rem;
    font-size: .92rem;
}
.cookie-banner p { margin: 0; max-width: 68ch; }
.cookie-banner a { color: #C9B8EE; }
.cookie-banner .btn { padding: .6rem 1.4rem; }

/* ======================= Адаптив ======================= */
@media (max-width: 960px) {
    body { font-size: 16px; }
    h1, .hero h1 { font-size: 2.5rem; }
    h2, .sec-title { font-size: 1.7rem; }
    .entry-title { font-size: 2rem; }

    .layout-with-sidebar {
        display: block;
    }
    .layout-with-sidebar .sidebar { margin-top: 2.4rem; }
    .layout-single { width: 100%; }

    .nav-toggle { display: inline-block; }
    .main-nav {
        flex-basis: 100%;
        display: none;
    }
    .main-nav.is-open { display: block; }
    .main-nav ul {
        flex-direction: column;
        gap: .2rem;
        border-top: 1px solid var(--line);
        padding-top: .8rem;
        margin-top: .6rem;
    }
    .main-nav li { padding: .45rem 0; }

    .hero { padding: 2.8rem 2rem; min-height: 400px; }
    .front-section { padding: 2.4rem 1.8rem; }
    .entry { padding: 1.8rem 1.7rem 2rem; }
}

@media (max-width: 600px) {
    h1, .hero h1 { font-size: 2.05rem; }
    h2, .sec-title { font-size: 1.5rem; }
    .entry-title { font-size: 1.75rem; }

    body { background-position: right -90px bottom -60px, 0 0, 0 0; }

    .head-inner { padding: .95rem 0; }
    .brand-desc { display: none; }

    .hero { padding: 2.2rem 1.4rem; min-height: 360px; border-radius: 12px; }
    .front-section { padding: 1.9rem 1.4rem; }
    .front-section.is-plain { padding-left: 0; padding-right: 0; }
    .stats { gap: 1.2rem; }
    .stat-num { font-size: 2.05rem; }

    .entry { padding: 1.4rem 1.25rem 1.6rem; }
    .comments-area { padding: 1.4rem 1.25rem 1.6rem; }
    .error-box { padding: 1.9rem 1.4rem; }
    .post-cta { padding: 1.4rem 1.3rem; }
    .cookie-banner { padding: .9rem 1.1rem; justify-content: flex-start; }
    .cards { grid-template-columns: 1fr; }
    .rubrics { grid-template-columns: 1fr; }
    .timeline { padding-left: 2.1rem; }
    .tl-item::before { left: -2.1rem; }
}
