/*
Theme Name: dds_thesv88.com
Theme URI: https://thesv88.com/
Author: Алексей Громов
Description: Тема для информационного проекта о задатке, авансе и торге при покупке квартиры. Оформление Lavender Tech: холодная фиолетово-лавандовая палитра, графитовая шапка, аккуратная типографика.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: avansdom
*/

/* =========================================================
   Переменные
   ========================================================= */

:root {
    --bg-page: #F4F2FA;
    --bg-alt: #EBE5F5;
    --bg-head: #231F33;
    --bg-foot: #1A1726;
    --bg-side: #FFFFFF;
    --ink: #1E1B2B;
    --accent: #7C5FED;
    --accent-2: #B8A5F5;
    --muted: #8A84A3;
    --line: #E5DFF0;
    --line-dot: #D5CDE6;
    --shadow-card: 0 4px 20px rgba(100, 80, 180, 0.08);
    --shadow-card-hover: 0 12px 32px rgba(100, 80, 180, 0.16);
    --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
    --font-body: "Nunito", "Segoe UI", Arial, sans-serif;
}

/* =========================================================
   Скрытие через атрибут hidden (см. правило приоритета)
   ========================================================= */

.cookie-note[hidden] { display: none !important; }
[hidden] { display: none !important; }

/* =========================================================
   База
   ========================================================= */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg-page);
    background-image:
        repeating-linear-gradient(45deg, rgba(124, 95, 237, 0.045) 0 1px, transparent 1px 50px),
        repeating-linear-gradient(-45deg, rgba(124, 95, 237, 0.045) 0 1px, transparent 1px 50px);
    background-size: 100px 100px;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.25;
    margin: 0 0 0.7em;
    font-weight: 700;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }

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

blockquote {
    margin: 1.6em 0;
    padding: 1.6rem 1.8rem;
    background: linear-gradient(135deg, #F4F2FA, #EBE5F5);
    border-left: 4px solid var(--accent);
    border-radius: 10px;
    font-size: 1.1rem;
}

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

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

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

th {
    background: var(--bg-alt);
    font-family: var(--font-head);
    font-weight: 600;
}

code, pre {
    font-family: "Consolas", "Menlo", monospace;
    background: #EFEBF8;
    border-radius: 4px;
}

code { padding: 0.1em 0.35em; font-size: 0.92em; }

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

/* Верхняя фирменная полоса */
.edge-line {
    height: 3px;
    background: var(--accent);
}

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

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

.site-content {
    position: relative;
    z-index: 1;
    padding-bottom: 10px;
}

body:not(.home) .site-content::before {
    content: "";
    position: fixed;
    right: -40px;
    bottom: -20px;
    width: 360px;
    height: 360px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%237C5FED' stroke-width='2'%3E%3Cpath d='M20 180V90l40-30 40 30v90'/%3E%3Cpath d='M100 180V70l45-32 45 32v110'/%3E%3Cpath d='M35 110h30M35 132h30M35 154h30M118 96h26M118 120h26M118 144h26M162 96h14M162 120h14'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.07;
    pointer-events: none;
    z-index: -1;
}

/* =========================================================
   Кнопки и ссылки
   ========================================================= */

.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1.2;
    padding: 0.85rem 1.6rem;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn-solid {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-solid:hover,
.btn-solid:focus { background: #6448D6; border-color: #6448D6; color: #fff; }

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

.btn-ghost:hover,
.btn-ghost:focus { box-shadow: 0 6px 18px rgba(124, 95, 237, 0.22); }

.entry-text a,
.card-excerpt a,
.foot-block a,
.side-block a {
    position: relative;
    color: var(--accent);
}

.entry-text a::after,
.card-excerpt a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
}

.entry-text a:hover::after,
.card-excerpt a:hover::after { transform: scaleX(1); }

/* =========================================================
   Шапка
   ========================================================= */

.top {
    background: var(--bg-head);
    color: #EFECF8;
    padding: 1.4rem 0;
}

.top-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.4rem;
}

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

.brand-mark { flex: 0 0 auto; display: block; }

.brand-logo {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 10px;
}

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1rem;
    color: #FFFFFF;
    line-height: 1.4;
    max-height: 2.8em;
    overflow: hidden;
}

.brand-note {
    margin: 0.3rem 0 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #A9A2C4;
    max-height: 3em;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid #4A4266;
    border-radius: 6px;
    color: #EFECF8;
    font-family: var(--font-head);
    font-size: 0.9rem;
    padding: 0.55rem 0.9rem;
    cursor: pointer;
}

.nav-toggle-bar {
    width: 18px;
    height: 2px;
    background: var(--accent-2);
    box-shadow: 0 -5px 0 var(--accent-2), 0 5px 0 var(--accent-2);
}

