/*
Theme Name: dds_kumuklar.ru
Theme URI: https://kumuklar.ru/
Author: Алексей Морозов
Description: Тёмная информационная тема для сайта о спорте, дисциплинах и материалах для болельщиков. Брутальный минимализм в духе технической документации: инвентарные номера, чертёжные линейки, стальные акценты.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: kmkarsn
*/

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

:root {
    --bg: #0D1117;
    --bg-alt: #161B22;
    --bg-deep: #06080A;
    --line: #30363D;
    --text: #F0F6FC;
    --muted: #8B949E;
    --accent: #58A6FF;
    --warn: #FF7B24;
    --grid: #1E2430;
    --font-head: "Inter", "Manrope", "Arial Narrow", Arial, sans-serif;
    --font-body: "Roboto", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
    --font-mono: "JetBrains Mono", "Consolas", "Courier New", monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(45deg, var(--grid) 0 1px, transparent 1px 22px),
        repeating-linear-gradient(-45deg, var(--grid) 0 1px, transparent 1px 22px);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
}

/* фиксированный декоративный «прицел» в правом нижнем углу */
body::after {
    content: "";
    position: fixed;
    right: -60px;
    bottom: -60px;
    width: 340px;
    height: 340px;
    pointer-events: none;
    opacity: 0.04;
    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='%2358A6FF' stroke-width='3'%3E%3Ccircle cx='100' cy='100' r='90'/%3E%3Ccircle cx='100' cy='100' r='58'/%3E%3Ccircle cx='100' cy='100' r='26'/%3E%3Cpath d='M100 0v200M0 100h200'/%3E%3Ccircle cx='60' cy='60' r='34'/%3E%3Ccircle cx='142' cy='138' r='34'/%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

.site-top,
.site-main,
.site-footer,
.cookie-banner {
    position: relative;
    z-index: 1;
}

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

p {
    margin: 0 0 1.1em;
}

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

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

a {
    color: var(--accent);
}

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

/* Раскладки */
.layout-single {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

/* =========================================================
   2. Ссылки и кнопки
   ========================================================= */

.entry-content a,
.card-excerpt a,
.widget_text a,
.comment-text a {
    color: var(--accent);
    text-decoration: none;
    border-top: 1px dotted var(--muted);
    border-bottom: 0;
}

.entry-content a:hover,
.card-excerpt a:hover,
.widget_text a:hover,
.comment-text a:hover {
    border-top: 1px solid var(--accent);
    color: var(--accent);
}

.btn {
    display: inline-block;
    border-radius: 0;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.7rem 1.4rem;
    transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
    transform: translateY(2px);
    border-color: var(--warn);
    color: var(--warn);
    box-shadow: 0 0 0 1px var(--warn);
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-deep);
    box-shadow: inset 0 0 0 1px var(--bg);
}

.btn-primary:hover {
    background: var(--accent);
    color: var(--bg-deep);
    border-color: var(--warn);
    box-shadow: inset 0 0 0 1px var(--bg), 4px 4px 0 var(--bg-deep);
}

.btn svg {
    vertical-align: -2px;
    margin-left: 0.5rem;
}

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

.site-top {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.top-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    flex: 1 1 320px;
    text-decoration: none;
    color: var(--text);
}

.brand-logo,
.brand-mark {
    display: block;
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
}

.brand-logo {
    width: auto;
    max-height: 56px;
}

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

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

.brand-desc {
    display: block;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--muted);
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    padding: 0.6rem 0.9rem;
    cursor: pointer;
}

.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    display: inline-block;
    color: var(--text);
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-top: 1px dotted transparent;
    padding-top: 3px;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: var(--accent);
    border-top: 1px solid var(--accent);
}

/* =========================================================
   4. Хлебные крошки, заголовки страниц
   ========================================================= */

.crumbs {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
    word-break: break-word;
}

.crumbs a {
    color: var(--muted);
    text-decoration: none;
    border-top: 1px dotted var(--line);
}

.crumbs a:hover {
    color: var(--accent);
    border-top: 1px solid var(--accent);
}

.crumbs .sep {
    color: var(--warn);
    margin: 0 0.3rem;
}

.page-head {
    margin-bottom: 2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--line);
}

.page-head h1 {
    font-size: 2.6rem;
}

.inv {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.meta {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--muted);
    letter-spacing: 0.06em;
}

/* Заголовок секции: номер + текст + прерванная линейка */
.sec-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.sec-title {
    margin: 0;
    font-size: 1.7rem;
    text-transform: uppercase;
    min-width: 0;
}

.sec-num {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent);
    margin-right: 0.7rem;
    vertical-align: 3px;
}

