/*
Theme Name: dds_maverickbioworks.com
Theme URI: https://maverickbioworks.com
Author: Илья Ковалёв
Author URI: https://maverickbioworks.com
Description: Аналитическая тема для портала на стыке наук о жизни, экологии и гейм-дизайна. Тёмно-синяя «океаническая» палитра, бирюзовые акценты, гексагональные мотивы и панели статистики в духе индустриальных симуляторов.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mbw
*/

/* ============================================================
   Переменные
   ============================================================ */
:root {
    --ink:      #0A192F;
    --ink-2:    #112240;
    --plate:    #2A4B44;
    --accent:   #2DD4BF;
    --accent-d: #14b8a6;
    --warn:     #F59E0B;
    --bg:       #F8FAFC;
    --surface:  #ffffff;
    --text:     #1E293B;
    --muted:    #475569;
    --border:   #dbe3ec;
    --shell:    1180px;
    --radius:   8px;
    --mono:     "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
    --display:  "Unbounded", "Manrope", system-ui, sans-serif;
    --body:     "Manrope", system-ui, -apple-system, sans-serif;
}

/* ============================================================
   Сброс и основа
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

h1, h2, h3, h4 {
    font-family: var(--display);
    line-height: 1.18;
    color: var(--ink);
    margin: 0 0 .6em;
    font-weight: 700;
}
h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 1.05rem + 1.6vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }

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

blockquote {
    margin: 1.5em 0;
    padding: .9em 1.4em;
    border-left: 4px solid var(--accent);
    background: #eef6f5;
    color: var(--muted);
    font-style: italic;
}

code, pre, kbd {
    font-family: var(--mono);
    font-size: .92em;
}
pre {
    background: var(--ink);
    color: #cdebe6;
    padding: 1.1em 1.3em;
    border-radius: var(--radius);
    overflow-x: auto;
}
:not(pre) > code {
    background: #e6efee;
    padding: .12em .4em;
    border-radius: 4px;
    color: var(--plate);
}

/* Таблицы */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: .96em;
}
table, th, td { border: 1px solid var(--border); }
th, td { padding: .65em .9em; text-align: left; }
th { background: var(--plate); color: #eafffb; font-family: var(--display); font-size: .92rem; }
tbody tr:nth-child(even) { background: #f0f5f9; }

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

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

/* ============================================================
   Кнопки
   ============================================================ */
.btn {
    display: inline-block;
    font-family: var(--display);
    font-weight: 600;
    font-size: .95rem;
    padding: .7em 1.5em;
    border-radius: var(--radius);
    cursor: pointer;
    transition: box-shadow .2s ease, transform .15s ease, background .2s ease;
}
.btn-primary {
    color: #04130f;
    background: linear-gradient(135deg, var(--plate), var(--accent));
    border: 1px solid var(--accent);
    box-shadow: 0 6px 16px -8px rgba(45, 212, 191, .5);
}
.btn-primary:hover {
    color: #04130f;
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px var(--accent), 0 10px 26px -8px rgba(45, 212, 191, .85);
}
.btn-secondary {
    color: var(--plate);
    background: transparent;
    border: 1.5px dashed var(--accent);
}
.btn-secondary:hover {
    color: var(--plate);
    background: rgba(45, 212, 191, .12);
}

/* ============================================================
   Шапка
   ============================================================ */
.site-header {
    background: var(--ink);
    color: #e7eef7;
    border-bottom: 1px solid rgba(45, 212, 191, .22);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.1rem 0;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-width: 0;
    flex: 1;
}
.brand-logo, .brand-svg {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: block;
}
.brand-svg { border-radius: 10px; }
.brand-text { min-width: 0; }
.brand-name {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.05rem;
    color: #ffffff;
    line-height: 1.3;
    display: block;
    max-width: 52ch;
}
.brand-name:hover { color: var(--accent); }
.brand-desc {
    font-size: .82rem;
    color: #93a7c0;
    line-height: 1.5;
    margin-top: .25rem;
    max-width: 64ch;
}

/* Навигация */
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(45, 212, 191, .5);
    border-radius: var(--radius);
    color: var(--accent);
    font-family: var(--display);
    font-size: .9rem;
    padding: .5em .9em;
    cursor: pointer;
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: .35rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.main-nav a {
    display: block;
    color: #cdd9e8;
    font-family: var(--display);
    font-weight: 500;
    font-size: .92rem;
    padding: .5em .85em;
    border-radius: var(--radius);
    transition: background .18s ease, color .18s ease;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: #04130f;
    background: var(--accent);
}

/* ============================================================
   Корпус страницы
   ============================================================ */
.site-main { padding: 2.6rem 0 3.4rem; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 2.45fr) minmax(0, 1fr);
    gap: 2.6rem;
    align-items: start;
}
.layout-single { display: block; }
.layout-single .content-area {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); }
    .layout-single .content-area { width: 100%; }
}

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

