/*
Theme Name: dds_ldnio-russia.ru
Author: Дмитрий Завьялов
Description: Информационная тема для образовательной онлайн-платформы по инженерии и электронике. Дизайн COLD MONOCHROME TECH — холодный технологичный минимализм.
Version: 1.1
Text Domain: techlab
*/

/* ================================================================
   ПЕРЕМЕННЫЕ И БАЗА
   ================================================================ */
:root {
    --bg:          #0E131F;
    --bg-alt:      #161E2D;
    --bg-footer:   #080B12;
    --bg-sidebar:  #1A2335;
    --text:        #E8EDF5;
    --accent:      #00FFAA;
    --accent-2:    #3B82F6;
    --muted:       #6B7A99;
    --border:      #2A3A52;
    --card-border: #2A3A52;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 300;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    background-image: linear-gradient(180deg, #0E131F 0%, #05080E 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
}

/* Декоративный шестиугольник-кристалл в правом верхнем углу */
body::before {
    content: "";
    position: fixed;
    top: -60px;
    right: -60px;
    width: 480px;
    height: 480px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.05;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%2300FFAA' stroke-width='1'%3E%3Cpolygon points='100,10 173,55 173,145 100,190 27,145 27,55'/%3E%3Cpolygon points='100,45 143,70 143,120 100,145 57,120 57,70'/%3E%3Cline x1='100' y1='10' x2='100' y2='45'/%3E%3Cline x1='173' y1='55' x2='143' y2='70'/%3E%3Cline x1='173' y1='145' x2='143' y2='120'/%3E%3Cline x1='100' y1='190' x2='100' y2='145'/%3E%3Cline x1='27' y1='145' x2='57' y2='120'/%3E%3Cline x1='27' y1='55' x2='57' y2='70'/%3E%3C/g%3E%3C/svg%3E");
    background-size: contain;
}

.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

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

/* Текстовые ссылки — подчёркивание из центра к краям */
.entry-content a,
.comment-text a {
    background-image: linear-gradient(var(--accent), var(--accent));
    background-position: 50% 100%;
    background-repeat: no-repeat;
    background-size: 0 1px;
    transition: background-size .25s ease;
    padding-bottom: 1px;
}
.entry-content a:hover,
.comment-text a:hover {
    background-size: 100% 1px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text);
    letter-spacing: -0.02em;
}

p { margin: 0 0 1.1em; }

/* ================================================================
   КНОПКИ (срез правого нижнего угла как у платы)
   ================================================================ */
.btn,
.entry-content .wp-block-button__link {
    display: inline-block;
    padding: 0.85em 1.8em;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.98rem;
    color: #06110C;
    background: var(--accent);
    border: 1px solid var(--accent);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3px), calc(100% - 3px) 100%, 0 100%);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    cursor: pointer;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(0, 255, 170, 0.45);
}
.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}
.btn-outline:hover {
    background: rgba(0, 255, 170, 0.08);
    box-shadow: 0 0 22px rgba(0, 255, 170, 0.25);
}

/* ================================================================
   ШАПКА
   ================================================================ */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.1rem 0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    text-decoration: none;
}
.brand-logo { display: block; max-height: 56px; width: auto; }
.brand-svg { flex: 0 0 auto; }
.brand-text { min-width: 0; }
.brand-name {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1.02rem;
    color: var(--text);
    line-height: 1.25;
    max-width: 620px;
}
.brand-desc {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.4;
    margin-top: 2px;
    max-width: 620px;
}

/* Навигация */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.4rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.main-nav a {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    padding: 0.3rem 0;
    position: relative;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: var(--accent);
}
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.5rem 0.7rem;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}

/* ================================================================
   ХЛЕБНЫЕ КРОШКИ
   ================================================================ */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--muted);
    padding: 1.4rem 0 0.2rem;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: var(--border); margin: 0 0.15rem; }
.breadcrumbs span:last-child { color: var(--text); }

/* ================================================================
   ОСНОВНАЯ РАСКЛАДКА
   ================================================================ */
.site-main { padding: 2rem 0 3.5rem; }

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

/* Заголовок секции с акцентной линией слева */
.section-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 0 1.6rem;
}
.section-head::before {
    content: "";
    width: 44px;
    height: 3px;
    background: var(--accent);
    flex: 0 0 auto;
}
.section-head h1,
.section-head h2 { margin: 0; }

.page-title { font-size: 2.4rem; margin: 0 0 1.4rem; }