.hl {
    font-style: normal;
    color: var(--accent);
}

.sec-rule {
    flex: 1 1 auto;
    min-width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--line), rgba(48, 54, 61, 0));
}

/* Разделитель-шкала и шевроны */
.sec-sep {
    height: 4px;
    margin: 0;
    background-image: repeating-linear-gradient(90deg, var(--line) 0 2px, transparent 2px 9px);
}

.chevrons {
    height: 14px;
    background-image: repeating-linear-gradient(135deg, rgba(255, 123, 36, 0.35) 0 2px, transparent 2px 12px);
}

/* =========================================================
   5. Секции главной
   ========================================================= */

.fs {
    padding: 3rem 2rem;
}

.fs--alt {
    background: var(--bg-alt);
}

.fs--gradient {
    background: linear-gradient(135deg, var(--bg-alt), var(--bg));
    border: 1px solid var(--line);
}

/* 5.1 Hero */
.hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    padding: 0;
    background: var(--bg-deep);
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.3) saturate(0.6);
}

.hero-inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2rem;
    padding: 4rem 2.4rem;
}

.hero-text {
    flex: 1 1 460px;
    min-width: 0;
}

.hero-text h1 {
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-lead {
    max-width: 46ch;
    color: #D6E2F0;
    font-size: 1.05rem;
}

.patch {
    flex: 0 1 300px;
    min-width: 0;
    border: 2px solid var(--accent);
    background: rgba(13, 17, 23, 0.85);
    padding: 1.2rem 1.2rem;
}

.patch-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--warn);
    margin-bottom: 0.6rem;
}

.patch-name {
    display: block;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 0.9rem;
    line-height: 1.4;
    text-transform: uppercase;
}

/* 5.2 Таймлайн */
.tl {
    position: relative;
    margin: 0;
    padding: 0 0 0 0;
    list-style: none;
}

.tl::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 6px;
    bottom: 6px;
    width: 0;
    border-left: 3px dashed var(--accent);
    transform: translateX(-1.5px);
}

.tl-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr);
    align-items: center;
    gap: 0;
    margin-bottom: 2rem;
}

.tl-date {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.6rem;
    text-align: right;
    padding-right: 1.4rem;
    min-width: 0;
    color: var(--text);
}

.tl-mark {
    justify-self: center;
    width: 34px;
    height: 34px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    background: var(--bg);
    position: relative;
}

.tl-mark::before,
.tl-mark::after {
    content: "";
    position: absolute;
    background: var(--warn);
}

.tl-mark::before {
    left: 50%;
    top: 6px;
    bottom: 6px;
    width: 2px;
    transform: translateX(-1px);
}

.tl-mark::after {
    top: 50%;
    left: 6px;
    right: 6px;
    height: 2px;
    transform: translateY(-1px);
}

.tl-body {
    padding-left: 1.4rem;
    min-width: 0;
}

.tl-body h3 {
    margin-bottom: 0.35rem;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.tl-body p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

/* 5.3 Цитата */
.quote-block {
    background:
        linear-gradient(135deg, var(--bg-alt), var(--bg)),
        repeating-linear-gradient(0deg, var(--grid) 0 1px, transparent 1px 26px);
    border: 1px solid var(--line);
    padding: 3rem 2.4rem;
    display: flex;
    gap: 1.6rem;
    align-items: flex-start;
}

.quote-brace {
    font-family: var(--font-mono);
    font-size: 5rem;
    line-height: 0.8;
    color: var(--warn);
    flex: 0 0 auto;
}

.quote-body {
    min-width: 0;
}

.quote-text {
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 1.4rem;
}

.quote-author {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin: 0;
}

.quote-author strong {
    color: var(--accent);
    font-weight: 500;
}

/* 5.4 Рубрикатор */
.rubrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
}

.rubric {
    display: block;
    border: 2px solid var(--line);
    background: var(--bg);
    color: var(--text);
    text-decoration: none;
    padding: 1.8rem 1.4rem;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
    min-width: 0;
}

