/*
Theme Name: dds_optbazaar.ru
Author: Максим Горелов
Description: Тема для информационного сайта об электронной коммерции. Швейцарский стиль и тёмная техника: строгая сетка, контрастная типографика, бирюзовый акцент.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: optbaz
*/

/* ===== Переменные ===== */
:root {
    --bg: #0B1219;
    --alt: #111C2A;
    --deep: #070C12;
    --ink: #E8EDF2;
    --acc: #00E5C6;
    --amb: #FFB74D;
    --mut: #7A8A9E;
    --line: #1A2A3A;
    --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Roboto Mono", Consolas, monospace;
    --sans: "Inter", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* ===== Скрытые элементы (до основных стилей) ===== */
.cookie-banner[hidden] { display: none !important; }
.main-nav[hidden] { display: none !important; }

/* ===== База ===== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    background-color: var(--bg);
    background-image: radial-gradient(rgba(122, 138, 158, 0.28) 1px, transparent 1px);
    background-size: 28px 28px;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body::after {
    content: "";
    position: fixed;
    right: -140px;
    bottom: -160px;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 198, 0.55) 0%, rgba(0, 229, 198, 0) 68%);
    opacity: 0.11;
    filter: blur(40px);
    pointer-events: none;
    z-index: -1;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sans);
    line-height: 1.18;
    letter-spacing: -0.015em;
    margin: 0 0 0.7em;
    color: var(--ink);
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

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

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

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

/* ===== Верхняя полоса и шапка ===== */
.topline {
    height: 4px;
    width: 100%;
    background: var(--acc);
}

.site-head {
    position: relative;
    background: rgba(11, 18, 25, 0.78);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.head-inner {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: 1.15rem 0;
    flex-wrap: wrap;
}

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

.brand-link { display: block; flex: 0 0 auto; line-height: 0; }
.brand-logo { display: block; max-height: 56px; width: auto; }
.brand-mark { display: block; width: 46px; height: 46px; }

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

.brand-name {
    display: block;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
    max-width: 560px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brand-desc {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--mut);
    max-width: 560px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--acc);
    color: var(--acc);
    font: 600 0.85rem/1 var(--sans);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.65rem 0.9rem;
    border-radius: 0;
    cursor: pointer;
}

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

.main-nav a {
    display: inline-block;
    position: relative;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.25rem 0;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 0;
    height: 2px;
    background: var(--acc);
    transition: left 0.25s ease, right 0.25s ease;
}

.main-nav a:hover { color: var(--acc); }
.main-nav a:hover::after { left: 0; right: 0; }

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

/* ===== Кнопки ===== */
.btn {
    display: inline-block;
    border: 2px solid var(--acc);
    border-radius: 0;
    background: var(--acc);
    color: var(--bg);
    font-weight: 700;
    font-size: 0.93rem;
    letter-spacing: 0.03em;
    padding: 0.8rem 1.7rem;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn:hover {
    transform: translateY(2px);
    box-shadow: 0 8px 26px rgba(0, 229, 198, 0.35);
}

.btn-ghost {
    background: transparent;
    color: var(--acc);
}

.btn-ghost:hover {
    background: var(--acc);
    color: var(--bg);
    transform: translateY(2px);
    box-shadow: 0 8px 26px rgba(0, 229, 198, 0.28);
}

.tag-btn { border-radius: 4px; }

/* ===== Заголовки секций и кибер-точки ===== */
.sec-title {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.5em;
    font-size: 2rem;
    text-transform: none;
}

.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.18em;
    width: 2px;
    height: 0.7em;
    background: var(--acc);
}

.sec-title.glow {
    text-shadow: 0 0 22px rgba(0, 229, 198, 0.45);
}

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

.eyebrow {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--acc);
    margin-bottom: 1rem;
}

.entry-content h2,
.entry-content h3,
.card-title {
    position: relative;
    padding-left: 1.05rem;
}

.entry-content h2::before,
.entry-content h3::before,
.card-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--acc);
    box-shadow: 0 0 8px rgba(0, 229, 198, 0.8);
}

/* ===== Раскладки ===== */
.site-main { padding: 2.6rem 0 4.5rem; }

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

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

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

/* ===== Хлебные крошки ===== */
.crumbs {
    font-size: 0.84rem;
    color: var(--mut);
    margin-bottom: 1.8rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--line);
}

