/*
Theme Name: dds_crystal-lux.su
Theme URI: https://crystal-lux.su/
Author: Марина Светлова
Description: Тема информационного ресурса о связи освещения, когнитивных способностей и творческого мышления. Концепция «Световой конструктивизм»: холодная стеклянная ясность, спектральные акценты, свечение.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: crlux
*/

:root {
    --bg: #161b22;
    --bg-alt: #1c2430;
    --bg-head: #0f1319;
    --bg-foot: #0b0e13;
    --bg-side: #1a212b;
    --bg-card: #1a212b;
    --text: #e6edf3;
    --accent: #58a6ff;
    --amber: #f0883e;
    --violet: #bc8cff;
    --muted: #8b949e;
    --line: #30363d;
    --glow: rgba(88, 166, 255, .55);
    --f-head: 'Unbounded', 'Segoe UI', Arial, sans-serif;
    --f-body: 'Fira Sans', 'Segoe UI', Roboto, Arial, sans-serif;
    --f-serif: 'Lora', Georgia, 'Times New Roman', serif;
}

/* Скрытие JS-элементов через [hidden] — до основных стилей */
.cookie-banner[hidden] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    font: 400 1.0625rem/1.7 var(--f-body);
    background-color: var(--bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 320'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%2358a6ff'/%3E%3Cstop offset='1' stop-color='%23bc8cff'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg opacity='.08'%3E%3Cpath d='M0 175 L178 150' stroke='%23e6edf3' stroke-width='4'/%3E%3Cpolygon points='215,30 330,255 100,255' fill='url(%23g)'/%3E%3Cpath d='M262 150 L420 96 M262 150 L420 132 M262 150 L420 168 M262 150 L420 204' stroke='url(%23g)' stroke-width='7'/%3E%3C/g%3E%3C/svg%3E"),
        repeating-linear-gradient(45deg, rgba(31, 41, 55, .15) 0 1px, transparent 1px 14px);
    background-repeat: no-repeat, repeat;
    background-position: right -30px top 110px, 0 0;
    background-size: 520px auto, auto;
}

img { max-width: 100%; height: auto; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: .01em;
    margin: 1.6em 0 .6em;
    color: var(--text);
}
h1 { font-size: 3.2rem; margin-top: 0; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

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

table { width: 100%; border-collapse: collapse; margin: 1.5em 0; border: 1px solid var(--line); }
th, td { border: 1px solid var(--line); padding: .6em .8em; text-align: left; }
th { background: var(--bg-alt); font-weight: 600; }

blockquote { margin: 1.5em 0; padding: 1rem 1.4rem; border-left: 3px solid var(--accent); background: rgba(88, 166, 255, .06); border-radius: 0 6px 6px 0; }
code, pre { font-family: Consolas, Menlo, monospace; background: #0f1319; border-radius: 6px; }
code { padding: .1em .35em; }
pre { padding: 1rem 1.2rem; overflow-x: auto; }
hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); margin: 2.5em 0; }

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

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

