/*
Theme Name: dds_yellozcomponents.com
Author: Костин Егор
Description: Тема для информационного сайта о промышленных комплектующих и крепеже. Индустриальный минимализм с акцентом на технологичность и надёжность для B2B-аудитории, включая авиацию и тяжёлую промышленность.
Version: 1.1
*/

/* === КРИТИЧЕСКИЕ ПРАВИЛА ВИДИМОСТИ (до основных стилей) === */
.cookie-banner[hidden] { display: none !important; }
.main-nav[hidden] { display: none !important; }

/* === БАЗОВЫЕ ПЕРЕМЕННЫЕ === */
:root {
    --bg: #121212;
    --bg-soft: #161616;
    --bg-card: #1E1E1E;
    --bg-deep: #0A0A0A;
    --text: #E0E0E0;
    --muted: #9A9A9A;
    --accent: #FFB300;
    --secondary: #3A6EA5;
    --border: #2C2C2C;
    --error: #C84C3D;
    --font-heading: 'Roboto Condensed', 'Arial Narrow', sans-serif;
    --font-body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'Fira Code', 'Courier New', monospace;
    --container: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    background-image:
        radial-gradient(circle at center, rgba(58,110,165,0.06) 1px, transparent 1px);
    background-size: 8px 8px;
    background-attachment: fixed;
}

/* Глобальный стиль абзацев — без background-color, чтобы не перебивать секции */
p { margin: 0 0 1em; background: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text);
    margin: 0 0 0.6em;
    line-height: 1.18;
    font-weight: 500;
}

h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

a { color: var(--secondary); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--accent); }

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

ul, ol { padding-left: 22px; margin: 0 0 1em; }
li { margin-bottom: 0.3em; }

/* Таблицы */
table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border);
    margin: 1.4em 0;
    font-size: 14.5px;
}
th, td {
    border: 1px solid var(--border);
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
}
th {
    background: var(--bg-soft);
    color: var(--accent);
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.04em;
}
tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }

/* Цитаты, код */
blockquote {
    border-left: 4px solid var(--accent);
    margin: 1.2em 0;
    padding: 14px 18px;
    background: var(--bg-card);
    color: #C8C8C8;
    font-style: italic;
}
code, pre {
    font-family: var(--font-mono);
    background: #181818;
    color: var(--accent);
    border-radius: 3px;
}
code { padding: 2px 6px; font-size: 0.9em; }
pre { padding: 14px; overflow-x: auto; border: 1px solid var(--border); }
pre code { background: none; padding: 0; color: inherit; }

/* === КОНТЕЙНЕР === */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* === БИРКА МАРКИРОВЩИКА (верхняя лента) === */
.tape {
    background: #000;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 5px 0;
    letter-spacing: 0.12em;
    border-bottom: 1px solid var(--border);
}
.tape-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.tape-batch { color: #888; }

/* === ШАПКА === */
.site-header {
    background: linear-gradient(180deg, #0E0E0E 0%, #121212 100%);
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
}
.site-header .container {
    display: flex;
    align-items: center;
    gap: 28px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.brand-logo { width: 56px; height: 56px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
    font-family: var(--font-heading);
    font-size: 18px;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0;
    letter-spacing: 0.05em;
    text-decoration: none;
}
.brand-name a { color: inherit; }
.brand-tagline {
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 2px;
    max-width: 320px;
}

/* Меню */
.main-nav { margin-left: auto; }
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
}
.main-nav li { margin: 0; }
.main-nav a {
    display: inline-block;
    color: var(--text);
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 10px 14px;
    font-size: 14px;
    position: relative;
}
.main-nav a:hover { color: var(--accent); }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { color: var(--accent); }
.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    background: var(--accent);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 8px 14px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 13px;
    cursor: pointer;
    margin-left: auto;
    border-radius: 3px;
}
.menu-toggle:hover { background: var(--accent); color: var(--bg); }

/* === КНОПКИ === */
.btn-primary,
.btn-secondary,
.btn-download {
    display: inline-block;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s ease;
    text-decoration: none;
    line-height: 1.2;
}
.btn-primary {
    background: rgba(30,30,30,0.7);
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 6px;
    padding: 13px 24px;
    font-size: 14px;
}
.btn-primary:hover {
    background: var(--accent);
    color: var(--bg);
}
.btn-secondary {
    background: transparent;
    color: var(--secondary);
    border: 1px solid var(--secondary);
    border-radius: 4px;
    padding: 9px 18px;
    font-size: 13px;
}
.btn-secondary:hover { background: var(--secondary); color: #fff; }

/* === КАРТОЧКИ === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

/* A8: контейнер карточки — flex column, body — flex:1 */
.card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.card::before {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px dashed rgba(255,179,0,0.45);
    pointer-events: none;
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 1;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card:hover::before { opacity: 1; }

.card-thumb-wrap { overflow: hidden; }
.card-thumb-wrap img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.card:hover .card-thumb-wrap img { transform: scale(1.05); }

.card-body {
    flex: 1;
    padding: 18px 22px 22px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 18px;
    margin: 0 0 8px;
}
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); }

.card-meta {
    font-size: 12px;
    color: var(--muted);
    font-family: var(--font-mono);
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}
.card-meta a { color: var(--secondary); }
.card-meta a:hover { color: var(--accent); }

.card-excerpt {
    flex: 1;
    font-size: 14.5px;
    color: #C8C8C8;
}
/* A8: WP оборачивает excerpt в <p> — нейтрализуем фон/отступы */
.card-excerpt p { margin: 0 0 0.5em; background: none; }

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

/* === СЕКЦИИ === */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { margin-bottom: 36px; }
.section-eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}
.section-title { font-size: 30px; margin: 0 0 8px; }
.section-subtitle { color: var(--muted); margin: 0; max-width: 760px; font-size: 15.5px; }

