/*
Theme Name: dds_hostinn.ru
Author: Анна Соколова
Description: Тёмная тема в стиле lavender tech со стеклянными карточками и асимметричной сеткой для информационно-образовательного портала о профессии дизайнера интерьера.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: intdes
*/

:root {
    --bg: #0d0a14;
    --bg-alt: #161021;
    --bg-foot: #09070e;
    --bg-side: #1c1629;
    --deep: #2a1f3d;
    --text: #f0ecf7;
    --acc: #b7a4ff;
    --acc2: #ff7eb3;
    --muted: #8a7a9e;
    --glass: rgba(255, 255, 255, 0.04);
    --glass-line: rgba(183, 164, 255, 0.18);
    --font-head: "Urbanist", "Quicksand", "Segoe UI", "Trebuchet MS", sans-serif;
    --font-text: "Inter", "DM Sans", "Segoe UI", Arial, sans-serif;
}

/* --- служебные правила скрытия (идут до основных блоков) --- */

.cookie-banner[hidden] { display: none !important; }
.primary-nav[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);
    background-image:
        repeating-linear-gradient(60deg, rgba(42, 31, 61, 0.55) 0 1px, transparent 1px 34px),
        repeating-linear-gradient(-60deg, rgba(42, 31, 61, 0.55) 0 1px, transparent 1px 34px),
        repeating-linear-gradient(0deg, rgba(42, 31, 61, 0.35) 0 1px, transparent 1px 58px);
    color: var(--text);
    font-family: var(--font-text);
    font-size: 17px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    z-index: -1;
    width: 620px;
    height: 620px;
    right: -180px;
    bottom: -220px;
    background: radial-gradient(circle at 35% 35%, rgba(183, 164, 255, 0.30), rgba(255, 126, 179, 0.16) 55%, rgba(13, 10, 20, 0) 72%);
    filter: blur(30px);
    pointer-events: none;
}

body.page-template-page-blog::before,
body.single::before,
body.page::before,
body.archive::before,
body.search::before,
body.error404::before {
    right: auto;
    bottom: auto;
    left: -220px;
    top: -180px;
}

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

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

.entry a,
.card-excerpt a,
.foot-panel a,
.panel a {
    position: relative;
    background-image: linear-gradient(90deg, var(--acc), var(--acc2));
    background-repeat: no-repeat;
    background-size: 0 1px;
    background-position: 0 100%;
    transition: background-size 0.28s ease, color 0.2s ease;
}

.entry a:hover,
.card-excerpt a:hover,
.foot-panel a:hover,
.panel a:hover {
    background-size: 100% 1px;
    color: var(--acc2);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--text);
    line-height: 1.22;
    letter-spacing: 0.01em;
    margin: 0 0 0.7em;
}

p { margin: 0 0 1.1em; }

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

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.grad-text {
    background-image: linear-gradient(100deg, var(--acc), var(--acc2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --- контейнеры --- */

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

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

.site-main {
    display: block;
    padding: 2.6rem 0 4rem;
    min-height: 50vh;
}

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

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

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

/* --- верхняя стеклянная полоса и шапка --- */

.glass-rail {
    height: 2px;
    background: linear-gradient(90deg, rgba(183, 164, 255, 0.15), var(--acc) 35%, var(--acc2) 70%, rgba(255, 126, 179, 0.15));
    box-shadow: 0 2px 22px rgba(183, 164, 255, 0.35);
}

.topbar {
    position: relative;
    background: rgba(13, 10, 20, 0.72);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    border-bottom: 1px solid rgba(183, 164, 255, 0.12);
}

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

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

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

.brand-logo {
    display: block;
    width: 52px;
    height: 52px;
}

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
    letter-spacing: 0.02em;
    max-width: 46ch;
}

.brand-name:hover { color: var(--acc); }

.brand-tagline {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--muted);
    max-width: 58ch;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid var(--glass-line);
    border-radius: 50px;
    color: var(--text);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: var(--font-head);
    font-size: 0.9rem;
}

.nav-toggle span {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--acc);
    margin: 3px 0;
}

.nav-toggle em { font-style: normal; }

.nav-toggle.is-active { border-color: var(--acc2); }

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

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