/* ============================================================
   Хлебные крошки
   ============================================================ */
.breadcrumbs {
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
    font-family: var(--mono);
}
.breadcrumbs a { color: var(--accent-d); }
.breadcrumbs a:hover { color: var(--plate); }
.breadcrumbs .sep { color: #94a3b8; margin: 0 .15em; }

/* ============================================================
   Карточки записей
   ============================================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.6rem;
}
.card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px -22px rgba(10, 25, 47, .55);
    transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -22px rgba(10, 25, 47, .6);
}
.card-thumb-wrap {
    display: block;
    overflow: hidden;
    background: var(--ink-2);
}
.card-thumb-wrap img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.card:hover .card-thumb-wrap img { transform: scale(1.05); }
.card-thumb-fallback {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ink), var(--plate));
}
.card-thumb-fallback svg { width: 64px; height: 64px; opacity: .85; }
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.2rem 1.3rem 1.4rem;
    min-width: 0;
}
.card-cats {
    font-family: var(--mono);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--warn);
    margin-bottom: .5rem;
}
.card-title {
    font-size: 1.15rem;
    margin: 0 0 .5rem;
}
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent-d); }
.card-meta {
    font-size: .8rem;
    color: var(--muted);
    margin-bottom: .65rem;
    font-family: var(--mono);
}
.card-excerpt {
    color: var(--muted);
    font-size: .95rem;
    margin-bottom: 1rem;
}
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more { margin-top: auto; }

/* ============================================================
   Одиночная запись / страница
   ============================================================ */
.entry {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2.2rem clamp(1.2rem, 3vw, 2.6rem);
}
.entry-header { margin-bottom: 1.4rem; }
.entry-meta {
    font-family: var(--mono);
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: .8rem;
}
.entry-meta .warn-tag {
    color: var(--warn);
    border: 1px solid var(--warn);
    border-radius: 999px;
    padding: .1em .7em;
    margin-right: .4em;
}
.entry-thumb {
    margin: 0 0 1.6rem;
    border-radius: 12px;
    overflow: hidden;
}
.entry-thumb img { width: 100%; display: block; }
.entry-content > * { max-width: 72ch; }
.entry-content img,
.entry-content table,
.entry-content pre { max-width: 100%; }
.entry-content h2 { margin-top: 1.6em; }
.entry-tags {
    margin-top: 1.8rem;
    padding-top: 1.2rem;
    border-top: 1px dashed var(--border);
    font-size: .88rem;
}
.entry-tags a {
    display: inline-block;
    font-family: var(--mono);
    font-size: .78rem;
    background: #eef6f5;
    color: var(--plate);
    padding: .2em .7em;
    border-radius: 6px;
    margin: 0 .3em .3em 0;
}

/* Панель-«пульт» (Satisfactory-стиль) */
.data-panel {
    background: #0c0f0d;
    border: 1px solid #1f3a32;
    border-radius: var(--radius);
    color: #36d399;
    font-family: var(--mono);
    padding: 1.1rem 1.3rem;
    margin: 1.6rem 0;
}
.data-panel .panel-label {
    color: var(--warn);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .72rem;
}
.data-panel .panel-value {
    font-size: 1.6rem;
    font-weight: 600;
}

/* ============================================================
   Виджеты — общий стиль
   ============================================================ */
.widget { margin-bottom: 1.8rem; }
.widget:last-child { margin-bottom: 0; }
.widget-title {
    font-size: 1.05rem;
    margin: 0 0 .9rem;
    padding-bottom: .45rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget li {
    padding: .4rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, .25);
    font-size: .92rem;
}
.widget li:last-child { border-bottom: none; }

/* Сайдбар — светлый фон, тёмный текст */
.sidebar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem 1.5rem;
    min-width: 0;
}
.sidebar .widget-title { color: var(--ink); }
.sidebar .widget,
.sidebar .widget li,
.sidebar .widget p { color: var(--text); }
.sidebar .widget a { color: var(--accent-d); }
.sidebar .widget a:hover { color: var(--plate); }
.sidebar .post-date,
.sidebar .rss-date { color: var(--muted); font-size: .8rem; }

/* ============================================================
   Подвал
   ============================================================ */
.site-footer {
    background: var(--ink);
    color: #c4d2e4;
    padding: 2.8rem 0 1.4rem;
    margin-top: 2rem;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}
