/*
Theme Name: dds_ati-furnace.com
Author: Дмитрий Крылов
Description: Информационная тема о промышленном оборудовании — печи, узлы, режимы работы, износ и обслуживание. Стилистика «Индустриальный конструктивизм»: раскалённый металл на фоне бетона и графита.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: okalina
*/

/* ================================================================== *
 * 1. Переменные
 * ================================================================== */
:root {
    --bg-main:    #1A1C1E;
    --bg-alt:     #232629;
    --bg-header:  #131517;
    --bg-footer:  #0D0F10;
    --bg-sidebar: #1F2225;
    --text:       #E8EAED;
    --accent:     #D94E2A;
    --accent-2:   #F0B41A;
    --muted:      #8A8E94;
    --metal:      #3A3E44;

    --font-head: "Manrope", "Inter", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
    --font-body: "Roboto Condensed", "PT Sans Narrow", "Arial Narrow", "Segoe UI", Arial, sans-serif;

    --shell: min(92%, 1180px);
}

/* ================================================================== *
 * 2. База
 * ================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background-color: var(--bg-main);
    /* Чертёжная миллиметровая сетка 45°, шаг 40px, непрозрачность ~3% */
    background-image:
        repeating-linear-gradient(45deg,  rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 40px),
        repeating-linear-gradient(-45deg, rgba(255,255,255,0.02) 0, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 40px);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
    margin: 0 0 0.6em;
    letter-spacing: 0.01em;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1em; }

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

/* Ссылки в тексте — оранжевые с пунктирным подчёркиванием */
a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent);
    transition: color .15s ease, border-color .15s ease;
}
a:hover {
    color: var(--accent-2);
    border-bottom: 1px solid var(--accent-2);
}

/* Служебные ссылки-контейнеры без пунктира */
a.brand, a.page-numbers, .menu a, .rubric-tile, .card-thumb-wrap a, .card-title a, .site-title a,
.breadcrumbs a, .footer-widgets a, .widget a, .btn, .comment-author a {
    border-bottom: none;
}

/* ================================================================== *
 * 3. Контейнер
 * ================================================================== */
.shell {
    width: var(--shell);
    margin-inline: auto;
}

/* ================================================================== *
 * 4. Заголовки секций — UPPERCASE + оранжевая выноска слева
 * ================================================================== */
.section-title {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.6rem;
}
.section-title::before {
    content: "";
    display: block;
    width: 42px;
    height: 4px;
    background: var(--accent);
    flex: 0 0 42px;
}

/* ================================================================== *
 * 5. Кнопки — штампованные пластины, hard-shift при наведении
 * ================================================================== */
.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.85rem 1.7rem;
    border-radius: 0;
    cursor: pointer;
    position: relative;
    transition: transform .08s ease, box-shadow .08s ease, background .15s ease, color .15s ease;
}
.btn-filled {
    background: var(--accent);
    color: #131517;
    border: 2px solid var(--accent);
    box-shadow: 4px 4px 0 rgba(217,78,42,0.28);
}
.btn-filled:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(217,78,42,0.28);
    color: #131517;
}
.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    box-shadow: 4px 4px 0 rgba(217,78,42,0.20);
}
.btn-outline:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(217,78,42,0.20);
    color: var(--accent-2);
    border-color: var(--accent-2);
    box-shadow: 2px 2px 0 rgba(240,180,26,0.20);
}

/* ================================================================== *
 * 6. Шапка
 * ================================================================== */
.site-header {
    background: var(--bg-header);
    border-bottom: 2px solid var(--metal);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.1rem 0;
    flex-wrap: wrap;
}
.branding {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}
.brand-logo, .brand-mark { display: block; flex: 0 0 auto; }
.brand-mark { width: 48px; height: 48px; }
.brand-text { min-width: 0; }
.site-title {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.15rem;
    line-height: 1.15;
    margin: 0;
}
.site-title a { color: var(--text); }
.site-title a:hover { color: var(--accent); }
.site-desc {
    font-size: 0.82rem;
    color: var(--muted);
    margin: 0.2rem 0 0;
    max-width: 46ch;
}

