/*
Theme Name: dds_ervinhome.com
Author: Алексей Воронов
Description: Тёмная технологичная тема для контентно-торговой платформы о технологичных интерьерах: умная мебель, обзоры устройств, готовые сценарии и гайды по интеграции. Футуристичный минимализм с неоново-лазурными акцентами и тёплой домашней атмосферой.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: ervinhome
*/

/* ============================================================
   Переменные
   ============================================================ */
:root {
    --bg: #0F1115;
    --bg-soft: #161922;
    --bg-soft-2: #1c2029;
    --card: #F8F9FA;
    --text: #B0B3B8;
    --text-bright: #FFFFFF;
    --text-ink: #1a1d24;
    --text-ink-soft: #4a4f5a;
    --accent: #00E5FF;
    --accent-2: #FFB74D;
    --border: #262a35;
    --border-light: #e3e6ea;
    --shadow: 0 8px 20px rgba(0, 229, 255, 0.15);
    --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.35);
    --radius: 14px;
    --shell: min(92%, 1180px);
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}

/* «Режим комнаты» — мягкая смена температуры акцента/теней */
body.mode-evening-active {
    --accent: #4be3ff;
    --shadow: 0 8px 22px rgba(255, 183, 77, 0.18);
}
body.mode-day-active {
    --accent: #00d4ec;
    --shadow: 0 8px 20px rgba(0, 229, 255, 0.13);
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
    color: var(--text-bright);
    line-height: 1.25;
    margin: 0 0 .6em;
    font-weight: 600;
}
h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }

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

code, pre, .mono { font-family: var(--mono); }

pre {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1em;
    overflow-x: auto;
    min-width: 0;
}

blockquote {
    margin: 1.4em 0;
    padding: .6em 1.2em;
    border-left: 3px solid var(--accent);
    background: var(--bg-soft);
    color: var(--text-bright);
}

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

/* Таблицы — видимые границы */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    border: 1px solid var(--border);
}
th, td {
    border: 1px solid var(--border);
    padding: .6em .8em;
    text-align: left;
}
th { background: var(--bg-soft); color: var(--text-bright); }

/* ============================================================
   Контейнер ширины — задаётся в одном месте
   ============================================================ */
.shell {
    width: var(--shell);
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: -999px;
}
.skip-link:focus {
    left: 1rem; top: 1rem;
    z-index: 999;
    background: var(--accent);
    color: var(--text-ink);
    padding: .5em 1em;
    border-radius: 6px;
}

/* ============================================================
   Кнопки
   ============================================================ */
.btn,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    font-family: var(--sans);
    font-weight: 600;
    font-size: .97rem;
    cursor: pointer;
    border: none;
    line-height: 1;
    transition: transform .16s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn {
    padding: .85em 1.4em;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--accent) 0%, #43ecff 100%);
    color: var(--text-ink);
}
.btn:hover {
    color: var(--text-ink);
    background: linear-gradient(135deg, #0f1115 0%, var(--accent) 110%);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.btn::after { content: '\26A1'; font-size: .95em; }

.btn-ghost {
    padding: .8em 1.5em;
    border-radius: 40px;
    background: rgba(0, 229, 255, 0.04);
    color: var(--accent);
    border: 1px solid rgba(0, 229, 255, 0.45);
    backdrop-filter: blur(6px);
}
.btn-ghost:hover {
    color: var(--text-bright);
    border-color: var(--accent);
    background: rgba(0, 229, 255, 0.12);
    transform: translateY(-2px);
}

/* ============================================================
   Шапка
   ============================================================ */
.site-header {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #12141b 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
}
.header-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.055) 1px, transparent 1px);
    background-size: 46px 46px;
    animation: grid-drift 20s linear infinite;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 95%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 95%);
}
@keyframes grid-drift {
    from { background-position: 0 0, 0 0; }
    to   { background-position: 46px 46px, 46px 46px; }
}

