/*
Theme Name: dds_alunariasavenue.com
Description: Тема информационного сайта о многопользовательских RPG. Концепция «Digital Grimoire»: журнальная подача, тёмная холодная палитра, моноширинные заголовки.
Author: Алексей Кузьмин
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: grimoar
*/

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

:root {
    --bg:        #0B0F19;
    --bg-alt:    #111827;
    --bg-foot:   #05080E;
    --bg-aside:  #0F172A;
    --line:      #1E293B;
    --line-2:    #334155;
    --text:      #E2E8F0;
    --muted:     #64748B;
    --accent:    #60A5FA;
    --accent-2:  #2DD4BF;
    --violet:    #1E1B4B;
    --mono: ui-monospace, "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
    --sans: "Inter", "Manrope", -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;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
}

/* Гексагональная сетка поверх основного фона */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34.6' height='60' viewBox='0 0 34.6 60'%3E%3Cg fill='none' stroke='%2360A5FA' stroke-width='1'%3E%3Cpath d='M17.3 0 L34.6 10 L34.6 30 L17.3 40 L0 30 L0 10 Z'/%3E%3Cpath d='M17.3 40 L17.3 60'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 34.6px 60px;
}

/* Декоративный знак: скрещённые клинки в правом нижнем углу */
body::after {
    content: "";
    position: fixed;
    right: -40px;
    bottom: -60px;
    width: 460px;
    height: 460px;
    z-index: 0;
    pointer-events: none;
    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 200 200'%3E%3Cg fill='none' stroke='%2360A5FA' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M30 176 L150 30'/%3E%3Cpath d='M170 176 L50 30'/%3E%3Cpath d='M138 22 L162 46'/%3E%3Cpath d='M62 22 L38 46'/%3E%3Cpath d='M24 150 L52 178'/%3E%3Cpath d='M176 150 L148 178'/%3E%3Ccircle cx='100' cy='104' r='16'/%3E%3C/g%3E%3C/svg%3E");
}

.site-wrap { position: relative; z-index: 1; }

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

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

.entry-content a,
.widget a,
.trail a {
    background-image: linear-gradient(var(--accent-2), var(--accent-2));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% 2px;
    transition: background-size .28s ease;
    padding-bottom: 1px;
}
.entry-content a:hover,
.widget a:hover,
.trail a:hover { background-size: 100% 2px; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--mono);
    line-height: 1.24;
    letter-spacing: -0.01em;
    color: #F1F5F9;
    margin: 0 0 .8rem;
}

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

p { margin: 0 0 1.15em; }

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

blockquote {
    margin: 1.8em 0;
    padding: 1.4rem 1.6rem;
    border-left: 4px solid var(--accent-2);
    background: var(--bg-alt);
    border-radius: 0 6px 6px 0;
    color: #CBD5E1;
}
blockquote p:last-child { margin-bottom: 0; }

code, pre {
    font-family: var(--mono);
    font-size: .92em;
}
pre {
    background: #05080E;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.1rem 1.2rem;
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--line-2);
    margin: 0 0 1.6em;
    font-size: .95rem;
}
th, td {
    border: 1px solid var(--line-2);
    padding: .7rem .85rem;
    text-align: left;
}
th {
    background: var(--bg-alt);
    font-family: var(--mono);
    color: #F1F5F9;
}

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

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

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

/* =========================================================
   2. Кнопки
   ========================================================= */

.btn,
.btn--ghost {
    display: inline-block;
    font-family: var(--mono);
    font-size: .95rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .82rem 1.6rem;
    border-radius: 4px;
    border: 1px solid var(--accent);
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
    cursor: pointer;
}

.btn {
    background: var(--accent);
    color: #0B0F19;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(96, 165, 250, .5);
}

.btn--ghost {
    background: transparent;
    color: var(--accent);
}
.btn--ghost:hover {
    background: var(--accent);
    color: #0B0F19;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(96, 165, 250, .45);
}

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

.hp-bar {
    height: 4px;
    width: 100%;
    background: var(--accent);
}

