/*
Theme Name: dds_goexplore3d.com
Theme URI: https://goexplore3d.com
Author: Алексей Гордеев
Author URI: https://goexplore3d.com
Description: Информационно-образовательный портал о современном STEM-образовании и цифровых навыках. Тёмная «лабораторная» тема, сочетающая архивную достоверность ранних материалов сообщества 3D-печати с современным интерфейсом для педагогов, школьников и родителей.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: goexplore3d
*/

/* =========================================================================
   1. Переменные и базовые стили
   ========================================================================= */
:root {
    --bg:          #0B132B;
    --bg-header:   #0B132B;
    --bg-elev:     #1C2541;
    --bg-elev-2:   #243049;
    --text:        #E0E7FF;
    --text-dim:    #9aa6c9;
    --accent:      #FF6B35;
    --accent-2:    #00E5FF;
    --parchment:   #D4C9A8;
    --border:      #2d3a5c;
    --radius:      8px;
    --pill:        40px;
    --maxw:        1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
    line-height: 1.25;
    color: #ffffff;
    margin: 0 0 0.6em;
    font-weight: 600;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }

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

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

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

code, pre {
    font-family: 'Geist Mono', ui-monospace, monospace;
    background: var(--bg-elev);
    border-radius: 6px;
}
code { padding: 0.1em 0.4em; font-size: 0.9em; }
pre {
    padding: 1rem 1.2rem;
    overflow-x: auto;
    border: 1px solid var(--border);
    min-width: 0;
}
pre code { background: none; padding: 0; }

blockquote {
    margin: 1.4rem 0;
    padding: 0.6rem 1.2rem;
    border-left: 3px solid var(--accent);
    background: var(--bg-elev);
    color: var(--text);
    border-radius: 0 var(--radius) var(--radius) 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4rem 0;
    border: 1px solid var(--border);
}
th, td {
    border: 1px solid var(--border);
    padding: 0.6rem 0.85rem;
    text-align: left;
}
th { background: var(--bg-elev-2); color: #fff; }

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

::selection { background: var(--accent); color: #0B132B; }

/* =========================================================================
   2. Контейнеры и раскладки
   ========================================================================= */
.shell {
    width: min(92%, var(--maxw));
    margin-inline: auto;
}

.site-main { padding: 1.5rem 0 3.5rem; }

.layout-single {
    width: min(85%, 1080px);
    margin-inline: auto;
}

.layout-with-sidebar {
    width: min(92%, var(--maxw));
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
    gap: 2.6rem;
    align-items: start;
}

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

@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); }
}

/* =========================================================================
   3. Кнопки
   ========================================================================= */
.btn {
    display: inline-block;
    font-family: 'Geist Mono', ui-monospace, monospace;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: filter 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(100deg, var(--accent), var(--accent-2));
    color: #0B132B;
    border-color: transparent;
}
.btn-primary:hover {
    color: #0B132B;
    filter: brightness(1.12);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--accent-2);
    border-color: var(--accent-2);
}
.btn-outline:hover {
    background: var(--accent-2);
    color: #0B132B;
}

