/*
Theme Name: dds_the-wishmas-tree.ru
Author: Алексей Светлов
Description: Тёмная тема «Цифровая магия» для каталога-блога нейросетей: футуристический минимализм, стеклянные плашки и сияющие акценты.
Version: 1.1
Text Domain: wishtree
*/

:root {
    --bg: #0B0A19;
    --bg-alt: #14112B;
    --bg-deep: #06050E;
    --bg-side: #1A1633;
    --line: #3A2C5A;
    --line-soft: #2F2552;
    --ink: #F0EFF8;
    --amethyst: #D4A0FF;
    --cyan: #00E5FF;
    --rose: #FFB7E1;
    --violet: #7F3DFF;
    --muted: #6B5F8A;
}

/* ---------- Базовое ---------- */

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 12px 12px, rgba(212,160,255,0.30) 1px, transparent 1.6px),
        repeating-linear-gradient(58deg, rgba(0,229,255,0.10) 0 1px, transparent 1px 78px),
        repeating-linear-gradient(-58deg, rgba(212,160,255,0.08) 0 1px, transparent 1px 96px);
    background-size: 72px 72px, auto, auto;
    background-attachment: fixed;
    color: var(--ink);
    font-family: "Roboto Flex", "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.72;
    letter-spacing: 0.012em;
}

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

a {
    color: var(--amethyst);
    text-decoration: none;
    transition: color .2s ease;
}

a:hover, a:focus { color: var(--cyan); }

h1, h2, h3, h4, h5, h6 {
    font-family: "Orbitron", "Inter", "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    line-height: 1.22;
    letter-spacing: 0.01em;
    margin: 0 0 0.7em;
}

h1 { font-size: 3.5rem; font-weight: 800; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }
h4 { font-size: 1.12rem; font-weight: 700; }

p { margin: 0 0 1.15em; }

em, i {
    font-style: italic;
    color: #E7DBFF;
    text-shadow: -0.6px 0 rgba(255,0,120,0.55), 0.6px 0 rgba(0,229,255,0.55);
}

blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem;
    border-left: 3px solid var(--amethyst);
    border-radius: 10px;
    background: linear-gradient(120deg, rgba(127,61,255,0.16), rgba(0,229,255,0.10));
    color: #EDE7FA;
}

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

code, pre {
    font-family: "JetBrains Mono", Consolas, monospace;
    background: rgba(212,160,255,0.10);
    color: #E8DEFF;
    border-radius: 6px;
}

code { padding: 0.1em 0.4em; }

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

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
    border: 1px solid var(--line);
}

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

th { background: rgba(127,61,255,0.18); font-weight: 700; }

hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); margin: 2.4rem 0; }

/* ---------- Контейнер ---------- */

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

.page-flow { display: block; padding-bottom: 3.5rem; }

/* ---------- Кнопки ---------- */

.btn {
    display: inline-block;
    padding: 0.82rem 1.6rem;
    font-family: "Orbitron", "Inter", Arial, sans-serif;
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 6px;
    border: 0;
    cursor: pointer;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 68%, calc(100% - 14px) 100%, 0 100%);
    transition: transform .18s ease, box-shadow .22s ease, color .2s ease, background .2s ease;
}

.btn-fill {
    background: linear-gradient(120deg, var(--violet), var(--cyan));
    color: #0B0A19;
}

.btn-fill:hover, .btn-fill:focus {
    color: #05040D;
    transform: translateY(2px);
    box-shadow: 0 10px 26px rgba(127,61,255,0.45);
}

.btn-ghost {
    position: relative;
    background: transparent;
    color: var(--amethyst);
    border: 1px solid var(--amethyst);
}

.btn-ghost::before {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px dashed rgba(0,229,255,0.45);
    border-radius: 3px;
    pointer-events: none;
}

.btn-ghost:hover, .btn-ghost:focus {
    color: var(--cyan);
    border-color: var(--cyan);
    transform: translateY(2px);
    box-shadow: 0 10px 24px rgba(0,229,255,0.28);
}

/* ---------- Шапка ---------- */