.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 1.4rem 0;
    position: static;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-width: 0;
}
.brand-logo { display: block; width: auto; height: 46px; }
.brand-mark { display: block; flex: 0 0 auto; }

.brand-text { min-width: 0; }
.brand-title {
    display: block;
    font-family: var(--mono);
    font-size: 1.05rem;
    color: #F1F5F9;
    letter-spacing: .01em;
}
.brand-title a { color: inherit; }
.brand-title a:hover { color: var(--accent); }
.brand-desc {
    display: block;
    font-size: .78rem;
    color: var(--muted);
    line-height: 1.45;
    max-width: 460px;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--mono);
    font-size: .85rem;
    padding: .5rem .9rem;
    border-radius: 4px;
    cursor: pointer;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.main-nav a {
    font-family: var(--mono);
    font-size: .92rem;
    color: var(--text);
    letter-spacing: .02em;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}
.main-nav a:hover { color: var(--accent); border-bottom-color: var(--accent-2); }
.main-nav .current-menu-item > a { color: var(--accent); border-bottom-color: var(--accent); }

/* =========================================================
   4. Раскладки
   ========================================================= */

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

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

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

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

/* =========================================================
   5. Хлебные крошки
   ========================================================= */

.trail {
    font-family: var(--mono);
    font-size: .82rem;
    color: var(--muted);
    margin: 0 0 1.6rem;
    line-height: 1.7;
}
.trail a { color: var(--muted); }
.trail a:hover { color: var(--accent); }
.trail-sep { color: var(--line-2); margin: 0 .25rem; }

/* =========================================================
   6. Заголовки секций и разделители
   ========================================================= */

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

.sec-title {
    font-size: 1.9rem;
    margin: 0 0 .5rem;
}
.sec-title::before {
    content: "::";
    color: var(--accent);
    margin-right: .55rem;
    font-weight: 700;
}
.sec-note {
    color: var(--muted);
    font-size: .95rem;
    max-width: 720px;
    margin: 0;
}

.rule {
    width: 80%;
    height: 1px;
    background: var(--line);
    border: 0;
    margin: 0 auto 0 0;
}

.glyph-sep {
    display: block;
    text-align: center;
    color: var(--line-2);
    font-family: var(--mono);
    letter-spacing: .5em;
    font-size: 1.1rem;
    margin: 2.4rem 0;
}

/* =========================================================
   7. Главная — секции
   ========================================================= */

.fs { padding: 4rem 0; }
.fs--alt { background: var(--bg-alt); }

/* 7.1 Hero */
.fs-hero {
    position: relative;
    padding: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}
.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: .38;
}
.hero-veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(11,15,25,.94) 0%, rgba(11,15,25,.78) 48%, rgba(11,15,25,.42) 100%);
}
.hero-body {
    position: relative;
    z-index: 2;
    padding: 5.4rem 0 5rem;
}
.hero-kick {
    font-family: var(--mono);
    font-size: .8rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--accent-2);
    display: block;
    margin-bottom: 1.1rem;
}
.hero-title {
    max-width: 900px;
    margin: 0 0 1.2rem;
}
.hero-title .hl { color: var(--accent); }
.hero-lead {
    max-width: 640px;
    color: #CBD5E1;
    font-size: 1.06rem;
    margin-bottom: 1.9rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* 7.2 Сетка карточек-механик */
.mech-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}
.mech-card {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.7rem 1.6rem;
    min-width: 0;
    transition: border-color .22s ease, transform .22s ease;
}
.fs--alt .mech-card { background: var(--bg); }
.mech-card:hover { border-color: var(--accent); transform: translateX(6px); }
.mech-ico { display: block; margin-bottom: 1rem; }
.mech-card h3 {
    font-size: 1.12rem;
    margin-bottom: .5rem;
}
.mech-card p {
    margin: 0;
    color: var(--muted);
    font-size: .93rem;
}