.rubric:nth-child(2) { background: #12171E; }
.rubric:nth-child(3) { background: #141A21; }
.rubric:nth-child(4) { background: #10151C; }

.rubric svg {
    display: block;
    width: 46px;
    height: 46px;
    margin-bottom: 1rem;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2;
}

.rubric-name {
    display: block;
    font-family: var(--font-head);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.rubric-note {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
}

.rubric:hover {
    border-color: var(--accent);
    background: linear-gradient(160deg, rgba(88, 166, 255, 0.9), rgba(88, 166, 255, 0.35));
    color: var(--bg-deep);
    transform: translateY(2px);
}

.rubric:hover svg { stroke: var(--bg-deep); }
.rubric:hover .rubric-note { color: #0B1520; }

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

.card-list {
    display: block;
}

.card {
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-left: 3px solid var(--line);
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 1.6rem;
    transition: border-color 0.15s ease;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--warn);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.card:hover {
    border-left-color: var(--accent);
}

.card:hover::before {
    opacity: 1;
}

.card-row {
    display: flex;
    flex: 1;
    min-width: 0;
}

.card-thumb-wrap {
    flex: 0 0 260px;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(1) sepia(0.25) hue-rotate(175deg) saturate(1.4) brightness(0.85);
}

.card-body {
    flex: 1;
    min-width: 0;
    padding: 1.5rem 1.6rem;
}

.card-title {
    font-size: 1.25rem;
    margin: 0 0 0.4rem;
    text-transform: none;
}

.card-title a {
    color: var(--text);
    text-decoration: none;
    border-top: 1px dotted transparent;
}

.card-title a:hover {
    color: var(--accent);
}

.card-meta {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--muted);
    letter-spacing: 0.06em;
    margin-bottom: 0.8rem;
}

.card-excerpt {
    color: #C6D2DF;
    font-size: 0.95rem;
}

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

.card-more {
    margin-top: 0.6rem;
}

/* =========================================================
   7. Контент записи и страницы
   ========================================================= */

.entry-content {
    font-size: 1.02rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2rem;
    text-transform: uppercase;
}

.entry-content h2 {
    font-size: 1.6rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.4rem;
}

.entry-content img {
    display: block;
    margin: 1.6rem 0;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.4rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-left: 4px solid var(--warn);
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.entry-content blockquote ul {
    list-style: none;
    padding-left: 1.4rem;
}

.entry-content blockquote ul li {
    position: relative;
}

.entry-content blockquote ul li::before {
    content: "!";
    position: absolute;
    left: -1.2rem;
    color: var(--warn);
    font-family: var(--font-mono);
    font-weight: 700;
}

.entry-thumb {
    margin-bottom: 1.6rem;
}

.entry-thumb img {
    display: block;
    width: 100%;
    height: auto;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 36px), calc(100% - 36px) 100%, 0 100%);
    filter: grayscale(1) sepia(0.25) hue-rotate(175deg) saturate(1.3) brightness(0.9);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
    border: 1px solid var(--line);
}

th, td {
    border: 1px solid var(--line);
    padding: 0.65rem 0.8rem;
    text-align: left;
}

th {
    background: var(--bg-alt);
    font-family: var(--font-head);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

code, pre {
    font-family: var(--font-mono);
    background: var(--bg-alt);
    border: 1px solid var(--line);
}

pre {
    padding: 1rem;
    overflow: auto;
}

.tags-line {
    margin-top: 1.6rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--muted);
}

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

.post-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    font-family: var(--font-head);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.post-nav a {
    text-decoration: none;
    min-width: 0;
}

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

.sidebar {
    min-width: 0;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    padding: 1.4rem 1.4rem;
}

.sidebar .widget {
    margin-bottom: 1.8rem;
}

.sidebar .widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--line);
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget li {
    margin-bottom: 0.7rem;
    padding-left: 0.9rem;
    position: relative;
}

.widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 5px;
    height: 5px;
    background: var(--warn);
}

/* Контраст текста виджетов — по каждой области отдельно */
.sidebar .widget,
.sidebar .widget p,
.sidebar .widget li,
.sidebar .widget-title {
    color: var(--text);
}

.sidebar .widget a {
    color: var(--text);
    text-decoration: none;
    border-top: 1px dotted var(--line);
}

.sidebar .widget a:hover {
    color: var(--accent);
    border-top: 1px solid var(--accent);
}

.sidebar .widget .post-date,
.sidebar .widget .rss-date {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted);
}

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

.site-footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--line);
    padding: 3rem 0 1.6rem;
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

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

.site-footer .widget,
.site-footer .widget p,
.site-footer .widget li {
    color: #C9D6E2;
    font-size: 0.92rem;
}

.site-footer .widget-title {
    color: var(--text);
    border-bottom-color: #1D242C;
}

.site-footer .widget a {
    color: #C9D6E2;
    text-decoration: none;
    border-top: 1px dotted #232B34;
}

.site-footer .widget a:hover {
    color: var(--accent);
    border-top: 1px solid var(--accent);
}

.site-footer .widget .post-date {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted);
}

.copyright {
    margin-top: 2.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid #161B22;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--muted);
    letter-spacing: 0.04em;
}

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2.4rem 0 0;
}

