/*
Theme Name: dds_ephoria-games.com
Author: Антон Миронов
Description: Тема для информационного сайта о независимых 2D-играх и пиксельной стилистике.
Version: 1.1
Text Domain: ephgm
*/

/* ==================================================================
   1. Переменные и базовые сбросы
   ================================================================== */

:root {
    --bg:        #0D0D0F;
    --bg-alt:    #18181C;
    --bg-deep:   #050506;
    --ink:       #E8E8EE;
    --neon:      #00F0C8;
    --pink:      #FF4D7A;
    --mute:      #66667A;
    --line:      #2A2A35;
    --font-head: "Eurostile", "Bank Gothic", "Rajdhani", "Oswald", "Arial Narrow", "Helvetica Neue", sans-serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image:
        radial-gradient(520px 420px at 100% 0%, rgba(255, 77, 122, 0.05), transparent 70%),
        radial-gradient(560px 460px at 0% 100%, rgba(0, 240, 200, 0.045), transparent 70%),
        repeating-linear-gradient(0deg, rgba(232, 232, 238, 0.03) 0 1px, transparent 1px 40px),
        repeating-linear-gradient(90deg, rgba(232, 232, 238, 0.03) 0 1px, transparent 1px 40px);
    background-attachment: fixed;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--neon); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; text-decoration-style: dashed; text-underline-offset: 4px; }

p { margin: 0 0 1.1em; }

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

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

ul, ol { padding-left: 1.2rem; margin: 0 0 1.2em; }
li { margin-bottom: 0.45em; }

.entry-body ul { list-style: none; padding-left: 0; }
.entry-body ul li { position: relative; padding-left: 1.4rem; }
.entry-body ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 6px;
    height: 6px;
    background: var(--neon);
    transform: rotate(45deg);
}

blockquote {
    margin: 1.6rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-alt);
    border-left: 6px solid var(--neon);
    color: var(--ink);
    position: relative;
}
blockquote::before,
blockquote::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--pink);
}
blockquote::before { top: 6px; right: 6px; }
blockquote::after  { bottom: 6px; right: 6px; }
blockquote p:last-child { margin-bottom: 0; }

code, pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.92em;
}
pre {
    background: var(--bg-deep);
    border: 1px solid var(--line);
    padding: 1rem;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--line);
    margin: 0 0 1.6rem;
}
table th, table td {
    border: 1px solid var(--line);
    padding: 0.6rem 0.8rem;
    text-align: left;
}
table th {
    background: var(--bg-alt);
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

hr { border: 0; border-top: 1px dashed var(--line); margin: 2rem 0; }

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

/* ==================================================================
   2. Контейнеры и раскладка
   ================================================================== */

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

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

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

/* ==================================================================
   3. Кнопки и служебные элементы
   ================================================================== */

.btn {
    display: inline-block;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 0.72rem 1.5rem;
    border: 2px solid var(--neon);
    border-radius: 3px 3px 0 0;
    color: var(--neon);
    background: transparent;
    clip-path: polygon(0 0, 100% 0, 100% 72%, 88% 100%, 0 100%);
    transition: background-color .18s linear, color .18s linear, box-shadow .18s linear, transform .18s linear;
}
.btn:hover, .btn:focus {
    background: var(--neon);
    color: var(--bg);
    text-decoration: none;
    box-shadow: 6px 6px 0 rgba(255, 77, 122, 0.45);
    transform: translate(-2px, -2px);
}
.btn--solid {
    background: var(--neon);
    color: var(--bg);
}
.btn--solid:hover, .btn--solid:focus {
    background: transparent;
    color: var(--neon);
}
.btn--pink {
    border-color: var(--pink);
    color: var(--pink);
}
.btn--pink:hover, .btn--pink:focus {
    background: var(--pink);
    color: var(--bg);
    box-shadow: 6px 6px 0 rgba(0, 240, 200, 0.4);
}

.trail {
    font-size: 0.85rem;
    color: var(--mute);
    padding: 1.1rem 0 0;
    letter-spacing: 0.02em;
}
.trail a { color: var(--mute); }
.trail a:hover { color: var(--neon); }
.trail-sep { color: var(--line); margin: 0 0.15rem; }

/* Заголовки секций */
.sec-title {
    position: relative;
    display: block;
    margin: 0 0 1.6rem;
    padding-bottom: 0.7rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}
.sec-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 120px;
    height: 5px;
    background: var(--neon);
    clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}