.topbar {
    position: relative;
    background: rgba(11, 10, 25, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.topbar-inner {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    flex-wrap: wrap;
    padding: 1.15rem 0;
}

.mark {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    min-width: 0;
    flex: 1 1 320px;
}

.mark-link { display: block; line-height: 0; }

.mark-img { width: 54px; height: auto; display: block; }

.mark-fallback { display: block; line-height: 0; }

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

.mark-name {
    display: block;
    font-family: "Orbitron", "Inter", Arial, sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
    max-height: 2.7em;
    overflow: hidden;
}

.mark-name:hover { color: var(--cyan); }

.mark-note {
    margin: 0.25rem 0 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--muted);
    max-height: 3em;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.45rem;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    padding: 0.55rem 0.8rem;
    cursor: pointer;
}

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

.nav-toggle-label { font-size: 0.85rem; letter-spacing: 0.05em; }

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

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

.primary-list a {
    position: relative;
    display: inline-block;
    padding: 0.3rem 0;
    font-family: "Orbitron", "Inter", Arial, sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
}

.primary-list a::after {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: -2px;
    height: 2px;
    background: var(--cyan);
    transition: left .22s ease, right .22s ease;
}

.primary-list a:hover, .primary-list a:focus { color: var(--cyan); }

.primary-list a:hover::after, .primary-list a:focus::after { left: 0; right: 0; }

.primary-list .current-menu-item > a { color: var(--amethyst); }

.primary-list .sub-menu {
    list-style: none;
    margin: 0.4rem 0 0;
    padding: 0 0 0 0.9rem;
    border-left: 1px solid var(--line);
}

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

.fs {
    position: relative;
    padding: 3.6rem 0;
    overflow: hidden;
}

.fs::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -120px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(127,61,255,0.30), rgba(127,61,255,0) 68%);
    filter: blur(6px);
    pointer-events: none;
    opacity: 0.55;
    transition: opacity .8s ease, transform .8s ease;
}

.fs.is-lit::after { opacity: 0.85; transform: translateY(-14px); }

.fs .shell { width: min(85%, 1180px); }

.fs-alt {
    background-color: var(--bg-alt);
    background-image:
        repeating-linear-gradient(0deg, rgba(212,160,255,0.05) 0 1px, transparent 1px 34px),
        repeating-linear-gradient(90deg, rgba(0,229,255,0.05) 0 1px, transparent 1px 34px);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.fs + .fs::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 16px;
    background-image:
        radial-gradient(circle at 8px 8px, rgba(255,183,225,0.55) 1px, transparent 1.5px),
        linear-gradient(135deg, transparent 46%, rgba(0,229,255,0.45) 47%, transparent 48%);
    background-size: 46px 16px, 120px 16px;
    opacity: 0.55;
    pointer-events: none;
}

.fs-title {
    position: relative;
    padding-top: 1.4rem;
    margin-bottom: 0.9rem;
}

.fs-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 96px;
    height: 2px;
    background: linear-gradient(90deg, var(--amethyst), rgba(212,160,255,0));
}

.fs-title::after {
    content: "";
    position: absolute;
    top: -3px;
    left: 104px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
    animation: wt-flicker 2.6s ease-in-out infinite;
}

@keyframes wt-flicker {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.7); }
}

.fs-intro {
    max-width: 62ch;
    color: #CFC7E6;
    margin-bottom: 2.2rem;
}

.fs-more { margin-top: 2rem; }

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

/* ---------- Кристалл у заголовков ---------- */

.prose h2::before,
.tline-head::before,
.card-title::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 0.55rem;
    vertical-align: middle;
    background: var(--amethyst);
    transform: rotate(45deg);
    transition: transform .35s ease, background .35s ease;
}

.prose h2:hover::before,
.tline-head:hover::before,
.card-title:hover::before {
    transform: rotate(225deg);
    background: var(--rose);
}

/* ---------- Hero ---------- */

.fs-hero { padding: 0; }

.hero-canvas {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
}

.hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(11,10,25,0.92) 12%, rgba(11,10,25,0.55) 58%, rgba(20,17,43,0.85) 100%);
}

.hero-shell { position: relative; z-index: 2; padding: 4.4rem 0; }

.hero-glass {
    max-width: 720px;
    padding: 2.6rem 2.4rem;
    border-radius: 14px;
    border: 1px solid rgba(212,160,255,0.38);
    background: rgba(11,10,25,0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 0 40px rgba(127,61,255,0.18);
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.3rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rose);
}