.nav-list a {
    display: inline-block;
    position: relative;
    padding: 0.3rem 0;
    font-family: var(--font-head);
    font-size: 0.98rem;
    color: var(--text);
    letter-spacing: 0.02em;
}

.nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--acc), var(--acc2));
    transition: right 0.28s ease;
}

.nav-list a:hover { color: var(--acc); }
.nav-list a:hover::after { right: 0; }

.nav-list .current-menu-item > a { color: var(--acc); }
.nav-list .current-menu-item > a::after { right: 0; }

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

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

.btn {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    border-radius: 50px;
    border: 1px solid var(--acc);
    background: transparent;
    color: var(--acc);
    font-family: var(--font-head);
    font-size: 0.96rem;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease, background 0.22s ease;
}

.btn:hover {
    border-color: var(--acc2);
    color: var(--acc2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 126, 179, 0.22);
}

.btn-solid {
    background: rgba(183, 164, 255, 0.12);
    color: var(--text);
}

.btn-solid:hover {
    background: rgba(255, 126, 179, 0.14);
    color: var(--text);
}

.btn-ghost {
    border-color: transparent;
    padding-left: 0;
    padding-right: 0;
    color: var(--acc);
}

.btn-ghost:hover {
    border-color: transparent;
    box-shadow: none;
    color: var(--acc2);
}

.btn-arrow span { transition: transform 0.22s ease; display: inline-block; }
.btn-arrow:hover span { transform: translateX(4px); }

/* --- заголовки секций --- */

.sec-title {
    position: relative;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
}

.sec-title::before,
.entry h2::before,
.entry h3::before,
.panel-title::before,
.foot-panel-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--acc2);
    box-shadow: 0 0 12px rgba(255, 126, 179, 0.7);
    animation: dotPulse 4.5s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 0.45; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
    .sec-title::before,
    .entry h2::before,
    .entry h3::before,
    .panel-title::before,
    .foot-panel-title::before { animation: none; }
    html { scroll-behavior: auto; }
}

.offset-left { transform: translateX(-1.4rem); }
.offset-right { transform: translateX(1.8rem); }

.sec-lead {
    color: var(--muted);
    max-width: 62ch;
    margin-bottom: 1.9rem;
}

.offset-right + .sec-lead { margin-left: 1.8rem; }

/* --- разделители --- */

.rule-diag {
    height: 1px;
    margin: 3.4rem 0;
    background: linear-gradient(100deg, rgba(183, 164, 255, 0) 0%, rgba(183, 164, 255, 0.55) 45%, rgba(255, 126, 179, 0.4) 60%, rgba(183, 164, 255, 0) 100%);
    transform: rotate(-0.35deg);
}

.rule-dots {
    height: 10px;
    margin: 3.4rem 0;
    background-image: radial-gradient(circle, rgba(183, 164, 255, 0.55) 1.6px, transparent 1.8px);
    background-size: 22px 10px;
    background-repeat: repeat-x;
    background-position: center;
}

/* --- hero --- */

.hero {
    position: relative;
    margin-top: 1.4rem;
    border-radius: 22px;
    overflow: hidden;
    isolation: isolate;
}

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

.hero-veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(105deg, rgba(13, 10, 20, 0.93) 0%, rgba(22, 16, 33, 0.78) 48%, rgba(43, 27, 61, 0.55) 100%);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 2rem;
    padding: 4.2rem 2.6rem;
}

.hero-kicker {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    border: 1px solid var(--glass-line);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    font-size: 0.8rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--acc);
}

.hero-title {
    font-size: clamp(2.4rem, 7vw, 4.2rem);
    letter-spacing: 0.03em;
    margin: 1.1rem 0 0.9rem;
}

.hero-sub {
    color: #d9d2e8;
    max-width: 56ch;
    font-size: 1.06rem;
    margin-bottom: 1.8rem;
}

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

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

.front-section { padding: 2.8rem 0; }

.topics-section,
.path-section { padding: 2.8rem 0; }

.latest-section {
    background: var(--bg-alt);
    border-radius: 20px;
    padding: 2.8rem 2.2rem;
}