.sec-title--pink::after { background: var(--pink); }
.sec-num {
    display: inline-block;
    margin-right: 0.7rem;
    font-size: 0.8em;
    color: var(--mute);
    letter-spacing: 0.08em;
}

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

.site-header {
    position: relative;
    background: rgba(13, 13, 15, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
}
.header-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 260px;
}
.brand-logo { width: 54px; height: 54px; display: block; }
.brand-text { min-width: 0; }
.brand-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.02rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink);
    line-height: 1.25;
}
.brand-name:hover { text-decoration: none; color: var(--neon); }
.brand-desc {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.78rem;
    color: var(--mute);
    line-height: 1.4;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    background: transparent;
    color: var(--neon);
    border: 2px solid var(--neon);
    border-radius: 3px 3px 0 0;
    padding: 0.5rem 0.9rem;
    cursor: pointer;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    margin: 0;
    padding: 0;
}
.main-nav li { margin: 0; }
.main-nav a {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 0.88rem;
    color: var(--ink);
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: var(--neon);
    border-bottom-color: var(--neon);
    text-decoration: none;
}

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

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 0;
    box-shadow: 2px 2px 0 rgba(0, 240, 200, 0.28);
    overflow: hidden;
    transition: border-color .18s linear, box-shadow .18s linear, transform .18s linear;
}
.card:hover {
    border-color: var(--neon);
    box-shadow: 0 6px 0 rgba(255, 77, 122, 0.5), 2px 2px 0 rgba(0, 240, 200, 0.5);
    transform: translateY(-3px);
}
.card-thumb-wrap { display: block; overflow: hidden; }
.card-thumb-wrap img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    image-rendering: pixelated;
}
.card-thumb-empty {
    display: block;
    aspect-ratio: 16 / 9;
    background-color: var(--bg-deep);
    background-image:
        repeating-linear-gradient(0deg, rgba(0, 240, 200, 0.14) 0 1px, transparent 1px 14px),
        repeating-linear-gradient(90deg, rgba(255, 77, 122, 0.12) 0 1px, transparent 1px 14px);
}
.card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 1.1rem 1.2rem 1.3rem;
}
.card-title {
    font-size: 1.12rem;
    margin: 0 0 0.5rem;
    letter-spacing: 0.01em;
}
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--neon); text-decoration: none; }
.card-excerpt {
    color: #B9B9C6;
    font-size: 0.94rem;
    margin-bottom: 1rem;
}
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-foot { margin-top: auto; }

.entry-meta {
    font-size: 0.78rem;
    color: var(--mute);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
}
.entry-meta-cat a { color: var(--pink); }
.entry-meta-cat::before { content: "/ "; color: var(--line); }

/* ==================================================================
   6. Пагинация
   ================================================================== */

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.4rem;
}
.pager .page-numbers {
    display: inline-block;
    min-width: 44px;
    text-align: center;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 0;
    font-family: var(--font-head);
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    color: var(--ink);
    background: var(--bg-alt);
}
.pager a.page-numbers:hover {
    border-color: var(--neon);
    color: var(--neon);
    text-decoration: none;
    box-shadow: 3px 3px 0 rgba(0, 240, 200, 0.35);
}
.pager .page-numbers.current {
    background: var(--neon);
    border-color: var(--neon);
    color: var(--bg);
    font-weight: 700;
}
.pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: var(--mute);
}

/* ==================================================================
   7. Главная страница
   ================================================================== */

.front-section { padding: 3.4rem 0; }
.front-section--alt { background: var(--bg-alt); border-block: 1px dashed var(--line); }

.pixel-divider {
    height: 14px;
    background-image: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 14px);
    opacity: 0.8;
}

