/*
Theme Name: dds_to-kiss.ru
Author: Анна Серебрякова
Description: Индивидуальная тема для информационного проекта об осознанной близости. Дизайн-концепция LAVENDER TECH: холодная фиолетово-сиреневая гамма, асимметрия, полупрозрачность.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: tokiss
*/

/* ------------------------------------------------------------------
   1. Переменные
------------------------------------------------------------------ */

:root {
    --bg: #F8F6FA;
    --bg-alt: #EEEAFA;
    --ink: #1E1A26;
    --muted: #9990A8;
    --accent: #7C5CBF;
    --accent-soft: #A78BEA;
    --accent-2: #D4BFFF;
    --line: #E5DEF0;
    --head-line: #D9D0EB;
    --footer-bg: #2A2533;
    --font-head: "Inter", "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-body: "Inter", "Helvetica Neue", Arial, system-ui, -apple-system, sans-serif;
}

/* ------------------------------------------------------------------
   2. Скрытые элементы (правило до основных блоков)
------------------------------------------------------------------ */

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

/* ------------------------------------------------------------------
   3. База
------------------------------------------------------------------ */

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.72;
    color: var(--ink);
    background-color: var(--bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='%237C5CBF' fill-opacity='0.05'%3E%3Ccircle cx='7' cy='11' r='1'/%3E%3Ccircle cx='34' cy='5' r='1'/%3E%3Ccircle cx='51' cy='24' r='1'/%3E%3Ccircle cx='19' cy='33' r='1'/%3E%3Ccircle cx='43' cy='47' r='1'/%3E%3Ccircle cx='9' cy='52' r='1'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
}

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

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

h1 { font-size: 3.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.05em; }

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

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

/* ------------------------------------------------------------------
   4. Шапка
------------------------------------------------------------------ */

.site-header {
    position: relative;
    background: rgba(248, 246, 250, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--head-line);
}

.head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    padding: 1.1rem 0;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    max-width: 60%;
}

.brand-link { display: block; flex: 0 0 auto; line-height: 0; }
.brand-logo { display: block; max-height: 54px; width: auto; }
.brand-mark { display: block; }

.brand-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }

.brand-name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: 0.05em;
    line-height: 1.3;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brand-desc {
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.55rem;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 8px;
    padding: 0.55rem 1rem;
    font: 600 0.9rem/1 var(--font-head);
    letter-spacing: 0.06em;
    cursor: pointer;
}

.nav-toggle-bar {
    width: 18px;
    height: 2px;
    background: var(--accent);
    position: relative;
    display: block;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--accent);
}

.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

.nav-list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-list li { position: relative; }

.nav-list a {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-head);
    font-size: 0.94rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--ink);
    padding: 0.3rem 0;
    border-bottom: 1px dashed transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-list a::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-2);
    margin-right: 8px;
    flex: 0 0 auto;
    transition: transform 0.22s ease, background-color 0.22s ease;
}

.nav-list a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.nav-list a:hover::before {
    transform: scale(1.7);
    background: var(--accent);
}

.nav-list .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    min-width: 220px;
    margin: 0;
    padding: 0.6rem 0.9rem;
    list-style: none;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.nav-list li:hover > .sub-menu { display: block; }

/* ------------------------------------------------------------------
   5. Кнопки и ссылки
------------------------------------------------------------------ */

.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.94rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 0.85rem 1.9rem;
    border-radius: 8px;
    border: 1px solid var(--accent);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.btn-solid { background: var(--accent); color: #FFFFFF; }
.btn-ghost { background: transparent; color: var(--accent); }

.btn:hover {
    transform: translateY(2px);
    box-shadow: 0 8px 20px rgba(124, 92, 191, 0.3);
}

.btn-ghost:hover { background: rgba(212, 191, 255, 0.28); }

.entry-content a,
.card-excerpt a,
.gloss-item a,
.widget_text a {
    border-bottom: 1px dashed var(--accent);
    transition: border-bottom-width 0.15s ease, border-bottom-style 0.15s ease;
}

.entry-content a:hover,
.card-excerpt a:hover,
.gloss-item a:hover,
.widget_text a:hover {
    border-bottom: 2px solid var(--accent);
}

.read-link {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    border-bottom: 1px dashed var(--accent);
}

.read-link:hover { border-bottom: 2px solid var(--accent); }

/* ------------------------------------------------------------------
   6. Заголовки секций
------------------------------------------------------------------ */

.sec-title {
    position: relative;
    font-size: 1.85rem;
    text-transform: lowercase;
    letter-spacing: 0.07em;
    padding-left: 1.5rem;
    margin-bottom: 1.8rem;
}

.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.18em;
    bottom: 0.1em;
    width: 2px;
    background: linear-gradient(180deg, var(--accent) 0%, rgba(124, 92, 191, 0) 100%);
}