.round-nav {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    border: 2px solid var(--accent-2);
    background: transparent;
    color: var(--accent-2);
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}
.round-nav:hover { background: var(--accent-2); color: #0B132B; }
.round-nav:disabled { opacity: 0.35; cursor: default; }
.round-nav:disabled:hover { background: transparent; color: var(--accent-2); }

/* =========================================================================
   4. Шапка
   ========================================================================= */
.site-header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}
.brand-logo { display: block; flex: 0 0 auto; }
.brand-text { min-width: 0; }
.brand-name {
    font-family: 'Geist Mono', ui-monospace, monospace;
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    display: block;
    line-height: 1.35;
}
.brand-name a { color: #fff; }
.brand-name a:hover { color: var(--accent-2); }
.brand-desc {
    display: block;
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.45;
    margin-top: 0.2rem;
}

/* Навигация */
.main-nav { min-width: 0; }
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.main-nav a {
    display: block;
    padding: 0.55rem 0.95rem;
    color: var(--text);
    font-family: 'Geist Mono', ui-monospace, monospace;
    font-size: 0.92rem;
    border-radius: 6px;
    transition: background 0.16s ease, color 0.16s ease;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
    background: var(--bg-elev);
    color: var(--accent-2);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 48px;
    height: 48px;
    padding: 12px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 3px;
    border-radius: 3px;
}
.nav-toggle span:nth-child(1) { background: var(--accent); }
.nav-toggle span:nth-child(2) { background: var(--accent-2); }
.nav-toggle span:nth-child(3) { background: #ffffff; }

/* Прогресс-бар «Ваш путь в STEM» */
.stem-progress {
    height: 4px;
    background: var(--bg-elev);
}
.stem-progress-bar {
    height: 100%;
    width: 0;
    background: var(--accent);
    transition: width 0.6s ease;
}

@media (max-width: 960px) {
    .nav-toggle { display: flex; }
    .main-nav {
        flex-basis: 100%;
        order: 3;
    }
    .main-nav[hidden] { display: none !important; }
    .main-nav ul { flex-direction: column; gap: 0.2rem; }
    .main-nav a { padding: 0.8rem 0.9rem; }
}

/* =========================================================================
   5. Хлебные крошки
   ========================================================================= */
.breadcrumbs {
    font-size: 0.86rem;
    color: var(--text-dim);
    margin: 1.4rem 0 0.4rem;
    width: min(92%, var(--maxw));
    margin-inline: auto;
}
.breadcrumbs a { color: var(--accent-2); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: var(--text-dim); margin: 0 0.15rem; }

/* =========================================================================
   6. Карточки записей
   ========================================================================= */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
    gap: 1.6rem;
    margin: 1.5rem 0;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.card-thumb-wrap { overflow: hidden; }
.card-thumb-wrap a { display: block; }
.card-thumb-wrap img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.card-thumb-placeholder {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        repeating-linear-gradient(60deg, rgba(0,229,255,0.07) 0 12px, transparent 12px 24px),
        var(--bg-elev-2);
    color: var(--text-dim);
    font-family: 'Geist Mono', monospace;
    font-size: 0.85rem;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.1rem 1.2rem 1.25rem;
    min-width: 0;
}

.card-meta {
    font-family: 'Geist Mono', monospace;
    font-size: 0.76rem;
    color: var(--text-dim);
    margin-bottom: 0.45rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.card-meta a { color: var(--text-dim); }
.card-meta a:hover { color: var(--accent-2); }

.card-title { font-size: 1.12rem; margin: 0 0 0.5rem; }
.card-title a { color: #fff; }
.card-title a:hover { color: var(--accent-2); }

.card-excerpt {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt p:last-child { margin-bottom: 0; }

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

/* «Винтажный» штамп архивного материала */
.archive-stamp {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 40px;
    height: 40px;
    background: rgba(11, 19, 43, 0.78);
    border: 1px solid var(--parchment);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.archive-stamp svg { display: block; }
.card.is-archive { border-color: var(--parchment); }

/* =========================================================================
   7. Контент записи / страницы
   ========================================================================= */
.entry {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem clamp(1rem, 3vw, 2.3rem);
    min-width: 0;
}
.entry-header { margin-bottom: 1.2rem; }
.entry-title { margin-bottom: 0.5rem; }
.entry-meta {
    font-family: 'Geist Mono', monospace;
    font-size: 0.82rem;
    color: var(--text-dim);
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}
.entry-meta a { color: var(--text-dim); }
.entry-meta a:hover { color: var(--accent-2); }

.entry-thumb {
    margin: 0 0 1.4rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.entry-thumb img { display: block; width: 100%; }

.entry-content { font-size: 1.02rem; }
.entry-content img { border-radius: var(--radius); }
.entry-content h2,
.entry-content h3 { margin-top: 1.6rem; }

.entry-tags {
    margin-top: 1.6rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.tag-pill {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    border-radius: var(--pill);
    background: var(--bg-elev-2);
    color: var(--text);
    font-size: 0.8rem;
}
.tag-pill:hover { background: var(--accent); color: #0B132B; }

.entry-footer-tools {
    margin-top: 1.4rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    align-items: center;
}
.text-only-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-family: 'Geist Mono', monospace;
    font-size: 0.8rem;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    cursor: pointer;
}
.text-only-toggle:hover { border-color: var(--accent-2); color: var(--accent-2); }

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.6rem 0;
    flex-wrap: wrap;
}
.post-nav a {
    flex: 1 1 220px;
    min-width: 0;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.85rem 1.1rem;
    font-size: 0.9rem;
}
.post-nav a:hover { border-color: var(--accent-2); }
.post-nav .nav-label {
    display: block;
    font-family: 'Geist Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-bottom: 0.2rem;
}

/* Режим «только текст» */
body.text-only {
    background: #ffffff;
    color: #111111;
}
body.text-only * { animation: none !important; transition: none !important; }
body.text-only .entry {
    background: #fff;
    border-color: #ccc;
}
body.text-only .entry-title,
body.text-only .entry-content h2,
body.text-only .entry-content h3 { color: #111; }
body.text-only .entry-content,
body.text-only .entry-meta,
body.text-only .entry-meta a { color: #222; }

/* =========================================================================
   8. Сайдбар и виджеты
   ========================================================================= */
.sidebar { min-width: 0; }

.widget {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}
.widget:last-child { margin-bottom: 0; }

.widget-title {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 0.9rem;
    padding-bottom: 0.55rem;
    border-bottom: 2px solid var(--accent);
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.widget li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
}
.widget li:last-child { border-bottom: 0; }

/* Контраст в боковой колонке (тёмный фон → светлый текст) */
.sidebar .widget { color: var(--text); }
.sidebar .widget a { color: var(--accent-2); }
.sidebar .widget a:hover { color: var(--accent); }
.sidebar .widget,
.sidebar .widget p { color: var(--text); }
.sidebar .widget .post-date,
.sidebar .widget .rss-date { color: var(--text-dim); font-size: 0.78rem; }

/* =========================================================================
   9. Подвал
   ========================================================================= */
.site-footer {
    background: #070d1d;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    padding: 2.6rem 0 1.8rem;
}
@media (max-width: 760px) {
    .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
}

/* Контраст в подвале (очень тёмный фон → светлый текст) */
.footer-cols .widget {
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    color: var(--text);
}
.footer-cols .widget-title {
    color: #ffffff;
    border-bottom-color: var(--accent-2);
}
.footer-cols .widget,
.footer-cols .widget p { color: #b9c3e0; }
.footer-cols .widget a { color: var(--accent-2); }
.footer-cols .widget a:hover { color: var(--accent); }
.footer-cols .widget li { border-bottom-color: #1a2440; }
.footer-cols .widget .post-date { color: #7e89ad; }

.site-copyright {
    border-top: 1px solid var(--border);
    padding: 1.2rem 0;
    font-size: 0.84rem;
    color: var(--text-dim);
    text-align: center;
}

.community-block {
    border-top: 1px solid var(--border);
    padding: 1.8rem 0;
}
.community-block .community-label {
    font-family: 'Geist Mono', monospace;
    font-size: 0.78rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
}
.community-quote {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 1.18rem;
    font-style: italic;
    color: var(--parchment);
    margin: 0;
}
.community-quote cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-style: normal;
    color: var(--text-dim);
    font-family: 'Inter', sans-serif;
}

/* =========================================================================
   10. Пагинация
   ========================================================================= */
.pager { margin: 2rem 0 0.5rem; }
.pager-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
.pager-list .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.6rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-elev);
    color: var(--text);
    font-family: 'Geist Mono', monospace;
    font-size: 0.9rem;
}
.pager-list a.page-numbers:hover {
    border-color: var(--accent-2);
    color: var(--accent-2);
}
.pager-list .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #0B132B;
}
.pager-list .page-numbers.prev,
.pager-list .page-numbers.next {
    border-radius: 50%;
    border-color: var(--accent-2);
    color: var(--accent-2);
}
.pager-list a.page-numbers.prev:hover,
.pager-list a.page-numbers.next:hover {
    background: var(--accent-2);
    color: #0B132B;
}

/* =========================================================================
   11. Форма поиска
   ========================================================================= */
.search-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.search-form .search-field {
    flex: 1 1 180px;
    min-width: 0;
    padding: 0.7rem 0.9rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
}
.search-form .search-field:focus {
    outline: none;
    border-color: var(--accent-2);
}
.search-form .search-submit {
    display: inline-block;
    font-family: 'Geist Mono', monospace;
    font-weight: 600;
    padding: 0.7rem 1.3rem;
    border: 2px solid transparent;
    border-radius: var(--radius);
    background: linear-gradient(100deg, var(--accent), var(--accent-2));
    color: #0B132B;
    cursor: pointer;
}
.search-form .search-submit:hover { filter: brightness(1.12); }

/* =========================================================================
   12. Комментарии
   ========================================================================= */
.comments-area {
    margin-top: 2rem;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem clamp(1rem, 3vw, 2.2rem);
}
.comments-title { font-size: 1.3rem; }
.comment-list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}
.comment-list .children {
    list-style: none;
    margin: 1rem 0 0;
    padding-left: clamp(0.8rem, 3vw, 2rem);
    border-left: 2px solid var(--border);
}
.comment-item { margin-bottom: 1.2rem; }
.comment-inner {
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
}
.comment-head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
}
.comment-avatar { border-radius: 50%; }
.comment-author { font-weight: 600; color: #fff; }
.comment-author a { color: #fff; }
.comment-date { display: block; font-size: 0.76rem; color: var(--text-dim); }
.comment-text { color: var(--text); font-size: 0.96rem; }
.comment-pending { color: var(--accent); font-size: 0.85rem; }
.comment-actions { font-size: 0.85rem; }

.comment-respond {
    margin-top: 1.5rem;
    border-top: 1px solid var(--border);
    padding-top: 1.3rem;
}
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
}
.comment-respond textarea { min-height: 130px; resize: vertical; }
.comment-respond label { font-size: 0.88rem; color: var(--text-dim); }
.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url { margin-bottom: 0.9rem; }
.comment-respond .form-submit input {
    font-family: 'Geist Mono', monospace;
    font-weight: 600;
    padding: 0.8rem 1.6rem;
    border: 2px solid transparent;
    border-radius: var(--radius);
    background: linear-gradient(100deg, var(--accent), var(--accent-2));
    color: #0B132B;
    cursor: pointer;
}
.comment-respond .form-submit input:hover { filter: brightness(1.12); }

/* =========================================================================
   13. Главная страница
   ========================================================================= */
.section { padding: 3rem 0; }
.section-alt { background: var(--bg-elev); }
.section-head { margin-bottom: 1.6rem; }
.section-kicker {
    font-family: 'Geist Mono', monospace;
    font-size: 0.78rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
}

/* Hero */
.hero {
    padding: 3.6rem 0 3.4rem;
    background:
        radial-gradient(ellipse at 80% -10%, rgba(0,229,255,0.14), transparent 55%),
        radial-gradient(ellipse at 0% 110%, rgba(255,107,53,0.12), transparent 55%);
}
.hero-title { max-width: 760px; }
.hero-lead {
    max-width: 680px;
    color: var(--text-dim);
    font-size: 1.1rem;
}
.hero-actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: 1.6rem;
}

/* Линия времени */
.timeline {
    display: flex;
    gap: 0;
    align-items: stretch;
    flex-wrap: wrap;
    counter-reset: tl;
}
.timeline-point {
    flex: 1 1 180px;
    min-width: 0;
    position: relative;
    padding: 1.3rem 1.1rem;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 0.35rem;
    transition: border-color 0.18s ease, transform 0.18s ease;
    color: var(--text);
}
.timeline-point:hover {
    border-color: var(--accent-2);
    transform: translateY(-3px);
}
.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(255,107,53,0.2);
    margin-bottom: 0.7rem;
}
.timeline-point h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.timeline-point p { color: var(--text-dim); font-size: 0.88rem; margin: 0; }

/* Карточки категорий с технологическими узорами */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1.5rem;
}
.cat-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem 1.4rem;
    background: var(--bg-elev-2);
    min-width: 0;
}
.cat-card > * { position: relative; z-index: 1; }
.cat-card h3 { font-size: 1.15rem; }
.cat-card p { color: var(--text-dim); font-size: 0.9rem; margin: 0; }
.cat-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.5;
}
.pattern-hex {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='49' viewBox='0 0 56 49'%3E%3Cpath d='M28 0l14 8v16l-14 8-14-8V8z' fill='none' stroke='%2300E5FF' stroke-width='1' opacity='0.35'/%3E%3C/svg%3E");
}
.pattern-binary {
    background-image: radial-gradient(rgba(255,107,53,0.4) 1px, transparent 1.4px);
    background-size: 14px 14px;
}
.pattern-wave {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='20' viewBox='0 0 80 20'%3E%3Cpath d='M0 10 Q20 0 40 10 T80 10' fill='none' stroke='%2300E5FF' stroke-width='1.2' opacity='0.4'/%3E%3C/svg%3E");
}

/* Слайдер цитат сообщества */
.quote-slider { position: relative; }
.quote-track { overflow: hidden; }
.quote-slide {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.6rem 1.6rem;
}
.quote-slide[hidden] { display: none !important; }
.quote-slide blockquote {
    border: 0;
    background: none;
    padding: 0;
    margin: 0;
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--parchment);
}
.quote-slide cite {
    display: block;
    margin-top: 0.7rem;
    font-style: normal;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--text-dim);
}
.quote-controls {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

.feature-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1.4rem;
}
.feature-item {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem 1.3rem;
    min-width: 0;
}
.feature-item h3 { font-size: 1.05rem; }
.feature-item p { color: var(--text-dim); font-size: 0.92rem; margin: 0; }

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0.8rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.6rem;
    font-family: 'Geist Mono', monospace;
    font-size: 0.92rem;
}

/* =========================================================================
   14. 404
   ========================================================================= */
.error-404 {
    text-align: center;
    padding: 2rem 0 3rem;
}
.error-code {
    font-family: 'Geist Mono', monospace;
    font-size: clamp(4rem, 14vw, 8rem);
    color: var(--accent);
    line-height: 1;
    margin: 0;
}
.error-404 .search-form { max-width: 420px; margin: 1.4rem auto 1rem; }

/* =========================================================================
   15. Cookie-баннер  (правило [hidden] — ДО основного блока стилей)
   ========================================================================= */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.9rem 1.2rem;
    background: var(--bg-elev-2);
    border-top: 1px solid var(--accent-2);
    box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.4);
}
.cookie-text {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text);
    max-width: 720px;
}
.cookie-banner .btn { padding: 0.6rem 1.3rem; }

/* =========================================================================
   16. Адаптив
   ========================================================================= */
@media (max-width: 600px) {
    body { font-size: 16px; }
    .section { padding: 2.2rem 0; }
    .hero { padding: 2.6rem 0; }
    .post-nav a { flex-basis: 100%; }
    .layout-single { width: 92%; }
    .header-inner { gap: 1rem; }
}