/* Навигация — не липкая */
.main-nav { min-width: 0; }
.nav-toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--metal);
    color: var(--text);
    font-family: var(--font-head);
    font-size: 0.9rem;
    padding: 0.5rem 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;
}
.menu {
    list-style: none;
    display: flex;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.menu a {
    display: block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text);
    padding: 0.5rem 0.85rem;
    border: 1px solid transparent;
}
.menu a:hover,
.menu .current-menu-item > a {
    color: var(--accent);
    border-color: var(--metal);
}

/* ================================================================== *
 * 7. Разметка страниц
 * ================================================================== */
.site-main { padding: 2.5rem 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;
}

/* Главная — 85%, без сайдбара */
.front .content-area { width: 100%; }

.sidebar {
    background: var(--bg-sidebar);
    border: 1px solid var(--metal);
    padding: 1.4rem 1.3rem;
    min-width: 0;
    color: var(--text);
}

/* ================================================================== *
 * 8. Хлебные крошки
 * ================================================================== */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--metal);
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: var(--accent); margin: 0 0.25rem; }
.breadcrumbs span { color: var(--text); }

/* ================================================================== *
 * 9. Карточки записей
 * ================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.6rem;
}
.card {
    display: flex;
    flex-direction: column;
    background: var(--bg-alt);
    border: 1px solid var(--metal);
    border-radius: 0;
    overflow: hidden;
    min-width: 0;
    position: relative;
    transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 -2px rgba(217,78,42,0.25), 0 8px 14px rgba(0,0,0,0.4);
}
.card-thumb-wrap {
    display: block;
    overflow: hidden;
    /* Металлическая полоса-разделитель встык под миниатюрой */
    border-bottom: 2px solid var(--metal);
}
.card-thumb-wrap img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.1rem 1.2rem 1.3rem;
    min-width: 0;
}
.card-meta {
    font-size: 0.78rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.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 {
    color: var(--text);
    font-size: 0.94rem;
    margin-bottom: 1rem;
}
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    margin-top: auto;
    align-self: flex-start;
}

/* ================================================================== *
 * 10. Индустриальный разделитель (рельсы + заклёпка)
 * ================================================================== */
.rail-divider {
    position: relative;
    height: 10px;
    margin: 0 auto;
    width: var(--shell);
}
.rail-divider::before,
.rail-divider::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: var(--metal);
}
.rail-divider::before { top: 3px; }
.rail-divider::after  { top: 7px; }
.rail-divider span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    background: var(--accent);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 1;
}

/* ================================================================== *
 * 11. Секции главной
 * ================================================================== */
.front-section {
    padding: 5rem 0;
}
.front-section.bg-alt {
    background: var(--bg-alt);
}
/* Шеврон-разделитель конвейера сверху альтернативных секций */
.front-section.chevron-top {
    background-image:
        repeating-linear-gradient(-45deg, rgba(217,78,42,0.10) 0, rgba(217,78,42,0.10) 12px, transparent 12px, transparent 24px);
    background-repeat: no-repeat;
    background-size: 100% 10px;
    background-position: top left;
}

/* 11.1 Hero */
.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--metal);
    background-size: cover;
    background-position: center;
    background-color: #101214;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(16,18,20,0.70);
    z-index: 0;
}
/* Полупрозрачный силуэт печи в правом нижнем углу */
.hero::after {
    content: "";
    position: absolute;
    right: 2%;
    bottom: 0;
    width: 360px;
    height: 300px;
    max-width: 46%;
    opacity: 0.03;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%23ffffff' stroke-width='3'%3E%3Crect x='40' y='55' width='120' height='120'/%3E%3Crect x='60' y='80' width='80' height='55'/%3E%3Cline x1='100' y1='55' x2='100' y2='25'/%3E%3Crect x='88' y='10' width='24' height='18'/%3E%3Cline x1='40' y1='90' x2='20' y2='90'/%3E%3Cline x1='40' y1='120' x2='20' y2='120'/%3E%3Ccircle cx='100' cy='108' r='16'/%3E%3C/svg%3E");
    z-index: 0;
    pointer-events: none;
}
.hero-inner {
    position: relative;
    z-index: 1;
    padding: 6rem 0;
    max-width: 62ch;
}
.hero h1 {
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin-bottom: 1.1rem;
}
.hero-note {
    font-family: var(--font-head);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 0.9rem;
    display: inline-block;
    border-left: 4px solid var(--accent);
    padding-left: 0.8rem;
}
.hero-lead {
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 1.8rem;
    max-width: 54ch;
}

