/*
Theme Name: dds_ozliginus.ru
Theme URI: https://ozliginus.ru/
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: ozlg
*/

/* ---------- Токены ---------- */
:root {
    --bg: #0B1120;
    --bg-alt: #111A2E;
    --bg-foot: #070C16;
    --bg-side: #0F172A;
    --text: #E2E8F0;
    --text-soft: #94A3B8;
    --muted: #64748B;
    --accent: #38BDF8;
    --accent-2: #818CF8;
    --line: #1E293B;
    --glass: rgba(15, 23, 42, 0.72);
    --radius: 10px;
    --radius-btn: 6px;
    --font-head: "Inter Tight", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-body: "Inter", "IBM Plex Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --grid-weak: rgba(30, 41, 59, 0.15);
    --grid-strong: rgba(30, 41, 59, 0.42);
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.75;
    background-color: var(--bg);
    background-image:
        linear-gradient(var(--grid-weak) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-weak) 1px, transparent 1px);
    background-size: 24px 24px;
    -webkit-font-smoothing: antialiased;
}

body::after {
    content: "";
    position: fixed;
    right: -40px;
    bottom: -30px;
    width: 420px;
    height: 270px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 150'%3E%3Cpath d='M40 40h160c22 0 34 20 36 50 2 30-10 50-28 50-20 0-28-26-48-26H80c-20 0-28 26-48 26C14 140 2 120 4 90c2-30 14-50 36-50z' fill='none' stroke='%2338BDF8' stroke-width='4'/%3E%3Cpath d='M62 72v32M46 88h32' stroke='%2338BDF8' stroke-width='6' stroke-linecap='round'/%3E%3Ccircle cx='170' cy='76' r='7' fill='%2338BDF8'/%3E%3Ccircle cx='190' cy='96' r='7' fill='%2338BDF8'/%3E%3Ccircle cx='150' cy='96' r='7' fill='%2338BDF8'/%3E%3Ccircle cx='170' cy='116' r='7' fill='%2338BDF8'/%3E%3C/svg%3E") no-repeat center / contain;
}

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

p, li, dd, td, th, blockquote, figcaption, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    hyphens: auto;
}

p { margin: 0 0 1.1em; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: #F1F5F9;
    margin: 1.6em 0 0.6em;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

a {
    color: var(--accent);
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 1px;
    transition: background-size 0.25s ease, color 0.2s ease;
}
a:hover { background-size: 100% 1px; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

::selection { background: rgba(56, 189, 248, 0.3); color: #fff; }

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

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 100;
    padding: 0.6rem 1rem;
    background: var(--accent);
    color: var(--bg);
    border-radius: var(--radius-btn);
}
.skip-link:focus { top: 1rem; }

/* ---------- Контейнер ---------- */
.shell {
    width: 92%;
    margin-inline: auto;
}

/* ---------- Полоса сверху ---------- */
.topline {
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    position: relative;
    z-index: 3;
}

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 46px;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-btn);
    border: 1px solid var(--accent);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    background-image: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); background-size: auto; }
.btn--fill {
    background-color: var(--accent);
    color: var(--bg);
}
.btn--fill:hover {
    color: var(--bg);
    box-shadow: 0 6px 22px rgba(56, 189, 248, 0.38);
}
.btn--line {
    background-color: transparent;
    color: var(--accent);
}
.btn--line:hover {
    color: var(--accent);
    background-color: rgba(56, 189, 248, 0.14);
    box-shadow: 0 6px 22px rgba(56, 189, 248, 0.22);
}
.btn--big { min-height: 54px; padding: 0.9rem 1.8rem; font-size: 1.05rem; }

/* ---------- Шапка ---------- */
.masthead {
    position: relative;
    z-index: 20;
    background: rgba(11, 17, 32, 0.72);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(56, 189, 248, 0.14);
}
.masthead-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.8rem 1.5rem;
    padding: 1rem 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    flex: 1 1 0;
    color: var(--text);
    background-image: none;
}
.brand-mark { flex: 0 0 auto; }
.brand-logo { width: 48px; height: 48px; object-fit: contain; display: block; }
.brand-text { display: flex; flex-direction: column; min-width: 0; max-width: 62ch; }
.brand-name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.3;
    color: #F1F5F9;
}
.brand-desc {
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--text-soft);
    margin-top: 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(56, 189, 248, 0.5);
    border-radius: var(--radius-btn);
    background: transparent;
    color: var(--text);
    font: 600 0.9rem var(--font-head);
    cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--accent);
    position: relative;
    transition: transform 0.2s ease;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: none; flex: 1 0 100%; }