/* ---------- Спектральная полоса ---------- */
.spectrum-bar { height: 3px; background: linear-gradient(90deg, #58a6ff, #bc8cff 50%, #f0883e); }

/* ---------- Ссылки ---------- */
.entry-content a, .text-link, .breadcrumbs a, .comment-content a {
    color: var(--accent);
    background-image: linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size .3s ease, text-shadow .3s ease;
}
.entry-content a:hover, .text-link:hover, .breadcrumbs a:hover, .comment-content a:hover {
    background-size: 100% 1px;
    text-shadow: 0 0 8px rgba(88, 166, 255, .55);
}

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .8rem 1.5rem; border-radius: 6px;
    font: 600 .98rem/1.2 var(--f-body);
    cursor: pointer; border: 1px solid transparent;
    transition: box-shadow .3s ease, filter .3s ease, background-color .3s ease;
}
.btn .ico { width: 18px; height: 18px; }
.btn-primary {
    background: var(--accent); color: #0f1319;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 14px rgba(255, 255, 255, .18);
}
.btn-primary:hover {
    color: #0f1319; filter: brightness(1.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 14px rgba(255, 255, 255, .18), 0 0 24px var(--glow);
}
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-ghost:hover { color: var(--accent); background: rgba(88, 166, 255, .08); box-shadow: 0 0 20px rgba(88, 166, 255, .4); }

/* ---------- Шапка ---------- */
.site-header { background: var(--bg-head); border-bottom: 1px solid #1f2733; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.1rem 0; }
.brand { display: flex; align-items: center; gap: 1rem; color: var(--text); min-width: 0; flex: 1 1 auto; }
.brand-mark { flex: 0 0 auto; display: block; }
.brand-mark svg, .brand-logo { display: block; width: 52px; height: 52px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
    font: 600 1rem/1.3 var(--f-head); color: var(--text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.brand-desc {
    font-size: .8rem; line-height: 1.45; color: var(--muted); margin-top: .25rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.main-nav { flex: 0 0 auto; }
.main-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: .35rem; }
.main-menu li { position: relative; }
.main-menu a {
    display: block; padding: .55rem .9rem; border-radius: 6px;
    color: var(--text); font-weight: 500; white-space: nowrap;
    transition: color .25s ease, background-color .25s ease, text-shadow .25s ease;
}
.main-menu a:hover, .main-menu .current-menu-item > a {
    color: var(--accent); background: rgba(88, 166, 255, .08); text-shadow: 0 0 10px rgba(88, 166, 255, .5);
}
.main-menu .sub-menu {
    list-style: none; margin: 0; padding: .4rem; position: absolute; top: 100%; left: 0; min-width: 220px;
    background: var(--bg-head); border: 1px solid var(--line); border-radius: 8px; display: none; z-index: 20;
}
.main-menu li:hover > .sub-menu, .main-menu li:focus-within > .sub-menu { display: block; }
.nav-toggle {
    display: none; width: 44px; height: 44px; padding: 10px; border-radius: 6px;
    background: transparent; border: 1px solid var(--line); cursor: pointer; flex: 0 0 auto;
}
.nav-toggle span:not(.screen-reader-text) { display: block; height: 2px; background: var(--accent); margin: 4px 0; border-radius: 2px; }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs { font-size: .9rem; color: var(--muted); padding: 1.4rem 0 .4rem; }
.breadcrumbs .sep { color: var(--violet); margin: 0 .3rem; }
.breadcrumbs span:last-child { color: var(--text); }

/* ---------- Раскладки ---------- */
.site-main { padding-bottom: 4rem; }
.layout-single { display: block; width: 85%; margin-left: auto; margin-right: auto; padding-top: 1rem; }
.layout-with-sidebar {
    display: grid; grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    justify-content: space-between; align-items: start; padding-top: 1rem;
}
.content-area { min-width: 0; }

.page-title { font-size: 2.6rem; margin: .6rem 0 1.5rem; }
.archive-desc { color: var(--muted); margin-bottom: 2rem; }

/* ---------- Заголовки со светящейся точкой ---------- */
@keyframes crlux-pulse {
    0%, 100% { box-shadow: 0 0 6px 1px rgba(88, 166, 255, .6); transform: scale(1); }
    50% { box-shadow: 0 0 14px 4px rgba(88, 166, 255, .85); transform: scale(1.25); }
}
.entry-content h2, .entry-content h3, .comments-title, .comment-reply-title {
    position: relative; padding-left: 1.2rem;
}
.entry-content h2::before, .entry-content h3::before, .comments-title::before, .comment-reply-title::before {
    content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 6px 1px rgba(88, 166, 255, .6);
}
.entry-content h2:hover::before, .entry-content h3:hover::before, .sec-title:hover::before {
    animation: crlux-pulse 1.8s ease-in-out infinite;
}
.sec-title {
    display: flex; align-items: center; gap: .9rem;
    font-size: 1.7rem; margin: 0 0 2.2rem;
}
.sec-title::before {
    content: ""; flex: 0 0 8px; height: 8px; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 6px 1px rgba(88, 166, 255, .6);
}
.sec-title::after {
    content: ""; flex: 1 1 auto; min-width: 40px; height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

/* ---------- Разделитель «траектория фотонов» ---------- */
.photon-divider { position: relative; height: 1px; padding: 0; }
.photon-divider::before {
    content: ""; position: absolute; left: 20%; right: 20%; top: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    box-shadow: 0 0 8px rgba(88, 166, 255, .6);
}
.photon-divider::after {
    content: ""; position: absolute; left: 35%; right: 35%; top: 8px; height: 3px;
    background-image: radial-gradient(circle, rgba(188, 140, 255, .7) 1.2px, transparent 1.6px);
    background-size: 12px 3px;
}

/* ---------- Главная ---------- */
.front-section { padding: 5rem 0; }
.front-inner { width: 85%; margin-left: auto; margin-right: auto; }
.front-section--alt { background: var(--bg-alt); }

.hero {
    position: relative; overflow: hidden; background: var(--bg-head);
    min-height: 600px; display: flex; align-items: center; padding: 5rem 0;
}
.hero-media { position: absolute; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(11, 14, 19, .92) 0%, rgba(11, 14, 19, .72) 45%, rgba(11, 14, 19, .2) 100%),
                linear-gradient(0deg, rgba(22, 27, 34, 1) 0%, rgba(22, 27, 34, 0) 30%);
}
.hero .shell { position: relative; z-index: 2; width: min(92%, 1180px); }
.hero-text { max-width: 640px; min-width: 0; }
.hero h1 { font-size: 3.2rem; margin-bottom: 1.2rem; text-shadow: 0 0 30px rgba(88, 166, 255, .25); }
.hero-lead { font-size: 1.2rem; color: #c9d4de; margin-bottom: 2rem; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.aspect-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
.aspect {
    background: rgba(26, 33, 43, .85); border: 1px solid var(--line); border-radius: 10px;
    padding: 2rem 1.6rem; min-width: 0;
    transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.aspect:hover { border-color: var(--accent); box-shadow: 0 0 22px rgba(88, 166, 255, .25); transform: translateY(-4px); }
.aspect-ico {
    width: 54px; height: 54px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    color: var(--accent); border: 1px solid rgba(88, 166, 255, .35); background: rgba(88, 166, 255, .07); margin-bottom: 1.2rem;
}
.aspect-ico .ico { width: 28px; height: 28px; }
.aspect h3 { font-size: 1.05rem; margin: 0 0 .6rem; }
.aspect p { color: #b7c2cc; font-size: .96rem; margin: 0; }

.latest-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.latest-head .sec-title { flex: 1 1 320px; }
.latest-all { margin-bottom: 2.2rem; }

.quote-section { background: linear-gradient(135deg, #1c2430 0%, #0f1319 100%); padding: 6rem 0; }
.lux-quote {
    position: relative; margin: 0 auto; max-width: 900px;
    padding: 2.8rem 3rem 2.6rem 3.4rem;
    border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0;
    background: rgba(15, 19, 25, .45);
    box-shadow: -8px 0 22px -10px rgba(88, 166, 255, .9);
}
.lux-quote p {
    font: italic 500 2rem/1.45 var(--f-serif); color: var(--text); margin: 0;
}
.lux-quote p::before, .lux-quote p::after {
    font-family: var(--f-serif); color: var(--accent); text-shadow: 0 0 14px rgba(88, 166, 255, .9);
}
.lux-quote p::before { content: "«"; margin-right: .15em; }
.lux-quote p::after { content: "»"; margin-left: .15em; }
.lux-quote cite { display: block; margin-top: 1.4rem; font: normal .95rem/1.4 var(--f-body); color: var(--muted); }
.lux-quote cite::before { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--amber); vertical-align: middle; margin-right: .6rem; }

.topic-map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.topic-tile {
    position: relative; display: flex; align-items: center; gap: 1rem; min-width: 0;
    padding: 1.5rem 1.4rem; border-radius: 10px; overflow: hidden;
    color: var(--text); background: rgba(88, 166, 255, .05);
    border: 1px solid rgba(88, 166, 255, .18);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    transition: background-color .3s ease, box-shadow .3s ease, color .3s ease, border-color .3s ease;
}
.topic-tile::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
    background: linear-gradient(90deg, #58a6ff, #bc8cff, #f0883e); opacity: .7;
}
.topic-tile .ico { width: 30px; height: 30px; flex: 0 0 30px; color: var(--accent); transition: color .3s ease; }
.topic-name { font: 500 1rem/1.35 var(--f-head); min-width: 0; }
.topic-arrow { margin-left: auto; flex: 0 0 auto; color: var(--muted); transition: color .3s ease, transform .3s ease; }
.topic-arrow .ico { width: 20px; height: 20px; flex-basis: 20px; color: inherit; }
.topic-tile:hover { background: var(--accent); border-color: var(--accent); color: #0f1319; box-shadow: 0 0 26px rgba(88, 166, 255, .55); }
.topic-tile:hover .ico, .topic-tile:hover .topic-arrow { color: #0f1319; }
.topic-tile:hover .topic-arrow { transform: translateX(4px); }

/* ---------- Карточки записей ---------- */
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; }
.card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
    display: flex; flex-direction: column; min-width: 0; overflow: hidden;
    background: var(--bg-card); border: 1px solid var(--line); border-radius: 10px;
    box-shadow: 0 10px 28px rgba(8, 20, 40, .35);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover {
    transform: translateY(-4px); border-color: var(--accent);
    box-shadow: 0 16px 36px rgba(20, 60, 120, .45), 0 0 18px rgba(88, 166, 255, .25);
}
.card-thumb { position: relative; overflow: hidden; }
.card-thumb a { display: block; }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-thumb img { transform: scale(1.05); }
.card-thumb::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; pointer-events: none;
    background: linear-gradient(to bottom, rgba(26, 33, 43, 0), var(--bg-card));
}
.card-thumb-empty {
    display: block; aspect-ratio: 16 / 10;
    background:
        radial-gradient(circle at 70% 35%, rgba(188, 140, 255, .35), transparent 45%),
        radial-gradient(circle at 30% 60%, rgba(88, 166, 255, .35), transparent 50%),
        linear-gradient(135deg, #1c2430, #0f1319);
}
.card-body { flex: 1; display: flex; flex-direction: column; padding: .4rem 1.4rem 1.5rem; min-width: 0; }
.card-meta { font-size: .85rem; color: var(--muted); margin-bottom: .5rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.card-cat { color: var(--violet); }
.card-title { font-size: 1.12rem; margin: 0 0 .7rem; line-height: 1.35; overflow-wrap: anywhere; }
.card-title a { color: var(--text); transition: color .25s ease; }
.card-title a:hover { color: var(--accent); }
.card-excerpt { color: #b7c2cc; font-size: .95rem; flex: 1; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt img, .card-excerpt figure { display: none; }
.card-more { margin-top: .9rem; font-weight: 600; font-size: .92rem; align-self: flex-start; }

/* ---------- Пагинация (type => plain) ---------- */
.pager { display: flex; flex-wrap: wrap; gap: .5rem; margin: 3rem 0 0; }
.pager .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 42px; height: 42px; padding: 0 .9rem; border-radius: 6px;
    border: 1px solid var(--line); color: var(--text); background: var(--bg-side);
    transition: border-color .25s ease, box-shadow .25s ease, color .25s ease;
}
.pager a.page-numbers:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 14px rgba(88, 166, 255, .35); }
.pager .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #0f1319; font-weight: 600; box-shadow: 0 0 16px rgba(88, 166, 255, .45); }
.pager .page-numbers.dots { border: 0; background: none; box-shadow: none; }

/* ---------- Запись / страница ---------- */
.entry-header { margin-bottom: 1.8rem; }
.entry-title { font-size: 2.6rem; margin: .6rem 0 .8rem; overflow-wrap: anywhere; }
.entry-meta { color: var(--muted); font-size: .92rem; display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.entry-meta a { color: var(--violet); }
.entry-thumb { margin: 0 0 2rem; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.entry-thumb img { display: block; width: 100%; height: auto; }
.entry-content { min-width: 0; overflow-wrap: break-word; }
.entry-content img { border-radius: 8px; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .35em; }
.entry-content li::marker { color: var(--accent); }
.entry-tags { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.entry-tags a {
    font-size: .85rem; padding: .3rem .75rem; border-radius: 6px; color: var(--violet);
    border: 1px solid rgba(188, 140, 255, .35); background: rgba(188, 140, 255, .06);
}
.entry-tags a:hover { box-shadow: 0 0 12px rgba(188, 140, 255, .4); }
.page-links { margin-top: 1.5rem; }

/* ---------- Сайдбар ---------- */
.sidebar {
    background: var(--bg-side); border: 1px solid var(--line); border-radius: 10px;
    padding: 1.6rem 1.5rem; min-width: 0; color: var(--text);
}
.sidebar .widget { margin-bottom: 2rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title { font-size: 1rem; color: var(--text); margin: 0 0 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .5rem 0; border-bottom: 1px dashed #2a323d; color: var(--text); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: #cfe3ff; transition: color .25s ease; }
.sidebar a:hover { color: var(--accent); }
.sidebar .post-date, .sidebar .rss-date { display: block; color: var(--muted); font-size: .82rem; }
.sidebar p, .sidebar .textwidget { color: #c9d1d9; }

/* ---------- Поиск ---------- */
.search-form { display: flex; gap: .5rem; max-width: 520px; }
.search-form label { flex: 1; min-width: 0; }
.search-field {
    width: 100%; padding: .75rem 1rem; border-radius: 6px; font: inherit;
    border: 1px solid var(--line); background: #0f1319; color: var(--text);
}
.search-field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 12px rgba(88, 166, 255, .35); }
.search-submit { flex: 0 0 auto; }

/* ---------- Комментарии ---------- */
.comments-area { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list .children { list-style: none; padding-left: 1.6rem; border-left: 1px solid var(--line); }
.comment-body { background: var(--bg-side); border: 1px solid var(--line); border-radius: 10px; padding: 1.2rem 1.4rem; margin-bottom: 1rem; }
.comment-author { display: flex; align-items: center; gap: .7rem; font-weight: 600; }
.comment-author img { border-radius: 50%; display: block; }
.comment-author .says { display: none; }
.comment-metadata { font-size: .82rem; margin: .2rem 0 .6rem; }
.comment-metadata a { color: var(--muted); }
.reply a { font-size: .88rem; font-weight: 600; }
.comment-form label { display: block; margin-bottom: .3rem; color: var(--muted); font-size: .92rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; padding: .7rem .9rem; border-radius: 6px; font: inherit;
    border: 1px solid var(--line); background: #0f1319; color: var(--text);
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--accent); }
.comment-form .submit {
    padding: .8rem 1.5rem; border-radius: 6px; border: 0; cursor: pointer; font: 600 1rem var(--f-body);
    background: var(--accent); color: #0f1319; box-shadow: inset 0 0 14px rgba(255, 255, 255, .18);
}
.comment-form .submit:hover { filter: brightness(1.12); box-shadow: 0 0 22px var(--glow); }
.comment-form-cookies-consent label { display: inline; }

/* ---------- 404 ---------- */
.error-box { text-align: left; padding: 2rem 0; }
.error-code {
    font: 700 6rem/1 var(--f-head); margin: 0 0 1rem;
    background: linear-gradient(90deg, #58a6ff, #bc8cff, #f0883e);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.error-box .search-form { margin: 1.8rem 0; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--bg-foot); color: #c9d1d9; margin-top: 0; border-top: 1px solid #1a2029; }
.site-footer .footer-glow { height: 1px; background: linear-gradient(90deg, transparent, var(--accent), var(--violet), transparent); }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; padding: 3.5rem 0 2.5rem; }
.footer-col { min-width: 0; }
.site-footer .widget { margin-bottom: 1.5rem; }
.site-footer .widget-title { font-size: 1rem; color: #e6edf3; margin: 0 0 1rem; }
.site-footer p, .site-footer .textwidget { color: #aeb8c2; font-size: .95rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: .3rem 0; color: #aeb8c2; }
.site-footer a { color: #cfe3ff; transition: color .25s ease, text-shadow .25s ease; }
.site-footer a:hover { color: var(--accent); text-shadow: 0 0 8px rgba(88, 166, 255, .5); }
.site-footer .post-date { color: var(--muted); font-size: .82rem; display: block; }
.footer-bottom { border-top: 1px solid #1a2029; padding: 1.3rem 0; font-size: .88rem; color: var(--muted); }

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 999;
    display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
    max-width: 880px; margin: 0 auto; padding: 1rem 1.4rem;
    background: rgba(15, 19, 25, .96); border: 1px solid var(--line); border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 18px rgba(88, 166, 255, .15);
}
.cookie-banner p { margin: 0; font-size: .92rem; color: #c9d1d9; min-width: 0; }
.cookie-banner .btn { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    h1, .hero h1 { font-size: 2.4rem; }
    .page-title, .entry-title { font-size: 2rem; }
    .nav-toggle { display: block; }
    .header-row { flex-wrap: wrap; }
    .brand { flex: 1 1 0; }
    .main-nav { display: none; flex: 1 1 100%; }
    .main-nav.is-open { display: block; }
    .main-menu { flex-direction: column; gap: .2rem; padding-bottom: .5rem; }
    .main-menu .sub-menu { position: static; display: block; border: 0; padding-left: 1rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 2.5rem; }
    .layout-single, .front-inner { width: 100%; }
    .aspect-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topic-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
    .lux-quote p { font-size: 1.6rem; }
    body { background-size: 340px auto, auto; }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    h1, .hero h1 { font-size: 1.9rem; }
    h2 { font-size: 1.45rem; }
    .sec-title { font-size: 1.3rem; }
    .page-title, .entry-title { font-size: 1.65rem; }
    .brand-desc { display: none; }
    .brand-mark svg, .brand-logo { width: 42px; height: 42px; }
    .front-section { padding: 3.2rem 0; }
    .hero { min-height: 480px; padding: 3.5rem 0; }
    .hero-lead { font-size: 1.05rem; }
    .aspect-grid, .card-grid, .card-grid--three, .topic-map, .footer-cols { grid-template-columns: minmax(0, 1fr); }
    .quote-section { padding: 3.5rem 0; }
    .lux-quote { padding: 1.8rem 1.4rem 1.6rem 1.6rem; }
    .lux-quote p { font-size: 1.3rem; }
    .sidebar { padding: 1.3rem 1.2rem; }
    .cookie-banner { flex-direction: column; align-items: flex-start; padding: 1rem 1.2rem; }
    .search-form { flex-direction: column; }
    .error-code { font-size: 4rem; }
}
