/*
Theme Name: dds_nightcitybluespod.com
Author: Артём Лисов
Description: Тема для информационного сайта о настольных RPG и киберпанке. Лавандово-пурпурная гамма, строгая вертикальная сетка, editorial-минимализм.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: ncblues
*/

:root {
    --nc-bg: #F3F0F7;
    --nc-bg-alt: #E8E2F0;
    --nc-dark: #1A1724;
    --nc-text: #1C1930;
    --nc-accent: #6C4B9E;
    --nc-accent-dark: #4B3570;
    --nc-accent-soft: #B8A3D6;
    --nc-muted: #8F82A3;
    --nc-line: #D1C9E0;
    --nc-white: #FFFFFF;
    --nc-head-font: "Arial Narrow", "Helvetica Neue Condensed", "Roboto Condensed", "PT Sans Narrow", system-ui, sans-serif;
    --nc-body-font: "Inter", "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--nc-body-font);
    font-size: 17px;
    line-height: 1.72;
    color: var(--nc-text);
    background-color: var(--nc-bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 420 420'%3E%3Cpath d='M40 300 L120 210 L215 250 L300 150 L390 195 L360 330 L230 390 L95 370 Z' fill='%231A1724' fill-opacity='0.04'/%3E%3Cpath d='M120 210 L215 250 L230 390' stroke='%236C4B9E' stroke-opacity='0.05' stroke-width='3' fill='none'/%3E%3Ccircle cx='300' cy='150' r='9' fill='%236C4B9E' fill-opacity='0.05'/%3E%3C/svg%3E"),
        repeating-linear-gradient(to right, rgba(28, 25, 48, 0.03) 0 0.5px, transparent 0.5px 40px),
        repeating-linear-gradient(to bottom, rgba(28, 25, 48, 0.03) 0 0.5px, transparent 0.5px 40px);
    background-repeat: no-repeat, repeat, repeat;
    background-position: right -60px bottom -40px, 0 0, 0 0;
    background-attachment: fixed, scroll, scroll;
}

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

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

.entry-content a::after,
.widget a::after,
.card-title a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1px;
    background: currentColor;
    transform: scaleY(0);
    transform-origin: bottom center;
    transition: transform 0.22s ease;
}

.entry-content a:hover::after,
.widget a:hover::after,
.card-title a:hover::after { transform: scaleY(1); }

a:hover { color: var(--nc-accent-dark); }

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

h1 { font-size: 2.6rem; letter-spacing: 0.04em; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.18rem; }

p { margin: 0 0 1.15em; }

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

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

.site-main { padding: 2.4rem 0 4rem; }

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

.site-head {
    position: relative;
    background: rgba(243, 240, 247, 0.72);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    border-bottom: 1px solid var(--nc-line);
}

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

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

.brand-logo { display: block; width: auto; max-height: 54px; }

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

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

.brand-name {
    font-family: var(--nc-head-font);
    font-size: 1.22rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--nc-text);
    display: block;
    line-height: 1.2;
}

a.brand-name:hover { color: var(--nc-accent); }

.brand-tagline {
    display: block;
    font-size: 0.79rem;
    line-height: 1.45;
    color: var(--nc-muted);
    margin-top: 0.35rem;
    max-width: 46ch;
}

.nav-toggle {
    display: none;
    border: 1px solid var(--nc-accent);
    background: transparent;
    color: var(--nc-accent);
    border-radius: 40px;
    padding: 0.5rem 1.1rem;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.7rem;
    flex-wrap: wrap;
}

.main-nav a {
    font-family: var(--nc-head-font);
    font-size: 1.02rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--nc-text);
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

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

.freq-bar {
    height: 3px;
    background: linear-gradient(90deg, var(--nc-accent) 0%, var(--nc-accent-soft) 100%);
}

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

.btn {
    display: inline-block;
    font-family: var(--nc-head-font);
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.78rem 1.9rem;
    border: 1px solid var(--nc-accent);
    border-radius: 40px;
    color: var(--nc-accent);
    background-image: linear-gradient(90deg, var(--nc-accent) 0%, var(--nc-accent) 100%);
    background-size: 0% 100%;
    background-repeat: no-repeat;
    background-position: left center;
    transition: background-size 0.32s ease, color 0.28s ease, box-shadow 0.28s ease;
}

.btn:hover {
    color: var(--nc-white);
    background-size: 100% 100%;
    box-shadow: 0 8px 22px rgba(108, 75, 158, 0.22);
}

.btn-small { padding: 0.55rem 1.35rem; font-size: 0.88rem; }

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

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

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

