/*
Theme Name: dds_allomarket.su
Theme URI: https://allomarket.su/
Author: Дмитрий Воронов
Author URI: https://allomarket.su/
Description: Тёмная тема для маркетплейса обзоров техники allomarket.su. Лента честных обзоров, сравнение цен и рейтинги устройств. Графитовый фон, неон-бирюзовые акценты, шрифты Inter и JetBrains Mono.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: dds_allomarket
*/

/* =========================================================================
   1. ПЕРЕМЕННЫЕ И СБРОС
   ========================================================================= */

:root {
    --bg: #121212;
    --surface: #1E1E1E;
    --surface-2: #262626;
    --accent: #00E5B0;
    --accent-soft: rgba(0, 229, 176, 0.20);
    --accent-line: rgba(0, 229, 176, 0.28);
    --blue: #1A5FDB;
    --blue-light: #4d86e8;
    --text: #E0E0E0;
    --text-dim: #A0A0A0;
    --warn: #E07A3A;
    --border: rgba(255, 255, 255, 0.09);
    --radius: 8px;
    --shell: min(92%, 1180px);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.18s ease;
}

a:hover {
    color: #5cf2d2;
}

h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.25;
    color: #f1f1f1;
    margin: 0 0 0.6em;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }

p {
    margin: 0 0 1.1em;
}

ul, ol {
    margin: 0 0 1.1em;
    padding-left: 1.3em;
}

code,
pre,
.mono {
    font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
}

pre {
    background: var(--surface-2);
    padding: 16px;
    border-radius: var(--radius);
    overflow-x: auto;
    border: 1px solid var(--border);
}

blockquote {
    margin: 1.4em 0;
    padding: 0.6em 1.2em;
    border-left: 3px solid var(--accent);
    color: var(--text-dim);
    background: var(--surface);
}

/* =========================================================================
   2. КОНТЕЙНЕР И РАСКЛАДКИ (см. A12)
   ========================================================================= */

.shell {
    width: var(--shell);
    margin-inline: auto;
}

.site-main {
    padding: 42px 0 64px;
}

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

.layout-single {
    display: block;
}

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

@media (max-width: 960px) {
    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 44px;
    }
    .layout-single .content-area {
        width: 100%;
    }
}

/* =========================================================================
   3. ТАБЛИЦЫ
   ========================================================================= */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    border: 1px solid var(--border);
}

th,
td {
    border: 1px solid var(--border);
    padding: 10px 14px;
    text-align: left;
}

th {
    background: var(--surface-2);
    color: #f1f1f1;
    font-weight: 700;
}

/* =========================================================================
   4. КНОПКИ
   ========================================================================= */

.btn {
    display: inline-block;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    padding: 12px 22px;
    border-radius: var(--radius);
    cursor: pointer;
    text-align: center;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

/* Основные кнопки — прозрачный фон, бирюзовая рамка, инверсия при наведении. */
.btn-primary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background: var(--accent);
    color: #121212;
}

/* Партнёрские/магазинные кнопки — синий акцент. */
.btn-shop {
    background: var(--blue);
    color: #ffffff;
    border: 1px solid var(--blue);
}

.btn-shop:hover {
    background: #2e74ef;
    color: #ffffff;
}

/* Вторичные кнопки — плоские, без рамки. */
.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid transparent;
}

.btn-ghost:hover {
    background: var(--accent-soft);
    color: var(--text);
}

/* =========================================================================
   5. ШАПКА
   ========================================================================= */

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 18px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-logo,
.brand-mark {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: var(--radius);
    display: block;
}

.brand-mark {
    background: var(--bg);
    border: 1px solid var(--accent-line);
    padding: 7px;
}

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

.brand-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.15rem;
    font-weight: 700;
    color: #f1f1f1;
    display: block;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

.brand-name .dot {
    color: var(--accent);
}

.brand-tagline {
    display: block;
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-top: 2px;
}

.brand a:hover .brand-name {
    color: var(--accent);
}

/* Навигация */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 6px;
}