@media (max-width: 760px) {
    .footer-cols { grid-template-columns: minmax(0, 1fr); }
}
/* Виджеты в подвале — светлый текст на тёмном фоне */
.site-footer .widget-title { color: #ffffff; border-bottom-color: var(--accent); }
.site-footer .widget,
.site-footer .widget p,
.site-footer .widget li { color: #c4d2e4; }
.site-footer .widget a { color: var(--accent); }
.site-footer .widget a:hover { color: var(--warn); }
.site-footer .widget li { border-bottom-color: rgba(148, 163, 184, .2); }
.site-footer .post-date { color: #8398b4; }

.footer-bottom {
    margin-top: 2.2rem;
    padding-top: 1.3rem;
    border-top: 1px solid rgba(148, 163, 184, .2);
    font-size: .82rem;
    color: #8398b4;
    text-align: center;
}

/* ============================================================
   Пагинация
   ============================================================ */
.pagination { margin-top: 2.4rem; }
.pagination ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    padding: 0;
    margin: 0;
    justify-content: center;
}
.pagination a,
.pagination span {
    display: block;
    min-width: 42px;
    text-align: center;
    padding: .5em .7em;
    border-radius: var(--radius);
    font-family: var(--display);
    font-size: .9rem;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
}
.pagination a:hover { border-color: var(--accent); color: var(--plate); }
.pagination .current {
    background: linear-gradient(135deg, var(--plate), var(--accent));
    border-color: var(--accent);
    color: #04130f;
}
.pagination .dots { border: none; background: none; }

/* ============================================================
   Формы поиска / комментариев
   ============================================================ */
.search-form {
    display: flex;
    gap: .5rem;
    max-width: 460px;
}
.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: .6em .9em;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--body);
    font-size: .95rem;
    background: var(--surface);
    color: var(--text);
}
.search-form input[type="search"]:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}
.search-form button {
    border: none;
    font-family: var(--display);
}

.comments-area {
    margin-top: 2.4rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.8rem clamp(1.2rem, 3vw, 2.2rem);
}
.comment-list {
    list-style: none;
    padding: 0;
    margin: 1.4rem 0;
}
.comment-list .children {
    list-style: none;
    padding-left: 1.6rem;
    margin-top: 1rem;
}
.comment-body {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.1rem 1.2rem;
    margin-bottom: 1rem;
}
.comment-meta {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .6rem;
    font-size: .85rem;
}
.comment-meta img { border-radius: 50%; display: block; }
.comment-author { font-family: var(--display); font-weight: 600; color: var(--ink); }
.comment-date { color: var(--muted); font-family: var(--mono); font-size: .78rem; }
.comment-awaiting { color: var(--warn); font-size: .85rem; }
.comment-reply a {
    font-family: var(--mono);
    font-size: .8rem;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .6em .85em;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--body);
    font-size: .95rem;
    background: var(--surface);
    color: var(--text);
}
.comment-form textarea { min-height: 130px; }
.comment-form label { font-size: .88rem; color: var(--muted); display: block; margin-bottom: .25rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form .form-submit input {
    background: linear-gradient(135deg, var(--plate), var(--accent));
    color: #04130f;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    font-family: var(--display);
    font-weight: 600;
    padding: .65em 1.5em;
    cursor: pointer;
}

/* ============================================================
   Главная страница
   ============================================================ */
.front-section { margin-bottom: 3.2rem; }

.hero {
    position: relative;
    background: linear-gradient(150deg, var(--ink) 0%, var(--ink-2) 60%, var(--plate) 130%);
    color: #e8eef7;
    border-radius: 18px;
    overflow: hidden;
    padding: clamp(2.4rem, 5vw, 4rem);
    margin-bottom: 3.2rem;
}
.hex-layer {
    position: absolute;
    inset: -40px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='56' height='96' viewBox='0 0 56 96'><path d='M28 0l28 16v32L28 64 0 48V16z' fill='none' stroke='%232DD4BF' stroke-opacity='0.16' stroke-width='1.4'/></svg>");
    background-size: 56px 96px;
    transition: transform .25s ease-out;
    pointer-events: none;
}
.hero-inner { position: relative; max-width: 56ch; }
.hero-kicker {
    font-family: var(--mono);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--accent);
    margin-bottom: .9rem;
}
.hero h1 { color: #ffffff; }
.hero-lead { color: #b9c8dc; font-size: 1.05rem; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.4rem; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.4rem;
}
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: 12px;
    padding: 1.5rem 1.4rem;
    min-width: 0;
}
.feature-card.warn { border-top-color: var(--warn); }
.feature-icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: #eef6f5;
    border-radius: 10px;
    margin-bottom: .9rem;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.1rem; }