/* 7.3 Таймлайн «Эволюция жанра» */
.tl { position: relative; padding: .6rem 0; }
.tl::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background-image: linear-gradient(var(--accent) 0 0);
    background-repeat: repeat-y;
    background-size: 2px 46px;
    opacity: .75;
}
.tl-item {
    position: relative;
    width: 50%;
    padding: 0 2.6rem 2.4rem 0;
    min-width: 0;
}
.tl-item:nth-child(even) {
    margin-left: 50%;
    padding: 0 0 2.4rem 2.6rem;
}
.tl-item::after {
    content: "";
    position: absolute;
    top: .55rem;
    right: -6px;
    width: 12px;
    height: 12px;
    background: var(--bg);
    border: 2px solid var(--accent-2);
    transform: rotate(45deg);
}
.tl-item:nth-child(even)::after { right: auto; left: -6px; }
.tl-year {
    display: block;
    font-family: var(--mono);
    font-size: 1.9rem;
    color: var(--accent);
    line-height: 1.1;
    margin-bottom: .3rem;
}
.tl-item h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.tl-item p { color: var(--muted); font-size: .93rem; margin: 0; }

/* 7.4 Карта тем */
.map-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.map-tile {
    flex: 1 1 0;
    min-width: 0;
    display: block;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.5rem 1.4rem;
    color: var(--text);
    transition: flex-grow .3s ease, border-color .25s ease, background-color .25s ease;
}
.fs--alt .map-tile { background: #0B0F19; }
.map-tile .mt-name {
    display: block;
    font-family: var(--mono);
    font-size: 1.15rem;
    color: #F1F5F9;
    letter-spacing: .04em;
}
.map-tile .mt-idx {
    display: block;
    font-family: var(--mono);
    font-size: .74rem;
    color: var(--accent-2);
    letter-spacing: .2em;
    margin-bottom: .5rem;
}
.map-tile .mt-desc {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    color: var(--muted);
    font-size: .9rem;
    transition: max-height .3s ease, opacity .3s ease, margin-top .3s ease;
}
.map-tile:hover,
.map-tile:focus-visible {
    flex-grow: 2.2;
    border-color: var(--accent);
    background: var(--bg-alt);
}
.map-tile:hover .mt-desc,
.map-tile:focus-visible .mt-desc {
    max-height: 140px;
    opacity: 1;
    margin-top: .6rem;
}

/* 7.5 Акцентная плашка */
.accent-plate {
    background: linear-gradient(135deg, var(--bg) 0%, var(--violet) 100%);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 2.4rem 2.2rem;
    position: relative;
    overflow: hidden;
}
.accent-plate::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .06;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34.6' height='60' viewBox='0 0 34.6 60'%3E%3Cg fill='none' stroke='%232DD4BF' stroke-width='1'%3E%3Cpath d='M17.3 0 L34.6 10 L34.6 30 L17.3 40 L0 30 L0 10 Z'/%3E%3Cpath d='M17.3 40 L17.3 60'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 34.6px 60px;
}
.accent-plate > * { position: relative; z-index: 1; }

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

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color .22s ease, transform .22s ease;
}
.fs--alt .card { background: var(--bg); }
.card:hover { border-color: var(--accent); transform: translateX(6px); }