.breadcrumbs {
    font-size: 0.85rem;
    color: var(--nc-muted);
    margin: 0 0 1.9rem;
    letter-spacing: 0.02em;
}

.breadcrumbs a { color: var(--nc-accent); }

.breadcrumbs .sep { margin: 0 0.45rem; color: var(--nc-accent-soft); }

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

.section-title {
    position: relative;
    text-align: left;
    padding-left: 1.6rem;
    margin-bottom: 2.4rem;
    font-size: 2.05rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: -6px;
    width: 8px;
    height: 8px;
    background: var(--nc-accent);
}

.section-title::after {
    content: "";
    display: block;
    width: 33%;
    height: 2px;
    background: var(--nc-accent);
    margin-top: 0.85rem;
}

.page-title {
    font-size: 2.4rem;
    text-transform: uppercase;
    letter-spacing: 0.045em;
    margin-bottom: 1.5rem;
}

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

.cards { display: block; }

.card {
    display: flex;
    flex-direction: column;
    background: var(--nc-white);
    border: 1px solid transparent;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(108, 75, 158, 0.08);
    overflow: hidden;
    margin-bottom: 2rem;
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(108, 75, 158, 0.14);
    border-color: var(--nc-line);
}

.card-row { display: flex; flex: 1; min-width: 0; }

.card:nth-child(even) .card-row { flex-direction: row-reverse; }

.card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
    background: var(--nc-bg-alt);
}

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

.card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-body {
    flex: 1;
    min-width: 0;
    padding: 1.7rem 1.9rem;
    display: flex;
    flex-direction: column;
}

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

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

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

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

.card-excerpt { color: var(--nc-text); margin-bottom: 1.2rem; }

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

.card-actions { margin-top: auto; }

/* ---------- Главная ---------- */

.front-section { padding: 120px 0; }

.front-section--alt { background: var(--nc-bg-alt); }

.dot-divider {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0;
}

.dot-divider span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--nc-accent-soft);
    display: block;
}

/* Блок 1 — Hero */

.fs-hero {
    position: relative;
    overflow: hidden;
    background: var(--nc-bg-alt);
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 5rem 0;
}

.fs-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/assets/de8ffc2ab2bfbe963aa6.jpg");
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    pointer-events: none;
}

.fs-hero .front-inner { position: relative; z-index: 1; }

.hero-kicker {
    font-family: var(--nc-head-font);
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.85rem;
    color: var(--nc-accent);
    margin-bottom: 1.4rem;
}

.hero-title {
    font-size: 4.2rem;
    letter-spacing: 0.03em;
    max-width: 18ch;
    margin-bottom: 1.4rem;
    text-transform: uppercase;
}

.hero-title em { font-style: normal; color: var(--nc-accent); }

.hero-lead {
    max-width: 62ch;
    font-size: 1.1rem;
    color: var(--nc-text);
    margin-bottom: 2.4rem;
}

/* Блок 2 — Таймлайн */

.timeline {
    position: relative;
    margin: 0;
    padding: 0 0 0 2.6rem;
    list-style: none;
    border-left: 2px solid var(--nc-accent-soft);
}

.timeline li { position: relative; padding-bottom: 3rem; min-width: 0; }

.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
    content: "";
    position: absolute;
    left: calc(-2.6rem - 7px);
    top: 0.55rem;
    width: 12px;
    height: 12px;
    background: var(--nc-accent);
}

.timeline-date {
    font-family: var(--nc-head-font);
    font-size: 1.25rem;
    letter-spacing: 0.12em;
    color: var(--nc-accent);
    display: block;
    margin-bottom: 0.35rem;
}

.timeline h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }

.timeline p { margin: 0; color: var(--nc-text); max-width: 72ch; }

/* Блок 3 — Статистика */

.fs-stats { position: relative; }

.fs-stats::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, var(--nc-accent) 0%, var(--nc-accent-dark) 100%);
    opacity: 0.07;
    pointer-events: none;
}

.fs-stats .front-inner { position: relative; z-index: 1; }

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

.stat-item { min-width: 0; }

.stat-num {
    font-family: var(--nc-head-font);
    font-size: 5rem;
    line-height: 1;
    color: var(--nc-accent);
    letter-spacing: 0.01em;
    display: block;
    margin-bottom: 0.7rem;
}

.stat-label {
    color: var(--nc-muted);
    font-size: 0.98rem;
    line-height: 1.5;
    display: block;
}

/* Блок 4 — Карта тем */

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

.topic-tile {
    display: block;
    min-width: 0;
    background: var(--nc-white);
    border-radius: 16px;
    padding: 2rem 1.8rem;
    box-shadow: 0 10px 20px rgba(108, 75, 158, 0.08);
    transition: background 0.26s ease, color 0.26s ease, transform 0.26s ease, box-shadow 0.26s ease;
}

