/*
Theme Name: dds_ortuspublishing.com
Author: Михайлов Михаил
Description: Тема для сайта о видеоиграх — обзоры, новости, гайды и аналитика. Современный геймерский стиль с тёмной палитрой и неоновыми акцентами.
Version: 1.1
Text Domain: dds_ortuspublishing
*/

/* ========== Подключение шрифтов ========== */
@import url("/assets/11f5b1273a257bbc4268.css");

/* ========== CSS-переменные ========== */
:root {
    --bg-deep: #0B0C10;
    --bg-card: #1F2833;
    --bg-card-2: #1a2230;
    --accent: #45A29E;
    --accent-bright: #66FCF1;
    --text-main: #C5C6C7;
    --text-soft: #8b9094;
    --text-strong: #ffffff;
    --border: rgba(102, 252, 241, 0.18);
    --shadow-glow: 0 0 24px rgba(102, 252, 241, 0.18);
    --radius: 6px;
    --container: 1240px;
}

/* ========== Сброс и базовые правила ========== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
}

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

a {
    color: var(--accent-bright);
    text-decoration: none;
    transition: color .2s ease;
}
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', system-ui, sans-serif;
    color: var(--text-strong);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 .6em;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; color: var(--accent); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

code, pre, kbd, samp {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.92em;
}
code {
    background: rgba(69, 162, 158, 0.12);
    color: var(--accent-bright);
    padding: 2px 6px;
    border-radius: 4px;
}
pre {
    background: var(--bg-card-2);
    padding: 14px 18px;
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    overflow-x: auto;
}
kbd {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-bottom-width: 2px;
    padding: 2px 7px;
    border-radius: 4px;
    color: var(--accent-bright);
}

blockquote {
    margin: 1.4em 0;
    padding: 14px 22px;
    border-left: 4px solid var(--accent);
    background: var(--bg-card-2);
    color: var(--text-main);
    font-style: italic;
    border-radius: 0 var(--radius) var(--radius) 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    border: 1px solid var(--border);
    background: var(--bg-card);
}
th, td {
    border: 1px solid var(--border);
    padding: 10px 14px;
    text-align: left;
}
th {
    background: var(--bg-card-2);
    color: var(--accent-bright);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: .35em; }

hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }

/* ========== Контейнер ========== */
.shell {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 22px;
}

/* ========== Шапка ========== */
.site-top {
    background: linear-gradient(180deg, #0B0C10 0%, #131820 100%);
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
    transition: padding .25s ease, box-shadow .25s ease;
    position: sticky;
    top: 0;
    z-index: 90;
}
.site-top.is-shrunk {
    padding: 8px 0;
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.55);
    background: rgba(11, 12, 16, 0.94);
    backdrop-filter: blur(8px);
}

.site-top-inner {
    display: flex;
    align-items: center;
    gap: 30px;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}
.brand-logo {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    transition: transform .25s ease;
}
.is-shrunk .brand-logo { width: 42px; height: 42px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--accent-bright);
    font-size: 1.05rem;
    letter-spacing: .3px;
}
.brand-desc {
    color: var(--text-soft);
    font-size: 0.78rem;
    margin-top: 3px;
}
.is-shrunk .brand-desc { display: none; }

/* Навигация шапки */
.primary-nav { flex: 1; }
.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}
.primary-nav li { margin: 0; }
.primary-nav a {
    display: block;
    padding: 9px 16px;
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius);
    transition: all .2s ease;
}
.primary-nav a:hover {
    color: var(--accent-bright);
    background: rgba(102, 252, 241, 0.07);
}
.primary-nav .current-menu-item > a {
    color: var(--bg-deep);
    background: var(--accent-bright);
}

/* Бургер */
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--accent-bright);
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--accent-bright);
    position: relative;
    transition: transform .2s ease;
}
.menu-toggle span::before,
.menu-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
}
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }

/* Переключатель темы — джойстик */
.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    width: 56px;
    height: 30px;
    border-radius: 30px;
    position: relative;
    cursor: pointer;
    padding: 0;
    transition: background .2s ease;
}
.theme-toggle::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-bright));
    box-shadow: 0 0 8px rgba(102, 252, 241, 0.5);
    transition: transform .25s ease;
}
.theme-toggle.is-light::before { transform: translateX(26px); }

