/*
Theme Name: dds_game-apk.ru
Author: Дмитрий Волков
Description: Тема для образовательного портала о геймдеве и киберспорте.
Version: 1.1
Text Domain: gapkdev
*/

/* ============================================================
   Переменные
   ============================================================ */
:root {
    --bg: #0B0E1A;
    --bg-alt: #11162B;
    --bg-head: #070A14;
    --bg-side: #0F1325;
    --tx: #E8EDF5;
    --acc: #00FFC8;
    --acc2: #B300FF;
    --mut: #5A6B8A;
    --line: #2A3A5C;
    --fh: "Inter", "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --fb: "JetBrains Mono", "Fira Code", "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
    --shell: min(92%, 1180px);
}

/* ============================================================
   Служебные правила скрытия (до основных стилей)
   ============================================================ */
.cookie-banner[hidden] { display: none !important; }
.nav-list[hidden] { display: none !important; }
.gl-def[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:
        radial-gradient(ellipse at 50% 0%, rgba(0, 255, 200, 0.06), rgba(11, 14, 26, 0) 60%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64' viewBox='0 0 56 64'%3E%3Cpath d='M28 1 52 15v30L28 59 4 45V15z' fill='none' stroke='%2300FFC8' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E");
    background-attachment: fixed, fixed;
    background-repeat: no-repeat, repeat;
    color: var(--tx);
    font-family: var(--fb);
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

body::after {
    content: "";
    position: fixed;
    right: -40px;
    bottom: -30px;
    width: 340px;
    height: 260px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.05;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 220'%3E%3Cg fill='%23B300FF'%3E%3Crect x='40' y='70' width='260' height='110' rx='6'/%3E%3Crect x='0' y='96' width='34' height='58'/%3E%3Crect x='306' y='96' width='34' height='58'/%3E%3Crect x='72' y='40' width='22' height='22'/%3E%3Crect x='246' y='40' width='22' height='22'/%3E%3Crect x='120' y='6' width='16' height='16'/%3E%3Crect x='204' y='6' width='16' height='16'/%3E%3C/g%3E%3Cg fill='%230B0E1A'%3E%3Crect x='78' y='108' width='58' height='12'/%3E%3Crect x='100' y='86' width='14' height='56'/%3E%3Ccircle cx='232' cy='106' r='11'/%3E%3Ccircle cx='262' cy='132' r='11'/%3E%3C/g%3E%3C/svg%3E");
}

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

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

.site-main a:not(.btn):not(.card-title-link):not(.page-numbers):not(.rub-tile)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: linear-gradient(90deg, var(--acc), var(--acc2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.site-main a:not(.btn):not(.card-title-link):not(.page-numbers):not(.rub-tile):hover::after {
    transform: scaleX(1);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--fh);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0 0 0.7em;
    color: #FFFFFF;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.12rem; }

p { margin: 0 0 1.1em; }

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

blockquote {
    margin: 1.6rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-alt);
    border-left: 4px solid var(--acc);
    border-image: linear-gradient(180deg, var(--acc), var(--acc2)) 1;
    clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px);
}

code, pre {
    font-family: var(--fb);
    background: #070A14;
    border: 1px solid var(--line);
    color: var(--acc);
}
code { padding: 0.1em 0.35em; }
pre { padding: 1rem 1.2rem; overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4rem 0;
    border: 1px solid var(--line);
}
th, td {
    border: 1px solid var(--line);
    padding: 0.7rem 0.9rem;
    text-align: left;
}
th { background: #0F1428; color: #FFFFFF; font-family: var(--fh); }

hr {
    border: 0;
    height: 1px;
    background: rgba(0, 255, 200, 0.12);
    margin: 2.4rem 0;
}

::selection { background: var(--acc2); color: #FFFFFF; }

.shell {
    width: var(--shell);
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

/* ============================================================
   Кнопки
   ============================================================ */
.btn {
    display: inline-block;
    font-family: var(--fh);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.85rem 1.6rem;
    border: 3px solid var(--acc);
    border-radius: 0;
    background: rgba(0, 255, 200, 0.2);
    color: var(--acc);
    cursor: pointer;
    transition: border-color 0.18s ease, transform 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.btn:hover,
.btn:focus {
    border-color: var(--acc2);
    color: #FFFFFF;
    transform: translateY(2px);
}

.btn-ghost {
    background: transparent;
    color: var(--tx);
    clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px);
}

.btn-ghost:hover { color: #FFFFFF; }

/* ============================================================
   Заголовки секций (глитч-маркер + силуэт)
   ============================================================ */
.sec-title {
    position: relative;
    z-index: 0;
    display: block;
    text-align: left;
    padding-left: 26px;
    margin-bottom: 1.6rem;
    text-transform: uppercase;
}

.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 14px;
    height: 26px;
    background: var(--acc);
    box-shadow: 3px 3px 0 rgba(179, 0, 255, 0.55);
}

.sec-title span.ghost {
    position: absolute;
    left: 30px;
    top: 6px;
    color: rgba(232, 237, 245, 0.07);
    filter: blur(3px);
    pointer-events: none;
    white-space: nowrap;
    z-index: -1;
}

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

.glitch {
    position: relative;
    animation: glitch-flick 6s infinite steps(1);
}

@keyframes glitch-flick {
    0%, 92%, 100% { text-shadow: none; }
    93% { text-shadow: -1px 0 var(--acc), 1px 0 var(--acc2); }
    95% { text-shadow: 1px 0 var(--acc2), -1px 0 var(--acc); }
    97% { text-shadow: -1px 1px var(--acc); }
}

@media (prefers-reduced-motion: reduce) {
    .glitch { animation: none; }
    html { scroll-behavior: auto; }
}

/* ============================================================
   Шапка
   ============================================================ */
.site-head {
    background: var(--bg-head);
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 2;
}

.head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    padding: 1.4rem 0;
    flex-wrap: wrap;
}

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

.brand-logo { width: 54px; height: 54px; flex: none; }

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

.brand-name {
    display: block;
    font-family: var(--fh);
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.3;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

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

.brand-desc {
    display: block;
    font-size: 0.74rem;
    line-height: 1.5;
    color: var(--mut);
    margin-top: 0.3rem;
}

.nav-toggle {
    display: none;
    font-family: var(--fh);
    font-weight: 700;
    background: transparent;
    color: var(--acc);
    border: 3px solid var(--acc);
    padding: 0.55rem 1rem;
    cursor: pointer;
    text-transform: uppercase;
}

.main-nav { flex: 0 1 auto; min-width: 0; }

.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;
    font-family: var(--fh);
    font-weight: 700;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tx);
    padding: 0.35rem 0;
}

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

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

/* ============================================================
   Каркас страницы
   ============================================================ */
.site-main {
    padding: 2.4rem 0 4rem;
    position: relative;
    z-index: 1;
}

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

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

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

.crumbs {
    font-size: 0.78rem;
    color: var(--mut);
    margin-bottom: 1.6rem;
    letter-spacing: 0.03em;
}
.crumbs a { color: var(--mut); }
.crumbs a:hover { color: var(--acc); }
.crumbs-sep { color: var(--acc2); padding: 0 0.25rem; }

.page-title {
    font-size: 2.1rem;
    margin-bottom: 1.4rem;
    text-transform: uppercase;
}

.entry-content h2,
.entry-content h3 { margin-top: 1.8em; }

.entry-content img { margin: 1.4rem 0; }

.entry-meta {
    font-size: 0.78rem;
    color: var(--mut);
    letter-spacing: 0.05em;
    margin-bottom: 1.6rem;
    text-transform: uppercase;
}

.entry-thumb {
    margin-bottom: 1.8rem;
    border: 1px solid var(--line);
    position: relative;
}
.entry-thumb img { width: 100%; height: auto; display: block; }

/* ============================================================
   Карточки записей
   ============================================================ */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.8rem;
    margin-bottom: 2.6rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 0;
    box-shadow: 8px 8px 0 rgba(179, 0, 255, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 8px 8px 0 rgba(0, 255, 200, 0.4);
    border-color: var(--acc);
}

.card-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

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

.card-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(11, 22, 51, 0.75), rgba(11, 22, 51, 0) 62%);
    pointer-events: none;
}

.card-thumb-empty {
    aspect-ratio: 16 / 9;
    background:
        repeating-linear-gradient(45deg, rgba(0, 255, 200, 0.06) 0 2px, transparent 2px 12px),
        #0C1224;
}

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

.card-date {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--acc2);
    margin-bottom: 0.6rem;
}