.pager .page-numbers {
    display: inline-block;
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 0.55rem 0.95rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text);
    text-decoration: none;
    background: var(--bg-alt);
}

.pager a.page-numbers:hover {
    border-color: var(--warn);
    color: var(--warn);
}

.pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-deep);
}

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

/* =========================================================
   11. Формы, поиск, комментарии
   ========================================================= */

.search-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.search-form input[type="search"] {
    flex: 1 1 200px;
    min-width: 0;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--text);
    font-family: var(--font-body);
    padding: 0.65rem 0.8rem;
}

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

.search-form button {
    border-radius: 0;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: var(--bg-deep);
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    padding: 0.65rem 1.1rem;
    cursor: pointer;
}

.search-form button:hover {
    border-color: var(--warn);
}

.comments-area {
    margin-top: 2.6rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
}

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

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

.comment-item {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    padding: 1.1rem 1.2rem;
    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);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.comment-date,
.comment-wait {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--muted);
}

.comment-reply a {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--accent);
    text-decoration: none;
    border-top: 1px dotted var(--accent);
}

.comment-respond {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    padding: 1.4rem 1.5rem;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--text);
    font-family: var(--font-body);
    padding: 0.6rem 0.7rem;
}

.comment-respond textarea {
    min-height: 130px;
}

.comment-respond .submit {
    border-radius: 0;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: var(--bg-deep);
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.7rem 1.4rem;
    cursor: pointer;
}

.comment-respond .submit:hover {
    border-color: var(--warn);
}

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--bg-alt);
    border-top: 2px solid var(--accent);
    padding: 1rem 1.6rem;
    z-index: 40;
}

.cookie-banner p {
    margin: 0;
    min-width: 0;
    flex: 1 1 320px;
    font-size: 0.88rem;
    color: #C9D6E2;
}

/* =========================================================
   13. 404 и служебные состояния
   ========================================================= */

.err-code {
    font-family: var(--font-mono);
    font-size: 5rem;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 1rem;
}

.notice-box {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-left: 4px solid var(--warn);
    padding: 1.4rem 1.6rem;
    margin-bottom: 1.6rem;
}

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

@media (max-width: 960px) {
    h1 { font-size: 2.6rem; }

    .layout-single {
        width: 100%;
    }

    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .rubrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .foot-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quote-text {
        font-size: 1.9rem;
    }
}

@media (max-width: 600px) {
    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.5rem; }

    .nav-toggle {
        display: block;
        order: 2;
    }

    .main-nav {
        flex: 1 1 100%;
        order: 3;
        display: none;
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0.9rem;
        padding: 1rem 0 0;
    }

    .fs {
        padding: 2rem 1.2rem;
    }

    .hero-inner {
        padding: 2.4rem 1.2rem;
    }

    .quote-block {
        padding: 1.8rem 1.4rem;
        flex-direction: column;
        gap: 0.6rem;
    }

    .quote-text {
        font-size: 1.5rem;
    }

    .fs--gradient {
        padding: 1.8rem 1.3rem;
    }

    .rubrics {
        grid-template-columns: minmax(0, 1fr);
    }

    .rubric {
        padding: 1.4rem 1.3rem;
    }

    .foot-cols {
        grid-template-columns: minmax(0, 1fr);
    }

    .card-row {
        flex-direction: column;
    }

    .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }

    .card-thumb-wrap a {
        position: static;
    }

    .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .card-body {
        padding: 1.2rem 1.2rem;
    }

    .tl::before {
        left: 17px;
        transform: none;
    }

    .tl-item {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 0 0.9rem;
    }

    .tl-date {
        grid-column: 2;
        grid-row: 1;
        text-align: left;
        padding-right: 0;
        font-size: 1.2rem;
    }

    .tl-mark {
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: start;
        justify-self: start;
    }

    .tl-body {
        grid-column: 2;
        grid-row: 2;
        padding-left: 0;
    }

    .notice-box,
    .comment-respond,
    .sidebar {
        padding: 1.2rem 1.1rem;
    }

    .cookie-banner {
        padding: 0.9rem 1.1rem;
    }

    .patch {
        flex: 1 1 100%;
    }
}

/* =========================================================
   15. Служебные классы WordPress
   ========================================================= */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.alignleft {
    float: left;
    margin: 0 1.4rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1.4rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    margin-bottom: 1.4rem;
    max-width: 100%;
}

.wp-caption-text,
.wp-element-caption {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--muted);
    margin-top: 0.4rem;
}

.sticky .card-title::before {
    content: "ЗАКРЕПЛЕНО";
    display: block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    color: var(--warn);
    margin-bottom: 0.3rem;
}

.notice-box p:last-child {
    margin-bottom: 0;
}