.feature-card p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }

.section-head { margin-bottom: 1.6rem; }
.section-head .eyebrow {
    font-family: var(--mono);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--plate);
}

/* Слайдер шагов */
.steps-viewport { overflow: hidden; }
.steps-track {
    display: flex;
    gap: 1.4rem;
    transition: transform .4s ease;
}
.step-card {
    flex: 0 0 calc((100% - 2.8rem) / 3);
    background: var(--ink-2);
    color: #d4e1f0;
    border-radius: 12px;
    padding: 1.5rem 1.4rem;
    min-width: 0;
}
.step-card .step-num {
    font-family: var(--display);
    font-size: 2rem;
    color: var(--accent);
}
.step-card h3 { color: #fff; font-size: 1.05rem; }
.step-card p { color: #9fb2c9; font-size: .92rem; margin-bottom: 0; }
.slider-controls {
    display: flex;
    gap: .5rem;
    margin-top: 1.2rem;
    justify-content: flex-end;
}
.slider-controls button {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--plate);
    cursor: pointer;
    font-size: 1.1rem;
}
.slider-controls button:hover { border-color: var(--accent); }
@media (max-width: 960px) {
    .step-card { flex: 0 0 calc((100% - 1.4rem) / 2); }
}
@media (max-width: 600px) {
    .step-card { flex: 0 0 100%; }
}

/* CTA-полоса */
.cta-band {
    background: linear-gradient(135deg, var(--plate), var(--ink));
    color: #e8eef7;
    border-radius: 16px;
    padding: clamp(1.8rem, 4vw, 2.8rem);
    text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #b9c8dc; max-width: 60ch; margin-inline: auto; }
.contact-links {
    display: flex;
    gap: 1.4rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.2rem;
    font-family: var(--mono);
    font-size: .92rem;
}
.contact-links a { color: var(--accent); }

/* ============================================================
   404
   ============================================================ */
.error-404 {
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.6rem clamp(1.2rem, 4vw, 3rem);
}
.error-404 .big-code {
    font-family: var(--display);
    font-size: clamp(3.5rem, 12vw, 7rem);
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}
.sorting-game {
    margin: 1.8rem auto 0;
    max-width: 460px;
    background: #0c0f0d;
    border: 1px solid #1f3a32;
    border-radius: 12px;
    padding: 1.2rem;
}
.sorting-game .game-label {
    font-family: var(--mono);
    color: var(--warn);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.waste-items {
    display: flex;
    gap: .6rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1rem 0;
}
.waste-item {
    width: 52px; height: 52px;
    border-radius: 8px;
    background: var(--ink-2);
    border: 1px dashed var(--accent);
    color: var(--accent);
    font-size: 1.4rem;
    display: flex; align-items: center; justify-content: center;
    cursor: grab;
    user-select: none;
}
.waste-item.placed { opacity: .35; cursor: default; }
.bins { display: flex; gap: .8rem; justify-content: center; }
.bin {
    flex: 1;
    min-width: 0;
    border: 2px dashed #2f5c50;
    border-radius: 8px;
    padding: .8rem .4rem;
    text-align: center;
    color: #36d399;
    font-family: var(--mono);
    font-size: .82rem;
}
.bin.over { border-color: var(--warn); background: rgba(245, 158, 11, .12); }
.game-score {
    margin-top: .9rem;
    font-family: var(--mono);
    color: #36d399;
    font-size: .85rem;
}

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

.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 999;
    background: var(--ink);
    color: #d4e1f0;
    border-top: 1px solid rgba(45, 212, 191, .35);
    padding: 1rem 0;
}
.cookie-inner {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: space-between;
}
.cookie-inner p { margin: 0; font-size: .88rem; min-width: 0; flex: 1; }
.cookie-inner a { color: var(--accent); }

/* ============================================================
   Микроанимации появления при скролле
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(6px);
    transition: opacity .6s ease, transform .6s ease, filter .6s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; filter: none; transition: none; }
    .hex-layer { transition: none; }
}

/* ============================================================
   Адаптив
   ============================================================ */
.page-title { margin-bottom: 1.4rem; }
.archive-intro { color: var(--muted); margin-bottom: 1.6rem; }

@media (max-width: 760px) {
    body { font-size: 16px; }
    .nav-toggle { display: block; }
    .main-nav {
        flex-basis: 100%;
        display: none;
    }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: .2rem; }
    .main-nav a { padding: .65em .8em; }
    .header-inner { gap: .9rem; }
}