.crumbs a { color: var(--mut); }
.crumbs a:hover { color: var(--acc); }
.crumbs .sep { color: var(--amb); margin: 0 0.25rem; }
.crumbs span:last-child { color: var(--ink); }

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

.card {
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
    background: var(--alt);
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    box-shadow: 8px 8px 0 rgba(0, 229, 198, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--acc);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 12px 12px 0 rgba(0, 229, 198, 0.26);
}

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

.card-thumb {
    position: relative;
    display: block;
    overflow: hidden;
}

.card-thumb a { display: block; }

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

.card-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(11, 18, 25, 0) 45%, rgba(11, 18, 25, 0.8) 100%);
}

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

.card-meta {
    font-family: var(--mono);
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mut);
    margin-bottom: 0.7rem;
}

.card-title {
    font-size: 1.2rem;
    margin: 0 0 0.7rem;
}

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

.card-excerpt {
    color: var(--mut);
    font-size: 0.94rem;
    margin-bottom: 1.2rem;
}

.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt a { color: var(--acc); }

.card-more {
    align-self: flex-start;
    margin-top: auto;
    font-size: 0.85rem;
    padding: 0.6rem 1.25rem;
}

.sticky-mark {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    color: var(--amb);
    margin-left: 0.6rem;
}

/* ===== Главная: hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(100deg, rgba(11, 18, 25, 0.95) 20%, rgba(11, 18, 25, 0.7) 60%, rgba(11, 18, 25, 0.9) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding: 6rem 0;
}

.hero h1 {
    font-size: 4.2rem;
    line-height: 1.03;
    max-width: 16ch;
    margin-bottom: 1.2rem;
}

.hero-sub {
    color: var(--ink);
    opacity: 0.85;
    font-size: 1.1rem;
    max-width: 60ch;
    margin-bottom: 2.2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ===== Главная: секции ===== */
.fs { padding: 90px 0; }
.fs-alt { background: var(--alt); border-block: 1px solid var(--line); }

/* Статистика */
.stat-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stat-cell {
    min-width: 0;
    padding: 2rem 1.2rem;
    border-left: 1px solid var(--line);
}

.stat-cell:first-child { border-left: 0; }

.stat-num {
    font-family: var(--mono);
    font-size: 2.4rem;
    line-height: 1.1;
    color: var(--acc);
    letter-spacing: -0.02em;
}

.stat-cap {
    display: block;
    margin-top: 0.55rem;
    font-size: 0.82rem;
    color: var(--mut);
}

/* Таймлайн */
.tl { position: relative; padding-left: 2.6rem; }

.tl::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 0;
    border-left: 2px dashed rgba(0, 229, 198, 0.45);
}

.tl-item {
    position: relative;
    min-width: 0;
    padding-bottom: 2.4rem;
}

.tl-item:last-child { padding-bottom: 0; }

.tl-item::before {
    content: "";
    position: absolute;
    left: -2.6rem;
    top: 0.45rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--acc);
    box-shadow: 0 0 14px rgba(0, 229, 198, 0.7);
}

.tl-step {
    display: block;
    font-family: var(--mono);
    font-size: 0.76rem;
    letter-spacing: 0.2em;
    color: var(--amb);
    margin-bottom: 0.35rem;
}

.tl-item h3 { font-size: 1.25rem; margin-bottom: 0.35rem; padding-left: 0; }
.tl-item h3::before { display: none; }
.tl-item p { color: var(--mut); margin: 0; max-width: 70ch; }

/* Рубрикатор */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 1.6rem;
}