.topic-tile:hover {
    background: var(--nc-accent);
    color: var(--nc-white);
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(108, 75, 158, 0.2);
}

.topic-tile svg { display: block; margin-bottom: 1.2rem; }

.topic-tile .tile-name {
    font-family: var(--nc-head-font);
    font-size: 1.5rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--nc-text);
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.26s ease;
}

.topic-tile .tile-desc {
    font-size: 0.92rem;
    color: var(--nc-muted);
    display: block;
    transition: color 0.26s ease;
}

.topic-tile:hover .tile-name,
.topic-tile:hover .tile-desc { color: var(--nc-white); }

.topic-tile:hover svg { stroke: var(--nc-white); }

.topic-tile svg { stroke: var(--nc-accent); transition: stroke 0.26s ease; }

/* Последние записи на главной */

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

.latest-card {
    display: flex;
    flex-direction: column;
    background: var(--nc-white);
    border: 1px solid transparent;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(108, 75, 158, 0.08);
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
    min-width: 0;
}

.latest-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(108, 75, 158, 0.14);
    border-color: var(--nc-line);
}

.latest-thumb { display: block; }

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

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

.latest-body h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

.latest-body h3 a { color: var(--nc-text); }

.latest-body h3 a:hover { color: var(--nc-accent); }

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

.front-more { margin-top: 2.6rem; }

/* ---------- Контент записи и страницы ---------- */

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

.entry-content h2 { margin-top: 2.2rem; position: relative; padding-left: 1.4rem; }

.entry-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.05em;
    width: 8px;
    height: 8px;
    background: var(--nc-accent);
}

.entry-content h3 { margin-top: 1.8rem; }

.entry-content blockquote {
    margin: 1.8rem 0;
    padding: 0.4rem 0 0.4rem 24px;
    border-left: 4px solid var(--nc-accent);
    color: var(--nc-text);
}

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

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

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

.entry-meta {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--nc-muted);
    margin-bottom: 1.6rem;
}

.entry-thumb { margin-bottom: 1.8rem; }

.entry-thumb img { display: block; width: 100%; border-radius: 16px; }

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

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

th { background: var(--nc-bg-alt); font-family: var(--nc-head-font); letter-spacing: 0.04em; }

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

.sidebar { min-width: 0; }

.sidebar .widget {
    background: var(--nc-white);
    border: 1px solid var(--nc-line);
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(108, 75, 158, 0.07);
    padding: 1.6rem 1.7rem;
    margin-bottom: 1.8rem;
    color: var(--nc-text);
}

.sidebar .widget-title {
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--nc-text);
    position: relative;
    padding-left: 1.3rem;
    margin-bottom: 1.1rem;
}

.sidebar .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.1em;
    width: 8px;
    height: 8px;
    background: var(--nc-accent);
}

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

.widget li { margin-bottom: 0.75rem; line-height: 1.5; }

.sidebar .widget a { color: var(--nc-accent); }

.sidebar .widget a:hover { color: var(--nc-accent-dark); }

.sidebar .widget .post-date { color: var(--nc-muted); font-size: 0.82rem; display: block; }

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

.site-foot {
    background: var(--nc-dark);
    color: #D8D2E4;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

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

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

.site-foot .widget { color: #D8D2E4; margin-bottom: 1.6rem; }

.site-foot .widget-title {
    font-family: var(--nc-head-font);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--nc-white);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.3rem;
}

.site-foot .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 8px;
    height: 8px;
    background: var(--nc-accent-soft);
}