/* ------------------------------------------------------------------
   7. Общие раскладки
------------------------------------------------------------------ */

.site-main { display: block; padding: 2.6rem 0 3.6rem; }

.page-wrap { display: block; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 6%;
    align-items: start;
}

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

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

.front-wrap {
    width: min(85%, 1180px);
    margin-left: auto;
    margin-right: auto;
}

.page-head { margin-bottom: 1.6rem; }
.page-title { font-size: 2.6rem; margin-bottom: 0.5rem; }

/* ------------------------------------------------------------------
   8. Хлебные крошки
------------------------------------------------------------------ */

.breadcrumbs {
    font-size: 0.86rem;
    color: var(--muted);
    margin: 0 0 1.8rem;
    letter-spacing: 0.03em;
}

.breadcrumbs a { color: var(--muted); border-bottom: 1px dashed var(--head-line); }
.breadcrumbs a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.breadcrumbs .sep { color: var(--accent-2); margin: 0 0.25rem; }

/* ------------------------------------------------------------------
   9. Карточки записей
------------------------------------------------------------------ */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 1.6rem;
    margin-bottom: 2.4rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: transparent;
    border: 1px solid var(--line);
    border-left: 3px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    transition: background-color 0.22s ease, border-color 0.22s ease;
}

.card:hover {
    background: var(--bg-alt);
    border-left-color: var(--accent);
}

.card-thumb { padding: 14px 14px 0; }

.card-thumb a { display: block; }

.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 50% 50% 12px 12px / 30% 30% 12px 12px;
}

.card-body {
    flex: 1;
    min-width: 0;
    padding: 1.2rem 1.4rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.16rem;
    line-height: 1.32;
    margin: 0 0 0.5rem;
}

.card-title a {
    display: inline;
    color: var(--ink);
}

.card-title a::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-2);
    margin-right: 9px;
    vertical-align: middle;
    transition: transform 0.22s ease, background-color 0.22s ease;
}

.card:hover .card-title a::before {
    transform: scale(1.5);
    background: var(--accent);
}

.card-title a:hover { color: var(--accent); }

.post-meta {
    font-size: 0.82rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    margin-bottom: 0.7rem;
}

.post-meta a { color: var(--muted); border-bottom: 1px dashed var(--head-line); }
.post-meta a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.post-meta .dot-sep { color: var(--accent-2); }