.stats-section {
    background:
        repeating-linear-gradient(115deg, rgba(183, 164, 255, 0.07) 0 2px, transparent 2px 16px),
        linear-gradient(150deg, var(--bg-alt), var(--deep));
    border-radius: 20px;
    padding: 3rem 2.2rem;
    margin-top: 3.2rem;
}

/* --- плашки рубрикатора --- */

.tile-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.1rem;
}

.tile {
    grid-column: span 2;
    display: block;
    min-width: 0;
    padding: 1.5rem 1.4rem;
    border-radius: 14px;
    border: 1px solid var(--glass-line);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--text);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.tile-d { grid-column: 2 / span 2; }
.tile-e { grid-column: 4 / span 2; }
.tile-f { grid-column: 3 / span 2; }

.tile:hover {
    transform: translateY(-5px);
    border-color: var(--acc2);
    box-shadow: 0 10px 32px rgba(255, 126, 179, 0.2);
}

.tile-icon {
    display: block;
    width: 34px;
    height: 34px;
    color: var(--acc);
    margin-bottom: 0.9rem;
}

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

.tile-icon svg { display: block; width: 100%; height: 100%; }

.tile-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.18rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.3rem;
}

.tile-hint {
    display: block;
    font-size: 0.86rem;
    color: var(--muted);
    line-height: 1.5;
}

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

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

.path-line::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    transform: translateX(-0.5px);
    background: linear-gradient(180deg, rgba(183, 164, 255, 0), var(--acc) 12%, var(--acc) 88%, rgba(183, 164, 255, 0));
    box-shadow: 0 0 16px rgba(183, 164, 255, 0.55);
}

.path-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    width: 52%;
    margin-bottom: 2.2rem;
    min-width: 0;
}

.path-step.step-left { margin-right: auto; flex-direction: row-reverse; text-align: right; }
.path-step.step-right { margin-left: auto; }

.path-step::after {
    content: "";
    position: absolute;
    top: 1.6rem;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--acc2);
    box-shadow: 0 0 14px rgba(255, 126, 179, 0.6);
}

.path-step.step-left::after { right: -5.5px; }
.path-step.step-right::after { left: -5.5px; }

.step-num {
    flex: 0 0 auto;
    font-family: var(--font-head);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
}

.step-card {
    min-width: 0;
    padding: 1.2rem 1.4rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 8px 30px rgba(183, 164, 255, 0.12);
}

.step-card h3 { font-size: 1.14rem; margin-bottom: 0.4rem; }
.step-card p { margin: 0; color: #cdc4dd; font-size: 0.95rem; }

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

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

.stat-cell { min-width: 0; text-align: center; }

.stat-num {
    display: block;
    font-family: var(--font-head);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.05;
}

.stat-cap {
    display: block;
    margin-top: 0.5rem;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

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

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 8px 30px rgba(183, 164, 255, 0.15);
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(183, 164, 255, 0.3);
    box-shadow: 0 16px 44px rgba(183, 164, 255, 0.28);
}

.card-thumb {
    position: relative;
    overflow: hidden;
}

.card-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(183, 164, 255, 0.28), rgba(255, 126, 179, 0.18));
    mix-blend-mode: screen;
    pointer-events: none;
}

.card-thumb a { display: block; }

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

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

.card-meta {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.2rem;
    line-height: 1.35;
    margin-bottom: 0.6rem;
}

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

.card-excerpt {
    color: #c9c0d9;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

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

.card-more { margin-top: auto; align-self: flex-start; }

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

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

.trail {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
    word-break: break-word;
}

.trail a { color: var(--acc); }
.trail a:hover { color: var(--acc2); }
.trail-sep { color: rgba(183, 164, 255, 0.5); margin: 0 0.2rem; }

/* --- контент страниц и записей --- */

.page-head {
    font-size: clamp(1.9rem, 4.2vw, 2.9rem);
    margin-bottom: 1rem;
}

.single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.6rem;
}

.single-cats { color: var(--acc); }

.single-thumb {
    margin: 0 0 1.8rem;
    border-radius: 16px;
    overflow: hidden;
}

.single-thumb img { display: block; width: 100%; }

.entry { font-size: 1.02rem; }

.entry h2 {
    position: relative;
    padding-left: 1.5rem;
    font-size: 1.7rem;
    margin-top: 2rem;
}