.card-thumb { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.card-thumb--empty {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background:
        linear-gradient(135deg, rgba(96,165,250,.14), rgba(45,212,191,.08)),
        var(--bg);
    border-bottom: 1px solid var(--line);
}

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

.card-title {
    font-size: 1.14rem;
    margin: 0 0 .55rem;
}
.card-title a { color: #F1F5F9; }
.card-title a:hover { color: var(--accent); }

.entry-meta {
    display: flex;
    gap: .9rem;
    flex-wrap: wrap;
    font-family: var(--mono);
    font-size: .76rem;
    color: var(--muted);
    letter-spacing: .06em;
    margin-bottom: .7rem;
}
.entry-meta a { color: var(--accent-2); }
.entry-meta a:hover { color: var(--accent); }

.card-excerpt {
    color: var(--muted);
    font-size: .93rem;
    margin-bottom: 1.1rem;
}
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt p:last-child { margin-bottom: 0; }

.card-more {
    margin-top: auto;
    align-self: flex-start;
    font-family: var(--mono);
    font-size: .82rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
    border-bottom: 1px solid transparent;
}
.card-more:hover { border-bottom-color: var(--accent-2); }

/* =========================================================
   9. Одиночная запись и страница
   ========================================================= */

.entry-header { margin-bottom: 1.8rem; }
.entry-title { font-size: 2.4rem; margin-bottom: .8rem; }

.entry-thumb {
    margin: 0 0 1.8rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
}
.entry-thumb img { display: block; width: 100%; height: auto; }

.entry-content { font-size: 1.02rem; }
.entry-content h2,
.entry-content h3 {
    margin-top: 2rem;
}
.entry-content h2::before,
.entry-content h3::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--accent-2);
    margin-right: .6rem;
    vertical-align: middle;
}
.entry-content img { border-radius: 6px; }
.entry-content ul li::marker { color: var(--accent-2); }
.entry-content ol li::marker { color: var(--accent); font-family: var(--mono); }

.entry-tags {
    margin-top: 2rem;
    font-family: var(--mono);
    font-size: .82rem;
    color: var(--muted);
}
.entry-tags a {
    display: inline-block;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: .25rem .6rem;
    margin: .25rem .35rem 0 0;
    color: var(--accent-2);
}
.entry-tags a:hover { border-color: var(--accent); color: var(--accent); }

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-top: 2.4rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
    font-family: var(--mono);
    font-size: .86rem;
}
.post-nav a { color: var(--accent); }

.page-title { font-size: 2.3rem; margin-bottom: 1.6rem; }

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 2.6rem;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 .8rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-family: var(--mono);
    font-size: .9rem;
    color: var(--text);
    background: var(--bg-alt);
    transition: border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.pager a.page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 14px rgba(96, 165, 250, .28);
}
.pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #0B0F19;
}
.pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
}

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

.sidebar { min-width: 0; }

.sidebar .widget {
    background: var(--bg-aside);
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 6px;
    padding: 1.4rem 1.4rem 1.5rem;
    margin-bottom: 1.6rem;
    color: var(--text);
}
.sidebar .widget:last-child { margin-bottom: 0; }

.widget-title {
    font-size: 1.05rem;
    margin: 0 0 1rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid var(--line);
    color: #F1F5F9;
}
.sidebar .widget-title::before {
    content: "::";
    color: var(--accent);
    margin-right: .45rem;
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.widget li {
    margin: 0 0 .7rem;
    padding-left: 1.1rem;
    position: relative;
    font-size: .94rem;
    line-height: 1.55;
}
.widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .58em;
    width: 7px;
    height: 7px;
    background: var(--accent-2);
}
.sidebar .widget a { color: var(--text); }
.sidebar .widget a:hover { color: var(--accent); }
.sidebar .widget p { color: #CBD5E1; font-size: .94rem; }
.sidebar .post-date { display: block; color: var(--muted); font-size: .78rem; font-family: var(--mono); }

/* =========================================================
   12. Форма поиска
   ========================================================= */

.search-form {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}
.search-form .search-field {
    flex: 1 1 180px;
    min-width: 0;
    background: #0B0F19;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--text);
    font-family: var(--sans);
    font-size: .95rem;
    padding: .7rem .9rem;
}
.search-form .search-field:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(96, 165, 250, .25);
}
.search-form .search-submit {
    background: var(--accent);
    color: #0B0F19;
    border: 1px solid var(--accent);
    border-radius: 4px;
    font-family: var(--mono);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: .7rem 1.1rem;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}
.search-form .search-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(96, 165, 250, .45);
}

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

.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}
.comments-title, .comment-reply-title { font-size: 1.35rem; }

.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list .children { list-style: none; margin: 1rem 0 0; padding-left: 1.4rem; border-left: 1px solid var(--line); }