.card-excerpt { font-size: 0.95rem; color: #4A4356; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

.card-more { margin: auto 0 0; padding-top: 0.7rem; }

.empty-note { color: var(--muted); }

/* ------------------------------------------------------------------
   10. Главная — hero
------------------------------------------------------------------ */

.fs { margin: 0 0 4.4rem; }

.fs-hero {
    position: relative;
    overflow: hidden;
    padding: 3.4rem 2.8rem;
    border-radius: 20px;
    background: linear-gradient(140deg, #F6F0FF 0%, #EEEAFA 100%);
    border: 1px solid var(--line);
}

.fs-hero::before {
    content: "";
    position: absolute;
    top: -140px;
    right: -110px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 191, 255, 0.85) 0%, rgba(212, 191, 255, 0) 70%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 2.6rem;
    align-items: center;
}

.hero-kicker {
    font-family: var(--font-head);
    font-size: 0.82rem;
    text-transform: lowercase;
    letter-spacing: 0.24em;
    color: var(--accent);
    margin-bottom: 0.9rem;
}

.hero-title { font-size: 3.5rem; margin-bottom: 1rem; }

.hero-title .grad {
    background: linear-gradient(90deg, #7C5CBF 0%, #A78BEA 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    font-size: 1.05rem;
    color: #453E55;
    max-width: 34em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }

.hero-art { min-width: 0; }
.hero-lines { display: block; width: 100%; height: auto; }

.hero-lines .ln {
    stroke-dasharray: 620;
    stroke-dashoffset: 620;
    animation: tokiss-draw 3.4s ease forwards;
}

.hero-lines .ln-b { animation-delay: 0.45s; }

.hero-lines .pt {
    opacity: 0;
    animation: tokiss-pulse 3.2s ease-in-out 2.4s infinite;
}

@keyframes tokiss-draw {
    to { stroke-dashoffset: 0; }
}

@keyframes tokiss-pulse {
    0% { opacity: 0.35; transform: scale(1); transform-origin: center; }
    50% { opacity: 1; transform: scale(1.35); transform-origin: center; }
    100% { opacity: 0.35; transform: scale(1); transform-origin: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-lines .ln { animation: none; stroke-dashoffset: 0; }
    .hero-lines .pt { animation: none; opacity: 1; }
}

/* ------------------------------------------------------------------
   11. Главная — статистика
------------------------------------------------------------------ */

.fs-stats {
    position: relative;
    overflow: hidden;
    background: var(--bg-alt);
    border-radius: 16px;
    padding: 2.8rem 2.4rem;
}

.fs-stats::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 160px;
    height: 160px;
    background-image: repeating-linear-gradient(45deg, rgba(124, 92, 191, 0.16) 0 1px, transparent 1px 14px);
    pointer-events: none;
}

.stats-row {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.6rem;
}

.stat-cell {
    min-width: 0;
    padding-left: 1.1rem;
    border-left: 1px solid var(--head-line);
}

.stat-num {
    display: block;
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--accent);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.stat-cap { display: block; font-size: 0.9rem; color: #4A4356; }

/* ------------------------------------------------------------------
   12. Главная — свежие материалы, волна
------------------------------------------------------------------ */

.fs-latest .cards-grid { margin-bottom: 1.6rem; }
.fs-more { margin: 0; }

.wave-sep { margin: 0 0 4.2rem; line-height: 0; }
.wave-sep svg { display: block; width: 100%; height: 40px; }

/* ------------------------------------------------------------------
   13. Главная — чередующиеся строки
------------------------------------------------------------------ */

.zz-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.6rem;
    align-items: center;
    margin-bottom: 2.8rem;
}

.zz-row:last-child { margin-bottom: 0; }

.zz-flip .zz-media { order: 2; }

.zz-media {
    min-width: 0;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1rem;
}

.zz-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 10 / 7;
    object-fit: contain;
    border-radius: 10px;
}

.zz-text { min-width: 0; }
.zz-text h3 { margin-bottom: 0.6rem; }
.zz-text p { color: #453E55; }
.zz-text p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------
   14. Главная — словарь
------------------------------------------------------------------ */

.fs-glossary {
    background: linear-gradient(135deg, #F6F0FF 0%, #E8DEFF 100%);
    border-radius: 16px;
    padding: 2.6rem 2.4rem;
}

.gloss-list { margin: 0; }

.gloss-item {
    padding: 1.2rem 0;
    border-bottom: 1px dashed rgba(124, 92, 191, 0.45);
}

.gloss-item:first-child { padding-top: 0; }
.gloss-item:last-child { border-bottom: 0; padding-bottom: 0; }

.gloss-item dt {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 0.35rem;
}

.gloss-item dd { margin: 0; color: #3E3750; }

/* ------------------------------------------------------------------
   15. Контент записей и страниц
------------------------------------------------------------------ */

.single-thumb { margin: 0 0 1.8rem; }

.single-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 16px;
}

.entry-content { font-size: 1.02rem; }

.entry-content h2,
.entry-content h3 {
    position: relative;
    margin-top: 2rem;
    padding-left: 1.15rem;
}

.entry-content h2::before,
.entry-content h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-2);
    transition: transform 0.22s ease, background-color 0.22s ease;
}

.entry-content h2:hover::before,
.entry-content h3:hover::before {
    transform: scale(1.6);
    background: var(--accent);
}

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

.entry-content li { margin-bottom: 0.45rem; }

.entry-content img { border-radius: 12px; }

.entry-content blockquote {
    position: relative;
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem 1.4rem 1.8rem;
    background: linear-gradient(135deg, #F6F0FF 0%, #E8DEFF 100%);
    border-radius: 12px;
    font-size: 1.06rem;
}

.entry-content blockquote::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
    clip-path: polygon(0 0, 100% 10px, 100% 100%, 0 100%);
    border-radius: 12px 0 0 12px;
}

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

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.6rem;
    border: 1px solid var(--head-line);
}