.card-title {
    font-size: 1.08rem;
    margin: 0 0 0.7rem;
    line-height: 1.25;
}

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

.card-excerpt {
    color: #B8C4D6;
    font-size: 0.86rem;
    line-height: 1.65;
    margin-bottom: 1.1rem;
}

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

.card-more {
    margin-top: auto;
    align-self: flex-start;
    font-family: var(--fh);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--acc);
    border-bottom: 2px solid transparent;
}

.card-more:hover { border-color: var(--acc2); color: #FFFFFF; }

/* ============================================================
   Пагинация
   ============================================================ */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 2.4rem 0 0;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 44px;
    text-align: center;
    padding: 0.55rem 0.8rem;
    border: 2px solid var(--line);
    color: var(--tx);
    font-family: var(--fh);
    font-weight: 700;
    font-size: 0.85rem;
    background: var(--bg-alt);
    transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.pager .page-numbers:hover {
    border-color: var(--acc2);
    color: var(--acc);
    transform: translateY(2px);
}

.pager .page-numbers.current {
    border-color: var(--acc);
    color: var(--acc);
    background: rgba(0, 255, 200, 0.14);
}

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

/* ============================================================
   Главная страница
   ============================================================ */
.front-shell > * + * { margin-top: 60px; }

.fs-div {
    position: relative;
    width: 85%;
    height: 1px;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(90deg, rgba(0, 255, 200, 0.12) 0 44%, transparent 44% 56%, rgba(0, 255, 200, 0.12) 56% 100%);
}

.fs-div::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -5px;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    background: var(--acc2);
    box-shadow: -6px 3px 0 rgba(0, 255, 200, 0.6);
}