.header-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.1rem 0 .9rem;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}
.brand-logo {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}
.brand-logo img {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 12px;
}
.brand-logo--svg svg {
    display: block;
    width: 56px;
    height: 56px;
}
.brand-text { min-width: 0; }
.site-name {
    display: block;
    font-family: var(--mono);
    font-weight: 700;
    font-size: .96rem;
    color: var(--text-bright);
    line-height: 1.4;
    max-width: 640px;
}
.site-name:hover { color: var(--accent); }
.site-desc {
    margin: .35rem 0 0;
    font-size: .82rem;
    color: var(--text);
    line-height: 1.5;
    max-width: 640px;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: .7rem;
    flex: 0 0 auto;
}

/* Переключатель «режим комнаты» */
.room-mode {
    display: inline-flex;
    align-items: center;
    gap: .45em;
    padding: .5em .85em;
    border-radius: 40px;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.4);
    color: var(--accent);
    font-family: var(--mono);
    font-size: .76rem;
    font-weight: 500;
    cursor: pointer;
}
.room-mode:hover { background: rgba(0, 229, 255, 0.12); }
.room-mode .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 7px var(--accent);
}

/* Бургер */
.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    border-radius: 10px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    cursor: pointer;
    padding: 0;
    position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    position: absolute;
    left: 50%;
    width: 20px; height: 2px;
    background: var(--accent);
    transform: translateX(-50%);
}
.nav-toggle span { top: 50%; transform: translate(-50%, -50%); }
.nav-toggle span::before { content: ''; top: -6px; }
.nav-toggle span::after  { content: ''; top: 6px; }

/* Навигация */
.main-nav {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
}
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
}
.main-nav li { margin: 0; }
.main-nav a {
    display: block;
    padding: .85rem 1rem;
    color: var(--text);
    font-weight: 500;
    font-size: .94rem;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover {
    color: var(--text-bright);
}
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ============================================================
   Каркас контента
   ============================================================ */
.site-main { padding: 2.4rem 0 3rem; }

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

/* Полноширинная главная */
.front-wrap { width: 85%; margin-inline: auto; }

/* ============================================================
   Хлебные крошки
   ============================================================ */
.breadcrumbs {
    font-size: .85rem;
    color: var(--text);
    margin-bottom: 1.6rem;
    font-family: var(--mono);
}
.breadcrumbs a { color: var(--text); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: var(--accent); margin: 0 .15em; }
.breadcrumbs span:last-child { color: var(--text-bright); }

/* ============================================================
   Карточки записей (вертикальные)
   ============================================================ */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.6rem;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform .18s ease, box-shadow .2s ease;
    min-width: 0;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.card-thumb-wrap {
    display: block;
    position: relative;
    background: linear-gradient(135deg, #1c2029, #2a2f3c);
}
.card-thumb-wrap a { display: block; }
.card-thumb-wrap img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.card-thumb-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    color: rgba(0, 229, 255, 0.55);
}
.card-thumb-fallback svg { width: 40%; max-width: 84px; }

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.15rem 1.25rem 1.3rem;
    min-width: 0;
}
.card-meta {
    font-family: var(--mono);
    font-size: .73rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #00a9bd;
    margin-bottom: .55rem;
}
.card-meta a { color: #00a9bd; }
.card-meta a:hover { color: var(--text-ink); }
.card-title {
    font-size: 1.12rem;
    margin: 0 0 .55rem;
    line-height: 1.32;
}
.card-title a { color: var(--text-ink); }
.card-title a:hover { color: #008ea0; }
.card-excerpt {
    flex: 1;
    color: var(--text-ink-soft);
    font-size: .94rem;
}
.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}
.card-excerpt a { color: #008ea0; }
.read-more {
    margin-top: .9rem;
    align-self: flex-start;
    font-family: var(--mono);
    font-weight: 700;
    font-size: .82rem;
    color: #008ea0;
    border-bottom: 2px solid rgba(0, 229, 255, 0.4);
    padding-bottom: 2px;
}
.read-more:hover {
    color: var(--text-ink);
    border-bottom-color: var(--accent-2);
}

/* «Умный индикатор» на карточке */
.smart-dot {
    position: absolute;
    top: .7rem; right: .7rem;
    width: 11px; height: 11px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    z-index: 1;
}

/* ============================================================
   Одиночная запись / страница
   ============================================================ */
.entry {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem;
}
.entry-header { margin-bottom: 1.4rem; }
.entry-title { font-size: 2rem; margin-bottom: .5rem; }
.entry-meta {
    font-family: var(--mono);
    font-size: .8rem;
    color: var(--text);
}
.entry-meta a { color: var(--accent); }
.entry-thumb {
    margin: 0 0 1.5rem;
    border-radius: 10px;
    overflow: hidden;
}
.entry-thumb img { display: block; width: 100%; }
.entry-content { color: var(--text); }
.entry-content h2,
.entry-content h3 { margin-top: 1.5em; }
.entry-content a { text-decoration: underline; }
.entry-content img { border-radius: 10px; }
.entry-footer {
    margin-top: 1.6rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border);
    font-size: .85rem;
}
.tag-links a {
    display: inline-block;
    font-family: var(--mono);
    font-size: .76rem;
    padding: .25em .7em;
    margin: 0 .3em .3em 0;
    border: 1px solid var(--border);
    border-radius: 40px;
    color: var(--text);
}
.tag-links a:hover { border-color: var(--accent); color: var(--accent); }

.archive-head { margin-bottom: 1.8rem; }
.archive-title { font-size: 1.9rem; margin-bottom: .3rem; }
.archive-desc { color: var(--text); }

/* ============================================================
   Сайдбар и виджеты
   ============================================================ */
.sidebar { min-width: 0; }
.sidebar .widget,
.site-footer .widget {
    margin-bottom: 1.6rem;
}

/* Виджеты сайдбара — тёмный фон, светлый текст */
.sidebar .widget {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem 1.3rem;
    color: var(--text);
}
.sidebar .widget-title {
    font-size: 1rem;
    color: var(--text-bright);
    margin-bottom: .9rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--border);
    font-family: var(--mono);
}
.sidebar .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar .widget li {
    padding: .4rem 0;
    border-bottom: 1px dashed var(--border);
}
.sidebar .widget li:last-child { border-bottom: none; }
.sidebar .widget a { color: var(--text); }
.sidebar .widget a:hover { color: var(--accent); }
.sidebar .widget .post-date,
.sidebar .widget .rss-date {
    display: block;
    font-family: var(--mono);
    font-size: .72rem;
    color: #7d8088;
}