.entry-content th,
.entry-content td {
    border: 1px solid var(--head-line);
    padding: 0.65rem 0.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;
}

.post-tags { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }

.post-tags a {
    font-size: 0.84rem;
    padding: 0.32rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--accent);
}

.post-tags a:hover { background: var(--bg-alt); }

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1.4rem;
    flex-wrap: wrap;
    margin: 2.4rem 0;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    font-size: 0.92rem;
}

.post-nav-prev, .post-nav-next { min-width: 0; max-width: 46%; }
.post-nav-next { text-align: right; margin-left: auto; }

.page-links { margin-top: 1.2rem; font-size: 0.9rem; }

/* ------------------------------------------------------------------
   16. Пагинация
------------------------------------------------------------------ */

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin: 2.2rem 0 0;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.pager a.page-numbers:hover {
    transform: translateY(2px);
    border-color: var(--accent);
    color: var(--accent);
    background: var(--bg-alt);
}

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

.pager .page-numbers.dots {
    border-color: transparent;
    color: var(--muted);
    min-width: auto;
    padding: 0.5rem 0.3rem;
}

/* ------------------------------------------------------------------
   17. Сайдбар
------------------------------------------------------------------ */

.sidebar { min-width: 0; }

.sidebar .widget {
    background: #FFFFFFE0;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.3rem 1.4rem;
    margin-bottom: 1.4rem;
    color: var(--ink);
}

.sidebar .widget-title {
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: lowercase;
    color: var(--ink);
    margin-bottom: 0.9rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--line);
}

.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }

.sidebar .widget li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--line);
    font-size: 0.94rem;
}

.sidebar .widget li:last-child { border-bottom: 0; }