.site-nav.is-open { display: block; }
.nav-list { list-style: none; margin: 0; padding: 0.4rem 0 0.6rem; }
.nav-list li { margin: 0; }
.nav-list a {
    display: block;
    padding: 0.7rem 0.2rem;
    color: var(--text);
    font-family: var(--font-head);
    font-weight: 500;
    border-bottom: 1px solid var(--line);
    background-image: none;
}
.nav-list a:hover,
.nav-list .current-menu-item > a { color: var(--accent); }
.nav-list .sub-menu { list-style: none; padding-left: 1rem; margin: 0; }

/* ---------- Заголовки секций ---------- */
.sec-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 0 1.4rem;
    font-size: clamp(1.6rem, 3.4vw, 2.3rem);
    letter-spacing: -0.02em;
}
.sec-title::before {
    content: "";
    flex: 0 0 clamp(36px, 7vw, 90px);
    height: 1px;
    background: linear-gradient(90deg, transparent, #334155);
}
.sec-title-text { display: inline-flex; align-items: baseline; gap: 0.7rem; min-width: 0; }
.sec-title-text::before {
    content: "";
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    background: var(--accent);
    transform: translateY(-0.12em);
}
.sec-lead {
    max-width: 60ch;
    color: var(--text-soft);
    margin: 0 0 2.6rem;
}

/* ---------- Секции главной ---------- */
.fs {
    position: relative;
    padding: 4.5rem 0;
}
.fs--alt { background-color: var(--bg-alt); }

.fs--accent {
    background-color: var(--bg-alt);
    background-image:
        repeating-linear-gradient(45deg, rgba(56, 189, 248, 0.05) 0 1px, transparent 1px 14px),
        linear-gradient(var(--grid-strong) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px),
        linear-gradient(180deg, #111A2E 0%, #0B1120 100%);
    background-size: auto, 24px 24px, 24px 24px, auto;
}

/* Hero */
.fs--hero {
    padding: 0;
    min-height: clamp(520px, 82vh, 780px);
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}
.fs--hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-2), var(--accent), transparent 85%);
    z-index: 2;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}
.hero-veil {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(11, 17, 32, 0.92) 0%, rgba(11, 17, 32, 0.7) 55%, rgba(11, 17, 32, 0.6) 100%),
        linear-gradient(var(--grid-strong) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px);
    background-size: auto, 24px 24px, 24px 24px;
}
.hero-inner { position: relative; padding: 5rem 0; }
.hero-copy {
    max-width: 44rem;
    padding: 2rem 1.6rem;
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.45);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(56, 189, 248, 0.22);
    box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.05), 0 0 40px rgba(56, 189, 248, 0.08);
}
.hero-title {
    margin: 0 0 1.1rem;
    font-size: clamp(2.1rem, 5.5vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-weight: 800;
    color: #F8FAFC;
}
.hero-lead {
    color: #CBD5E1;
    font-size: 1.08rem;
    max-width: 56ch;
    margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-pad {
    position: absolute;
    right: 4%;
    bottom: 2.2rem;
    width: clamp(140px, 22vw, 260px);
    height: auto;
    opacity: 0.12;
    pointer-events: none;
}

/* Направления */
.tracks {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.2rem;
}
.track {
    min-width: 0;
    padding: 1.8rem 1.5rem 1.6rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--glass);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.track:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5), 0 0 22px rgba(56, 189, 248, 0.12);
}
.track-icon { width: 40px; height: 40px; color: var(--accent); margin-bottom: 1.1rem; display: block; }
.track-title { margin: 0 0 0.6rem; font-size: 1.2rem; }
.track-text { margin: 0; color: var(--text-soft); font-size: 0.97rem; line-height: 1.65; }