.fs {
    position: relative;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
}

/* --- Блок 1. Hero --- */
.fs-hero {
    width: 100%;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    padding: 3.4rem 2.6rem;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64' viewBox='0 0 56 64'%3E%3Cpath d='M28 1 52 15v30L28 59 4 45V15z' fill='none' stroke='%2300FFC8' stroke-opacity='0.07' stroke-width='1'/%3E%3C/svg%3E");
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 60px) 100%, 0 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 2.6rem;
    align-items: center;
}

.hero-kicker {
    font-size: 0.76rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--acc2);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.1rem;
    margin-bottom: 1.1rem;
    text-transform: uppercase;
}

.hero-text {
    color: #B8C4D6;
    max-width: 56ch;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

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

/* --- Блок 2. Статистика --- */
.fs-stats {
    background-color: var(--bg-alt);
    background-image: repeating-linear-gradient(45deg, rgba(0, 255, 200, 0.05) 0 1px, transparent 1px 11px);
    border: 1px solid var(--line);
    padding: 2.8rem 2.4rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
    gap: 1.8rem;
}

.stat { min-width: 0; }

.stat-num {
    font-family: var(--fb);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--acc);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-bar {
    width: 62px;
    height: 5px;
    background: var(--acc2);
    margin: 0.9rem 0 0.7rem;
}

.stat-cap {
    font-size: 0.8rem;
    color: var(--mut);
    line-height: 1.55;
}

/* --- Последние записи --- */
.fs-latest .cards { margin-bottom: 0; }

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

/* --- Блок 3. Zigzag --- */
.zz-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.6rem;
    align-items: center;
}

.zz-row + .zz-row { margin-top: 3.4rem; }