/* ========== Основная область ========== */
.site-main { padding: 38px 0 60px; }

.layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}
.layout.has-sidebar {
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    gap: 6%;
}
.layout.no-sidebar {
    grid-template-columns: minmax(0, 85%);
    justify-content: center;
}

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

/* ========== Хлебные крошки ========== */
.crumbs {
    margin: 0 0 22px;
    padding: 10px 16px;
    background: var(--bg-card-2);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 0.88rem;
    color: var(--text-soft);
}
.crumbs a { color: var(--accent-bright); }
.crumbs a:hover { color: var(--text-strong); }
.crumbs .sep { margin: 0 8px; opacity: 0.6; }
.crumbs .current { color: var(--text-main); }

/* ========== Карточки записей (правило A8, A10) ========== */
.feed {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* Горизонтальные карточки */
.card.is-row {
    flex-direction: row;
}

.card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
    background: var(--bg-card-2);
}
.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;
    transition: transform .35s ease;
}
.card:hover .card-thumb-wrap img { transform: scale(1.05); }

/* Стикер с датой */
.card-date-sticker {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-bright) 100%);
    color: var(--bg-deep);
    padding: 6px 12px;
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 2;
    letter-spacing: .5px;
}

/* Иконка платформы */
.card-platform {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(11, 12, 16, 0.85);
    color: var(--accent-bright);
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    border: 1px solid var(--border);
    z-index: 2;
}

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

.card-cats {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.card-cats a {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(69, 162, 158, 0.14);
    color: var(--accent-bright);
    font-size: 0.74rem;
    border-radius: 3px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.card-cats a:hover { background: var(--accent); color: var(--bg-deep); }

.card-title {
    font-size: 1.25rem;
    margin: 0 0 10px;
    line-height: 1.3;
}
.card-title a { color: var(--text-strong); }
.card-title a:hover { color: var(--accent-bright); }

.card-meta {
    color: var(--text-soft);
    font-size: 0.83rem;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.card-meta span::before {
    content: '◆';
    color: var(--accent);
    margin-right: 6px;
    font-size: 0.7em;
}

.card-excerpt {
    color: var(--text-main);
    font-size: 0.95rem;
    margin-bottom: 14px;
    flex: 1;
}
.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}

.card-cta {
    margin-top: auto;
}

/* Кнопка «Читать далее» — полупрозрачная с обводкой */
.btn-read {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: transparent;
    color: var(--accent-bright);
    border: 1px solid var(--accent-bright);
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: .6px;
    transition: all .25s ease;
    cursor: pointer;
}
.btn-read::after { content: '→'; transition: transform .2s ease; }
.btn-read:hover {
    background: var(--accent-bright);
    color: var(--bg-deep);
    box-shadow: 0 0 14px rgba(102, 252, 241, 0.45);
}
.btn-read:hover::after { transform: translateX(4px); }

/* Главная кнопка (с градиентом) */
.btn-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    background: linear-gradient(120deg, var(--accent) 0%, var(--accent-bright) 100%);
    color: var(--bg-deep);
    border: none;
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: .8px;
    cursor: pointer;
    transition: all .25s ease;
    background-size: 150% 100%;
    background-position: 0% 0%;
}
.btn-main:hover {
    background-position: 100% 0%;
    box-shadow: 0 8px 26px rgba(102, 252, 241, 0.4);
    transform: translateY(-2px);
    color: var(--bg-deep);
}

/* ========== Слайдер на главной ========== */
.hero-slider {
    position: relative;
    margin: -38px calc(50% - 50vw) 40px;
    width: 100vw;
    height: 460px;
    overflow: hidden;
    background: var(--bg-card-2);
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s ease;
    background-size: cover;
    background-position: center;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 12, 16, 0.3) 0%, rgba(11, 12, 16, 0.92) 100%);
}
.hero-slide-inner {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    padding: 0 22px;
    max-width: var(--container);
    margin: 0 auto;
    z-index: 2;
}
.hero-tag {
    display: inline-block;
    background: var(--accent-bright);
    color: var(--bg-deep);
    padding: 4px 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    margin-bottom: 14px;
}
.hero-title {
    font-size: 2.6rem;
    color: #fff;
    margin: 0 0 12px;
    max-width: 760px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}