.comment-inner {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.1rem 1.3rem;
    margin-bottom: 1rem;
}
.comment-head {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: .5rem;
}
.comment-author { font-family: var(--mono); color: #F1F5F9; }
.comment-date { font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.comment-text p:last-child { margin-bottom: 0; }
.comment-foot { margin-top: .6rem; font-family: var(--mono); font-size: .82rem; }

.comment-form p { margin-bottom: 1rem; }
.comment-form label {
    display: block;
    font-family: var(--mono);
    font-size: .84rem;
    color: var(--muted);
    margin-bottom: .35rem;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background: #0B0F19;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--text);
    font-family: var(--sans);
    font-size: .96rem;
    padding: .7rem .9rem;
}
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.comment-form .submit {
    background: var(--accent);
    color: #0B0F19;
    border: 1px solid var(--accent);
    border-radius: 4px;
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: .88rem;
    padding: .8rem 1.5rem;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}
.comment-form .submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(96, 165, 250, .45);
}
.comment-notes, .comment-form-cookies-consent label { font-size: .84rem; color: var(--muted); }

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

.nf-code {
    font-family: var(--mono);
    font-size: 5rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: .6rem;
}
.nf-box { max-width: 640px; }
.nf-actions { margin-top: 1.6rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.nf-search { margin-top: 1.8rem; }

.no-results { color: var(--muted); }

.more-line { margin-top: 1.8rem; }

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

.site-footer {
    background: var(--bg-foot);
    border-top: 1px solid var(--line);
    padding: 3rem 0 1.6rem;
    color: #CBD5E1;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.2rem;
    margin-bottom: 2.4rem;
}
.footer-col { min-width: 0; }
.site-footer .widget { margin-bottom: 1.4rem; color: #CBD5E1; }
.site-footer .widget:last-child { margin-bottom: 0; }
.site-footer .widget-title { color: #F1F5F9; border-bottom-color: #1A2233; }
.site-footer .widget-title::before { content: "::"; color: var(--accent-2); margin-right: .45rem; }
.site-footer .widget p { color: #94A3B8; font-size: .92rem; }
.site-footer .widget a { color: #CBD5E1; }
.site-footer .widget a:hover { color: var(--accent); }
.site-footer .widget li::before { background: var(--accent); }

.footer-bottom {
    border-top: 1px solid #131A26;
    padding-top: 1.4rem;
    font-family: var(--mono);
    font-size: .8rem;
    color: var(--muted);
    letter-spacing: .03em;
}

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    background: #0F172A;
    border-top: 1px solid var(--accent);
    padding: 1.1rem 1.6rem;
    color: #CBD5E1;
    font-size: .9rem;
}
.cookie-banner p { margin: 0; max-width: 780px; }
.cookie-banner .btn { padding: .65rem 1.3rem; font-size: .85rem; }

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

@media (max-width: 960px) {
    h1 { font-size: 2.5rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .layout-single { width: 100%; }
    .mech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body::after { width: 300px; height: 300px; }

    .nav-toggle { display: inline-block; }
    .main-nav {
        flex-basis: 100%;
        display: none;
    }
    .main-nav.is-open { display: block; }
    .main-nav ul {
        flex-direction: column;
        gap: .2rem;
        border-top: 1px solid var(--line);
        margin-top: 1rem;
        padding-top: 1rem;
    }
    .main-nav a { display: block; padding: .55rem 0; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2rem; }
    .entry-title { font-size: 1.7rem; }
    .sec-title { font-size: 1.5rem; }
    .fs { padding: 2.8rem 0; }
    .hero-body { padding: 3.4rem 0 3.2rem; }
    .mech-grid { grid-template-columns: minmax(0, 1fr); }
    .footer-cols { grid-template-columns: minmax(0, 1fr); }
    .accent-plate { padding: 1.8rem 1.4rem; }
    .cookie-banner { padding: 1rem 1.1rem; }

    .tl::before { left: 6px; }
    .tl-item,
    .tl-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding: 0 0 2rem 2rem;
    }
    .tl-item::after,
    .tl-item:nth-child(even)::after { left: 0; right: auto; }

    .map-row { flex-direction: column; }
    .map-tile .mt-desc { max-height: 200px; opacity: 1; margin-top: .6rem; }
}