/* --- Hero --- */
.hero {
    position: relative;
    padding: 4.6rem 0 4.2rem;
    background-color: var(--bg-deep);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-veil {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(105deg, rgba(5, 5, 6, 0.94) 0%, rgba(13, 13, 15, 0.82) 55%, rgba(13, 13, 15, 0.58) 100%);
}
.hero-inner { position: relative; z-index: 2; }
.hero-copy { max-width: 780px; min-width: 0; }
.hero-kicker {
    display: inline-block;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.78rem;
    color: var(--pink);
    border: 1px solid rgba(255, 77, 122, 0.5);
    padding: 0.3rem 0.7rem;
    margin-bottom: 1.2rem;
}
.hero h1 {
    position: relative;
    font-size: clamp(1.75rem, 3.4vw, 2.9rem);
    line-height: 1.08;
    margin-bottom: 1.1rem;
    color: var(--ink);
}
.glitch { position: relative; display: inline-block; }
.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    pointer-events: none;
}
.glitch::before {
    color: var(--neon);
    transform: translate(-2px, -2px);
    opacity: 0.55;
    clip-path: polygon(0 0, 100% 0, 100% 44%, 0 44%);
}
.glitch::after {
    color: var(--pink);
    transform: translate(2px, 2px);
    opacity: 0.5;
    clip-path: polygon(0 56%, 100% 56%, 100% 100%, 0 100%);
}
.hero-lead {
    font-size: 1.05rem;
    color: #C6C6D2;
    max-width: 660px;
    margin-bottom: 1.8rem;
}

/* --- Таймлайн --- */
.timeline {
    position: relative;
    margin: 0;
    padding: 0.4rem 0 0 2.4rem;
    list-style: none;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--neon), var(--pink));
    box-shadow: 0 0 12px rgba(0, 240, 200, 0.45);
}
.timeline li {
    position: relative;
    min-width: 0;
    margin-bottom: 1.7rem;
    padding-left: 0.2rem;
}
.timeline li::before {
    content: "";
    position: absolute;
    left: -2.4rem;
    top: 0.45em;
    width: 14px;
    height: 14px;
    background: var(--neon);
    box-shadow: 0 0 10px rgba(0, 240, 200, 0.7);
}
.timeline li:nth-child(even)::before { background: var(--pink); box-shadow: 0 0 10px rgba(255, 77, 122, 0.7); }
.tl-era {
    display: block;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    color: var(--mute);
    margin-bottom: 0.2rem;
}
.tl-head {
    display: block;
    font-family: var(--font-head);
    text-transform: uppercase;
    font-size: 1.12rem;
    letter-spacing: 0.03em;
    margin-bottom: 0.3rem;
}
.timeline p { margin: 0; color: #B9B9C6; font-size: 0.96rem; }

/* --- Цитата --- */
.thesis {
    display: block;
    padding: 2.4rem 2.2rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-left: 10px solid var(--neon);
    position: relative;
}
.thesis::before,
.thesis::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--pink);
}
.thesis::before { top: 8px; right: 8px; }
.thesis::after  { bottom: 8px; right: 8px; }
.thesis-text {
    font-family: var(--font-head);
    text-transform: uppercase;
    font-size: clamp(1.25rem, 2.6vw, 1.9rem);
    line-height: 1.3;
    color: var(--pink);
    margin: 0 0 0.9rem;
}
.thesis-note { margin: 0; color: #B9B9C6; font-size: 0.98rem; max-width: 760px; }

/* --- Рубрикатор --- */
.rubric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.3rem;
}
.rubric {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    min-width: 0;
    padding: 1.3rem 1.3rem 1.4rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-top: 5px solid var(--line);
    border-radius: 0;
    transition: border-color .18s linear, box-shadow .18s linear, transform .18s linear;
}
.rubric:hover {
    border-color: var(--neon);
    box-shadow: 0 0 18px rgba(0, 240, 200, 0.28), 4px 4px 0 rgba(255, 77, 122, 0.35);
    transform: translateY(-3px);
    text-decoration: none;
}
.rubric svg { width: 40px; height: 40px; display: block; }
.rubric-name {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 1.05rem;
    color: var(--ink);
}
.rubric:hover .rubric-name { color: var(--neon); }
.rubric-note { font-size: 0.88rem; color: var(--mute); line-height: 1.5; }

.section-foot { margin-top: 2rem; }

/* ==================================================================
   8. Запись и страница
   ================================================================== */