/* ================================================================
   САЙДБАР
   ================================================================ */
.sidebar {
    background: var(--bg-sidebar);
    border: 1px solid var(--border);
    box-shadow: 0 0 30px rgba(0, 255, 170, 0.05);
    padding: 1.6rem 1.5rem;
}
.sidebar .widget { margin-bottom: 1.8rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    font-size: 1.05rem;
    margin: 0 0 1rem;
    color: var(--text);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { margin-bottom: 0.6rem; line-height: 1.4; }
.sidebar a { color: var(--text); }
.sidebar a:hover { color: var(--accent); }
.sidebar .post-date,
.sidebar time { color: var(--muted); font-size: 0.82rem; }

/* ================================================================
   КАРТОЧКИ ЗАПИСЕЙ
   ================================================================ */
.cards { display: grid; gap: 1.8rem; }
.cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
    display: flex;
    flex-direction: column;
    background: var(--bg-alt);
    border: 1px solid var(--card-border);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 0 0 4px rgba(0, 255, 170, 0.20);
    transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}
.card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 255, 170, 0.60);
    transform: translateY(-2px);
}
.card-thumb-wrap {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}
.card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.card:hover .card-thumb-wrap img { transform: scale(1.04); }
.card-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: block;
    background: linear-gradient(135deg, #161E2D 0%, #1A2335 100%);
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.3rem 1.4rem 1.5rem;
    min-width: 0;
}
.card-meta {
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}
.card-title {
    font-size: 1.2rem;
    margin: 0 0 0.6rem;
    line-height: 1.25;
}
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); }
.card-excerpt { font-size: 0.92rem; color: #C3CCDB; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    margin-top: auto;
    padding-top: 0.8rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent);
    align-self: flex-start;
}
.card-more:hover { color: var(--text); }

/* ================================================================
   ПАГИНАЦИЯ
   ================================================================ */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.5rem;
    justify-content: center;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.8rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    color: var(--text);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    transition: border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.pagination a.page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 14px rgba(0, 255, 170, 0.25);
}
.pagination .page-numbers.current {
    background: var(--accent);
    color: #06110C;
    border-color: var(--accent);
}
.pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
}

/* ================================================================
   ЗАПИСЬ / СТРАНИЦА
   ================================================================ */
.entry-header .entry-title {
    font-size: 2.6rem;
    margin: 0.3rem 0 0.8rem;
}
.entry-meta {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
}
.entry-thumb { margin-bottom: 1.8rem; }
.entry-thumb img { width: 100%; display: block; }
.entry-content { font-size: 1.02rem; }
.entry-content h2 { font-size: 1.8rem; margin: 2rem 0 0.9rem; }
.entry-content h3 { font-size: 1.4rem; margin: 1.6rem 0 0.8rem; }
.entry-content img { display: block; margin: 1.5rem 0; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content li { margin-bottom: 0.5rem; }
.entry-content blockquote {
    margin: 1.6rem 0;
    padding: 1.2rem 1.6rem;
    background: var(--bg-alt);
    border-left: 3px solid var(--accent);
    color: #C3CCDB;
}

/* Таблицы */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
}
.entry-content table,
.entry-content th,
.entry-content td {
    border: 1px solid var(--border);
}
.entry-content th,
.entry-content td { padding: 0.7rem 0.9rem; text-align: left; }
.entry-content th { background: var(--bg-alt); color: var(--text); }

.entry-tags {
    margin: 2rem 0 0;
    font-size: 0.85rem;
}
.entry-tags a {
    display: inline-block;
    margin: 0.2rem 0.3rem 0.2rem 0;
    padding: 0.25rem 0.7rem;
    border: 1px solid var(--border);
    color: var(--muted);
}
.entry-tags a:hover { border-color: var(--accent); color: var(--accent); }

/* ================================================================
   КОММЕНТАРИИ
   ================================================================ */