/* ============================================================
   Подвал
   ============================================================ */
.site-footer {
    background: #0b0d11;
    border-top: 1px solid var(--border);
    padding: 2.6rem 0 1.4rem;
    color: var(--text);
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}
.site-footer .widget {
    background: transparent;
    color: var(--text);
}
.site-footer .widget-title {
    font-family: var(--mono);
    font-size: .98rem;
    color: var(--accent);
    margin-bottom: .9rem;
}
.site-footer .widget p { color: var(--text); }
.site-footer .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-footer .widget li { padding: .32rem 0; }
.site-footer .widget a { color: var(--text); }
.site-footer .widget a:hover { color: var(--accent); }
.site-footer .widget .post-date {
    display: block;
    font-family: var(--mono);
    font-size: .72rem;
    color: #6b6e76;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.3rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: .82rem;
    color: #7d8088;
    font-family: var(--mono);
}

/* ============================================================
   Пагинация
   ============================================================ */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: 2.2rem;
    justify-content: center;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: .55em .7em;
    border-radius: 8px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--mono);
    font-size: .85rem;
}
.pagination a.page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.pagination .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text-ink);
    font-weight: 700;
}
.pagination .page-numbers.dots {
    background: transparent;
    border-color: transparent;
}

/* ============================================================
   Главная
   ============================================================ */
.section { margin-bottom: 3.4rem; }
.section-head { margin-bottom: 1.6rem; }
.section-kicker {
    display: inline-block;
    font-family: var(--mono);
    font-size: .76rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .5rem;
}
.section-title { font-size: 1.75rem; }
.section-lead { color: var(--text); max-width: 720px; }

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #12151d 0%, #0c0e13 60%, #15202a 100%);
    border: 1px solid var(--border);
    padding: 3.4rem 2.4rem;
    margin-bottom: 3.4rem;
}
.hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.07) 1px, transparent 1px);
    background-size: 38px 38px;
    animation: grid-drift 16s linear infinite;
    -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 75%);
    mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 75%);
}
.hero-spark {
    position: absolute;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}