.main-nav a {
    display: block;
    padding: 9px 14px;
    color: var(--text);
    font-weight: 500;
    border-radius: var(--radius);
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
    background: var(--accent-soft);
    color: var(--accent);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    padding: 9px 12px;
    cursor: pointer;
    font-size: 1rem;
}

@media (max-width: 760px) {
    .nav-toggle {
        display: block;
    }
    .main-nav {
        display: none;
        width: 100%;
        margin-top: 14px;
    }
    .main-nav.is-open {
        display: block;
    }
    .header-inner {
        flex-wrap: wrap;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 2px;
    }
    .brand-name {
        max-width: 200px;
    }
}

/* Строка быстрых фильтров */
.quick-filters {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.quick-filters-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
}

.quick-filters-label {
    color: var(--text-dim);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.filter-chip {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* =========================================================================
   6. ХЛЕБНЫЕ КРОШКИ
   ========================================================================= */

.breadcrumbs {
    font-size: 0.88rem;
    color: var(--text-dim);
    margin-bottom: 26px;
}

.breadcrumbs a {
    color: var(--text-dim);
}

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

.breadcrumbs .sep {
    color: var(--accent);
    margin: 0 4px;
}

.breadcrumbs span:last-child {
    color: var(--text);
}

/* =========================================================================
   7. КАРТОЧКИ ЗАПИСЕЙ (см. A8, A10)
   ========================================================================= */

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

.card {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border-radius: var(--radius);
    /* Тени нет — вместо неё тонкие линии «стопки листов» снизу. */
    box-shadow:
        0 3px 0 -1px var(--surface),
        0 4px 0 -1px var(--accent-line),
        0 7px 0 -1px var(--surface),
        0 8px 0 -1px rgba(255, 255, 255, 0.06);
    margin-bottom: 10px;
}

.card-thumb {
    display: block;
}

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

.card-thumb-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(circle at 30% 30%, rgba(0, 229, 176, 0.18), transparent 60%),
        var(--surface-2);
}

.card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 18px 20px 22px;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.3;
}

.card-title a {
    color: #f4f4f4;
}

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

.card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.stars {
    position: relative;
    display: inline-block;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 3px;
    color: #3a3a3a;
}

.stars::before {
    content: "★★★★★";
}

.stars-fill {
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
    white-space: nowrap;
    color: var(--accent);
}

.stars-fill::before {
    content: "★★★★★";
}

.rating-value {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent);
}

.card-price {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--blue-light);
    margin-bottom: 10px;
}

.card-price .price-label {
    color: var(--text-dim);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.78rem;
    display: block;
    margin-bottom: 2px;
}

.card-meta {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-bottom: 14px;
}

.card-body .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* Выезжающая панель с выжимкой */
.card-flyout {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 18, 18, 0.97);
    border-top: 1px solid var(--accent-line);
    padding: 16px 20px;
    transform: translateY(102%);
    transition: transform 0.28s ease;
}

.card:hover .card-flyout,
.card:focus-within .card-flyout {
    transform: translateY(0);
}

.card-flyout-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin: 0 0 6px;
}

.card-excerpt {
    font-size: 0.92rem;
    color: var(--text-dim);
}

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

.card-excerpt p:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .card-flyout {
        position: static;
        transform: none;
        background: transparent;
        border-top: 1px solid var(--border);
        padding: 14px 20px 18px;
    }
}

/* =========================================================================
   8. ОДИНОЧНЫЙ КОНТЕНТ (запись/страница)
   ========================================================================= */

.entry {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 32px 34px;
    border: 1px solid var(--border);
}

.entry-thumb {
    margin: -32px -34px 26px;
}

.entry-thumb img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
}

.entry-title {
    font-size: 2rem;
    margin-bottom: 12px;
}

