/*
Theme Name: dds_zenervasoftware.com
Author: Ильина Алиса
Description: Корпоративная тема для студии разработки ПО. Тёмная технологичная палитра, моноширинные акценты, фоновая сетка данных.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: zenerva
*/

/* ============================================================
   1. Reset / база
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #B0C4DE;
    background: #0A1128;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: #00D2FF;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}
a:hover { color: #6FE3FF; text-decoration: underline; }

p { margin: 0 0 1em; }

h1, h2, h3, h4, h5, h6 {
    color: #E6F1FF;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 0.6em;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1.02rem; }
h6 { font-size: 0.95rem; }

/* H1 с моноширинной приставкой "zenerva://" и левой акцентной рамкой */
.entry-content h1,
.page-title,
.entry-title-single {
    border-left: 3px solid #00D2FF;
    padding: 0.1em 0 0.1em 0.7em;
}
.entry-content h1::before,
.page-title::before,
.entry-title-single::before {
    content: 'zenerva://';
    font-family: 'Cascadia Code', 'Fira Code', Consolas, monospace;
    color: #00D2FF;
    font-size: 0.85em;
    margin-right: 0.4em;
    letter-spacing: 0.02em;
}

code, pre, kbd, samp {
    font-family: 'Cascadia Code', 'Fira Code', Consolas, 'Courier New', monospace;
    font-size: 0.92em;
}
pre {
    background: rgba(8, 12, 24, 0.8);
    border-left: 3px solid #00D2FF;
    padding: 1em 1.2em;
    overflow-x: auto;
    color: #B0C4DE;
    border-radius: 4px;
}
code {
    background: rgba(8, 12, 24, 0.6);
    padding: 0.15em 0.4em;
    border-radius: 3px;
    color: #E6F1FF;
}

blockquote {
    margin: 1.2em 0;
    padding: 0.8em 1.2em;
    border-left: 3px solid #00D2FF;
    background: rgba(26, 42, 74, 0.5);
    font-family: 'Cascadia Code', 'Fira Code', Consolas, monospace;
    color: #E6F1FF;
    font-style: normal;
}
blockquote p:last-child { margin-bottom: 0; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    border: 1px solid #2A3F66;
}
th, td {
    border: 1px solid #2A3F66;
    padding: 0.6em 0.8em;
    text-align: left;
}
th {
    background: #1A2A4A;
    color: #E6F1FF;
    font-weight: 600;
}
tr:nth-child(even) td { background: rgba(26, 42, 74, 0.3); }

hr {
    border: 0;
    border-top: 1px dashed #2A3F66;
    margin: 2em 0;
}

ul, ol { padding-left: 1.4em; }

/* ============================================================
   2. Layout / контейнеры
   ============================================================ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-content {
    padding: 36px 0 60px;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: 67% 27%;
    gap: 6%;
    align-items: flex-start;
}
.layout-no-sidebar .content-area {
    width: 85%;
    margin: 0 auto;
}

@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: 1fr; gap: 36px; }
    .layout-no-sidebar .content-area { width: 100%; }
}

/* ============================================================
   3. Шапка
   ============================================================ */
.site-header {
    position: relative;
    background: linear-gradient(180deg, #0A1128 0%, #11193A 100%);
    border-bottom: 1px solid #1A2A4A;
    overflow: hidden;
}
.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 210, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 210, 255, 0.06) 1px, transparent 1px);
    background-size: 38px 38px;
    animation: zenerva-grid-shift 24s linear infinite;
    pointer-events: none;
}
@keyframes zenerva-grid-shift {
    from { background-position: 0 0, 0 0; }
    to   { background-position: 38px 38px, 38px 38px; }
}

.terminal-cursor {
    display: block;
    text-align: center;
    font-family: 'Cascadia Code', 'Fira Code', Consolas, monospace;
    color: #00D2FF;
    font-size: 0.78rem;
    padding: 6px 0 0;
    letter-spacing: 0.05em;
    opacity: 0.8;
}
.terminal-cursor .blink {
    display: inline-block;
    background: #00D2FF;
    width: 8px;
    height: 14px;
    vertical-align: -2px;
    margin-left: 4px;
    animation: zenerva-blink 1s step-end infinite;
}
@keyframes zenerva-blink { 50% { opacity: 0; } }