.entry-header { margin-bottom: 1.6rem; }
.entry-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.6rem; }
.entry-thumb { margin-bottom: 1.6rem; border: 1px solid var(--line); }
.entry-thumb img { width: 100%; height: auto; display: block; }
.entry-body { font-size: 1.02rem; }
.entry-body h2 { font-size: 1.6rem; margin-top: 2rem; }
.entry-body h3 { font-size: 1.25rem; margin-top: 1.6rem; }
.entry-body img { margin: 1.2rem 0; border: 1px solid var(--line); }
.entry-body a { text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }

.entry-tags {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px dashed var(--line);
    font-size: 0.85rem;
    color: var(--mute);
}
.entry-tags a {
    display: inline-block;
    margin: 0 0.4rem 0.4rem 0;
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--line);
    color: var(--pink);
}
.entry-tags a:hover { border-color: var(--pink); text-decoration: none; }

.post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.post-nav a {
    display: block;
    min-width: 0;
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--line);
    background: var(--bg-alt);
    color: var(--ink);
    font-size: 0.95rem;
}
.post-nav a:hover { border-color: var(--neon); color: var(--neon); text-decoration: none; }
.post-nav span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--mute);
    margin-bottom: 0.25rem;
}

.page-head { margin-bottom: 1.8rem; }

/* ==================================================================
   9. Сайдбар и виджеты
   ================================================================== */

.sidebar { min-width: 0; }
.sidebar .widget-box {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    padding: 1.2rem 1.3rem 1.3rem;
    margin-bottom: 1.6rem;
    color: #C6C6D2;
}
.sidebar .widget-caption {
    font-size: 1rem;
    color: var(--ink);
    margin-bottom: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--neon);
}
.sidebar .widget-box a { color: var(--ink); }
.sidebar .widget-box a:hover { color: var(--neon); }
.sidebar .widget-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar .widget-box li {
    padding: 0.5rem 0 0.5rem 1.1rem;
    border-bottom: 1px dashed var(--line);
    position: relative;
    font-size: 0.94rem;
}
.sidebar .widget-box li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05em;
    width: 5px;
    height: 5px;
    background: var(--pink);
}
.sidebar .widget-box li:last-child { border-bottom: 0; }
.sidebar .widget-box .post-date { display: block; color: var(--mute); font-size: 0.78rem; }

.search-form { display: flex; gap: 0.5rem; }
.search-form input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.6rem 0.8rem;
    background: var(--bg-deep);
    border: 1px solid var(--line);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.95rem;
    border-radius: 0;
}
.search-form input[type="search"]:focus { outline: 2px solid var(--neon); outline-offset: 0; }
.search-form button {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    background: var(--neon);
    color: var(--bg);
    border: 2px solid var(--neon);
    border-radius: 3px 3px 0 0;
    padding: 0.55rem 1.1rem;
    cursor: pointer;
}
.search-form button:hover { background: transparent; color: var(--neon); }

/* ==================================================================
   10. Подвал
   ================================================================== */

.site-footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--line);
    margin-top: 2rem;
    color: #C2C2CE;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    padding: 2.8rem 0 2rem;
}
.footer-col { min-width: 0; }
.site-footer .widget-box { color: #C2C2CE; font-size: 0.94rem; }
.site-footer .widget-caption {
    font-size: 1rem;
    color: var(--ink);
    margin-bottom: 0.9rem;
    padding-bottom: 0.45rem;
    border-bottom: 3px solid var(--pink);
}
.site-footer .widget-box a { color: #C2C2CE; }
.site-footer .widget-box a:hover { color: var(--neon); }
.site-footer .widget-box ul { list-style: none; padding: 0; margin: 0; }
.site-footer .widget-box li {
    padding: 0.35rem 0 0.35rem 1.1rem;
    position: relative;
    font-size: 0.93rem;
}
.site-footer .widget-box li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.9em;
    width: 5px;
    height: 5px;
    background: var(--neon);
    transform: rotate(45deg);
}
.site-footer .widget-box .post-date { display: block; color: var(--mute); font-size: 0.78rem; }

.footer-bottom {
    border-top: 1px dashed var(--line);
    padding: 1.2rem 0 1.6rem;
    font-size: 0.85rem;
    color: var(--mute);
}

/* ==================================================================
   11. Cookie-баннер
   ================================================================== */

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.4rem;
    background: rgba(5, 5, 6, 0.96);
    border-top: 2px solid var(--neon);
    color: #C6C6D2;
    font-size: 0.9rem;
}
.cookie-banner p { margin: 0; min-width: 0; max-width: 780px; }
.cookie-banner .btn { padding: 0.55rem 1.2rem; font-size: 0.85rem; }