.site-nav { flex: 0 1 auto; }

.nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li { margin: 0; position: relative; }

.nav-list a {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 500;
    color: #E4E0F2;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.nav-list a:hover,
.nav-list .current-menu-item > a {
    color: #FFFFFF;
    border-bottom-color: var(--accent);
}

.nav-list .sub-menu {
    list-style: none;
    margin: 0.4rem 0 0;
    padding: 0 0 0 0.8rem;
}

/* =========================================================
   Секции главной
   ========================================================= */

.main-area { display: block; }

.band {
    position: relative;
    padding: 80px 0;
    background: var(--bg-page);
}

.band::after {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 0;
    border-bottom: 1px dotted var(--line-dot);
}

.band-alt {
    background-color: var(--bg-alt);
    background-image: repeating-linear-gradient(45deg, rgba(124, 95, 237, 0.05) 0 1px, transparent 1px 34px);
}

.band-title {
    position: relative;
    font-size: 2rem;
    margin: 0 0 2rem;
    padding-bottom: 0.6rem;
}

.band-title::before {
    content: "●";
    color: var(--accent);
    font-size: 0.6em;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.band-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60%;
    max-width: 260px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

h2.card-title::before,
h2.side-block-title::before,
h2.foot-block-title::before,
h2.talk-title::before { content: none; }

.entry-text h2::before,
.entry-text h3::before,
.zig-head::before {
    content: "●";
    color: var(--accent);
    font-size: 0.55em;
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Hero */
.band-hero {
    background: var(--bg-head);
    color: #F1EEFA;
    overflow: hidden;
    padding: 90px 0;
}

.band-hero::after { border-bottom-color: rgba(213, 205, 230, 0.2); }

.hero-blob {
    position: absolute;
    right: -120px;
    bottom: -180px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle at 35% 35%, rgba(124, 95, 237, 0.85), rgba(184, 165, 245, 0.35) 60%, rgba(184, 165, 245, 0) 72%);
    filter: blur(60px);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

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

.hero-title {
    color: #FFFFFF;
    font-size: 3.2rem;
    margin-bottom: 1rem;
}

.hero-lead {
    color: #C9C2E2;
    font-size: 1.1rem;
    margin-bottom: 1.8rem;
    max-width: 34em;
}

.hero-art { min-width: 0; }

.hero-art img {
    display: block;
    width: 100%;
    height: auto;
}

/* Статистика */
.facts-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.fact-cell {
    background: linear-gradient(160deg, #FFFFFF, #F4F2FA);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1.8rem 1.5rem;
    box-shadow: var(--shadow-card);
    min-width: 0;
}

.fact-num {
    display: block;
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.fact-cap {
    display: block;
    font-size: 0.95rem;
    color: #443E5C;
    line-height: 1.55;
}

/* Лента записей на главной */
.feed-more { margin: 2rem 0 0; }

.empty-note {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1.4rem 1.6rem;
    color: var(--muted);
}

/* Чек-лист */
.check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1.2rem 1.8rem;
    box-shadow: var(--shadow-card);
}

.check-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.1rem 0;
    border-bottom: 1px dotted var(--line-dot);
    margin: 0;
    min-width: 0;
}

.check-item:last-child { border-bottom: none; }

.check-mark {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    margin-top: 0.15rem;
    border-radius: 6px;
    background: var(--accent);
    position: relative;
}

.check-mark::after {
    content: "";
    position: absolute;
    left: 9px;
    top: 5px;
    width: 6px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.check-body { min-width: 0; }

.check-body strong { font-family: var(--font-head); }

/* Zigzag */
.zig-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.6rem;
    align-items: center;
    padding: 2rem 0;
}

.zig-row + .zig-row { border-top: 1px dotted var(--line-dot); }

.zig-row-flip .zig-text { order: 2; }
.zig-row-flip .zig-art { order: 1; }

.zig-text { min-width: 0; }
.zig-head { font-size: 1.5rem; }

.zig-art { min-width: 0; }

.zig-art img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #FFFFFF;
}

/* =========================================================
   Внутренние страницы
   ========================================================= */

.page-area { padding: 2.4rem 0 4rem; }

.crumbs {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
}

.crumbs a { color: var(--accent); }
.crumbs a:hover { text-decoration: underline; }
.crumbs-sep { color: var(--line-dot); margin: 0 0.35rem; }

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

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

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

.page-head {
    font-size: 2.4rem;
    margin-bottom: 1.4rem;
}

.arch-note {
    color: var(--muted);
    margin-bottom: 1.6rem;
}

/* Карточки записей */
.card-stack {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.card {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.card-thumb-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.card-thumb-wrap a {
    display: block;
}

.card-thumb-wrap img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.card-body {
    flex: 1;
    padding: 1.5rem 1.7rem;
    min-width: 0;
}

.card-title {
    font-size: 1.35rem;
    margin: 0.6rem 0 0.5rem;
}

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

.card-meta {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.8rem;
}

.card-excerpt { color: #3B3552; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

.card-go { margin: 1.1rem 0 0; }

.pill {
    display: inline-block;
    background: var(--accent-2);
    color: #FFFFFF;
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.28rem 0.8rem;
    border-radius: 999px;
    transition: background-color 0.25s ease;
}

.pill:hover { background: var(--accent); color: #fff; }

.pill-soft { background: #D9CFF3; color: #3B3552; margin: 0 0.4rem 0.4rem 0; }

/* Горизонтальные карточки: миниатюра сбоку */
@media (min-width: 700px) {
    .card-stack .card { flex-direction: row; }

    .card-stack .card-thumb-wrap {
        flex: 0 0 300px;
        position: relative;
    }

    .card-stack .card-thumb-wrap a {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .card-stack .card-thumb-wrap img {
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        object-fit: cover;
    }
}

/* Запись и страница */
.entry {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 2.2rem 2.4rem;
    box-shadow: var(--shadow-card);
}

.entry-head { margin-bottom: 1.4rem; }

.entry-title { font-size: 2.4rem; margin: 0.7rem 0 0.6rem; }

.entry-meta { font-size: 0.9rem; color: var(--muted); }

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

.entry-cover img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.entry-text h2 { font-size: 1.7rem; margin-top: 1.8em; }
.entry-text h3 { font-size: 1.35rem; margin-top: 1.5em; }
.entry-text img { border-radius: 10px; display: block; }

.entry-tags { margin-top: 1.8rem; }

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

.entry-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: 1.8rem;
}

.entry-nav-item {
    display: block;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1.1rem 1.4rem;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 0.98rem;
    min-width: 0;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.entry-nav-item:hover { border-color: var(--accent); box-shadow: var(--shadow-card); }

.entry-nav-item span {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.entry-nav-next { text-align: right; }

.lost-note { max-width: 46em; }
.lost-back { margin-top: 1.6rem; }

/* =========================================================
   Сайдбар
   ========================================================= */

.sidebar { min-width: 0; }

.side-block {
    background: var(--bg-side);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1.5rem 1.6rem;
    margin-bottom: 1.6rem;
    box-shadow: var(--shadow-card);
    color: var(--ink);
}

.side-block-title {
    font-size: 1.15rem;
    color: var(--ink);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    position: relative;
}

.side-block-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60%;
    height: 2px;
    background: var(--accent);
}

.side-block ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.side-block li {
    padding: 0.55rem 0 0.55rem 1.1rem;
    border-bottom: 1px dotted var(--line-dot);
    position: relative;
    color: var(--ink);
}

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

.side-block li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05rem;
    width: 6px;
    height: 6px;
    background: var(--accent-2);
    border-radius: 2px;
    transform: rotate(45deg);
}

.side-block a { color: var(--ink); transition: color 0.25s ease; }
.side-block a:hover { color: var(--accent); }
.side-block .post-date { display: block; font-size: 0.82rem; color: var(--muted); }

/* =========================================================
   Пагинация
   ========================================================= */

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.2rem;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 44px;
    text-align: center;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #FFFFFF;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 0.95rem;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

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

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

.pager .page-numbers.dots {
    border: none;
    background: transparent;
    min-width: auto;
    color: var(--muted);
}

/* =========================================================
   Форма поиска
   ========================================================= */

.find-form { margin: 1.6rem 0; }

.find-label {
    display: block;
    font-family: var(--font-head);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--ink);
}

.find-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.find-input {
    flex: 1 1 220px;
    min-width: 0;
    padding: 0.8rem 1rem;
    border: 1px solid var(--line-dot);
    border-radius: 6px;
    background: #FFFFFF;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
}

.find-input:focus { outline: 2px solid var(--accent-2); outline-offset: 1px; }

.side-block .find-label { color: var(--ink); }

/* =========================================================
   Комментарии
   ========================================================= */

.talk {
    margin-top: 2rem;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 2rem 2.2rem;
    box-shadow: var(--shadow-card);
}

.talk-title { font-size: 1.5rem; }

.talk-list, .talk-list .children {
    list-style: none;
    margin: 0 0 1.6rem;
    padding: 0;
}

.talk-list .children { padding-left: 1.6rem; margin-bottom: 0; }

.talk-item { margin-bottom: 1.2rem; }

.talk-body {
    background: var(--bg-page);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1.2rem 1.4rem;
}

.talk-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    align-items: baseline;
    margin-bottom: 0.6rem;
}

.talk-author { font-family: var(--font-head); font-weight: 600; }
.talk-date { font-size: 0.85rem; color: var(--muted); }
.talk-hold { color: var(--muted); font-size: 0.9rem; }
.talk-text p:last-child { margin-bottom: 0; }
.talk-actions { margin-top: 0.6rem; font-size: 0.9rem; }
.talk-closed { color: var(--muted); }
.talk-note { font-size: 0.9rem; color: var(--muted); }

.comment-form label {
    display: block;
    font-family: var(--font-head);
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--line-dot);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: #FFFFFF;
    margin-bottom: 1rem;
}

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

.comment-form .form-submit { margin: 0; }

/* =========================================================
   Подвал
   ========================================================= */

.bottom {
    background: var(--bg-foot);
    color: #CFC9E2;
    padding: 3.4rem 0 2rem;
    margin-top: 0;
}

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

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

.foot-block { margin-bottom: 1.6rem; color: #CFC9E2; }

.foot-block-title {
    font-size: 1.1rem;
    color: #FFFFFF;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    position: relative;
}

.foot-block-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60%;
    height: 2px;
    background: var(--accent);
}

.foot-block p { color: #CFC9E2; }

.foot-block ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.foot-block li {
    padding: 0.45rem 0 0.45rem 1.1rem;
    position: relative;
    color: #CFC9E2;
}

.foot-block li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.95rem;
    width: 6px;
    height: 6px;
    background: var(--accent-2);
    border-radius: 2px;
    transform: rotate(45deg);
}

.foot-block a { color: #D8D2EC; transition: color 0.25s ease; }
.foot-block a:hover { color: var(--accent-2); }
.foot-block .post-date { display: block; font-size: 0.82rem; color: #9A93B5; }

.bottom-rights {
    margin: 1.6rem 0 0;
    padding-top: 1.4rem;
    border-top: 1px dotted #3A3350;
    font-size: 0.88rem;
    color: #9A93B5;
}

/* =========================================================
   Cookie-баннер
   ========================================================= */

.cookie-note {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.6rem;
    background: #231F33;
    color: #E6E2F3;
    border-top: 3px solid var(--accent);
    padding: 1.1rem 1.6rem;
}

.cookie-text {
    margin: 0;
    font-size: 0.92rem;
    max-width: 70ch;
    min-width: 0;
}

.cookie-accept { flex: 0 0 auto; }

/* =========================================================
   Адаптив
   ========================================================= */

@media (max-width: 960px) {
    h1 { font-size: 2.4rem; }
    .hero-title { font-size: 2.4rem; }
    .page-head, .entry-title { font-size: 2rem; }

    .band { padding: 60px 0; }

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

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

    .facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .layout-single { max-width: 100%; }

    .bottom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .zig-row,
    .zig-row-flip {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.6rem;
    }

    .zig-row-flip .zig-text,
    .zig-row-flip .zig-art { order: 0; }

    .nav-toggle { display: inline-flex; }

    .site-nav {
        flex: 1 1 100%;
        display: none;
    }

    .site-nav.nav-open { display: block; }

    .nav-list {
        flex-direction: column;
        gap: 0;
        border-top: 1px solid #3A3350;
        padding-top: 0.6rem;
    }

    .nav-list li { border-bottom: 1px dotted #3A3350; }
    .nav-list a { display: block; padding: 0.7rem 0; border-bottom: none; }
}

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

    h1 { font-size: 2rem; }
    .hero-title { font-size: 2rem; }
    h2, .band-title { font-size: 1.6rem; }

    .band { padding: 46px 0; }
    .band-hero { padding: 56px 0; }

    .page-area { padding: 1.6rem 0 3rem; }

    .facts-row { grid-template-columns: minmax(0, 1fr); }

    .fact-cell { padding: 1.4rem 1.3rem; }

    .check-list { padding: 0.6rem 1.2rem; }

    .entry { padding: 1.5rem 1.3rem; }

    .talk { padding: 1.4rem 1.2rem; }

    .card-body { padding: 1.2rem 1.3rem; }

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

    .bottom-grid { grid-template-columns: minmax(0, 1fr); }

    .entry-nav { grid-template-columns: minmax(0, 1fr); }
    .entry-nav-next { text-align: left; }

    .cookie-note {
        padding: 1rem 1.2rem;
        justify-content: flex-start;
    }

    blockquote { padding: 1.2rem 1.3rem; }

    body:not(.home) .site-content::before { display: none; }
}