.site-foot .widget a { color: #C9BFDD; }

.site-foot .widget a:hover { color: var(--nc-white); }

.site-foot .widget .post-date { color: #9A8FB0; font-size: 0.82rem; display: block; }

.site-foot p { color: #C4BAD6; }

.foot-bottom {
    margin-top: 2.6rem;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(184, 163, 214, 0.22);
    font-size: 0.88rem;
    color: #9A8FB0;
}

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

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 2.6rem;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.55rem 1.05rem;
    border: 1px solid var(--nc-accent);
    border-radius: 40px;
    color: var(--nc-accent);
    font-family: var(--nc-head-font);
    letter-spacing: 0.05em;
    background: transparent;
    transition: background 0.24s ease, color 0.24s ease;
}

.pagination a.page-numbers:hover { background: var(--nc-accent); color: var(--nc-white); }

.pagination .page-numbers.current { background: var(--nc-accent); color: var(--nc-white); }

.pagination .page-numbers.dots { border-color: transparent; color: var(--nc-muted); }

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

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.search-form { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }

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

.search-form input[type="search"] {
    width: 100%;
    min-width: 0;
    padding: 0.7rem 1rem;
    border: 1px solid var(--nc-line);
    border-radius: 40px;
    font: inherit;
    font-size: 0.95rem;
    background: var(--nc-white);
    color: var(--nc-text);
}

.search-form input[type="search"]:focus { outline: 2px solid var(--nc-accent-soft); }

.search-form button {
    border: 1px solid var(--nc-accent);
    background: transparent;
    color: var(--nc-accent);
    border-radius: 40px;
    padding: 0.7rem 1.5rem;
    font-family: var(--nc-head-font);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background 0.24s ease, color 0.24s ease;
}

.search-form button:hover { background: var(--nc-accent); color: var(--nc-white); }

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

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

.comments-title, .comment-reply-title { font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.04em; }

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

.comment-list ul.children { list-style: none; padding-left: 1.6rem; }

.comment-body {
    background: var(--nc-white);
    border: 1px solid var(--nc-line);
    border-radius: 16px;
    padding: 1.3rem 1.5rem;
    margin-bottom: 1.2rem;
}

.comment-author { font-family: var(--nc-head-font); letter-spacing: 0.04em; }

.comment-meta { font-size: 0.8rem; color: var(--nc-muted); margin-bottom: 0.6rem; }

.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: 1px solid var(--nc-line);
    border-radius: 12px;
    font: inherit;
    background: var(--nc-white);
    color: var(--nc-text);
}

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

.comment-form .submit {
    border: 1px solid var(--nc-accent);
    background: transparent;
    color: var(--nc-accent);
    border-radius: 40px;
    padding: 0.75rem 1.8rem;
    font-family: var(--nc-head-font);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    cursor: pointer;
    transition: background 0.24s ease, color 0.24s ease;
}

.comment-form .submit:hover { background: var(--nc-accent); color: var(--nc-white); }

/* ---------- 404 ---------- */

.notfound-box { padding: 2.4rem 2.2rem; background: var(--nc-white); border-radius: 16px; box-shadow: 0 10px 20px rgba(108, 75, 158, 0.08); }

.notfound-code { font-family: var(--nc-head-font); font-size: 5rem; color: var(--nc-accent); line-height: 1; margin-bottom: 1rem; }

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: var(--nc-dark);
    color: #E2DCEE;
    padding: 1.1rem 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
    flex-wrap: wrap;
    box-shadow: 0 -8px 26px rgba(26, 23, 36, 0.24);
}

.cookie-banner p { margin: 0; font-size: 0.92rem; max-width: 70ch; color: #E2DCEE; }

.cookie-banner a { color: var(--nc-accent-soft); }

.cookie-accept {
    border: 1px solid var(--nc-accent-soft);
    background: transparent;
    color: var(--nc-accent-soft);
    border-radius: 40px;
    padding: 0.55rem 1.6rem;
    font-family: var(--nc-head-font);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.24s ease, color 0.24s ease;
}

.cookie-accept:hover { background: var(--nc-accent-soft); color: var(--nc-dark); }

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

@media (max-width: 960px) {
    h1 { font-size: 2.1rem; }
    .hero-title { font-size: 2.9rem; }
    .stat-num { font-size: 3.6rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.6rem; }
    .layout-single { width: 100%; }
    .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .front-section { padding: 80px 0; }
    .front-inner { width: 92%; }
    .card-thumb-wrap { flex: 0 0 220px; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .hero-title { font-size: 2.2rem; }
    .section-title { font-size: 1.6rem; }
    .front-section { padding: 60px 0; }
    .fs-hero { min-height: auto; padding: 3.4rem 0; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; }
    .stat-num { font-size: 3rem; }
    .topic-grid { grid-template-columns: minmax(0, 1fr); }
    .latest-grid { grid-template-columns: minmax(0, 1fr); }
    .foot-cols { grid-template-columns: minmax(0, 1fr); }
    .nav-toggle { display: inline-block; }
    .main-nav { flex: 1 1 100%; }
    .main-nav[hidden] { display: none !important; }
    .main-nav ul { flex-direction: column; gap: 0.9rem; padding-top: 1rem; }
    .card-row { flex-direction: column; }
    .card:nth-child(even) .card-row { flex-direction: column; }
    .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; }
    .card-body { padding: 1.4rem 1.3rem; }
    .fs-stats { padding: 60px 0; }
    .topic-tile { padding: 1.6rem 1.4rem; }
    .notfound-box { padding: 1.8rem 1.4rem; }
    .cookie-banner { padding: 1rem 1.2rem; }
}