/* 11.2 Цитата / акцентный тезис */
.quote-section {
    position: relative;
    background-color: var(--bg-alt);
    /* Перфорация металлического листа — точечная сетка */
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1.4px);
    background-size: 14px 14px;
    padding: 4.5rem 0;
}
.quote-box {
    position: relative;
    /* «Ржавый» градиентный левый бордер */
    border-left: 4px solid transparent;
    border-image: linear-gradient(180deg, #8a3c1f 0%, var(--accent) 45%, #6d4a12 100%) 1;
    padding: 2rem 2.4rem;
    background: rgba(19,21,23,0.55);
    max-width: 60ch;
}
.quote-box p {
    font-size: 1.55rem;
    line-height: 1.4;
    letter-spacing: 0.03em;
    color: var(--text);
    margin: 0 0 1rem;
}
.quote-author {
    font-family: var(--font-head);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-2);
    font-size: 0.9rem;
}

/* 11.3 Таймлайн износа */
.timeline {
    position: relative;
    margin-top: 1.5rem;
    padding-left: 2.6rem;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 6px;
    bottom: 6px;
    width: 0;
    border-left: 2px dashed var(--metal);
}
.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
    /* Заклёпка на рельсе */
    content: "";
    position: absolute;
    left: -2.6rem;
    top: 6px;
    width: 14px;
    height: 14px;
    margin-left: 5px;
    background: var(--bg-main);
    border: 3px solid var(--accent);
    border-radius: 50%;
}
.timeline-card {
    background: var(--bg-alt);
    border: 1px solid var(--metal);
    padding: 1.3rem 1.5rem;
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    min-width: 0;
}
/* Штампованный номер — квадрат со скруглением наружу */
.stamp {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--accent);
    border: 3px solid var(--accent);
    border-radius: 12px 0 12px 0;
    background: rgba(217,78,42,0.08);
}
.timeline-card .tc-body { min-width: 0; }
.timeline-card h3 { margin: 0 0 0.35rem; text-transform: uppercase; letter-spacing: 0.03em; font-size: 1.1rem; }
.timeline-card p { margin: 0; color: var(--text); font-size: 0.95rem; }
.timeline-card .stage-mark {
    color: var(--accent-2);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: block;
    margin-bottom: 0.2rem;
}

/* 11.4 Рубрикатор */
.rubric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}
.rubric-tile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem 1.4rem;
    border: 1px solid var(--metal);
    background: transparent;
    color: var(--text);
    min-width: 0;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.rubric-tile .rubric-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    stroke: var(--accent);
    fill: none;
    transition: stroke .15s ease;
}
.rubric-tile .rubric-name {
    font-family: var(--font-head);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.98rem;
    min-width: 0;
}
.rubric-tile:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #131517;
}
.rubric-tile:hover .rubric-icon { stroke: #131517; }

/* Латест-записи на главной */
.latest-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.8rem;
}

/* ================================================================== *
 * 12. Одиночная запись / страница
 * ================================================================== */