/* === HERO === */
.hero {
    padding: 90px 0 70px;
    background:
        linear-gradient(135deg, rgba(255,179,0,0.04), transparent 60%),
        linear-gradient(180deg, #0E0E0E, #121212);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    right: -120px;
    top: 50%;
    transform: translateY(-50%);
    width: 380px;
    height: 380px;
    border: 1px dashed rgba(255,179,0,0.18);
    border-radius: 50%;
    pointer-events: none;
}
.hero::before {
    content: '';
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 220px;
    height: 220px;
    border: 1px dashed rgba(58,110,165,0.18);
    border-radius: 50%;
    pointer-events: none;
}
.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 18px;
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid var(--accent);
}
.hero-title {
    font-size: 46px;
    margin: 0 0 18px;
    max-width: 900px;
    line-height: 1.1;
}
.hero-title em {
    color: var(--accent);
    font-style: normal;
}
.hero-text {
    font-size: 17px;
    max-width: 740px;
    margin: 0 0 28px;
    color: #C8C8C8;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* === КАТЕГОРИИ === */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}
.cat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 28px 26px;
    border-radius: 4px;
    transition: border-color 0.2s ease, transform 0.2s ease;
    position: relative;
}
.cat-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.cat-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    color: var(--accent);
}
.cat-icon svg { width: 100%; height: 100%; display: block; }
.cat-name {
    font-size: 18px;
    margin: 0 0 8px;
    color: var(--text);
}
.cat-desc {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 14px;
}
.cat-spec {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--secondary);
    border-top: 1px dashed var(--border);
    padding-top: 10px;
    margin-top: auto;
}

/* === ПРОЦЕСС === */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    counter-reset: step;
}
.process-step {
    padding: 26px 22px;
    background: var(--bg-card);
    border-left: 3px solid var(--accent);
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
}
.process-num {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 13px;
    display: block;
    margin-bottom: 10px;
    letter-spacing: 0.1em;
}
.process-name { font-size: 16px; margin: 0 0 6px; }
.process-desc { font-size: 14px; color: var(--muted); margin: 0; }

/* === ПАСПОРТ / СПЕЦИФИКАЦИЯ === */
.passport-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.passport-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 24px 26px;
}
.passport-title {
    font-size: 16px;
    color: var(--accent);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.passport-rows {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 13px;
}
.passport-rows li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--border);
    margin: 0;
}
.passport-rows li:last-child { border-bottom: 0; }
.passport-rows .lbl { color: var(--muted); }
.passport-rows .val { color: var(--text); text-align: right; }

/* === МАКЕТЫ С САЙДБАРОМ === */
.layout-with-sidebar {
    display: grid;
    grid-template-columns: 67% 27%;
    gap: 6%;
    align-items: start;
}
.layout-no-sidebar {
    width: 85%;
    margin: 0 auto;
}

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