.hero-spark.s1 { top: 22%; left: 18%; animation: spark 7s ease-in-out infinite; }
.hero-spark.s2 { top: 64%; left: 40%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); animation: spark 9s ease-in-out infinite; }
.hero-spark.s3 { top: 38%; left: 80%; animation: spark 8s ease-in-out infinite 1s; }
@keyframes spark {
    0%, 100% { transform: translateY(0); opacity: .4; }
    50%      { transform: translateY(-14px); opacity: 1; }
}
.hero-inner { position: relative; z-index: 1; max-width: 660px; }
.hero h1 {
    font-size: 2.6rem;
    line-height: 1.18;
    margin-bottom: .7rem;
}
.hero h1 .accent { color: var(--accent); }
.hero-text { font-size: 1.06rem; margin-bottom: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Категории — нестандартная сетка, первая карточка крупнее */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.3rem;
}
.cat-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem;
    min-width: 0;
    transition: transform .18s ease, border-color .2s ease, box-shadow .2s ease;
}
.cat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 229, 255, 0.5);
    box-shadow: var(--shadow);
}
.cat-card.feature {
    grid-column: span 2;
    background: linear-gradient(135deg, #15202a, #11141b);
}
.cat-icon {
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent);
    margin-bottom: .9rem;
}
.cat-icon svg { width: 24px; height: 24px; }
.cat-card h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.cat-card h3 a { color: var(--text-bright); }
.cat-card h3 a:hover { color: var(--accent); }
.cat-card p { font-size: .9rem; color: var(--text); margin: 0; }
.cat-card.feature h3 { font-size: 1.45rem; }

/* Колонки «как мы помогаем» */
.col-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}
.feature-col {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem 1.4rem;
    min-width: 0;
}
.feature-col .num {
    font-family: var(--mono);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    margin-bottom: .4rem;
}
.feature-col h3 { font-size: 1.1rem; }
.feature-col p { font-size: .92rem; margin: 0; }

/* Таймлайн гайдов */
.timeline {
    display: grid;
    gap: 1.1rem;
}
.timeline-step {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 1.1rem;
    align-items: start;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 12px;
    padding: 1.2rem 1.3rem;
}
.timeline-step .step-num {
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent);
    font-family: var(--mono);
    font-weight: 700;
    font-size: 1.15rem;
}
.timeline-step h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.timeline-step p { font-size: .92rem; margin: 0; }

/* Слайдер «будущее уже здесь» */
.tech-slider {
    position: relative;
    background: linear-gradient(135deg, #15202a, #0d1015);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.tech-slider .slides { position: relative; }
.tech-slider .slide {
    display: none;
    padding: 2.2rem 2.4rem;
}
.tech-slider .slide.is-active { display: block; }
.tech-slider .slide .badge {
    display: inline-block;
    font-family: var(--mono);
    font-size: .73rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--accent-2);
    border: 1px solid rgba(255, 183, 77, 0.4);
    border-radius: 40px;
    padding: .25em .8em;
    margin-bottom: .8rem;
}
.tech-slider .slide h3 { font-size: 1.45rem; }
.tech-slider .slide p { color: var(--text); max-width: 600px; margin-bottom: 0; }
.slider-dots {
    display: flex;
    gap: .4rem;
    padding: 0 2.4rem 1.6rem;
}
.slider-dot {
    width: 26px; height: 5px;
    border-radius: 4px;
    border: none;
    background: var(--border);
    cursor: pointer;
    padding: 0;
}
.slider-dot.is-active { background: var(--accent); }

/* Лента последних записей на главной */
.front-posts .post-grid { margin-top: 0; }
.front-cta {
    text-align: center;
    margin-top: 1.8rem;
}

/* ============================================================
   Комментарии
   ============================================================ */
.comments-area {
    margin-top: 2rem;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem 1.8rem;
}
.comments-title { font-size: 1.25rem; }
.comment-list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}
.comment-list ul.children {
    list-style: none;
    margin: 0;
    padding-left: 1.4rem;
}
.comment-body {
    padding: 1rem 0;
    border-bottom: 1px dashed var(--border);
}
.comment-author { font-weight: 600; color: var(--text-bright); }
.comment-author img { border-radius: 50%; vertical-align: middle; margin-right: .5em; }
.comment-meta { font-family: var(--mono); font-size: .76rem; color: var(--text); }
.comment-content { margin-top: .5rem; }