.entry-meta {
    font-size: 0.86rem;
    color: var(--text-dim);
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.entry-meta .mono {
    color: var(--accent);
}

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

.entry-content img {
    border-radius: var(--radius);
    height: auto;
}

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

.entry-tags {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 0.88rem;
    color: var(--text-dim);
}

.entry-tags a {
    display: inline-block;
    margin: 0 6px 6px 0;
    padding: 3px 10px;
    background: var(--surface-2);
    border-radius: 999px;
}

/* Переключатель режимов «эксперт / пользователь» */
.mode-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: var(--surface-2);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.mode-switch-label {
    font-size: 0.84rem;
    color: var(--text-dim);
}

.mode-switch-label.is-active {
    color: var(--accent);
    font-weight: 600;
}

.mode-toggle {
    position: relative;
    width: 52px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid var(--accent-line);
    background: var(--bg);
    cursor: pointer;
    padding: 0;
    flex: 0 0 auto;
}

.mode-toggle::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.mode-toggle.is-user::after {
    transform: translateX(26px);
    background: var(--blue-light);
}

.entry.mode-user {
    background: #161b24;
    border-color: rgba(26, 95, 219, 0.4);
}

.entry.mode-user .entry-meta .mono {
    color: var(--blue-light);
}

/* =========================================================================
   9. ГЛАВНАЯ СТРАНИЦА
   ========================================================================= */

.front-content {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 960px) {
    .front-content {
        width: 100%;
    }
}

.home-section {
    margin-bottom: 56px;
}

.home-hero {
    background:
        radial-gradient(circle at 85% 0%, rgba(0, 229, 176, 0.14), transparent 55%),
        radial-gradient(circle at 0% 100%, rgba(26, 95, 219, 0.16), transparent 50%),
        var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px 40px;
}

.home-hero h1 {
    font-size: 2.4rem;
    max-width: 22ch;
}

.home-hero p {
    color: var(--text-dim);
    max-width: 60ch;
    font-size: 1.05rem;
}

.home-hero .btn {
    margin-top: 8px;
}

.section-head {
    margin-bottom: 26px;
}

.section-head .eyebrow {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 6px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
}

.feature-item {
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.feature-item .feature-num {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--accent);
}

.feature-item h3 {
    margin: 10px 0 8px;
    font-size: 1.15rem;
}

.feature-item p {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin: 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 22px;
}

.step-item {
    min-width: 0;
    border-left: 2px solid var(--accent-line);
    padding: 4px 0 4px 18px;
}

.step-item .step-num {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
    font-weight: 700;
}

.step-item h3 {
    font-size: 1.1rem;
    margin: 6px 0;
}

.step-item p {
    color: var(--text-dim);
    font-size: 0.94rem;
    margin: 0;
}

.compare-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.compare-card {
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
}

.compare-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.compare-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border-radius: 6px;
    background: var(--accent-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.compare-card ul {
    margin: 0;
    padding-left: 1.2em;
    color: var(--text-dim);
    font-size: 0.95rem;
}

.compare-card .pro {
    color: var(--accent);
}

.compare-card .con {
    color: var(--warn);
}

/* =========================================================================
   10. БОКОВАЯ ПАНЕЛЬ И ВИДЖЕТЫ
   ========================================================================= */

.sidebar .widget {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 24px;
    /* Контраст: фон сайдбара тёмный — текст светлый. */
    color: var(--text);
}

.sidebar .widget-title {
    font-size: 1.05rem;
    color: #f1f1f1;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--accent-line);
}

.sidebar .widget a {
    color: var(--accent);
}

.sidebar .widget a:hover {
    color: #5cf2d2;
}

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

.sidebar .widget li {
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
}

.sidebar .widget li:last-child {
    border-bottom: none;
}

.sidebar .widget .post-date,
.sidebar .widget .rss-date {
    display: block;
    font-size: 0.78rem;
    color: var(--text-dim);
}

/* Карта честности */
.honesty-card {
    text-align: center;
}

.honesty-ring {
    position: relative;
    display: inline-block;
}

.honesty-ring svg {
    transform: rotate(-90deg);
}

.honesty-track {
    fill: none;
    stroke: var(--surface-2);
    stroke-width: 10;
}

.honesty-progress {
    fill: none;
    stroke: var(--accent);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 326.7;
    stroke-dashoffset: 0;
}

.honesty-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.honesty-note {
    font-size: 0.88rem;
    color: var(--text-dim);
    margin: 12px 0 0;
}

/* =========================================================================
   11. ПАГИНАЦИЯ
   ========================================================================= */

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
}

.pagination .page-numbers {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    padding: 9px 13px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.pagination a.page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #121212;
    font-weight: 700;
}

.pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
}