.zz-media { min-width: 0; }

.zz-media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 1px solid var(--line);
    clip-path: polygon(24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%, 0 24px);
}

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

.zz-text h3 {
    font-size: 1.5rem;
    text-transform: uppercase;
}

.zz-text p { color: #B8C4D6; }

.zz-index {
    font-family: var(--fb);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    color: var(--acc2);
    margin-bottom: 0.6rem;
}

.zz-row.rev .zz-media { order: 2; }
.zz-row.rev .zz-text { order: 1; }

/* --- Блок 4. Глоссарий --- */
.gl-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 2.6rem;
}

.gl-terms {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    min-width: 0;
}

.gl-term {
    font-family: var(--fh);
    font-weight: 800;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.85rem 1.1rem;
    border: 3px solid var(--line);
    background: var(--bg-alt);
    color: var(--tx);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.gl-term:hover,
.gl-term.on {
    border-color: var(--acc);
    color: var(--acc);
    transform: translateY(2px);
}

.gl-defs { min-width: 0; }

.gl-def {
    border-left: 4px solid var(--acc);
    border-image: linear-gradient(180deg, var(--acc), var(--acc2)) 1;
    background: var(--bg-alt);
    padding: 1.5rem 1.7rem;
    color: #B8C4D6;
}

.gl-def h4 {
    color: var(--acc);
    text-transform: uppercase;
    font-size: 1.05rem;
}

.gl-def.on { color: #FFFFFF; }

.gl-def p:last-child { margin-bottom: 0; }

/* ============================================================
   Сайдбар и виджеты
   ============================================================ */
.sidebar {
    min-width: 0;
    background: var(--bg-side);
    border: 1px solid var(--line);
    padding: 1.6rem 1.5rem;
}

.sidebar .widget + .widget { margin-top: 2rem; }

.sidebar .widget-title,
.site-foot .widget-title {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #FFFFFF;
    padding-bottom: 0.7rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.sidebar .widget,
.site-foot .widget { color: #C3CEDD; font-size: 0.88rem; }

.sidebar .widget ul,
.site-foot .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar .widget li,
.site-foot .widget li {
    padding: 0.45rem 0 0.45rem 1rem;
    position: relative;
    border-bottom: 1px dashed rgba(42, 58, 92, 0.7);
}

.sidebar .widget li::before,
.site-foot .widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05em;
    width: 6px;
    height: 6px;
    background: var(--acc2);
}

.sidebar .widget a,
.site-foot .widget a { color: #D5DEEA; }

.sidebar .widget a:hover,
.site-foot .widget a:hover { color: var(--acc); }

.sidebar .post-date,
.site-foot .post-date { color: var(--mut); font-size: 0.75rem; display: block; }

/* Поисковая форма */
.search-form {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.search-form input[type="search"] {
    flex: 1 1 180px;
    min-width: 0;
    padding: 0.72rem 0.9rem;
    background: #070A14;
    border: 2px solid var(--line);
    color: var(--tx);
    font-family: var(--fb);
    font-size: 0.9rem;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--acc);
}

.search-form button {
    font-family: var(--fh);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    padding: 0.72rem 1.2rem;
    border: 2px solid var(--acc);
    background: rgba(0, 255, 200, 0.2);
    color: var(--acc);
    cursor: pointer;
}

.search-form button:hover { border-color: var(--acc2); color: #FFFFFF; }

/* ============================================================
   Комментарии
   ============================================================ */
.comments-area {
    margin-top: 3rem;
    border-top: 1px solid var(--line);
    padding-top: 2rem;
}

.comments-title, .comment-reply-title {
    font-size: 1.3rem;
    text-transform: uppercase;
}

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

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

.comment-inner {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    padding: 1.2rem 1.3rem;
    margin-bottom: 1rem;
}

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

.comment-author {
    font-family: var(--fh);
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.comment-date { font-size: 0.74rem; color: var(--mut); }

.comment-text { font-size: 0.9rem; color: #C3CEDD; }
.comment-text p:last-child { margin-bottom: 0; }

.comment-actions { margin-top: 0.6rem; font-size: 0.8rem; }

.comment-form label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mut);
    margin-bottom: 0.4rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    background: #070A14;
    border: 2px solid var(--line);
    color: var(--tx);
    font-family: var(--fb);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

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

.comment-form .submit {
    font-family: var(--fh);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.85rem 1.6rem;
    border: 3px solid var(--acc);
    background: rgba(0, 255, 200, 0.2);
    color: var(--acc);
    cursor: pointer;
}

.comment-form .submit:hover { border-color: var(--acc2); color: #FFFFFF; }

.comment-notes, .comment-form-cookies-consent label { font-size: 0.78rem; color: var(--mut); text-transform: none; letter-spacing: 0; }

/* ============================================================
   404 и поиск
   ============================================================ */
.err-code {
    font-family: var(--fb);
    font-size: 5rem;
    font-weight: 700;
    color: var(--acc);
    line-height: 1;
    margin-bottom: 1rem;
}

.err-box {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    padding: 2.4rem 2.2rem;
}

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

/* ============================================================
   Подвал
   ============================================================ */
.site-foot {
    background: var(--bg-head);
    border-top: 1px solid var(--line);
    padding: 3rem 0 1.6rem;
    position: relative;
    z-index: 1;
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 2.4rem;
}

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

.foot-bottom {
    margin-top: 2.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    font-size: 0.78rem;
    color: var(--mut);
    letter-spacing: 0.04em;
}

/* ============================================================
   Cookie-баннер
   ============================================================ */
.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: 1.2rem;
    background: #070A14;
    border-top: 3px solid var(--acc);
    padding: 1.1rem 1.6rem;
    font-size: 0.82rem;
    color: #C3CEDD;
}

.cookie-banner p { margin: 0; max-width: 78ch; }

/* ============================================================
   Адаптив
   ============================================================ */
@media (min-width: 961px) {
    h1 { font-size: 3.2rem; }
    .hero-title { font-size: 4rem; }
    .page-title { font-size: 2.6rem; }
}

@media (max-width: 960px) {
    .front-shell > * + * { margin-top: 40px; }
    .fs { width: 100%; }
    .fs-div { width: 100%; }
    .layout-single > .content-area { width: 100%; }
    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.4rem;
    }
    .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .gl-grid { grid-template-columns: minmax(0, 1fr); }
    .fs-hero { padding: 2.6rem 1.8rem; }
}

@media (max-width: 780px) {
    .nav-toggle { display: inline-block; }
    .main-nav { flex: 1 1 100%; }
    .nav-list {
        flex-direction: column;
        gap: 0;
        border-top: 1px solid var(--line);
        margin-top: 0.8rem;
    }
    .nav-list li { border-bottom: 1px solid var(--line); margin: 0; }
    .nav-list a { display: block; padding: 0.7rem 0; }
}

@media (max-width: 600px) {
    body { font-size: 15px; }
    .sec-title span.ghost { display: none; }
    .hero-title { font-size: 2.1rem; }
    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.5rem; }
    .page-title { font-size: 1.7rem; }
    .fs-hero { padding: 2rem 1.3rem; }
    .fs-stats { padding: 1.8rem 1.4rem; }
    .gl-def { padding: 1.2rem 1.2rem; }
    .err-box { padding: 1.8rem 1.4rem; }
    .sidebar { padding: 1.3rem 1.2rem; }
    .cookie-banner { padding: 1rem 1.2rem; }
    .zz-row { grid-template-columns: minmax(0, 1fr); }
    .zz-row.rev .zz-media { order: 0; }
    .zz-row.rev .zz-text { order: 0; }
    .cards { grid-template-columns: minmax(0, 1fr); }
    .card { box-shadow: 5px 5px 0 rgba(179, 0, 255, 0.2); }
    .stat-num { font-size: 2rem; }
    .hero-tags .btn { width: 100%; text-align: center; }
}