.entry h3 {
    position: relative;
    padding-left: 1.5rem;
    font-size: 1.32rem;
    margin-top: 1.6rem;
}

.entry h4 { font-size: 1.14rem; margin-top: 1.4rem; }

.entry ul, .entry ol { margin: 0 0 1.2rem; }
.entry li { margin-bottom: 0.5rem; }

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

.entry blockquote {
    margin: 1.8rem 0;
    padding: 1.6rem 1.8rem;
    border-radius: 14px;
    background: linear-gradient(150deg, var(--bg-side), var(--deep));
    border-left: 3px solid var(--acc2);
    color: #ded6ec;
    font-size: 1.06rem;
}

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

.entry code {
    background: rgba(183, 164, 255, 0.12);
    padding: 0.1rem 0.4rem;
    border-radius: 5px;
    font-size: 0.92em;
}

.entry pre {
    background: var(--bg-alt);
    padding: 1.2rem 1.4rem;
    border-radius: 12px;
    overflow-x: auto;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.6rem;
    border: 1px solid rgba(183, 164, 255, 0.35);
}

th, td {
    border: 1px solid rgba(183, 164, 255, 0.28);
    padding: 0.7rem 0.9rem;
    text-align: left;
}

th { background: rgba(183, 164, 255, 0.1); font-family: var(--font-head); }

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

.tag-chip {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    border: 1px solid var(--glass-line);
    font-size: 0.84rem;
    color: var(--acc);
}

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

.post-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin: 2.6rem 0;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(183, 164, 255, 0.15);
}

.post-nav-link {
    max-width: 46%;
    font-size: 0.92rem;
    color: var(--acc);
}

.post-nav-next { margin-left: auto; text-align: right; }

@media (max-width: 600px) {
    .post-nav-link { max-width: 100%; }
}

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

.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.45rem 0.85rem;
    text-align: center;
    border-radius: 50px;
    border: 1px solid var(--glass-line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-family: var(--font-head);
    font-size: 0.94rem;
    transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pager a.page-numbers:hover {
    border-color: var(--acc2);
    color: var(--acc2);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 126, 179, 0.2);
}

.pager .page-numbers.current {
    border-color: var(--acc);
    color: var(--bg);
    background: linear-gradient(100deg, var(--acc), var(--acc2));
}

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

/* --- сайдбар --- */

.sidebar { min-width: 0; }

.panel {
    background: rgba(28, 22, 41, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(183, 164, 255, 0.14);
    border-radius: 16px;
    padding: 1.4rem 1.5rem;
    margin-bottom: 1.6rem;
    color: var(--text);
}

.panel-title {
    position: relative;
    padding-left: 1.4rem;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.9rem;
}

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

.panel li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(183, 164, 255, 0.16);
    color: var(--text);
    font-size: 0.94rem;
}

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

.panel a { color: var(--text); }
.panel a:hover { color: var(--acc2); }

.panel .post-date {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

/* --- форма поиска --- */

.search-box {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.2rem 0 1.8rem;
    align-items: center;
}

.search-label { flex: 1 1 200px; min-width: 0; }

.search-field {
    width: 100%;
    padding: 0.65rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--glass-line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-family: var(--font-text);
    font-size: 0.95rem;
}

.search-field::placeholder { color: var(--muted); }
.search-field:focus { outline: none; border-color: var(--acc2); box-shadow: 0 0 0 3px rgba(255, 126, 179, 0.15); }

/* --- комментарии --- */

.comments-area { margin-top: 3rem; }

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

.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }

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

.comment-inner {
    padding: 1.2rem 1.4rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(183, 164, 255, 0.12);
    margin-bottom: 1rem;
}

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

.comment-author { font-family: var(--font-head); color: var(--acc); }
.comment-date { font-size: 0.8rem; color: var(--muted); }
.comment-text p:last-child { margin-bottom: 0; }
.comment-reply { margin-top: 0.6rem; font-size: 0.88rem; }

.comment-respond {
    padding: 1.6rem 1.8rem;
    border-radius: 16px;
    background: rgba(28, 22, 41, 0.7);
    border: 1px solid rgba(183, 164, 255, 0.14);
}

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

.comment-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--glass-line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-family: var(--font-text);
    font-size: 0.95rem;
}