/* =========================================================================
   12. КОММЕНТАРИИ
   ========================================================================= */

.comments-area {
    margin-top: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
}

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

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

.comment-list ul.children {
    list-style: none;
    margin: 0;
    padding-left: 26px;
}

.comment-item {
    margin-bottom: 18px;
}

.comment-inner {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
}

.comment-head {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: baseline;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 700;
    color: #f1f1f1;
}

.comment-date {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.comment-awaiting {
    color: var(--warn);
    font-size: 0.88rem;
}

.comment-reply a {
    font-size: 0.85rem;
}

.comment-respond {
    margin-top: 24px;
}

.comment-form label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.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(--border);
    border-radius: var(--radius);
    color: var(--text);
    padding: 10px 12px;
    font-family: inherit;
    font-size: 0.95rem;
    margin-bottom: 14px;
}

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

.comment-form .submit,
.search-submit {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 11px 22px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.comment-form .submit:hover,
.search-submit:hover {
    background: var(--accent);
    color: #121212;
}

/* =========================================================================
   13. ФОРМА ПОИСКА
   ========================================================================= */

.search-form {
    display: flex;
    gap: 8px;
}

.search-field {
    flex: 1;
    min-width: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    padding: 10px 12px;
    font-family: inherit;
    font-size: 0.95rem;
}

.sidebar .search-field {
    background: var(--surface-2);
}

/* =========================================================================
   14. ПОДВАЛ
   ========================================================================= */

.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    margin-top: 20px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
    padding: 48px 0 36px;
}

@media (max-width: 760px) {
    .footer-widgets {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }
}

/* Контраст: фон подвала тёмный — текст виджетов светлый. */
.footer-widgets .widget {
    color: var(--text);
}

.footer-widgets .widget-title {
    color: #f1f1f1;
    font-size: 1.05rem;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--accent-line);
}

.footer-widgets .widget p {
    color: var(--text-dim);
    font-size: 0.92rem;
}

.footer-widgets .widget a {
    color: var(--accent);
}

.footer-widgets .widget a:hover {
    color: #5cf2d2;
}

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

.footer-widgets .widget li {
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}

.footer-widgets .widget li:last-child {
    border-bottom: none;
}

.footer-widgets .widget .post-date {
    display: block;
    font-size: 0.78rem;
    color: var(--text-dim);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 22px 0 30px;
    text-align: center;
}

.footer-bottom .footer-owner {
    font-family: 'JetBrains Mono', monospace;
    color: #f1f1f1;
    font-weight: 700;
    margin: 0 0 4px;
}

.footer-bottom .footer-copy {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin: 0 0 4px;
}

.footer-bottom .footer-slogan {
    color: var(--accent);
    font-size: 0.9rem;
    margin: 0;
}

/* =========================================================================
   15. COOKIE-БАННЕР (см. A11, D6)
   ========================================================================= */

/* Правило для скрытого состояния — до основного блока стилей. */
.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: var(--surface-2);
    border-top: 1px solid var(--accent-line);
    padding: 16px 22px;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-dim);
    max-width: 70ch;
}

.cookie-banner .btn {
    flex: 0 0 auto;
}

/* =========================================================================
   16. ОБЩИЕ СЕКЦИИ КОНТЕНТА
   ========================================================================= */

.page-title {
    font-size: 2rem;
    margin-bottom: 22px;
}

.list-intro {
    color: var(--text-dim);
    margin-bottom: 30px;
}

.no-results {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    color: var(--text-dim);
}

/* 404 */
.error-404 {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px 36px;
    text-align: center;
}

.error-404 .error-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.error-404 .search-form {
    max-width: 420px;
    margin: 24px auto 0;
}

.error-404 .back-home {
    display: inline-block;
    margin-top: 18px;
}