.hero-text {
    color: var(--text-main);
    max-width: 640px;
    font-size: 1.05rem;
    margin-bottom: 22px;
}
.hero-dots {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}
.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: background .2s ease;
}
.hero-dot.is-active { background: var(--accent-bright); width: 28px; border-radius: 5px; }

/* ========== Тематические блоки на главной ========== */
.feature-block {
    margin: 50px 0;
    padding: 36px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}
.feature-block::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent), var(--accent-bright));
}
.feature-block h2 {
    margin-top: 0;
    font-size: 1.85rem;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    margin-top: 24px;
}
.feature-item {
    background: var(--bg-card-2);
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all .25s ease;
}
.feature-item:hover {
    border-color: var(--accent-bright);
    transform: translateY(-2px);
}
.feature-item-num {
    display: inline-block;
    width: 38px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-bright));
    color: var(--bg-deep);
    border-radius: 50%;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    margin-bottom: 14px;
}
.feature-item h3 {
    font-size: 1.1rem;
    margin: 0 0 8px;
    color: var(--accent-bright);
}
.feature-item p { font-size: 0.92rem; margin: 0; }

/* Шаги */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    counter-reset: step;
    margin-top: 22px;
}
.step-item {
    background: var(--bg-card-2);
    padding: 24px 22px 22px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    position: relative;
    counter-increment: step;
}
.step-item::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: -12px;
    left: 18px;
    background: var(--accent-bright);
    color: var(--bg-deep);
    padding: 4px 10px;
    border-radius: 3px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
}
.step-item h3 { font-size: 1.05rem; margin: 6px 0 8px; }
.step-item p { font-size: 0.9rem; margin: 0; }

/* Секция «последние записи» на главной */
.front-feed-section { margin: 50px 0; }
.front-feed-section h2 { margin-bottom: 22px; }
.front-feed-section .feed { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ========== Сайдбар ========== */
.sidebar { min-width: 0; }
.widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 24px;
}
.widget-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    color: var(--accent-bright);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: .8px;
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(102, 252, 241, 0.1);
    margin-bottom: 0;
}
.widget li:last-child { border-bottom: none; }
.widget a { color: var(--text-main); }
.widget a:hover { color: var(--accent-bright); }

/* Блок «горячие советы» */
.hot-tips-widget ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: tip;
}
.hot-tips-widget li {
    counter-increment: tip;
    padding: 12px 12px 12px 44px;
    position: relative;
    border-bottom: 1px dashed rgba(102, 252, 241, 0.1);
}
.hot-tips-widget li::before {
    content: counter(tip);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: var(--bg-card-2);
    color: var(--accent-bright);
    border: 1px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}
.hot-tips-widget li::after {
    content: '✓';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-weight: bold;
    opacity: 0;
    transition: opacity .3s ease, transform .3s ease;
}
.hot-tips-widget li:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(-4px);
}