.header-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1 1 auto;
    min-width: 0;
}
.brand-logo,
.brand-logo-fallback {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: block;
}
.brand-logo-fallback path,
.brand-logo-fallback rect { fill: #00D2FF; }

.brand-text { min-width: 0; }
.brand-text .site-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.2;
    font-weight: 700;
}
.brand-text .site-title a { color: #E6F1FF; }
.brand-text .site-title a:hover { color: #00D2FF; text-decoration: none; }
.brand-text .site-description {
    font-size: 0.82rem;
    color: #7E94B8;
    line-height: 1.35;
    margin-top: 2px;
}

/* Главное меню */
.main-nav { flex-shrink: 0; }
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 26px;
}
.main-nav a {
    color: #B0C4DE;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 0;
    position: relative;
}
.main-nav a:hover { color: #00D2FF; text-decoration: none; }
.main-nav a:hover::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: #00D2FF;
    box-shadow: 0 0 8px #00D2FF;
}
.main-nav .current-menu-item > a { color: #00D2FF; }

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid #00D2FF;
    color: #00D2FF;
    padding: 8px 14px;
    font-family: 'Cascadia Code', monospace;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .menu-toggle { display: inline-block; }
    .main-nav ul { display: none; flex-direction: column; gap: 0; }
    .main-nav.is-open ul {
        display: flex;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #11193A;
        border-top: 1px solid #1A2A4A;
        padding: 12px 24px;
        z-index: 10;
    }
    .main-nav.is-open ul li { padding: 10px 0; border-bottom: 1px solid #1A2A4A; }
    .main-nav.is-open ul li:last-child { border-bottom: 0; }
    .header-inner { flex-wrap: wrap; }
}

/* ============================================================
   4. Хлебные крошки
   ============================================================ */
.breadcrumbs {
    font-size: 0.85rem;
    color: #7E94B8;
    margin: 0 0 22px;
    font-family: 'Cascadia Code', monospace;
}
.breadcrumbs a { color: #B0C4DE; }
.breadcrumbs a:hover { color: #00D2FF; text-decoration: none; }
.breadcrumbs .sep {
    margin: 0 0.4em;
    color: #00D2FF;
    opacity: 0.7;
}

/* ============================================================
   5. Карточки записей (важный блок — A8, A10)
   ============================================================ */
.card {
    display: flex;
    flex-direction: column;
    background: #1A2A4A;
    border: 1px solid #243B66;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 22px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 210, 255, 0.12);
    border-color: #00D2FF;
}
.card-row { flex-direction: row; }

.card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
    background: #11193A;
}
.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 0.4s ease;
}
.card:hover .card-thumb-wrap img { transform: scale(1.04); }

/* Карточки в сетке (front-page) — вертикальные */
.card-grid .card-thumb-wrap {
    flex: none;
    width: 100%;
    height: auto;
    position: relative;
}
.card-grid .card-thumb-wrap a {
    position: relative;
    display: block;
}
.card-grid .card-thumb-wrap img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

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

.card-meta {
    font-size: 0.78rem;
    color: #7E94B8;
    font-family: 'Cascadia Code', monospace;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}
.card-meta a { color: #B0C4DE; }

.card-title {
    margin: 0 0 10px;
    font-size: 1.2rem;
    line-height: 1.3;
}
.card-title a { color: #E6F1FF; }
.card-title a:hover { color: #00D2FF; text-decoration: none; }

.card-excerpt { color: #B0C4DE; margin-bottom: 14px; }
.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}
.card-excerpt p:last-child { margin-bottom: 0; }

.card-more {
    align-self: flex-start;
    margin-top: auto;
    color: #00D2FF;
    font-family: 'Cascadia Code', monospace;
    font-size: 0.88rem;
    padding-bottom: 2px;
    border-bottom: 1px dashed #00D2FF;
}
.card-more:hover { text-decoration: none; color: #6FE3FF; border-bottom-color: #6FE3FF; }

/* Адаптив горизонтальной карточки — сбрасываем абсолютку */
@media (max-width: 600px) {
    .card-row { flex-direction: column; }
    .card-row .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }
    .card-row .card-thumb-wrap a { position: static; }
    .card-row .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

/* ============================================================
   6. Кнопки
   ============================================================ */
.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    cursor: pointer;
    border: 0;
    transition: all 0.25s ease;
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, #00D2FF 0%, #0A1128 140%);
    color: #0A1128;
}
.btn-primary:hover {
    box-shadow: 0 0 12px #00D2FF;
    color: #0A1128;
    text-decoration: none;
}
.btn-secondary {
    background: transparent;
    border: 1px solid #00D2FF;
    color: #00D2FF;
}
.btn-secondary:hover {
    background: rgba(0, 210, 255, 0.8);
    color: #0A1128;
    text-decoration: none;
}
.btn-terminal {
    background: transparent;
    border: 0;
    color: #00D2FF;
    font-family: 'Cascadia Code', monospace;
    border-bottom: 1px dashed #00D2FF;
    border-radius: 0;
    padding: 4px 0;
}
.btn-terminal:hover {
    background: transparent;
    color: #6FE3FF;
    border-bottom-color: #6FE3FF;
    text-decoration: none;
}

/* ============================================================
   7. Тематические секции (front-page)
   ============================================================ */
.section {
    margin: 50px 0;
}
.section-title {
    font-size: 1.65rem;
    margin: 0 0 22px;
    border-left: 3px solid #00D2FF;
    padding: 0.1em 0 0.1em 0.7em;
}
.section-title::before {
    content: '#';
    font-family: 'Cascadia Code', monospace;
    color: #00D2FF;
    font-size: 0.85em;
    margin-right: 0.35em;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}
.feature-card {
    background: #1A2A4A;
    border: 1px solid #243B66;
    border-radius: 6px;
    padding: 22px 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover {
    transform: translateY(-3px);
    border-color: #00D2FF;
    box-shadow: 0 8px 28px rgba(0, 210, 255, 0.12);
}
.feature-card .arch-pattern {
    position: absolute;
    right: -22px;
    bottom: -22px;
    width: 110px;
    height: 110px;
    opacity: 0.06;
    transition: opacity 0.3s ease, fill 0.3s ease;
    pointer-events: none;
}
.feature-card:hover .arch-pattern { opacity: 0.4; }
.feature-card .arch-pattern path,
.feature-card .arch-pattern rect,
.feature-card .arch-pattern circle { fill: #00D2FF; stroke: #00D2FF; }
.feature-card h3 { margin-top: 0; font-size: 1.15rem; }
.feature-card .icon {
    width: 36px;
    height: 36px;
    color: #00D2FF;
    margin-bottom: 12px;
    display: block;
}

.steps-list {
    list-style: none;
    counter-reset: step;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}
.steps-list li {
    counter-increment: step;
    background: #1A2A4A;
    border: 1px solid #243B66;
    border-radius: 6px;
    padding: 18px 20px 18px 56px;
    position: relative;
    color: #B0C4DE;
}
.steps-list li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 16px;
    top: 16px;
    font-family: 'Cascadia Code', monospace;
    color: #00D2FF;
    font-size: 0.95rem;
    font-weight: 700;
}
.steps-list li strong { color: #E6F1FF; }

/* "Поток данных" — горизонтальный скролл проектов */
.flow-slider {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px;
    margin: 0 -4px;
}
.flow-slider::-webkit-scrollbar { height: 6px; }
.flow-slider::-webkit-scrollbar-track { background: #11193A; }
.flow-slider::-webkit-scrollbar-thumb { background: #00D2FF; border-radius: 3px; }
.flow-slide {
    flex: 0 0 320px;
    scroll-snap-align: start;
    background: #1A2A4A;
    border: 1px solid #243B66;
    border-radius: 6px;
    padding: 20px;
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.flow-slide:hover { border-color: #00D2FF; transform: translateY(-3px); }
.flow-slide h4 { margin-top: 0; }
.flow-slide .tag {
    display: inline-block;
    font-family: 'Cascadia Code', monospace;
    font-size: 0.75rem;
    color: #00D2FF;
    border: 1px solid #00D2FF;
    border-radius: 3px;
    padding: 2px 8px;
    margin-right: 6px;
    margin-bottom: 6px;
}
.flow-progress {
    height: 4px;
    background: #11193A;
    border-radius: 2px;
    margin: 12px 0 0;
    overflow: hidden;
}
.flow-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #00D2FF, #6FE3FF);
    transition: width 0.2s ease;
}

/* ============================================================
   8. Сайдбар и виджеты
   ============================================================ */
.sidebar {
    background: #11193A;
    border: 1px solid #1A2A4A;
    border-radius: 6px;
    padding: 22px 22px 4px;
}
.widget {
    margin-bottom: 22px;
}
.widget-title {
    font-size: 1rem;
    color: #E6F1FF;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #1A2A4A;
    font-family: 'Cascadia Code', monospace;
    letter-spacing: 0.02em;
}
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget ul li {
    padding: 6px 0;
    border-bottom: 1px dashed rgba(26, 42, 74, 0.7);
}
.widget ul li:last-child { border-bottom: 0; }
.widget ul li a { color: #B0C4DE; }
.widget ul li a:hover { color: #00D2FF; text-decoration: none; }
.widget select {
    width: 100%;
    padding: 8px 10px;
    background: #0A1128;
    color: #B0C4DE;
    border: 1px solid #1A2A4A;
    border-radius: 4px;
}

/* ============================================================
   9. Подвал
   ============================================================ */
.site-footer {
    position: relative;
    background: #11193A;
    border-top: 1px solid #1A2A4A;
    color: #B0C4DE;
    overflow: hidden;
    margin-top: 60px;
}
.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 210, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 210, 255, 0.05) 1px, transparent 1px);
    background-size: 38px 38px;
    pointer-events: none;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 40px 0 28px;
    position: relative;
    z-index: 1;
}
@media (max-width: 768px) {
    .footer-cols { grid-template-columns: 1fr; gap: 26px; }
}

.footer-col .widget-title {
    color: #E6F1FF;
    border-bottom: 1px solid #1A2A4A;
}

/* Цифровые элементы в подвале */
.footer-utility {
    position: relative;
    z-index: 1;
    border-top: 1px solid #1A2A4A;
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    font-family: 'Cascadia Code', monospace;
    font-size: 0.82rem;
    color: #7E94B8;
}
.unix-clock { color: #00D2FF; }
.binary-bars {
    display: flex;
    gap: 3px;
    height: 18px;
    align-items: flex-end;
}
.binary-bars span {
    display: block;
    width: 4px;
    background: #00D2FF;
    opacity: 0.7;
    animation: zenerva-bar 1.4s ease-in-out infinite;
}
.binary-bars span:nth-child(1) { animation-delay: 0s; }
.binary-bars span:nth-child(2) { animation-delay: 0.15s; }
.binary-bars span:nth-child(3) { animation-delay: 0.3s; }
.binary-bars span:nth-child(4) { animation-delay: 0.45s; }
.binary-bars span:nth-child(5) { animation-delay: 0.6s; }
.binary-bars span:nth-child(6) { animation-delay: 0.75s; }
.binary-bars span:nth-child(7) { animation-delay: 0.9s; }
.binary-bars span:nth-child(8) { animation-delay: 1.05s; }
@keyframes zenerva-bar {
    0%, 100% { height: 20%; }
    50%      { height: 100%; }
}

.copyright {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 14px 0 18px;
    font-size: 0.85rem;
    color: #7E94B8;
}

/* ============================================================
   10. Пагинация
   ============================================================ */
.zen-pagination {
    margin: 36px 0 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}
.zen-pagination a,
.zen-pagination span {
    display: inline-block;
    padding: 8px 14px;
    background: #1A2A4A;
    border: 1px solid #243B66;
    border-radius: 4px;
    color: #B0C4DE;
    font-family: 'Cascadia Code', monospace;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}
.zen-pagination a:hover {
    border-color: #00D2FF;
    color: #00D2FF;
    text-decoration: none;
}
.zen-pagination .current {
    background: #00D2FF;
    border-color: #00D2FF;
    color: #0A1128;
    font-weight: 700;
}
.zen-pagination .dots {
    background: transparent;
    border-color: transparent;
}

/* ============================================================
   11. Запись и страница (single/page)
   ============================================================ */
.entry-meta {
    color: #7E94B8;
    font-size: 0.85rem;
    font-family: 'Cascadia Code', monospace;
    margin-bottom: 14px;
}
.entry-meta a { color: #B0C4DE; }

.entry-content { color: #B0C4DE; }
.entry-content img { border-radius: 6px; }
.entry-content h2,
.entry-content h3,
.entry-content h4 { margin-top: 1.4em; }

.featured-image {
    margin: 0 0 24px;
}
.featured-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

.post-tags {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px dashed #1A2A4A;
    font-size: 0.85rem;
}
.post-tags a {
    display: inline-block;
    margin: 0 4px 4px 0;
    padding: 3px 10px;
    background: #1A2A4A;
    border: 1px solid #243B66;
    border-radius: 3px;
    color: #B0C4DE;
    font-family: 'Cascadia Code', monospace;
    font-size: 0.78rem;
}
.post-tags a:hover { border-color: #00D2FF; color: #00D2FF; text-decoration: none; }

/* ============================================================
   12. Комментарии
   ============================================================ */
.comments-area {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #1A2A4A;
}
.comments-title { font-size: 1.3rem; margin-bottom: 18px; }
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}
.comment-list li { margin-bottom: 18px; }
.comment-list .children {
    list-style: none;
    padding-left: 24px;
    border-left: 1px dashed #1A2A4A;
    margin-top: 14px;
}
.comment-body {
    background: #1A2A4A;
    border: 1px solid #243B66;
    border-radius: 6px;
    padding: 14px 18px;
}
.comment-author {
    color: #E6F1FF;
    font-weight: 600;
    margin-bottom: 6px;
}
.comment-author .says { color: #7E94B8; font-weight: 400; margin-left: 4px; }
.comment-meta-info {
    font-size: 0.8rem;
    color: #7E94B8;
    font-family: 'Cascadia Code', monospace;
    margin-bottom: 8px;
}
.comment-content { color: #B0C4DE; }
.comment-reply { margin-top: 10px; font-size: 0.88rem; }

.comment-form-wrap { margin-top: 22px; }
.comment-form label {
    display: block;
    color: #E6F1FF;
    font-size: 0.9rem;
    margin-bottom: 4px;
    font-family: 'Cascadia Code', monospace;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #243B66;
    color: #E6F1FF;
    padding: 8px 4px;
    font-family: inherit;
    font-size: 0.95rem;
    margin-bottom: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-bottom-color: #00D2FF;
    box-shadow: 0 1px 0 0 #00D2FF;
}
.comment-form textarea {
    min-height: 110px;
    resize: vertical;
}
.comment-form .form-submit input { cursor: pointer; }

/* ============================================================
   13. Поиск, 404
   ============================================================ */
.search-form {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0;
}
.search-form input[type="search"] {
    flex: 1;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #243B66;
    color: #E6F1FF;
    padding: 8px 4px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
}
.search-form input[type="search"]:focus { border-bottom-color: #00D2FF; }
.search-form .search-submit {
    background: transparent;
    color: #00D2FF;
    border: 1px solid #00D2FF;
    padding: 7px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Cascadia Code', monospace;
    font-size: 0.85rem;
}
.search-form .search-submit:hover { background: rgba(0, 210, 255, 0.8); color: #0A1128; }

.error-404 {
    text-align: center;
    padding: 40px 0;
}
.error-404 .code {
    font-family: 'Cascadia Code', monospace;
    font-size: 5rem;
    color: #00D2FF;
    margin: 0;
    letter-spacing: 0.05em;
    text-shadow: 0 0 24px rgba(0, 210, 255, 0.4);
}
.error-404 h1 {
    border: 0;
    padding: 0;
    margin: 4px 0 14px;
}
.error-404 h1::before { content: ''; margin: 0; }
.error-404 .search-form { max-width: 460px; margin: 22px auto; }

/* ============================================================
   14. Cookie-баннер (A11)
   ============================================================ */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1000;
    background: rgba(8, 12, 24, 0.96);
    border: 1px solid #00D2FF;
    border-radius: 6px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: 0 4px 24px rgba(0, 210, 255, 0.18);
    color: #B0C4DE;
    font-size: 0.9rem;
}
.cookie-banner .text {
    flex: 1 1 320px;
    line-height: 1.45;
}
.cookie-banner .accept {
    background: linear-gradient(135deg, #00D2FF 0%, #0A1128 140%);
    color: #0A1128;
    border: 0;
    border-radius: 4px;
    padding: 9px 18px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}
.cookie-banner .accept:hover { box-shadow: 0 0 12px #00D2FF; }

/* ============================================================
   15. Анимации появления при скролле
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   16. Утилиты
   ============================================================ */
.alignwide { max-width: 100%; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 1.4em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.4em; }
.wp-caption { max-width: 100%; }
.wp-caption .wp-caption-text {
    font-size: 0.82rem;
    color: #7E94B8;
    text-align: center;
    margin-top: 6px;
    font-family: 'Cascadia Code', monospace;
}

/* Системные сообщения */
.system-notice {
    border-left: 3px solid #FF8C42;
    background: rgba(255, 140, 66, 0.08);
    padding: 10px 14px;
    color: #FFB87A;
    font-family: 'Cascadia Code', monospace;
    font-size: 0.9rem;
    margin: 12px 0;
}

/* Адаптив текста */
@media (max-width: 600px) {
    body { font-size: 15px; }
    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.4rem; }
    .container { padding: 0 16px; }
    .site-content { padding: 24px 0 40px; }
}