.comments-area { margin-top: 3rem; }
.comments-title { font-size: 1.5rem; margin-bottom: 1.5rem; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .children { list-style: none; margin: 1rem 0 0 1.5rem; padding: 0; }
.comment-item { margin-bottom: 1.4rem; }
.comment-body {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 1.2rem 1.4rem;
}
.comment-meta {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}
.comment-author { font-family: 'Manrope', sans-serif; font-weight: 700; color: var(--text); }
.comment-date { font-size: 0.8rem; color: var(--muted); }
.comment-reply a { font-size: 0.85rem; font-weight: 600; }
.comment-awaiting { color: var(--accent-2); font-size: 0.85rem; }

.comment-respond {
    margin-top: 2rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 1.6rem 1.8rem;
}
.comment-respond .comment-reply-title { font-size: 1.3rem; margin: 0 0 1rem; }
.comment-form label { display: block; margin-bottom: 0.3rem; font-size: 0.9rem; color: var(--muted); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    margin-bottom: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
}
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--accent); }
.comment-form .submit,
.form-submit input {
    display: inline-block;
    padding: 0.8em 1.8em;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    color: #06110C;
    background: var(--accent);
    border: 1px solid var(--accent);
    cursor: pointer;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3px), calc(100% - 3px) 100%, 0 100%);
}

/* ================================================================
   ФОРМА ПОИСКА
   ================================================================ */
.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 420px;
}
.search-form .search-field {
    flex: 1;
    min-width: 0;
    padding: 0.7rem 0.9rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: inherit;
}
.search-form .search-field:focus { outline: none; border-color: var(--accent); }
.search-form .search-submit {
    padding: 0.7rem 1.2rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    color: #06110C;
    background: var(--accent);
    border: 1px solid var(--accent);
    cursor: pointer;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3px), calc(100% - 3px) 100%, 0 100%);
}

/* ================================================================
   ГЛАВНАЯ СТРАНИЦА
   ================================================================ */
.front-content { width: 85%; margin-inline: auto; }

.front-section { padding: 3.4rem 0; }
.front-section.alt {
    background: var(--bg-alt);
    background-image: repeating-linear-gradient(45deg, transparent, transparent 39px, rgba(42, 58, 82, 0.5) 39px, rgba(42, 58, 82, 0.5) 40px);
}
.front-section.alt .shell,
.front-section.alt .front-content { position: relative; }

/* Декоративная пунктирная линия из точек */
.dot-divider {
    height: 6px;
    width: 33%;
    background-image: radial-gradient(circle, var(--border) 1.5px, transparent 1.5px);
    background-size: 14px 6px;
    background-repeat: repeat-x;
    margin: 0;
}