.sidebar .widget a { color: var(--ink); }
.sidebar .widget a:hover { color: var(--accent); }
.sidebar .widget .post-date { display: block; color: var(--muted); font-size: 0.8rem; }
.sidebar .widget p { color: #4A4356; font-size: 0.94rem; }

.sidebar .search-form { margin: 0; }

/* ------------------------------------------------------------------
   18. Форма поиска и комментарии
------------------------------------------------------------------ */

.search-form { margin-bottom: 1.6rem; }

.search-label {
    display: block;
    font-family: var(--font-head);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

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

.search-field {
    flex: 1 1 200px;
    min-width: 0;
    padding: 0.75rem 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #FFFFFF;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
}

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

.comments-area {
    margin-top: 2.6rem;
    padding: 1.8rem 1.8rem 2rem;
    background: #FFFFFFCC;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.comments-title { font-size: 1.4rem; }

.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: 1.4rem; margin-top: 0.9rem; }

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

.comment-inner {
    padding: 1.1rem 1.2rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.comment-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.comment-author { font-family: var(--font-head); font-weight: 600; letter-spacing: 0.04em; }
.comment-date { font-size: 0.8rem; color: var(--muted); }
.comment-hold { color: var(--muted); font-size: 0.9rem; }
.comment-actions { font-size: 0.85rem; }
.comment-actions a { border-bottom: 1px dashed var(--accent); }

.comment-form label {
    display: block;
    font-family: var(--font-head);
    font-size: 0.86rem;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.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);
    border-radius: 8px;
    background: #FFFFFF;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
}

.comment-form textarea { min-height: 150px; resize: vertical; }
.comment-form .form-submit { margin-top: 1rem; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 0.5rem; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { margin: 0; }

/* ------------------------------------------------------------------
   19. Подвал
------------------------------------------------------------------ */

.site-footer {
    background: var(--footer-bg);
    color: #E7E1F2;
    padding: 3rem 0 1.8rem;
    margin-top: 3rem;
}

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

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

.site-footer .widget { margin-bottom: 1.4rem; color: #D9D2E8; }

.site-footer .widget-title {
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: lowercase;
    color: #FFFFFF;
    margin-bottom: 0.9rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(212, 191, 255, 0.3);
}

.site-footer .widget p { color: #C9C1DC; font-size: 0.93rem; }

.site-footer .widget ul { list-style: none; margin: 0; padding: 0; }

.site-footer .widget li {
    padding: 0.42rem 0;
    font-size: 0.93rem;
    border-bottom: 1px dashed rgba(212, 191, 255, 0.18);
}

.site-footer .widget li:last-child { border-bottom: 0; }

.site-footer .widget a { color: var(--accent-2); border-bottom: 1px dashed transparent; }
.site-footer .widget a:hover { color: #FFFFFF; border-bottom-color: #FFFFFF; }
.site-footer .widget .post-date { display: block; color: #A99FC0; font-size: 0.8rem; }

.footer-bottom {
    margin-top: 1.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(212, 191, 255, 0.22);
    font-size: 0.86rem;
    color: #B4AAC9;
    letter-spacing: 0.03em;
}

/* ------------------------------------------------------------------
   20. Cookie-баннер
------------------------------------------------------------------ */

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: rgba(248, 246, 250, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--head-line);
    padding: 1rem 0;
}

.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.cookie-text { margin: 0; font-size: 0.9rem; color: #453E55; flex: 1 1 320px; min-width: 0; }

/* ------------------------------------------------------------------
   21. 404
------------------------------------------------------------------ */

.err-search { max-width: 520px; margin-bottom: 1.6rem; }
.err-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ------------------------------------------------------------------
   22. Адаптив
------------------------------------------------------------------ */

@media (max-width: 960px) {
    h1 { font-size: 2.6rem; }
    .hero-title { font-size: 2.6rem; }
    .page-title { font-size: 2.1rem; }

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

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

    .primary-nav.is-open { display: block; }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
        padding-top: 0.8rem;
    }

    .nav-list a { padding: 0.55rem 0; }

    .nav-list .sub-menu {
        display: block;
        position: static;
        border: 0;
        padding: 0 0 0 1.2rem;
        min-width: 0;
        background: transparent;
    }

    .brand { max-width: 72%; }

    .layout-with-sidebar {
        display: block;
    }

    .sidebar { margin-top: 2.6rem; }

    .layout-single { width: 100%; }

    .front-wrap { width: min(92%, 1180px); }

    .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-art { max-width: 380px; }

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

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

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

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

    h1 { font-size: 2.1rem; }
    .hero-title { font-size: 2.1rem; }
    .page-title { font-size: 1.8rem; }
    .sec-title { font-size: 1.5rem; }

    .site-main { padding: 1.8rem 0 2.6rem; }

    .fs { margin-bottom: 3rem; }
    .fs-hero { padding: 2rem 1.4rem; }
    .fs-stats { padding: 1.8rem 1.4rem; }
    .fs-glossary { padding: 1.8rem 1.4rem; }
    .comments-area { padding: 1.3rem 1.2rem 1.5rem; }
    .entry-content blockquote { padding: 1.1rem 1.2rem 1.1rem 1.4rem; }

    .stats-row { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
    .stat-num { font-size: 2.1rem; }

    .brand-desc { display: none; }
    .brand { max-width: 68%; }

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

    .card-thumb { padding: 10px 10px 0; }
    .card-body { padding: 1rem 1.1rem 1.2rem; }

    .cookie-inner { align-items: flex-start; }
    .post-nav-prev, .post-nav-next { max-width: 100%; text-align: left; }
    .post-nav-next { margin-left: 0; }
}