/* ==================================================================
   12. Комментарии
   ================================================================== */

.comments-area {
    margin-top: 2.6rem;
    padding-top: 1.6rem;
    border-top: 1px dashed var(--line);
}
.comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.comment-list .children { list-style: none; padding-left: 1.4rem; }
.comment-item {
    padding: 1.1rem 1.2rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    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);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--neon);
}
.comment-date { font-size: 0.78rem; color: var(--mute); }
.comment-text p:last-child { margin-bottom: 0; }
.comment-tools { margin-top: 0.5rem; font-size: 0.85rem; }
.comment-hold { color: var(--pink); font-size: 0.85rem; }

.comment-respond {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    padding: 1.4rem 1.5rem 1.6rem;
}
.comment-reply-title { font-size: 1.2rem; }
.comment-form label {
    display: block;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mute);
    margin-bottom: 0.3rem;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: var(--bg-deep);
    border: 1px solid var(--line);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.95rem;
    border-radius: 0;
    margin-bottom: 1rem;
}
.comment-form textarea { min-height: 150px; }
.comment-form input:focus, .comment-form textarea:focus { outline: 2px solid var(--neon); }
.comment-form .submit {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--neon);
    color: var(--bg);
    border: 2px solid var(--neon);
    border-radius: 3px 3px 0 0;
    padding: 0.65rem 1.4rem;
    cursor: pointer;
}
.comment-form .submit:hover { background: transparent; color: var(--neon); }
.comment-notes, .logged-in-as { font-size: 0.85rem; color: var(--mute); }

/* ==================================================================
   13. 404 и поиск
   ================================================================== */

.error-box {
    padding: 2.6rem 2.2rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-left: 10px solid var(--pink);
}
.error-code {
    font-family: var(--font-head);
    font-size: clamp(3rem, 12vw, 6rem);
    line-height: 1;
    color: var(--neon);
    margin-bottom: 0.6rem;
}
.error-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.4rem; }

.list-head { margin-bottom: 1.8rem; }
.no-results {
    padding: 1.8rem 1.8rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
}

/* ==================================================================
   14. Адаптив
   ================================================================== */

@media (max-width: 960px) {
    body { font-size: 16px; }
    h1 { font-size: 2.6rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .layout-single { width: 100%; }
    .shell--front { width: min(92%, 1180px); }
    .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card-list { grid-template-columns: minmax(0, 1fr); }

    .nav-toggle { display: inline-flex; }
    .main-nav {
        flex: 1 0 100%;
        display: none;
        padding-top: 0.8rem;
        border-top: 1px dashed var(--line);
    }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0.2rem; }
    .main-nav a { display: block; padding: 0.5rem 0; border-bottom: 1px dashed var(--line); }
}

@media (max-width: 600px) {
    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.55rem; }
    .site-main { padding: 1.8rem 0 2.6rem; }
    .front-section { padding: 2.4rem 0; }
    .hero { padding: 3rem 0 2.8rem; }
    .card-grid { grid-template-columns: minmax(0, 1fr); }
    .rubric-grid { grid-template-columns: minmax(0, 1fr); }
    .footer-cols { grid-template-columns: minmax(0, 1fr); padding: 2.2rem 0 1.6rem; }
    .post-nav { grid-template-columns: minmax(0, 1fr); }
    .thesis { padding: 1.6rem 1.4rem; border-left-width: 6px; }
    .error-box { padding: 1.8rem 1.4rem; }
    .no-results { padding: 1.4rem 1.3rem; }
    .comment-respond { padding: 1.2rem 1.2rem 1.4rem; }
    .cookie-banner { padding: 0.9rem 1.1rem; }
    .timeline { padding-left: 2rem; }
    .timeline li::before { left: -2rem; width: 12px; height: 12px; }
    .sidebar .widget-box { padding: 1.1rem 1.1rem 1.2rem; }
}