.topic-tile {
    display: block;
    min-width: 0;
    background: var(--alt);
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 2rem 1.6rem;
    aspect-ratio: 1 / 1;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.topic-tile:hover {
    border-color: var(--acc);
    box-shadow: 0 0 26px rgba(0, 229, 198, 0.25);
    transform: translateY(-4px);
}

.topic-tile svg { width: 42px; height: 42px; display: block; margin-bottom: 1.4rem; }
.topic-tile .t-name { display: block; font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.topic-tile .t-desc { display: block; font-size: 0.86rem; color: var(--mut); }

/* CTA-плашка */
.fs-cta {
    background: linear-gradient(120deg, #0B1219 0%, #002B2A 100%);
    background-image: linear-gradient(120deg, #0B1219 0%, #002B2A 100%), radial-gradient(rgba(0, 229, 198, 0.22) 1px, transparent 1px);
    background-size: auto, 22px 22px;
    border: 1px solid var(--line);
    padding: 2.8rem 2.4rem;
    margin-top: 3rem;
}

.fs-cta h3 { font-size: 1.6rem; margin-bottom: 0.6rem; padding-left: 0; }
.fs-cta h3::before { display: none; }
.fs-cta p { color: var(--mut); max-width: 62ch; }

/* ===== Контент записи и страницы ===== */
.entry-header { margin-bottom: 1.8rem; }

.entry-title { font-size: 2.4rem; margin-bottom: 0.6rem; }

.entry-meta {
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mut);
}

.entry-thumb { margin-bottom: 2rem; }
.entry-thumb img { display: block; width: 100%; }

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

.entry-content h2 { font-size: 1.7rem; margin-top: 2.2rem; }
.entry-content h3 { font-size: 1.3rem; margin-top: 1.8rem; }

.entry-content a {
    color: var(--acc);
    background-image: linear-gradient(var(--acc), var(--acc));
    background-repeat: no-repeat;
    background-position: 50% 100%;
    background-size: 0% 1px;
    transition: background-size 0.25s ease;
    padding-bottom: 1px;
}

.entry-content a:hover { background-size: 100% 1px; }

.entry-content ul,
.entry-content ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.entry-content li { margin-bottom: 0.5rem; }

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

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

.entry-content ul li::before {
    content: "";
    position: absolute;
    left: -1.1rem;
    top: 0.65em;
    width: 6px;
    height: 6px;
    background: var(--amb);
}

.entry-content blockquote {
    margin: 2rem 0;
    padding: 1.6rem 1.8rem;
    background: var(--alt);
    border-left: 3px solid var(--acc);
    color: var(--ink);
}

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

.entry-content img { display: block; height: auto; }

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
    border: 1px solid var(--line);
    font-size: 0.94rem;
}

.entry-content th,
.entry-content td {
    border: 1px solid var(--line);
    padding: 0.7rem 0.9rem;
    text-align: left;
}

.entry-content th { background: var(--alt); color: var(--acc); }

.entry-content code {
    font-family: var(--mono);
    font-size: 0.9em;
    background: var(--alt);
    padding: 0.15em 0.4em;
}

.entry-content pre {
    background: var(--alt);
    border: 1px solid var(--line);
    padding: 1rem;
    overflow-x: auto;
}

.entry-tags { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }

.entry-tags a {
    display: inline-block;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    color: var(--amb);
}

.entry-tags a:hover { border-color: var(--amb); }

.post-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
    margin-top: 2.6rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
}

/* ===== Сайдбар и виджеты ===== */
.sidebar {
    min-width: 0;
    background: var(--alt);
    border: 1px solid rgba(0, 229, 198, 0.16);
    padding: 1.6rem 1.5rem;
    color: var(--ink);
}

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

.sidebar .widget-title {
    font-size: 1.02rem;
    color: var(--ink);
    padding-left: 0.9rem;
    position: relative;
    margin-bottom: 1rem;
}

.sidebar .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 2px;
    height: 0.85em;
    background: var(--acc);
}

.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 0.5rem 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--ink); }
.sidebar a:hover { color: var(--acc); }
.sidebar p { color: var(--mut); font-size: 0.92rem; }
.sidebar .post-date { display: block; font-family: var(--mono); font-size: 0.74rem; color: var(--mut); }

/* ===== Подвал ===== */
.site-foot {
    background: var(--deep);
    border-top: 1px solid var(--line);
    color: var(--ink);
    padding: 3.6rem 0 1.8rem;
}

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

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