.entry-header { margin-bottom: 1.4rem; }
.entry-title { font-size: 2.4rem; text-transform: none; }
.entry-meta {
    font-size: 0.82rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
}
.entry-thumb {
    margin-bottom: 1.6rem;
    border: 1px solid var(--metal);
    overflow: hidden;
}
.entry-thumb img { display: block; width: 100%; }
.entry-content { font-size: 1.02rem; }
.entry-content h2 { text-transform: none; margin-top: 1.8rem; }
.entry-content h3 { margin-top: 1.4rem; }
.entry-content img { border: 1px solid var(--metal); }
.entry-content blockquote {
    border-left: 4px solid transparent;
    border-image: linear-gradient(180deg, #8a3c1f 0%, var(--accent) 45%, #6d4a12 100%) 1;
    background: var(--bg-alt);
    margin: 1.5rem 0;
    padding: 1.2rem 1.5rem;
    color: var(--text);
}
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content code {
    background: var(--bg-alt);
    border: 1px solid var(--metal);
    padding: 0.1em 0.4em;
    font-size: 0.9em;
}
.entry-content pre {
    background: var(--bg-alt);
    border: 1px solid var(--metal);
    padding: 1rem 1.2rem;
    overflow: auto;
    min-width: 0;
}

/* Таблицы */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border: 1px solid var(--metal);
}
.entry-content th,
.entry-content td {
    border: 1px solid var(--metal);
    padding: 0.6rem 0.9rem;
    text-align: left;
}
.entry-content th {
    background: var(--bg-alt);
    font-family: var(--font-head);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

.entry-tags { margin-top: 2rem; }
.entry-tags a {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent-2);
    border: 1px solid var(--metal);
    padding: 0.25rem 0.7rem;
    margin: 0 0.35rem 0.4rem 0;
}
.entry-tags a:hover { border-color: var(--accent-2); color: var(--accent-2); }

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
    border-top: 1px solid var(--metal);
    padding-top: 1.5rem;
    flex-wrap: wrap;
}
.post-nav a { font-family: var(--font-head); font-weight: 600; }

/* Контакты — статичные */
.contact-static { margin-top: 1.5rem; }
.contact-static a[href^="mailto:"] {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.05rem;
}
.social-links {
    list-style: none;
    display: flex;
    gap: 0.8rem;
    padding: 0;
    margin: 1rem 0 0;
    flex-wrap: wrap;
}
.social-links a {
    display: inline-block;
    border: 1px solid var(--metal);
    padding: 0.4rem 0.9rem;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

/* ================================================================== *
 * 13. Пагинация (type => plain, .page-numbers)
 * ================================================================== */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    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.7rem;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--text);
    border: 1px solid var(--metal);
    background: var(--bg-alt);
    border-radius: 0;
    transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.pagination a.page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.pagination .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #131517;
}
.pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
}

/* ================================================================== *
 * 14. Виджеты — контраст по областям
 * ================================================================== */
.widget { margin-bottom: 1.8rem; }
.widget:last-child { margin-bottom: 0; }
.widget-title {
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.9rem;
    padding-left: 0.9rem;
    border-left: 4px solid var(--accent);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 0.4rem 0; border-bottom: 1px solid rgba(58,62,68,0.6); }
.widget li:last-child { border-bottom: none; }

/* Сайдбар (фон #1F2225 — светлый текст) */
.sidebar .widget-title { color: var(--text); }
.sidebar .widget, .sidebar .widget li, .sidebar .widget p { color: var(--text); }
.sidebar .widget a { color: var(--text); border-bottom: none; }
.sidebar .widget a:hover { color: var(--accent); }
.sidebar .post-date, .sidebar .rss-date { color: var(--muted); }

/* ================================================================== *
 * 15. Подвал
 * ================================================================== */
.site-footer {
    background: var(--bg-footer);
    border-top: 2px solid var(--metal);
    padding: 3rem 0 1.5rem;
    color: var(--text);
}
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-widgets .widget-title { color: var(--text); }
.footer-widgets .widget,
.footer-widgets .widget p,
.footer-widgets .widget li { color: var(--muted); }
.footer-widgets .widget a { color: var(--text); border-bottom: none; }
.footer-widgets .widget a:hover { color: var(--accent); }
.site-copy {
    border-top: 1px solid var(--metal);
    padding-top: 1.3rem;
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
}

/* ================================================================== *
 * 16. Форма поиска
 * ================================================================== */