.comment-form textarea { border-radius: 14px; resize: vertical; }

.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--acc2); }

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

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

/* --- 404 --- */

.err-area { text-align: center; padding: 2rem 0 3rem; }

.err-code {
    display: block;
    font-family: var(--font-head);
    font-size: clamp(4rem, 14vw, 8rem);
    font-weight: 700;
    line-height: 1;
}

.err-note { color: var(--muted); max-width: 52ch; margin-left: auto; margin-right: auto; }

.err-area .search-box { justify-content: center; }

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

.site-foot {
    background: var(--bg-foot);
    border-top: 1px solid rgba(183, 164, 255, 0.12);
    padding: 3rem 0 2rem;
    color: var(--text);
}

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

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

.foot-panel {
    color: #ded7ea;
    font-size: 0.94rem;
    margin-bottom: 1.4rem;
}

.foot-panel-title {
    position: relative;
    padding-left: 1.4rem;
    font-size: 1.06rem;
    color: var(--text);
    margin-bottom: 0.8rem;
}

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

.foot-panel li { padding: 0.35rem 0; }

.foot-panel a { color: #ded7ea; }
.foot-panel a:hover { color: var(--acc2); }

.foot-panel .post-date { display: block; color: var(--muted); font-size: 0.8rem; }

.foot-note {
    margin: 2.4rem 0 0;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(183, 164, 255, 0.1);
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.6;
}

/* --- cookie-баннер --- */

.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 60;
    width: min(94%, 880px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.4rem;
    border-radius: 16px;
    border: 1px solid rgba(183, 164, 255, 0.22);
    background: rgba(22, 16, 33, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.cookie-banner p {
    margin: 0;
    flex: 1 1 320px;
    min-width: 0;
    font-size: 0.9rem;
    color: #ded7ea;
}

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

@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .layout-single { width: 100%; }
    .wide-zone { width: 92%; }
    .hero-inner { grid-template-columns: minmax(0, 1fr); padding: 3.2rem 2rem; }
    .hero-art { max-width: 260px; }
    .tile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .tile, .tile-d, .tile-e, .tile-f { grid-column: span 2; }
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .brand-name { font-size: 0.92rem; }
}

@media (max-width: 760px) {
    .nav-toggle { display: inline-flex; }
    .primary-nav { flex: 1 1 100%; display: none; }
    .primary-nav.is-open { display: block; }
    .nav-list { flex-direction: column; gap: 0.2rem; padding-top: 0.8rem; }
    .nav-list a { padding: 0.55rem 0; }
    .topbar-inner { padding: 0.9rem 0; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .site-main { padding: 1.8rem 0 3rem; }
    .hero { border-radius: 16px; }
    .hero-inner { padding: 2.4rem 1.3rem; }
    .hero-art { display: none; }
    .front-section { padding: 2rem 0; }
    .latest-section { padding: 2rem 1.3rem; border-radius: 16px; }
    .stats-section { padding: 2.2rem 1.3rem; border-radius: 16px; margin-top: 2.4rem; }
    .offset-left, .offset-right { transform: none; }
    .offset-right + .sec-lead { margin-left: 0; }
    .sec-title { font-size: 1.5rem; }
    .tile-grid { grid-template-columns: minmax(0, 1fr); }
    .tile, .tile-d, .tile-e, .tile-f { grid-column: auto; }
    .path-line::before { left: 6px; }
    .path-step { width: 100%; padding-left: 1.8rem; }
    .path-step.step-left { flex-direction: row; text-align: left; margin-right: 0; }
    .path-step.step-right { margin-left: 0; }
    .path-step.step-left::after,
    .path-step.step-right::after { left: 1px; right: auto; }
    .step-num { font-size: 1.9rem; }
    .stats-row { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
    .foot-grid { grid-template-columns: minmax(0, 1fr); }
    .card-grid { grid-template-columns: minmax(0, 1fr); }
    .entry blockquote { padding: 1.2rem 1.2rem; }
    .comment-respond { padding: 1.2rem 1.2rem; }
    .cookie-banner { padding: 0.9rem 1.1rem; bottom: 10px; }
    .panel { padding: 1.2rem 1.2rem; }
}