/* ========== Одиночная запись ========== */
.entry-header { margin-bottom: 26px; }
.entry-cats { margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.entry-cats a {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(69, 162, 158, 0.14);
    color: var(--accent-bright);
    font-size: 0.78rem;
    border-radius: 3px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
}
.entry-cats a:hover { background: var(--accent); color: var(--bg-deep); }

.entry-title {
    font-size: 2.3rem;
    margin: 0 0 12px;
    color: var(--text-strong);
    line-height: 1.2;
}
.entry-meta {
    color: var(--text-soft);
    font-size: 0.92rem;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.entry-meta span { margin-right: 18px; }
.entry-meta span::before {
    content: '◆';
    color: var(--accent);
    margin-right: 6px;
    font-size: 0.7em;
}

.entry-thumb {
    margin: 0 0 26px;
    border-radius: var(--radius);
    overflow: hidden;
}
.entry-thumb img { width: 100%; height: auto; display: block; }

.entry-content { font-size: 1.02rem; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content img {
    border-radius: var(--radius);
    margin: 1em 0;
}
.entry-content ul li::marker { color: var(--accent-bright); }
.entry-content ol li::marker { color: var(--accent-bright); font-weight: bold; }

.entry-tags {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.entry-tags-label {
    color: var(--text-soft);
    font-size: 0.88rem;
    margin-right: 8px;
}
.entry-tags a {
    background: var(--bg-card-2);
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 0.84rem;
    color: var(--text-main);
}
.entry-tags a:hover { background: var(--accent); color: var(--bg-deep); }

/* ========== Пагинация ========== */
.pagination {
    margin: 36px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}
.pagination .page-numbers:hover {
    border-color: var(--accent-bright);
    color: var(--accent-bright);
}
.pagination .page-numbers.current {
    background: linear-gradient(120deg, var(--accent), var(--accent-bright));
    border-color: transparent;
    color: var(--bg-deep);
}
.pagination .page-numbers.dots {
    background: transparent;
    border-color: transparent;
}

/* ========== Комментарии — пузырьковые диалоги ========== */
.comments-block {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.comments-title {
    font-size: 1.4rem;
    margin-bottom: 22px;
    color: var(--accent);
}
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list .children {
    list-style: none;
    margin-left: 50px;
    padding-left: 0;
    margin-top: 14px;
}
.comment-list li { margin-bottom: 18px; }

.comment-body {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.comment-avatar-wrap {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card-2);
    border: 2px solid var(--accent);
    image-rendering: pixelated;
}
.comment-avatar-wrap img { width: 100%; height: 100%; display: block; }

.comment-bubble {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    position: relative;
}
.comment-bubble::before {
    content: '';
    position: absolute;
    top: 16px;
    left: -8px;
    width: 14px;
    height: 14px;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transform: rotate(45deg);
}
.comment-author {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--accent-bright);
    margin-bottom: 4px;
}
.comment-meta {
    color: var(--text-soft);
    font-size: 0.82rem;
    margin-bottom: 8px;
}
.comment-text { color: var(--text-main); }
.comment-text p:last-child { margin-bottom: 0; }
.comment-reply-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.86rem;
    color: var(--accent-bright);
}

/* Форма комментариев */
.comment-form {
    margin-top: 30px;
    background: var(--bg-card);
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.comment-form-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    color: var(--accent);
    margin: 0 0 16px;
}
.comment-form p { margin-bottom: 14px; }
.comment-form label {
    display: block;
    font-size: 0.88rem;
    color: var(--text-soft);
    margin-bottom: 6px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-card-2);
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color .2s ease;
}
.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--accent-bright);
    outline: none;
}
.comment-form textarea { min-height: 110px; resize: vertical; }
.comment-form input[type="submit"] {
    display: inline-flex;
    align-items: center;
    padding: 11px 24px;
    background: linear-gradient(120deg, var(--accent), var(--accent-bright));
    color: var(--bg-deep);
    border: none;
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    cursor: pointer;
    transition: all .25s ease;
}
.comment-form input[type="submit"]:hover {
    box-shadow: 0 6px 20px rgba(102, 252, 241, 0.4);
    transform: translateY(-2px);
}
.comment-form-cookies-consent input { width: auto; margin-right: 8px; }
.comment-form-cookies-consent label { display: inline; }

/* ========== Форма поиска ========== */
.search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.search-form input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-card-2);
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
}
.search-form input[type="search"]:focus {
    border-color: var(--accent-bright);
    outline: none;
}
.search-form input[type="submit"] {
    padding: 10px 20px;
    background: linear-gradient(120deg, var(--accent), var(--accent-bright));
    color: var(--bg-deep);
    border: none;
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s ease;
}
.search-form input[type="submit"]:hover {
    box-shadow: 0 0 14px rgba(102, 252, 241, 0.45);
}

/* ========== Плавающая консоль поиска ========== */
.search-console {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 80;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent), var(--accent-bright));
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5), 0 0 16px rgba(102, 252, 241, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
}
.search-console:hover { transform: scale(1.08); }

.search-console-icon {
    width: 24px;
    height: 24px;
    color: var(--bg-deep);
}