.search-form {
    display: flex;
    gap: 0;
    min-width: 0;
}
.search-form .search-field {
    flex: 1;
    min-width: 0;
    background: var(--bg-main);
    border: 1px solid var(--metal);
    color: var(--text);
    padding: 0.7rem 0.9rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 0;
}
.search-form .search-field::placeholder { color: var(--muted); }
.search-form .search-submit {
    background: var(--accent);
    color: #131517;
    border: 1px solid var(--accent);
    font-family: var(--font-head);
    font-weight: 600;
    text-transform: uppercase;
    padding: 0 1.2rem;
    cursor: pointer;
    border-radius: 0;
}
.search-form .search-submit:hover { background: var(--accent-2); border-color: var(--accent-2); }

/* ================================================================== *
 * 17. Комментарии
 * ================================================================== */
.comments-area { margin-top: 3rem; border-top: 1px solid var(--metal); padding-top: 2rem; }
.comments-title, .comment-reply-title { text-transform: uppercase; letter-spacing: 0.03em; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .children { list-style: none; margin: 0 0 0 1.5rem; padding: 0; }
.comment-inner {
    background: var(--bg-alt);
    border: 1px solid var(--metal);
    padding: 1.1rem 1.3rem;
    margin-bottom: 1.2rem;
}
.comment-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.comment-author { font-family: var(--font-head); font-weight: 600; }
.comment-author a { color: var(--text); }
.comment-date { color: var(--muted); font-size: 0.82rem; }
.comment-await { color: var(--accent-2); font-size: 0.85rem; }
.comment-reply a { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }

.comment-form { margin-top: 1.5rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background: var(--bg-main);
    border: 1px solid var(--metal);
    color: var(--text);
    padding: 0.7rem 0.9rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 0;
    margin-bottom: 1rem;
}
.comment-form label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.3rem; }
.comment-form .submit {
    background: var(--accent);
    color: #131517;
    border: 2px solid var(--accent);
    font-family: var(--font-head);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1.6rem;
    cursor: pointer;
    border-radius: 0;
}
.comment-form .submit:hover { background: var(--accent-2); border-color: var(--accent-2); }

/* ================================================================== *
 * 18. 404
 * ================================================================== */
.error-404 { text-align: center; padding: 2rem 0 3rem; }
.error-404 .big { font-size: 6rem; color: var(--accent); line-height: 1; margin: 0; }
.error-404 .search-form { max-width: 480px; margin: 1.8rem auto; }

/* ================================================================== *
 * 19. Cookie-баннер
 * ================================================================== */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 999;
    background: var(--bg-header);
    border-top: 2px solid var(--accent);
    padding: 1rem 0;
}
.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
}
.cookie-inner p { margin: 0; font-size: 0.9rem; color: var(--text); min-width: 0; flex: 1; }
.cookie-inner p a { color: var(--accent); }

/* ================================================================== *
 * 20. Утилиты
 * ================================================================== */
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
.page-title { margin-bottom: 1.6rem; }

/* ================================================================== *
 * 21. Адаптив
 * ================================================================== */
@media (max-width: 960px) {
    h1 { font-size: 2.5rem; }
    .layout-with-sidebar { grid-template-columns: 1fr; }
    .layout-single .content-area { width: 100%; }
    .rubric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-inner { padding: 4.5rem 0; }
}

@media (max-width: 600px) {
    body { font-size: 17px; }
    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.7rem; }
    .hero h1 { font-size: 2rem; }
    .front-section { padding: 3rem 0; }
    .quote-section { padding: 3rem 0; }
    .quote-box { padding: 1.5rem 1.4rem; }
    .quote-box p { font-size: 1.25rem; }
    .rubric-grid { grid-template-columns: 1fr; }
    .footer-widgets { grid-template-columns: 1fr; }

    .header-inner { flex-direction: column; align-items: flex-start; }
    .nav-toggle { display: inline-block; }
    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin-top: 0.6rem;
    }
    .menu.is-open { display: flex; }
    .menu a { border: 1px solid var(--metal); border-bottom: none; }
    .menu li:last-child a { border-bottom: 1px solid var(--metal); }

    .timeline-card { flex-direction: column; }
    .cookie-inner { flex-direction: column; align-items: stretch; }
    .cookie-inner .btn { align-self: flex-start; }
}