/* --- Блок 1: Hero --- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 4rem;
    background: linear-gradient(135deg, #0E131F 0%, #12213A 100%);
    border-bottom: 1px solid var(--border);
}
.hero-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.10) 1px, transparent 1px);
    background-size: 46px 46px;
    transform: perspective(500px) rotateX(52deg) scale(1.6);
    transform-origin: top center;
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; width: 85%; margin-inline: auto; }
.hero-terminal {
    font-family: 'Manrope', sans-serif;
    color: var(--accent);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    display: inline-flex;
    align-items: center;
}
.hero-terminal .caret {
    display: inline-block;
    width: 12px;
    height: 1.1em;
    margin-left: 4px;
    background: var(--accent);
    animation: techlab-blink 1.05s steps(1) infinite;
}
@keyframes techlab-blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
.hero h1 {
    font-size: 4.5rem;
    margin: 0 0 1.2rem;
    max-width: 66%;
}
.hero-sub {
    font-size: 1.2rem;
    color: #C3CCDB;
    max-width: 640px;
    margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* --- Блок 2: Статистика --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
}
.stat {
    position: relative;
    padding: 1.8rem 1.4rem;
    border: 1px solid var(--border);
    background: rgba(26, 35, 53, 0.4);
}
.stat-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    margin-bottom: 1rem;
}
.stat-num {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 2.8rem;
    line-height: 1;
    color: var(--text);
    text-shadow: 0 0 18px rgba(0, 255, 170, 0.5);
}
.stat-label { color: var(--muted); font-size: 0.92rem; margin-top: 0.5rem; }

/* --- Блок 3: Таймлайн «Путь инженера» --- */
.timeline { position: relative; padding-left: 2.4rem; }
.timeline::before {
    content: "";
    position: absolute;
    left: 8px; top: 6px; bottom: 6px;
    width: 2px;
    background: var(--accent);
}
.timeline-step { position: relative; padding-bottom: 2.2rem; }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step::before {
    content: "";
    position: absolute;
    left: -2.4rem;
    top: 6px;
    width: 18px; height: 18px;
    margin-left: -0px;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--accent);
    box-shadow: 0 0 12px rgba(0, 255, 170, 0.4);
}
.timeline-num {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--accent-2);
    letter-spacing: 0.05em;
}
.timeline-step h3 { font-size: 1.35rem; margin: 0.2rem 0 0.5rem; }
.timeline-step p { color: #C3CCDB; margin: 0; max-width: 640px; }

/* --- Блок 4: Рубрикатор (скошенные плашки) --- */
.rubricator {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}
.rubric {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 2rem 1.8rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--text);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 22px 100%);
    transition: background .25s ease, color .25s ease, box-shadow .25s ease;
    min-width: 0;
}
.rubric:hover {
    background: var(--accent);
    color: #06110C;
    box-shadow: 0 0 26px rgba(0, 255, 170, 0.35);
}
.rubric-icon { width: 34px; height: 34px; color: var(--accent); }
.rubric:hover .rubric-icon { color: #06110C; }
.rubric-name {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
}
.rubric-desc { font-size: 0.9rem; color: var(--muted); }
.rubric:hover .rubric-desc { color: #063A2A; }

/* Двухколоночные блоки главной (общий) */
.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.4rem;
    align-items: center;
}
.split img { width: 100%; display: block; border: 1px solid var(--border); }

/* ================================================================
   CTA (плашка с фоном — отступы со всех сторон, A14)
   ================================================================ */
.cta {
    background: linear-gradient(135deg, #12213A 0%, #0E131F 100%);
    border: 1px solid var(--border);
    padding: 2.8rem 2.4rem;
    text-align: center;
}
.cta h2 { font-size: 2rem; margin: 0 0 0.8rem; }
.cta p { color: #C3CCDB; max-width: 640px; margin: 0 auto 1.6rem; }

/* ================================================================
   ПОДВАЛ
   ================================================================ */
.site-footer {
    background: var(--bg-footer);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
    color: #A9B4C7;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.2rem;
    margin-bottom: 2.2rem;
}
.site-footer .widget-title {
    font-size: 1.05rem;
    color: var(--text);
    margin: 0 0 1rem;
}
.site-footer .widget p { color: #A9B4C7; font-size: 0.92rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: #A9B4C7; }
.site-footer a:hover { color: var(--accent); }
.site-copyright {
    border-top: 1px solid var(--border);
    padding-top: 1.4rem;
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
}

/* ================================================================
   COOKIE-БАННЕР (правило [hidden] до основного блока — A11, D6)
   ================================================================ */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 9999;
    background: #080B12;
    border-top: 1px solid var(--accent);
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}
.cookie-banner p { margin: 0; font-size: 0.9rem; color: #C3CCDB; max-width: 720px; }
.cookie-banner .btn { padding: 0.6em 1.4em; font-size: 0.9rem; }

/* ================================================================
   404
   ================================================================ */
.error-404 { width: 85%; margin-inline: auto; text-align: center; padding: 2rem 0 4rem; }
.error-404 .code { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 6rem; color: var(--accent); text-shadow: 0 0 30px rgba(0, 255, 170, 0.4); line-height: 1; }
.error-404 .search-form { margin: 2rem auto; }

/* ================================================================
   АДАПТИВ
   ================================================================ */
@media (max-width: 960px) {
    .hero h1 { font-size: 3.2rem; max-width: 100%; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rubricator { grid-template-columns: 1fr; }
    .cards.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .layout-with-sidebar { grid-template-columns: 1fr; }
    .sidebar { margin-top: 2rem; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .header-inner { flex-direction: column; align-items: flex-start; }
    .nav-toggle { display: block; align-self: flex-end; margin-top: -2.4rem; }
    .main-nav { width: 100%; }
    .main-nav ul { flex-direction: column; gap: 0.2rem; display: none; }
    .main-nav.is-open ul { display: flex; }
    .brand-name { font-size: 0.95rem; }

    .front-content,
    .hero-inner,
    .error-404 { width: 100%; }
    .layout-single .content-area { width: 100%; }

    .hero { padding: 3rem 0 2.6rem; }
    .hero h1 { font-size: 2.4rem; }
    .hero-sub { font-size: 1.05rem; }

    .front-section { padding: 2.4rem 0; }
    .stats-grid { grid-template-columns: 1fr; }
    .cards.cols-3 { grid-template-columns: 1fr; }
    .split { grid-template-columns: 1fr; }
    .dot-divider { width: 60%; }

    .cta { padding: 2rem 1.4rem; }
    .entry-header .entry-title { font-size: 1.9rem; }
    .page-title { font-size: 1.8rem; }
    .footer-cols { grid-template-columns: 1fr; gap: 1.8rem; }
    .error-404 .code { font-size: 4rem; }
}