/* === САЙДБАР И ВИДЖЕТЫ === */
.widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 22px 24px;
    margin-bottom: 24px;
    border-radius: 4px;
}
.widget-title {
    font-size: 15px;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 8px;
    margin: 0 0 14px;
}
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget li {
    padding: 7px 0;
    border-bottom: 1px dotted var(--border);
    font-size: 14px;
    margin: 0;
}
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--text); }
.widget a:hover { color: var(--accent); }
.widget .menu-item a {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.04em;
}

/* === ХЛЕБНЫЕ КРОШКИ === */
.breadcrumbs {
    margin: 24px 0 8px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--muted);
}
.breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}
.breadcrumbs li {
    margin: 0;
    display: flex;
    align-items: center;
}
.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin: 0 8px;
    color: var(--accent);
}
.breadcrumbs a { color: var(--secondary); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current="page"] { color: var(--text); }

/* === ПАГИНАЦИЯ === */
.pagination {
    margin: 40px 0 10px;
    display: flex;
    justify-content: center;
}
.pagination ul, .pagination .page-numbers-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.pagination li { margin: 0; }
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
    font-family: var(--font-heading);
    font-size: 14px;
    transition: all 0.18s ease;
    text-decoration: none;
}
.pagination .page-numbers:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}
.pagination .page-numbers.current {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}
.pagination .page-numbers.dots:hover { background: var(--bg-card); color: var(--text); }

/* === ПОДВАЛ === */
.site-footer {
    background: var(--bg-deep);
    border-top: 2px solid var(--accent);
    padding: 56px 0 24px;
    margin-top: 80px;
    position: relative;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        var(--accent) 0 16px,
        transparent 16px 24px
    );
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}
.site-footer .widget {
    background: transparent;
    border: 0;
    padding: 0;
    margin-bottom: 0;
}
.site-footer .widget-title {
    color: var(--accent);
    font-size: 14px;
}
.footer-passport {
    margin-top: 40px;
    padding: 18px 22px;
    background: #050505;
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px 28px;
    position: relative;
}
.footer-passport::before {
    content: 'ПАСПОРТ САЙТА / ИНФОРМАЦИЯ О ПРОЕКТЕ';
    position: absolute;
    top: -10px;
    left: 18px;
    background: var(--bg-deep);
    padding: 0 8px;
    color: var(--accent);
    letter-spacing: 0.1em;
    font-size: 10.5px;
}
.footer-passport .lbl { color: var(--secondary); }
.footer-passport .val { color: #B0B0B0; }
.copyright {
    text-align: center;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 12px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px dashed var(--border);
}

/* === COOKIE-БАННЕР (A11) === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1A1A1A;
    border-top: 2px solid var(--accent);
    padding: 16px 0;
    z-index: 9999;
    display: flex;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.7);
}
.cookie-banner-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
}
.cookie-banner-text {
    margin: 0;
    font-size: 13.5px;
    color: #C0C0C0;
    flex: 1;
    line-height: 1.5;
}
.cookie-accept { flex-shrink: 0; }

/* === КОММЕНТАРИИ === */
.comments-area { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border); }
.comments-title { font-size: 22px; margin-bottom: 24px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list ol.children {
    list-style: none;
    padding-left: 26px;
    margin-top: 14px;
    border-left: 2px solid var(--border);
}
.comment-list li { margin: 0 0 14px; }
.comment-body {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 18px 20px;
    border-radius: 4px;
}
.comment-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.comment-meta img { border-radius: 50%; }
.comment-author {
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.04em;
}
.comment-date {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--muted);
    margin-left: auto;
}
.comment-content { font-size: 14.5px; }
.comment-reply { margin-top: 8px; font-size: 13px; }
.comment-awaiting-moderation {
    display: block;
    margin-top: 8px;
    color: var(--accent);
    font-size: 13px;
    font-style: normal;
}