.hero-title { margin-bottom: 0.65em; }

.hero-lead { color: #DCD5EE; font-size: 1.05rem; }

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

/* ---------- Таймлайн ---------- */

.tline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 2.4rem;
    position: relative;
}

.tline::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(180deg, var(--cyan), rgba(0,229,255,0.15));
    box-shadow: 0 0 12px rgba(0,229,255,0.5);
}

.tline-item {
    position: relative;
    min-width: 0;
    padding: 0 0 2.2rem;
}

.tline-item:last-child { padding-bottom: 0; }

.tline-dot {
    position: absolute;
    left: -2.4rem;
    top: 0.5rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--cyan);
    box-shadow: 0 0 0 0 rgba(0,229,255,0.45);
    animation: wt-pulse 2.8s ease-out infinite;
}

@keyframes wt-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0,229,255,0.45); }
    70% { box-shadow: 0 0 0 12px rgba(0,229,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,229,255,0); }
}

.tline-year {
    display: inline-block;
    font-family: "Orbitron", "Inter", Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--rose);
    margin-bottom: 0.35rem;
}

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

.tline-head { font-size: 1.25rem; margin-bottom: 0.45em; }

.tline-body p { margin: 0; color: #CFC7E6; }

/* ---------- Статистика ---------- */

.stat-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
    margin-top: 1.6rem;
}

.stat-cell {
    min-width: 0;
    padding: 1.6rem 1.4rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(11,10,25,0.55);
    text-align: center;
}

.stat-num {
    display: block;
    font-family: "Orbitron", "Inter", Arial, sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(120deg, var(--amethyst), var(--rose));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-cap {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #C6BDE0;
}

/* ---------- Порталы ---------- */

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

.portal-tile {
    position: relative;
    display: block;
    min-width: 0;
    padding: 1.7rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(20,17,43,0.72);
    color: var(--ink);
    overflow: hidden;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.portal-tile::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        conic-gradient(from 0deg, rgba(212,160,255,0.35) 0 6deg, transparent 6deg 45deg,
        rgba(0,229,255,0.30) 45deg 51deg, transparent 51deg 90deg);
    opacity: 0;
    transform: scale(0.4);
    transition: opacity .35s ease, transform .45s ease;
    pointer-events: none;
}

.portal-tile:hover, .portal-tile:focus {
    transform: scale(1.01);
    border-color: var(--amethyst);
    box-shadow: 0 18px 34px -18px rgba(212,160,255,0.75);
}

.portal-tile:hover::before, .portal-tile:focus::before { opacity: 0.35; transform: scale(1); }

.portal-icon { display: block; color: var(--amethyst); margin-bottom: 0.9rem; position: relative; }

.portal-tile:hover .portal-icon { color: var(--rose); }

.portal-name {
    position: relative;
    display: block;
    font-family: "Orbitron", "Inter", Arial, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.portal-note { position: relative; display: block; font-size: 0.92rem; color: #C6BDE0; }

/* ---------- Раскладки ---------- */

.layout-single {
    display: block;
    padding: 2.4rem 0 1rem;
}

.layout-single .content-area {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 3rem;
    padding: 2.4rem 0 1rem;
    align-items: start;
}

.layout-with-sidebar .content-area { min-width: 0; }

.area-head { margin-bottom: 2rem; }

.area-title { font-size: 2.3rem; }

.area-note { color: #C6BDE0; }

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

.trail {
    padding: 1.2rem 0 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.trail a { color: var(--muted); }

.trail a:hover { color: var(--cyan); }

.trail-sep { color: var(--line); margin: 0 0.25rem; }

/* ---------- Карточки ---------- */

.card-grid { display: grid; gap: 1.6rem; }

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

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(20,17,43,0.70);
    overflow: hidden;
    box-shadow: 0 16px 30px -22px rgba(212,160,255,0.75);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.card:hover {
    transform: scale(1.01);
    border-color: var(--amethyst);
    box-shadow: 0 24px 38px -20px rgba(212,160,255,0.9);
}

.card-thumb {
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 78%, 86% 100%, 0 100%);
}

.card-thumb a { display: block; }

.card-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(127,61,255,0.28);
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}

.card:hover .card-thumb::after { opacity: 1; }

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

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

.card-title { font-size: 1.2rem; margin-bottom: 0.6em; }

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

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

.card-excerpt { color: #C6BDE0; font-size: 0.95rem; }

.card-excerpt p { margin: 0 0 0.5em; background: none; }

.card-link {
    margin-top: auto;
    padding-top: 0.9rem;
    font-family: "Orbitron", "Inter", Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--amethyst);
}

.card-link:hover { color: var(--cyan); }

.meta-line {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.meta-line a { color: var(--muted); }

.meta-line a:hover { color: var(--rose); }

.meta-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    background: var(--rose);
    transform: rotate(45deg);
}

/* ---------- Запись и страница ---------- */

.single-post {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(20,17,43,0.55);
    padding: 2.2rem 2.2rem 2.4rem;
}

.single-title { font-size: 2.5rem; }

.single-head { margin-bottom: 1.6rem; }

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

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

.prose { min-width: 0; }

.prose h2 { font-size: 1.7rem; margin-top: 1.8em; }

.prose h3 { font-size: 1.3rem; margin-top: 1.6em; }

.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; }

.prose li { margin-bottom: 0.45em; }

.prose ul { list-style: none; padding-left: 1.5rem; }

.prose ul li { position: relative; }

.prose ul li::before {
    content: "";
    position: absolute;
    left: -1.1rem;
    top: 0.7em;
    width: 7px;
    height: 7px;
    background: var(--cyan);
    transform: rotate(45deg);
}

.prose img { border-radius: 10px; }

.prose a { text-decoration: underline; text-underline-offset: 3px; }

.page-split { margin-top: 1.4rem; color: var(--muted); }

.tag-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }

.tag-chip {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.82rem;
    color: #C6BDE0;
}

.tag-chip:hover { border-color: var(--cyan); color: var(--cyan); }

.post-switch {
    display: flex;
    justify-content: space-between;
    gap: 1.4rem;
    flex-wrap: wrap;
    margin: 2rem 0;
    font-size: 0.92rem;
}

.post-switch a { max-width: 46ch; }

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2.4rem 0 1rem;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    text-align: center;
    color: var(--ink);
    font-size: 0.92rem;
    transition: border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.pager .page-numbers:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 8px 20px -10px rgba(0,229,255,0.7);
}