.comment-respond {
    margin-top: 1.4rem;
}
.comment-form label {
    display: block;
    font-size: .85rem;
    margin-bottom: .3rem;
    color: var(--text-bright);
}
.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: 8px;
    color: var(--text-bright);
    padding: .65em .8em;
    font-family: var(--sans);
    font-size: .95rem;
    margin-bottom: 1rem;
}
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.comment-form .form-submit input,
.form-submit .submit {
    display: inline-flex;
    padding: .8em 1.5em;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--accent), #43ecff);
    color: var(--text-ink);
    border: none;
    font-weight: 600;
    cursor: pointer;
}

/* ============================================================
   Форма поиска
   ============================================================ */
.search-form {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}
.search-form .search-field {
    flex: 1;
    min-width: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-bright);
    padding: .65em .85em;
    font-family: var(--sans);
    font-size: .95rem;
}
.search-form .search-field:focus {
    outline: none;
    border-color: var(--accent);
}
.search-form .search-submit {
    padding: .65em 1.2em;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, var(--accent), #43ecff);
    color: var(--text-ink);
    font-weight: 600;
    cursor: pointer;
}
.sidebar .widget .search-form { margin: 0; }

/* ============================================================
   404
   ============================================================ */
.error-404 {
    text-align: center;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem 1.8rem;
}
.error-404 .code {
    font-family: var(--mono);
    font-size: 4.6rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: .4rem;
}
.error-404 .search-form {
    max-width: 420px;
    margin: 1.6rem auto;
}

/* ============================================================
   Cookie-баннер
   ============================================================ */
.cookie-bar[hidden] { display: none !important; }

.cookie-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 200;
    background: rgba(15, 17, 21, 0.97);
    border-top: 1px solid var(--accent);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    padding: 1rem 0;
}
.cookie-bar .shell {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: space-between;
}
.cookie-bar p {
    margin: 0;
    font-size: .88rem;
    color: var(--text);
    flex: 1;
    min-width: 220px;
}
.cookie-bar a { color: var(--accent); }
.cookie-accept {
    flex: 0 0 auto;
    padding: .7em 1.4em;
    border-radius: 6px;
    border: none;
    background: linear-gradient(135deg, var(--accent), #43ecff);
    color: var(--text-ink);
    font-weight: 600;
    font-family: var(--sans);
    cursor: pointer;
}
.cookie-accept:hover { box-shadow: var(--shadow); }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 960px) {
    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 2.4rem;
    }
    .layout-single .content-area,
    .front-wrap { width: 100%; }
    .cat-grid,
    .col-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cat-card.feature { grid-column: span 2; }
    .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero h1 { font-size: 2.1rem; }

    .nav-toggle { display: block; }
    .main-nav { border-top: none; }
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        display: none;
        padding-bottom: .6rem;
    }
    .main-nav ul.is-open { display: flex; }
    .main-nav a {
        padding: .8rem .2rem;
        border-bottom: 1px solid var(--border);
    }
    .main-nav .current-menu-item > a,
    .main-nav .current_page_item > a {
        border-bottom-color: var(--border);
    }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .hero { padding: 2.2rem 1.3rem; }
    .hero h1 { font-size: 1.75rem; }
    h1 { font-size: 1.7rem; }
    .entry { padding: 1.2rem; }
    .entry-title { font-size: 1.5rem; }
    .cat-grid,
    .col-grid,
    .footer-cols { grid-template-columns: minmax(0, 1fr); }
    .cat-card.feature { grid-column: span 1; }
    .cat-card.feature h3 { font-size: 1.2rem; }
    .timeline-step {
        grid-template-columns: minmax(0, 1fr);
        gap: .7rem;
    }
    .tech-slider .slide { padding: 1.5rem 1.3rem; }
    .slider-dots { padding: 0 1.3rem 1.3rem; }
    .header-inner { gap: .8rem; }
    .site-name { font-size: .9rem; }
}

/* Плавная прокрутка для якорей */
html { scroll-behavior: smooth; }