.foot-col .widget-title {
    font-size: 1rem;
    color: var(--acc);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.foot-col,
.foot-col p,
.foot-col li { color: #B9C6D3; font-size: 0.92rem; }

.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { padding: 0.4rem 0; }
.foot-col a { color: #D3DDE6; }
.foot-col a:hover { color: var(--acc); }
.foot-col .post-date { display: block; font-family: var(--mono); font-size: 0.74rem; color: var(--mut); }

.foot-bottom {
    margin-top: 2.8rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    font-size: 0.82rem;
    color: var(--mut);
}

.foot-mail { color: var(--acc); }

/* ===== Пагинация ===== */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 44px;
    text-align: center;
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--alt);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 0.9rem;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

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

.pager .page-numbers.current {
    background: var(--acc);
    border-color: var(--acc);
    color: var(--bg);
    font-weight: 700;
}

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

/* ===== Поиск ===== */
.search-form {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.search-form label { flex: 1 1 200px; min-width: 0; }

.search-form input[type="search"] {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--ink);
    font: inherit;
    font-size: 0.94rem;
    padding: 0.7rem 0.9rem;
}

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

.search-form button {
    border: 2px solid var(--acc);
    background: var(--acc);
    color: var(--bg);
    font: 700 0.9rem var(--sans);
    padding: 0.7rem 1.3rem;
    border-radius: 0;
    cursor: pointer;
}

.search-form button:hover { box-shadow: 0 8px 22px rgba(0, 229, 198, 0.3); }

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

.comments-title { font-size: 1.4rem; }

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

.comment-item {
    background: var(--alt);
    border-left: 2px solid var(--line);
    padding: 1.1rem 1.3rem;
    margin-bottom: 1rem;
}

.comment-head { display: flex; gap: 1rem; align-items: baseline; margin-bottom: 0.5rem; }
.comment-author { font-weight: 700; }
.comment-date { font-family: var(--mono); font-size: 0.76rem; color: var(--mut); }
.comment-text p { margin-bottom: 0.6rem; }
.comment-actions a { font-size: 0.84rem; }

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

.comment-respond .comment-reply-title { margin-top: 0; font-size: 1.2rem; }

.comment-form label { display: block; font-size: 0.85rem; color: var(--mut); margin-bottom: 0.3rem; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--ink);
    font: inherit;
    font-size: 0.95rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0;
    margin-bottom: 1rem;
}

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

.comment-form .submit {
    border: 2px solid var(--acc);
    background: var(--acc);
    color: var(--bg);
    font: 700 0.92rem var(--sans);
    padding: 0.75rem 1.6rem;
    border-radius: 0;
    cursor: pointer;
}

.comment-form .submit:hover { box-shadow: 0 8px 24px rgba(0, 229, 198, 0.32); }

.comment-notes, .form-submit { margin-bottom: 0.8rem; }

/* ===== 404 ===== */
.err-code {
    font-family: var(--mono);
    font-size: 5.5rem;
    line-height: 1;
    color: var(--acc);
    text-shadow: 0 0 34px rgba(0, 229, 198, 0.4);
    margin-bottom: 1rem;
}

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

/* ===== Cookie-баннер ===== */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    justify-content: space-between;
    background: var(--alt);
    border-top: 2px solid var(--acc);
    padding: 1.1rem 1.6rem;
    font-size: 0.88rem;
    color: var(--ink);
}

.cookie-banner p { margin: 0; max-width: 78ch; }
.cookie-banner .btn { padding: 0.6rem 1.4rem; font-size: 0.86rem; }

/* ===== Прочее ===== */
.nothing {
    background: var(--alt);
    border: 1px solid var(--line);
    padding: 2rem 2rem;
}

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

/* ===== Адаптив ===== */
@media (max-width: 960px) {
    body { font-size: 16px; }

    .layout-with-sidebar {
        display: block;
    }

    .sidebar { margin-top: 3rem; }

    .brand-desc { display: none; }

    .nav-toggle { display: inline-block; margin-left: auto; }

    .main-nav {
        flex: 1 1 100%;
        border-top: 1px solid var(--line);
        margin-top: 0.9rem;
        padding-top: 0.9rem;
    }

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

    .hero h1 { font-size: 3rem; }

    .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 0; }
    .stat-cell { border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .stat-cell:nth-child(odd) { border-left: 0; }

    .layout-single { width: 100%; }
    .fshell { width: min(92%, 1280px); }
}

@media (max-width: 600px) {
    .fs { padding: 60px 0; }

    h1 { font-size: 1.9rem; }
    .entry-title { font-size: 1.8rem; }
    .sec-title { font-size: 1.55rem; }
    .hero { min-height: auto; }
    .hero-inner { padding: 4.5rem 0; }
    .hero h1 { font-size: 2.3rem; }
    .hero-sub { font-size: 1rem; }

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

    .stat-row { grid-template-columns: minmax(0, 1fr); }
    .stat-cell { border-left: 0; }
    .stat-num { font-size: 2rem; }

    .topic-tile { aspect-ratio: auto; padding: 1.6rem 1.3rem; }

    .fs-cta { padding: 1.8rem 1.4rem; }

    .err-box { padding: 1.7rem 1.3rem; }

    .comment-respond { padding: 1.3rem 1.2rem; }

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

    .tl { padding-left: 2rem; }
    .tl-item::before { left: -2rem; }
}