.pager .page-numbers.current {
    background: linear-gradient(120deg, var(--violet), var(--cyan));
    border-color: transparent;
    color: #0B0A19;
    font-weight: 700;
}

.pager .page-numbers.dots { border: 0; color: var(--muted); }

/* ---------- Сайдбар и виджеты ---------- */

.sidebar {
    min-width: 0;
    background: var(--bg-side);
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    padding: 1.6rem 1.5rem;
    color: #E4DEF5;
}

.sidebar .wnode { margin-bottom: 1.8rem; }

.sidebar .wnode:last-child { margin-bottom: 0; }

.sidebar .wnode-title {
    font-size: 1.05rem;
    color: #F0EFF8;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 0.9rem;
}

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

.sidebar li { margin-bottom: 0.7rem; padding-left: 1rem; position: relative; }

.sidebar li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px;
    height: 6px;
    background: var(--amethyst);
    transform: rotate(45deg);
}

.sidebar a { color: #E4DEF5; }

.sidebar a:hover { color: var(--cyan); }

.sidebar .post-date, .sidebar .rss-date { display: block; color: #A99CC6; font-size: 0.78rem; }

.sidebar p { color: #D6CFEA; font-size: 0.94rem; }

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

.basement {
    background: var(--bg-deep);
    border-top: 1px solid var(--line-soft);
    padding: 3rem 0 1.8rem;
    color: #D8D2EA;
}

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

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

.basement .wnode-title {
    font-size: 1rem;
    color: #F0EFF8;
    margin-bottom: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--line-soft);
}

.basement p { color: #C9C2DF; font-size: 0.93rem; }

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

.basement li { margin-bottom: 0.6rem; padding-left: 0.95rem; position: relative; }

.basement li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 5px;
    height: 5px;
    background: var(--rose);
    transform: rotate(45deg);
}

.basement a { color: #DCD5EE; }

.basement a:hover { color: var(--cyan); }

.basement-rights {
    margin: 2.4rem 0 0;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line-soft);
    font-size: 0.85rem;
    color: var(--muted);
}

/* ---------- Cookie ---------- */

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

.cookie-note {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: rgba(11,10,25,0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
}

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

.cookie-note-text { margin: 0; font-size: 0.88rem; color: #D8D2EA; min-width: 0; flex: 1 1 320px; }

/* ---------- Поиск, комментарии, 404 ---------- */

.seek { margin: 1.6rem 0; }

.seek-label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

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

.seek-input {
    flex: 1 1 220px;
    min-width: 0;
    padding: 0.75rem 1rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(11,10,25,0.75);
    color: var(--ink);
    font: inherit;
    font-size: 0.95rem;
}

.seek-input:focus { outline: 1px solid var(--cyan); border-color: var(--cyan); }

.talk {
    margin-top: 2.6rem;
    padding: 1.9rem 1.8rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(20,17,43,0.55);
}

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

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

.talk-list .children { padding-left: 1.4rem; border-left: 1px solid var(--line); margin-top: 1rem; }

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

.talk-body {
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    background: rgba(11,10,25,0.55);
}

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

.talk-author { font-weight: 700; color: var(--amethyst); }

.talk-date { font-size: 0.8rem; color: var(--muted); }

.talk-text { font-size: 0.96rem; }

.talk-text p { margin: 0 0 0.6em; }

.talk-reply { font-size: 0.85rem; }

.talk-hold { color: var(--rose); font-size: 0.85rem; }

.talk-closed { color: var(--muted); }

.comment-respond { margin-top: 2rem; }

.comment-reply-title { font-size: 1.25rem; }

.comment-form label { display: block; font-size: 0.85rem; 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%;
    max-width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(11,10,25,0.75);
    color: var(--ink);
    font: inherit;
    font-size: 0.95rem;
}

.comment-form textarea:focus,
.comment-form input:focus { outline: 1px solid var(--cyan); border-color: var(--cyan); }

.comment-form p { margin-bottom: 1rem; }

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

.comment-form .submit { cursor: pointer; }

.lost {
    padding: 3rem 2.2rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(140deg, rgba(127,61,255,0.15), rgba(0,229,255,0.08));
    text-align: center;
}

.lost-code {
    display: block;
    font-family: "Orbitron", "Inter", Arial, sans-serif;
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(120deg, var(--amethyst), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lost-title { margin-top: 0.7rem; font-size: 2rem; }

.lost-note { color: #C6BDE0; max-width: 60ch; margin-inline: auto; }

.lost .seek { max-width: 520px; margin-inline: auto; text-align: left; }

.lost-actions { margin-top: 1.6rem; }

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

@media (max-width: 960px) {
    h1 { font-size: 2.5rem; }
    .single-title { font-size: 2rem; }
    .area-title { font-size: 1.9rem; }

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

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

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

    .primary-list {
        flex-direction: column;
        gap: 0.2rem;
        padding: 0.8rem 0 0.4rem;
        border-top: 1px solid var(--line);
        margin-top: 0.8rem;
    }

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

    .layout-single .content-area { width: 100%; }

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

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

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

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

    .hero-canvas { min-height: 460px; }

    .hero-glass { padding: 2rem 1.8rem; }
}

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

    h1 { font-size: 2.05rem; }
    h2 { font-size: 1.55rem; }

    .fs { padding: 2.6rem 0; }

    .fs-hero { padding: 0; }

    .hero-shell { padding: 3rem 0; }

    .hero-glass { padding: 1.7rem 1.35rem; }

    .hero-title { font-size: 1.95rem; }

    .card-grid-2, .card-grid-3, .stat-row, .portal-grid, .basement-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .single-post { padding: 1.5rem 1.3rem 1.8rem; }

    .talk { padding: 1.4rem 1.2rem; }

    .lost { padding: 2.2rem 1.4rem; }

    .stat-cell { padding: 1.4rem 1.2rem; }

    .portal-tile { padding: 1.4rem 1.3rem; }

    .stat-num { font-size: 2.5rem; }

    .tline { padding-left: 1.9rem; }

    .tline-dot { left: -1.9rem; }

    .btn { width: 100%; }

    .cookie-note-inner { padding: 0.9rem 0; }

    .cookie-note .btn { width: auto; }
}