/* Форма комментария / поиска */
.comment-form, .comment-respond { margin-top: 32px; }
.comment-respond .comment-reply-title { font-size: 18px; margin-bottom: 14px; }
.comment-form p { margin: 0 0 14px; }
.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--muted);
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-field {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 11px 14px;
    width: 100%;
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 15px;
}
.comment-form input:focus,
.comment-form textarea:focus,
.search-field:focus {
    border-color: var(--accent);
    outline: none;
}
.comment-form textarea { min-height: 130px; resize: vertical; }
.comment-form .submit,
.search-submit {
    background: var(--accent);
    color: var(--bg);
    padding: 11px 22px;
    border: 0;
    border-radius: 3px;
    cursor: pointer;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.18s ease;
}
.comment-form .submit:hover,
.search-submit:hover { background: #FFC23C; }

/* === ФОРМА ПОИСКА === */
.search-form {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.search-form .search-field { flex: 1; }
.screen-reader-text {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* === ЗАПИСЬ / СТРАНИЦА === */
.entry-header { margin-bottom: 28px; }
.entry-title { font-size: 32px; margin: 0 0 12px; }
.entry-meta {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}
.entry-meta a { color: var(--secondary); }
.entry-meta a:hover { color: var(--accent); }
.entry-thumbnail { margin-bottom: 28px; border: 1px solid var(--border); padding: 4px; background: #0E0E0E; }
.entry-thumbnail img { width: 100%; height: auto; }

.entry-content {
    font-size: 16.5px;
    line-height: 1.75;
}
.entry-content > * + * { margin-top: 1em; }
.entry-content img {
    margin: 1.4em 0;
    border: 1px solid var(--border);
    padding: 4px;
    background: #0E0E0E;
}
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }

.entry-tags {
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px dashed var(--border);
    font-family: var(--font-mono);
    font-size: 13px;
}
.entry-tags a {
    display: inline-block;
    padding: 3px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    margin: 0 4px 4px 0;
    color: var(--secondary);
}
.entry-tags a:hover { border-color: var(--accent); color: var(--accent); }

.post-navigation {
    margin: 48px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.post-navigation a {
    display: block;
    padding: 16px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 3px;
    transition: border-color 0.18s ease;
}
.post-navigation a:hover { border-color: var(--accent); }
.post-navigation .nav-subtitle {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 4px;
}
.post-navigation .nav-title {
    color: var(--text);
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 14px;
}

/* === 404 === */
.error-404 {
    text-align: center;
    padding: 70px 0 40px;
}
.error-num {
    font-family: var(--font-mono);
    font-size: 110px;
    color: var(--accent);
    margin: 0 0 8px;
    line-height: 1;
    letter-spacing: 0.05em;
}
.error-title { font-size: 26px; margin-bottom: 14px; }
.error-text { color: var(--muted); margin-bottom: 28px; max-width: 560px; margin-left: auto; margin-right: auto; }
.error-search { max-width: 460px; margin: 0 auto 24px; }

/* === АРХИВЫ / ПОИСК (index.php) === */
.archive-header { margin-bottom: 32px; }
.archive-title { font-size: 28px; margin: 0 0 6px; }
.archive-description { color: var(--muted); }

/* === АДАПТИВ === */
@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: 1fr; gap: 32px; }
    .layout-no-sidebar { width: 100%; }
    .footer-cols { grid-template-columns: 1fr; gap: 32px; }
    .footer-passport { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: 36px; }
    .section { padding: 48px 0; }
    .section-title { font-size: 24px; }
    h1 { font-size: 28px; }
    h2 { font-size: 22px; }
    .post-navigation { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .container { padding: 0 16px; }
    .tape-inner { padding: 0 16px; flex-direction: column; gap: 2px; }
    .site-header .container { flex-wrap: wrap; gap: 14px; }
    .brand { width: 100%; }
    .menu-toggle { display: inline-block; margin-left: auto; position: absolute; right: 16px; top: 26px; }
    .site-header { position: relative; }
    .main-nav {
        display: none;
        width: 100%;
        margin: 8px 0 0;
        order: 3;
    }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav li { border-bottom: 1px solid var(--border); }
    .main-nav li:last-child { border-bottom: 0; }
    .main-nav a { display: block; padding: 12px 4px; }
    .main-nav .current-menu-item > a::after,
    .main-nav .current_page_item > a::after { left: 4px; right: auto; width: 30px; }
    .hero { padding: 50px 0 40px; }
    .hero-title { font-size: 26px; }
    .hero-text { font-size: 15px; }
    .hero::after, .hero::before { display: none; }
    .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 12px; }
    .footer-passport { grid-template-columns: 1fr; }
    .cards-grid { grid-template-columns: 1fr; gap: 20px; }
    .entry-title { font-size: 24px; }
    .error-num { font-size: 80px; }
}