.search-panel[hidden] { display: none !important; }
.search-panel {
    position: fixed;
    right: 24px;
    bottom: 96px;
    z-index: 81;
    width: 340px;
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 26px rgba(102, 252, 241, 0.18);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.search-panel-head {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--accent-bright);
    text-transform: uppercase;
    letter-spacing: .8px;
}
.search-panel input[type="search"] {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-card-2);
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
}
.search-panel input[type="search"]:focus {
    border-color: var(--accent-bright);
    outline: none;
}
.genre-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.genre-chip {
    background: var(--bg-card-2);
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all .2s ease;
}
.genre-chip:hover {
    background: var(--accent);
    color: var(--bg-deep);
    border-color: var(--accent);
}

/* ========== 404 ========== */
.notfound {
    text-align: center;
    padding: 50px 0;
}
.notfound-code {
    font-family: 'Montserrat', sans-serif;
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(120deg, var(--accent), var(--accent-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}
.notfound h1 {
    font-size: 1.8rem;
    margin: 12px 0 18px;
}
.notfound p { color: var(--text-soft); margin-bottom: 26px; }

/* ========== Подвал ========== */
.site-bottom {
    background: linear-gradient(180deg, #0B0C10 0%, #06070a 100%);
    border-top: 1px solid var(--border);
    margin-top: 50px;
    padding: 50px 0 0;
}
.site-bottom-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin-bottom: 30px;
}
.site-bottom .widget {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 0;
}
.site-bottom .widget-title {
    color: var(--accent-bright);
    border-bottom-color: var(--border);
}
.site-bottom .widget a { color: var(--text-main); }
.site-bottom .widget a:hover { color: var(--accent-bright); }

.site-bottom-bar {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
    color: var(--text-soft);
    font-size: 0.88rem;
}

/* ========== Cookie-баннер (правило A11) ========== */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    background: rgba(11, 12, 16, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--accent);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.5);
}
.cookie-text {
    color: var(--text-main);
    font-size: 0.92rem;
    max-width: 800px;
    margin: 0;
}
.cookie-accept {
    flex-shrink: 0;
    padding: 9px 22px;
    background: linear-gradient(120deg, var(--accent), var(--accent-bright));
    color: var(--bg-deep);
    border: none;
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s ease;
}
.cookie-accept:hover {
    box-shadow: 0 4px 16px rgba(102, 252, 241, 0.45);
    transform: translateY(-1px);
}

/* ========== Адаптив ========== */
@media (max-width: 960px) {
    .layout.has-sidebar {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .layout.no-sidebar {
        grid-template-columns: 1fr;
    }
    .site-bottom-cols { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: 2rem; }
    .hero-slider { height: 380px; }
    .entry-title { font-size: 1.7rem; }

    .menu-toggle { display: inline-flex; }
    .primary-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: rgba(11, 12, 16, 0.97);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--border);
        padding: 14px 22px;
        z-index: 50;
    }
    .primary-nav.is-open { display: block; }
    .primary-nav ul { flex-direction: column; gap: 0; }
    .primary-nav li { width: 100%; }
    .primary-nav a { padding: 12px 14px; }
    .site-top { position: relative; }
    .site-top-inner { position: relative; }
}

@media (max-width: 600px) {
    h1, .entry-title { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    .hero-slider { height: 320px; margin-bottom: 30px; }
    .hero-title { font-size: 1.5rem; }
    .hero-text { font-size: 0.95rem; }

    .feature-block { padding: 24px 20px; }
    .feature-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .site-bottom-cols { grid-template-columns: 1fr; gap: 26px; }

    .brand-text { display: none; }
    .brand-logo { width: 44px; height: 44px; }

    .card.is-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;
    }

    .search-panel { width: calc(100vw - 32px); right: 16px; }
    .search-console { right: 16px; bottom: 16px; }

    .cookie-banner { flex-direction: column; gap: 12px; padding: 16px; }
    .cookie-text { font-size: 0.86rem; text-align: center; }

    .comment-list .children { margin-left: 20px; }
    .pagination .page-numbers { min-width: 36px; height: 36px; padding: 0 8px; }
}