/* Последние записи */
.latest-more { margin-top: 2.4rem; }
.empty-note { color: var(--text-soft); }

/* Статистика */
.stats {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
}
.stat {
    min-width: 0;
    padding: 1.8rem 1.2rem;
    border-bottom: 1px solid var(--line);
}
.stat:nth-child(odd) { border-right: 1px solid var(--line); }
.stat:last-child { grid-column: 1 / -1; border-right: 0; }
.stat-num {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}
.stat-label {
    margin: 0.7rem 0 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.4;
}

/* CTA */
.fs--cta {
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(-45deg, rgba(56, 189, 248, 0.05) 0 1px, transparent 1px 12px),
        linear-gradient(var(--grid-strong) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px);
    background-size: auto, 24px 24px, 24px 24px;
}
.cta-plate {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.8rem;
    padding: 2.2rem 1.5rem;
    border-left: 2px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: rgba(17, 26, 46, 0.7);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.07);
}
.cta-copy { min-width: 0; max-width: 46rem; }
.cta-title {
    margin: 0 0 0.8rem;
    font-size: clamp(1.9rem, 4.4vw, 2.9rem);
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.cta-text { margin: 0; color: var(--text-soft); }

/* ---------- Карточки записей ---------- */
.cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
}
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--glass);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 22px rgba(56, 189, 248, 0.1);
}
.card-thumb {
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: var(--bg-alt);
}
.card-thumb a { display: block; background-image: none; }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.card:hover .card-thumb img { transform: scale(1.03); }
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.3rem 1.3rem 1.4rem;
}
.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.82rem;
}
.card-date { color: var(--muted); font-variant-numeric: tabular-nums; }
.card-pin { color: var(--accent-2); font-weight: 600; }
.card-title {
    margin: 0 0 0.7rem;
    font-size: 1.18rem;
    line-height: 1.3;
}
.card-title a { color: #F1F5F9; }
.card-title a:hover { color: var(--accent); }
.card-excerpt { color: var(--text-soft); font-size: 0.96rem; line-height: 1.65; margin-bottom: 1rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    margin-top: auto;
    align-self: flex-start;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.92rem;
}

/* ---------- Теги категорий ---------- */
.chip {
    display: inline-block;
    padding: 0.18rem 0.6rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.5;
    background-image: none;
    border: 1px solid transparent;
    transition: border-color 0.2s ease;
}
.chip:hover { background-size: auto; }
.chip--sky { color: #7DD3FC; background-color: rgba(56, 189, 248, 0.12); }
.chip--indigo { color: #A5B4FC; background-color: rgba(129, 140, 248, 0.14); }
.chip--steel { color: #CBD5E1; background-color: rgba(148, 163, 184, 0.14); }
.chip--teal { color: #5EEAD4; background-color: rgba(45, 212, 191, 0.12); }
.chip--sky:hover { border-color: rgba(56, 189, 248, 0.5); }
.chip--indigo:hover { border-color: rgba(129, 140, 248, 0.5); }
.chip--steel:hover { border-color: rgba(148, 163, 184, 0.5); }
.chip--teal:hover { border-color: rgba(45, 212, 191, 0.5); }

/* ---------- Внутренние страницы ---------- */
.page-wrap { position: relative; z-index: 1; padding: 2rem 0 5rem; }

.crumbs {
    font-size: 0.86rem;
    color: var(--muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}
.crumbs a { color: var(--text-soft); }
.crumbs a:hover { color: var(--accent); }
.crumbs-sep { color: #334155; margin: 0 0.25rem; }
.crumbs-current { color: var(--text); }

.layout-single { display: block; }
.layout-single .content-area { min-width: 0; }
.layout-with-sidebar { display: block; }
.content-area { min-width: 0; }

.page-head { margin-bottom: 2.2rem; }
.page-title {
    margin: 0;
    font-size: clamp(1.9rem, 4.5vw, 3.2rem);
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.page-desc { color: var(--text-soft); margin-top: 1rem; max-width: 62ch; }

.entry-head { margin-bottom: 1.8rem; }
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.9rem;
    font-size: 0.86rem;
    color: var(--muted);
    margin-bottom: 1rem;
}
.entry-title {
    margin: 0;
    font-size: clamp(1.9rem, 4.5vw, 3.2rem);
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.entry-cover { margin: 0 0 2rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.entry-cover img { width: 100%; }

.entry-content { max-width: 72ch; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2::before,
.entry-content h3::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 0.6rem;
    background: var(--accent);
    vertical-align: 0.18em;
}
.entry-content ul, .entry-content ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: 0.35em; }
.entry-content ul li::marker { color: var(--accent); }
.entry-content ol li::marker { color: var(--accent); font-family: var(--font-head); font-weight: 700; }
.entry-content img { border-radius: 8px; }
.entry-content figure { margin: 1.8em 0; }
.entry-content figcaption { font-size: 0.86rem; color: var(--muted); margin-top: 0.5rem; }

blockquote {
    margin: 1.8em 0;
    padding: 0.2rem 0 0.2rem 1.5rem;
    border-left: 3px solid var(--accent);
    color: #CBD5E1;
    font-size: 1.12rem;
}
blockquote p:last-child { margin-bottom: 0; }

code, pre, kbd { font-family: "JetBrains Mono", "Fira Code", Consolas, "Courier New", monospace; font-size: 0.92em; }
:not(pre) > code { background: rgba(56, 189, 248, 0.1); color: #BAE6FD; padding: 0.1em 0.35em; border-radius: 4px; }
pre {
    overflow-x: auto;
    padding: 1.2rem 1.3rem;
    background: #070C16;
    border: 1px solid var(--line);
    border-radius: 8px;
    line-height: 1.6;
    margin: 0 0 1.4em;
}

.entry-content table, table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.5em;
    font-size: 0.95rem;
    border: 1px solid #334155;
}
th, td { border: 1px solid #334155; padding: 0.6rem 0.8rem; text-align: left; vertical-align: top; }
th { background: var(--bg-alt); font-family: var(--font-head); color: #F1F5F9; }

hr { border: 0; height: 1px; background: var(--line); margin: 2.5em 0; }

.entry-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }

.page-links { margin-top: 1.5rem; }

.post-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin: 3rem 0;
}
.post-nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--glass);
    background-image: none;
    transition: border-color 0.2s ease;
}
.post-nav-link:hover { border-color: rgba(56, 189, 248, 0.6); }
.post-nav-dir { font-size: 0.8rem; color: var(--muted); }
.post-nav-title { color: var(--text); font-family: var(--font-head); font-weight: 600; line-height: 1.35; }
.post-nav-link--next { text-align: right; }

/* ---------- Пагинация ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 3rem;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    color: var(--text);
    font-family: var(--font-head);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    background-image: none;
    background-color: rgba(15, 23, 42, 0.6);
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.pager a.page-numbers:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.pager .page-numbers.current { background-color: var(--accent); border-color: var(--accent); color: var(--bg); }
.pager .page-numbers.dots { border-color: transparent; background-color: transparent; min-width: auto; padding: 0.4rem 0.3rem; }

/* ---------- Сайдбар и виджеты ---------- */
.sidebar {
    min-width: 0;
    margin-top: 3rem;
    padding: 1.6rem 1.4rem;
    background: var(--bg-side);
    border: 1px solid var(--line);
    border-left-color: rgba(226, 232, 240, 0.16);
    border-radius: var(--radius);
    color: var(--text);
}
.sidebar .widget { margin-bottom: 2.2rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.widget-title {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    color: #F1F5F9;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.widget-title::before { content: ""; width: 6px; height: 6px; background: var(--accent); flex: 0 0 auto; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); line-height: 1.45; }
.widget li:last-child { border-bottom: 0; }
.sidebar .widget, .sidebar .widget p { color: #CBD5E1; }
.sidebar .widget a { color: var(--text); }
.sidebar .widget a:hover { color: var(--accent); }
.sidebar .post-date { display: block; font-size: 0.8rem; color: #7C8BA1; }

/* ---------- Поиск ---------- */
.seek { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.2rem 0; max-width: 34rem; }
.seek-field {
    flex: 1 1 200px;
    min-width: 0;
    min-height: 46px;
    padding: 0.6rem 0.9rem;
    border: 1px solid #334155;
    border-radius: var(--radius-btn);
    background: rgba(7, 12, 22, 0.7);
    color: var(--text);
    font: inherit;
}
.seek-field::placeholder { color: var(--muted); }
.seek-field:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2); }

/* ---------- 404 ---------- */
.lost { padding: 2rem 0; }
.lost-code {
    margin: 0 0 0.4rem;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(5rem, 16vw, 9rem);
    line-height: 1;
    letter-spacing: -0.05em;
    color: transparent;
    -webkit-text-stroke: 1px var(--accent);
}
.lost-text { color: var(--text-soft); max-width: 52ch; margin-top: 1rem; }
.lost-home { margin-top: 1.5rem; }

/* ---------- Комментарии ---------- */
.remarks { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.remarks-title { margin-top: 0; }
.remarks-list, .remarks-list .children { list-style: none; margin: 0; padding: 0; }
.remarks-list .children { padding-left: 1.4rem; border-left: 1px solid var(--line); margin-top: 1rem; }
.remark { margin-bottom: 1.2rem; }
.remark-body {
    padding: 1.2rem 1.3rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--glass);
}
.remark-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.8rem; }
.remark-head img { border-radius: 6px; }
.remark-who { display: flex; flex-direction: column; line-height: 1.3; }
.remark-author { font-weight: 600; color: #F1F5F9; }
.remark-date { font-size: 0.8rem; color: var(--muted); }
.remark-wait { color: var(--accent-2); font-size: 0.9rem; }
.remark-text p:last-child { margin-bottom: 0; }
.remark-reply { margin-top: 0.6rem; font-size: 0.88rem; }
.remarks-closed { color: var(--muted); }

.comment-respond { margin-top: 2rem; }
.comment-reply-title { font-size: 1.4rem; }
.comment-reply-title small { margin-left: 0.8rem; font-size: 0.85rem; }
.comment-notes, .logged-in-as, .must-log-in { color: var(--text-soft); font-size: 0.92rem; }
.comment-form label { display: block; margin-bottom: 0.35rem; font-size: 0.9rem; color: #CBD5E1; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid #334155;
    border-radius: var(--radius-btn);
    background: rgba(7, 12, 22, 0.7);
    color: var(--text);
    font: inherit;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2); }
.comment-form-cookies-consent { display: flex; gap: 0.6rem; align-items: flex-start; }
.comment-form-cookies-consent label { margin: 0; }
.comment-form .submit {
    min-height: 46px;
    padding: 0.7rem 1.4rem;
    border: 1px solid var(--accent);
    border-radius: var(--radius-btn);
    background: var(--accent);
    color: var(--bg);
    font: 600 0.98rem var(--font-head);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.comment-form .submit:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(56, 189, 248, 0.38); }
.comments-pagination, .comment-navigation { margin: 1.5rem 0; }
.comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- Подвал ---------- */
.basement {
    position: relative;
    z-index: 1;
    background: var(--bg-foot);
    border-top: 1px solid var(--line);
    box-shadow: inset 0 1px 0 rgba(56, 189, 248, 0.12);
    color: #CBD5E1;
    padding: 3.5rem 0 1.5rem;
}
.basement-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.4rem;
}
.basement-col { min-width: 0; }
.basement .widget { margin-bottom: 1.5rem; }
.basement .widget-title { color: #F1F5F9; }
.basement .widget, .basement .widget p { color: #B6C2D2; font-size: 0.95rem; line-height: 1.7; }
.basement .widget a { color: #CBD5E1; }
.basement .widget a:hover { color: var(--accent); }
.basement .widget li { border-bottom-color: #121B2C; padding: 0.45rem 0; }
.basement-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #121B2C;
}
.copyline { margin: 0; font-size: 0.85rem; color: #8391A7; }

/* ---------- Cookie-баннер ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    max-width: 760px;
    margin-inline: auto;
    padding: 1.2rem 1.3rem;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: var(--radius);
    background: rgba(11, 17, 32, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(56, 189, 248, 0.1);
}
.cookie-text { margin: 0; font-size: 0.9rem; line-height: 1.55; color: #CBD5E1; }
.cookie-accept { flex: 0 0 auto; }

/* ---------- WordPress ---------- */
.alignleft { float: left; margin: 0.3em 1.5em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption, .wp-block-image { max-width: 100%; }
.wp-caption-text { font-size: 0.86rem; color: var(--muted); }
.sticky .card-title a { color: #F1F5F9; }
.bypostauthor > .remark-body { border-color: rgba(129, 140, 248, 0.45); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.8rem; }

/* ---------- ≥ 600px ---------- */
@media (min-width: 600px) {
    .fs { padding: 6rem 0; }
    .tracks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .stat:nth-child(odd) { border-right: 0; }
    .stat { border-right: 1px solid var(--line); }
    .stat:nth-child(3n) { border-right: 0; }
    .stat:last-child { grid-column: auto; border-right: 0; }
    .hero-copy { padding: 2.6rem 2.4rem; }
    .cta-plate { padding: 3rem 2.6rem; }
    .post-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .post-nav-link--next { grid-column: 2; }
    .basement-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cookie-banner { flex-direction: row; align-items: center; padding: 1.1rem 1.4rem; }
}

/* ---------- ≥ 960px ---------- */
@media (min-width: 960px) {
    .shell { width: 85%; max-width: 1320px; }
    .fs { padding: 7rem 0; }
    .masthead-row { flex-wrap: nowrap; padding: 1.1rem 0; }
    .nav-toggle { display: none; }
    .site-nav { display: block; flex: 0 0 auto; }
    .nav-list { display: flex; flex-wrap: wrap; gap: 0.3rem 1.6rem; padding: 0; }
    .nav-list li { position: relative; }
    .nav-list a {
        padding: 0.4rem 0;
        border-bottom: 0;
        white-space: nowrap;
        background-image: linear-gradient(var(--accent), var(--accent));
        background-position: 0 100%;
        background-repeat: no-repeat;
        background-size: 0 1px;
    }
    .nav-list a:hover,
    .nav-list .current-menu-item > a { background-size: 100% 1px; }
    .nav-list .sub-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        padding: 0.5rem 1rem;
        background: var(--bg-side);
        border: 1px solid var(--line);
        border-radius: 8px;
    }
    .nav-list li:hover > .sub-menu,
    .nav-list li:focus-within > .sub-menu { display: block; }

    .tracks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .cards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .stats { grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 0; }
    .stat, .stat:nth-child(3n) { border-bottom: 0; border-right: 1px solid var(--line); padding: 1.2rem 1.6rem; }
    .stat:first-child { padding-left: 0; }
    .stat:last-child { border-right: 0; }

    .cta-plate { flex-direction: row; align-items: center; justify-content: space-between; padding: 3.6rem 3.4rem; }
    .cta-plate .btn { flex: 0 0 auto; }

    .layout-with-sidebar {
        display: grid;
        grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
        column-gap: 6%;
        align-items: start;
    }
    .layout-with-sidebar .sidebar { margin-top: 0; }
    .layout-single .content-area { width: 85%; margin-left: auto; margin-right: auto; }
    .layout-single .cards--feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .basement-cols { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 3.5rem; }

    h1 { font-size: 3.2rem; }
    h2 { font-size: 1.9rem; }
}

/* ---------- ≤ 600px ---------- */
@media (max-width: 600px) {
    body { font-size: 1rem; }
    .fs { padding: 3.8rem 0; }
    .fs--hero { padding: 0; }
    .hero-inner { padding: 3.5rem 0 6rem; }
    .hero-copy { padding: 1.6rem 1.3rem; }
    .hero-actions .btn { flex: 1 1 100%; }
    .cta-plate { padding: 1.8rem 1.3rem; }
    .brand { flex: 1 1 100%; align-items: flex-start; }
    .brand-name { font-size: 0.88rem; }
    .nav-toggle { margin-left: auto; }
    .sec-title { gap: 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
    .card:hover, .track:hover, .btn:hover { transform: none; }
}
