/*
Theme Name: dds_renewedpilot.com
Description: Тёмная информационная тема для сайта о лётной практике. Дизайн-концепция «Бортовой журнал».
Author: Роман Зайцев
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: rpilot
*/

/* ==================================================================
   1. Переменные и база
   ================================================================== */

:root {
    --bg:        #0B111A;
    --bg-alt:    #121B27;
    --bg-foot:   #060A10;
    --bg-side:   #0F172A;
    --ink:       #E8EDF2;
    --amber:     #F59E0B;
    --cyan:      #38BDF8;
    --muted:     #6B7A8F;
    --line:      #2A3A4E;
    --shell:     min(92%, 1180px);
    --font-head: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: transparent;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.78;
    overflow-x: hidden;
    counter-reset: seq;
    -webkit-font-smoothing: antialiased;
}

/* Текстура «линии горизонта» */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.05;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='140'%3E%3Cg stroke='%232A3A4E' stroke-width='1'%3E%3Cpath d='M0 0.5H96M132 0.5H240'/%3E%3Cpath d='M0 70.5H48M84 70.5H168M204 70.5H240'/%3E%3C/g%3E%3C/svg%3E");
}

/* Силуэт самолёта в правом нижнем углу */
body::after {
    content: "";
    position: fixed;
    right: -40px;
    bottom: -30px;
    width: 620px;
    height: 320px;
    z-index: -1;
    opacity: 0.03;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right bottom;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 620 300'%3E%3Cpath fill='%23E8EDF2' d='M18 176c0-9 7-15 17-16l150-16 78-96c5-6 12-9 20-9h34l-40 100 122-13 44-52c4-5 10-8 17-8h26l-30 63 100-10c14-2 24 6 24 17s-10 20-24 21l-100 11 30 63h-26c-7 0-13-3-17-8l-44-52-122-13 40 100h-34c-8 0-15-3-20-9l-78-96-150-16c-10-1-17-7-17-16z'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; }
figure { margin: 1.6rem 0; }

.shell {
    width: var(--shell);
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

/* ==================================================================
   2. Типографика
   ================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.15;
    color: var(--ink);
    margin: 2.2rem 0 1rem;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1rem; }

a { color: var(--cyan); }

.muted { color: var(--muted); }

.lead {
    font-size: 1.12rem;
    color: #C6D2DE;
}

blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem;
    border-left: 4px solid var(--amber);
    background: rgba(245, 158, 11, 0.06);
    color: #F1F5F9;
}

blockquote p:last-child { margin-bottom: 0; }

code, pre {
    font-family: "Consolas", "Menlo", monospace;
    font-size: 0.92em;
    background: #0A1420;
    color: var(--cyan);
}

pre {
    display: block;
    padding: 1rem 1.2rem;
    overflow-x: auto;
    border: 1px solid var(--line);
}

hr {
    border: 0;
    border-top: 1px dashed var(--line);
    margin: 2.4rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
    border: 1px solid var(--line);
}

th, td {
    border: 1px solid var(--line);
    padding: 0.7rem 0.9rem;
    text-align: left;
}

th {
    background: #16212F;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.95rem;
}

/* Заголовки секций: цифровой код + янтарная черта */

.sec-head {
    border-top: 1px dashed var(--line);
    padding-top: 1.5rem;
    margin-bottom: 1.6rem;
}

.sec-title,
.entry-content h2,
.entry-content h3 {
    position: relative;
    padding-left: 1.15rem;
    text-transform: uppercase;
}

.sec-title::after,
.entry-content h2::after,
.entry-content h3::after {
    content: "";
    position: absolute;
    left: 0;
    top: -7px;
    bottom: -7px;
    width: 4px;
    background: var(--amber);
}

.sec-title::before,
.entry-content h2::before,
.entry-content h3::before {
    counter-increment: seq;
    content: "[" counter(seq, decimal-leading-zero) "]";
    display: inline-block;
    margin-right: 0.6em;
    font-size: 0.5em;
    letter-spacing: 0.12em;
    color: var(--muted);
    vertical-align: middle;
}

.sec-title { margin: 0; font-size: 1.85rem; }

.sec-sub {
    margin: 0.7rem 0 0 1.15rem;
    color: var(--muted);
    max-width: 62ch;
}

/* ==================================================================
   3. Кнопки и ссылки
   ================================================================== */

.btn {
    display: inline-block;
    padding: 0.72rem 1.5rem;
    border: 1px solid var(--muted);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 0.98rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover,
.btn:focus {
    transform: translateY(2px);
    border-color: var(--amber);
    color: var(--amber);
}

.btn-solid {
    background: var(--amber);
    border-color: var(--amber);
    color: #0B111A;
}

.btn-solid:hover,
.btn-solid:focus {
    background: #FFB93A;
    border-color: #FFB93A;
    color: #0B111A;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.8rem;
}

/* Текстовые ссылки: янтарная линия, «прорезающая» текст */
.entry-content a,
.card-excerpt a,
.link-cut {
    color: var(--ink);
    text-decoration: none;
    background-image: linear-gradient(var(--amber), var(--amber));
    background-repeat: no-repeat;
    background-size: 100% 1px;
    background-position: 0 100%;
    transition: background-position 0.25s ease, color 0.2s ease;
}

.entry-content a:hover,
.card-excerpt a:hover,
.link-cut:hover {
    background-position: 0 58%;
    color: #FFFFFF;
}

/* ==================================================================
   4. Шапка
   ================================================================== */

.site-head {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    position: static;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    text-decoration: none;
    color: var(--ink);
}

.brand-logo { display: block; max-height: 62px; width: auto; }
.brand-mark { display: block; width: 52px; height: 52px; flex: 0 0 52px; }

.brand-text { min-width: 0; }

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.08rem;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink);
}

.brand-desc {
    display: block;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--muted);
    margin-top: 0.35rem;
    max-width: 54ch;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1rem;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
}

.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    display: inline-block;
    padding: 0.25rem 0;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: var(--amber);
    border-bottom-color: var(--amber);
}

/* ==================================================================
   5. Раскладки
   ================================================================== */

.site-main { padding: 2.4rem 0 3.4rem; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    column-gap: 6%;
    align-items: start;
}

.layout-single { display: block; }

.layout-single .content-area {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
}

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

.sidebar { min-width: 0; }

/* ==================================================================
   6. Хлебные крошки
   ================================================================== */

.trail {
    padding: 1rem 0 0.2rem;
    font-size: 0.86rem;
    color: var(--muted);
    letter-spacing: 0.03em;
}

.trail a {
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.trail a:hover {
    color: var(--amber);
    border-bottom-color: var(--amber);
}

.trail .sep { color: var(--line); margin: 0 0.25rem; }

/* ==================================================================
   7. Карточки записей
   ================================================================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 2.4rem 2rem;
    margin-top: 1.6rem;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 0;
    box-shadow: 8px 8px 0 var(--bg-foot);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 9px;
    z-index: 2;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 8px 2px rgba(245, 158, 11, 0.55);
}

.card:hover {
    box-shadow: -4px 4px 0 var(--bg-foot), 0 0 22px rgba(245, 158, 11, 0.35);
    border-color: var(--amber);
}

.card-thumb {
    display: block;
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    filter: saturate(0.85) contrast(1.05);
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.4rem 1.4rem 1.5rem;
    min-width: 0;
}

.card-title {
    margin: 0 0 0.6rem;
    font-size: 1.22rem;
    line-height: 1.25;
    text-transform: uppercase;
}

.card-title a {
    color: var(--ink);
    text-decoration: none;
}

.card-title a:hover { color: var(--amber); }

.card-excerpt {
    color: #BFCBD8;
    font-size: 0.97rem;
}

.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}

.meta-line {
    font-family: var(--font-head);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.7rem;
}

.meta-line a { color: var(--muted); text-decoration: none; }
.meta-line a:hover { color: var(--cyan); }
.meta-line .sep { color: var(--line); }

.card-more {
    margin-top: auto;
    padding-top: 1.1rem;
}

.card-more .btn { padding: 0.5rem 1.1rem; font-size: 0.85rem; }

/* ==================================================================
   8. Пагинация
   ================================================================== */

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 2.8rem 0 0.5rem;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 44px;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    font-family: var(--font-head);
    letter-spacing: 0.08em;
    text-align: center;
    text-decoration: none;
    transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pager a.page-numbers:hover {
    transform: translateY(2px);
    border-color: var(--amber);
    color: var(--amber);
}

.pager .page-numbers.current {
    background: var(--amber);
    border-color: var(--amber);
    color: #0B111A;
}

.pager .page-numbers.dots {
    border-color: transparent;
    color: var(--muted);
}

/* ==================================================================
   9. Запись и страница
   ================================================================== */

.entry {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    padding: 2rem 2rem 2.4rem;
    position: relative;
}

.entry::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 8px 2px rgba(245, 158, 11, 0.5);
}

.entry-title {
    margin: 0.4rem 0 0.9rem;
    font-size: 2.15rem;
    text-transform: uppercase;
    line-height: 1.12;
}

.entry-thumb {
    margin: 1.4rem 0 1.8rem;
    border: 1px solid var(--line);
}

.entry-thumb img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.entry-content > *:first-child { margin-top: 0; }

.entry-content ul,
.entry-content ol { padding-left: 1.3rem; }

.entry-content li { margin-bottom: 0.5rem; }

.entry-content h2 { font-size: 1.6rem; margin-top: 2.4rem; }
.entry-content h3 { font-size: 1.3rem; margin-top: 2rem; }

.entry-tags {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px dashed var(--line);
    font-size: 0.9rem;
    color: var(--muted);
}

.entry-tags a {
    display: inline-block;
    margin: 0.2rem 0.35rem 0.2rem 0;
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
}

.entry-tags a:hover { border-color: var(--amber); color: var(--amber); }

.post-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.post-nav a { color: var(--ink); text-decoration: none; }
.post-nav a:hover { color: var(--amber); }

/* ==================================================================
   10. Блоки главной
   ================================================================== */

.front-section {
    padding: 3.4rem 0;
    position: relative;
}

.front-section.is-alt {
    background: var(--bg-alt);
    padding: 3.4rem 2.2rem;
    border: 1px solid var(--line);
    margin: 1rem 0;
}

.front-section.is-alt::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--amber), rgba(245, 158, 11, 0));
}

/* --- Hero --- */

.fs-hero {
    position: relative;
    padding: 4.6rem 2.4rem;
    border: 1px solid var(--line);
    background-color: #0A0F17;
    background-size: cover;
    background-position: center;
    box-shadow: 8px 8px 0 var(--bg-foot);
    margin-top: 1.6rem;
}

.fs-hero::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 10px 3px rgba(245, 158, 11, 0.55);
}

.hero-tag {
    display: inline-block;
    margin-bottom: 1.1rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--amber);
    color: var(--amber);
    font-family: var(--font-head);
    font-size: 0.82rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.hero-title {
    margin: 0 0 1.1rem;
    font-size: 4.2rem;
    line-height: 0.98;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    max-width: 18ch;
}

.hero-sub {
    max-width: 60ch;
    color: #A9B7C6;
    font-size: 1.08rem;
    margin: 0;
}

/* --- Чек-лист --- */

.check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 92ch;
}

.check-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.05rem 0;
    border-bottom: 1px solid var(--line);
    min-width: 0;
}

.check-list li:last-child { border-bottom: 0; }

.check-mark {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin-top: 0.35rem;
    display: block;
}

.check-body { min-width: 0; }

.check-body strong {
    display: block;
    font-family: var(--font-head);
    font-size: 1.08rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink);
    margin-bottom: 0.2rem;
}

.check-body span { color: #B5C2D0; font-size: 0.97rem; }

/* --- Таймлайн --- */

.timeline {
    position: relative;
    margin-top: 0.6rem;
    padding-left: 1.2rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--cyan);
    opacity: 0.7;
}

.tl-item {
    display: grid;
    grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
    gap: 0.4rem 1.6rem;
    padding: 1.1rem 1.2rem;
    margin-bottom: 0.6rem;
    background: rgba(56, 189, 248, 0.04);
    border-left: 2px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.tl-item:hover {
    background: rgba(56, 189, 248, 0.1);
    border-left-color: var(--cyan);
}

.tl-date {
    font-family: var(--font-head);
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cyan);
    min-width: 0;
}

.tl-body { min-width: 0; }

.tl-body strong {
    display: block;
    font-family: var(--font-head);
    font-size: 1.08rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}

.tl-body span { color: #B5C2D0; font-size: 0.97rem; }

/* --- Цитата --- */

.fs-quote { position: relative; }

.quote-plate {
    position: relative;
    display: flex;
    gap: 1.6rem;
    align-items: flex-start;
    padding: 2.6rem 2.4rem;
    background: rgba(245, 158, 11, 0.09);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.quote-plate::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--amber), rgba(245, 158, 11, 0));
}

.quote-mark {
    flex: 0 0 auto;
    font-family: var(--font-head);
    font-size: 5.4rem;
    line-height: 0.6;
    color: var(--amber);
    font-weight: 700;
}

.quote-text {
    min-width: 0;
    margin: 0;
    font-family: var(--font-head);
    font-size: 2.4rem;
    line-height: 1.18;
    color: #FFFFFF;
    letter-spacing: 0.01em;
}

.quote-author {
    display: block;
    margin-top: 1.2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

/* --- Последние записи на главной --- */

.fs-latest { padding-top: 2.6rem; }

.latest-more { margin-top: 2.2rem; }

/* ==================================================================
   11. Сайдбар и виджеты
   ================================================================== */

.sidebar {
    background: var(--bg-side);
    border: 1px solid var(--line);
    box-shadow: 0 0 26px rgba(56, 189, 248, 0.07);
    padding: 1.5rem 1.5rem 1.8rem;
    color: var(--ink);
}

.panel {
    position: relative;
    margin-bottom: 1.9rem;
}

.panel:last-child { margin-bottom: 0; }

.panel-title {
    margin: 0 0 0.9rem;
    padding-left: 0.85rem;
    position: relative;
    font-size: 1.12rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.panel-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 3px;
    background: var(--amber);
}

.sidebar .panel,
.sidebar .panel p,
.sidebar .panel li { color: #D6DFE8; }

.sidebar .panel-title { color: var(--ink); }

.sidebar .panel a {
    color: #D6DFE8;
    text-decoration: none;
    border-bottom: 1px solid rgba(245, 158, 11, 0.35);
}

.sidebar .panel a:hover { color: var(--amber); border-bottom-color: var(--amber); }

.panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.panel li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(42, 58, 78, 0.7);
    font-size: 0.96rem;
    line-height: 1.5;
}

.panel li:last-child { border-bottom: 0; }

.panel .post-date {
    display: block;
    margin-top: 0.2rem;
    font-family: var(--font-head);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.sidebar .panel .post-date { color: #8A9AAD; }

/* ==================================================================
   12. Форма поиска
   ================================================================== */

.search-form {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.search-form label { flex: 1 1 180px; min-width: 0; }

.search-field {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 0;
    background: #0A1018;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.98rem;
}

.search-field:focus {
    outline: none;
    border-color: var(--amber);
}

/* ==================================================================
   13. Комментарии
   ================================================================== */

.comments-area {
    margin-top: 2.4rem;
    padding: 1.8rem 1.8rem 2rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
}

.comments-title {
    margin: 0 0 1.4rem;
    font-size: 1.35rem;
    text-transform: uppercase;
}

.comment-list {
    list-style: none;
    margin: 0 0 1.8rem;
    padding: 0;
}

.comment-list .children {
    list-style: none;
    margin: 0;
    padding-left: 1.4rem;
    border-left: 1px dashed var(--line);
}

.comment-inner {
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--line);
    background: #0E1723;
}

.comment-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--ink);
}

.comment-date { font-size: 0.85rem; color: var(--muted); }

.comment-text p:last-child { margin-bottom: 0; }

.comment-reply { margin-top: 0.6rem; font-size: 0.88rem; }

.comment-reply a { color: var(--cyan); text-decoration: none; }
.comment-reply a:hover { color: var(--amber); }

.comment-hold { color: var(--amber); font-size: 0.9rem; }

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 0;
    background: #0A1018;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.98rem;
}

.comment-respond textarea { min-height: 150px; }

.comment-respond label { display: block; margin-bottom: 0.3rem; font-size: 0.9rem; color: var(--muted); }

.comment-respond .comment-form-cookies-consent {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 0.9rem;
}

.comment-respond .comment-form-cookies-consent input { width: auto; }

.comment-respond .submit {
    display: inline-block;
    padding: 0.72rem 1.5rem;
    border: 1px solid var(--amber);
    border-radius: 0;
    background: transparent;
    color: var(--amber);
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.comment-respond .submit:hover {
    transform: translateY(2px);
    background: var(--amber);
    color: #0B111A;
}

.comment-reply-title { font-size: 1.2rem; text-transform: uppercase; }

/* ==================================================================
   14. Подвал
   ================================================================== */

.site-foot {
    background: var(--bg-foot);
    border-top: 1px solid var(--line);
    padding: 3rem 0 1.6rem;
    color: #C4D0DC;
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
}

.foot-col { min-width: 0; }

.site-foot .panel,
.site-foot .panel p,
.site-foot .panel li { color: #C4D0DC; }

.site-foot .panel-title { color: #F2F6FA; }

.site-foot .panel a {
    color: #C4D0DC;
    text-decoration: none;
    border-bottom: 1px solid rgba(245, 158, 11, 0.3);
}

.site-foot .panel a:hover { color: var(--amber); border-bottom-color: var(--amber); }

.site-foot .panel li { border-bottom-color: rgba(42, 58, 78, 0.55); }

.site-foot .post-date { color: #8A9AAD; }

.foot-bottom {
    margin-top: 2.6rem;
    padding-top: 1.2rem;
    border-top: 1px dashed var(--line);
    font-family: var(--font-head);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ==================================================================
   15. Cookie-баннер
   ================================================================== */

.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.4rem;
    background: #0A121C;
    border-top: 1px solid var(--amber);
    box-shadow: 0 -8px 26px rgba(0, 0, 0, 0.5);
}

.cookie-banner p {
    margin: 0;
    min-width: 0;
    font-size: 0.92rem;
    color: #C9D5E1;
}

.cookie-banner .btn { padding: 0.55rem 1.2rem; font-size: 0.85rem; }

/* ==================================================================
   16. 404 и служебное
   ================================================================== */

.page-head { margin-bottom: 1.8rem; }

.page-title {
    margin: 0.4rem 0 0.6rem;
    font-size: 2.15rem;
    text-transform: uppercase;
}

.notfound {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    padding: 2.4rem 2.2rem;
}

.notfound-code {
    font-family: var(--font-head);
    font-size: 5.4rem;
    line-height: 1;
    color: var(--amber);
    margin: 0 0 0.8rem;
}

.empty-note {
    padding: 1.6rem 1.8rem;
    border: 1px dashed var(--line);
    color: var(--muted);
}

/* ==================================================================
   17. Адаптив
   ================================================================== */

@media (max-width: 960px) {
    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 2.4rem;
    }
    .layout-single .content-area { width: 100%; }
    .hero-title { font-size: 3.1rem; }
    .quote-text { font-size: 1.9rem; }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .nav-toggle { display: inline-flex; }
    .main-nav {
        flex: 1 1 100%;
        display: none;
    }
    .main-nav.is-open { display: block; }
    .main-nav ul {
        flex-direction: column;
        gap: 0.2rem;
        padding-top: 0.8rem;
        border-top: 1px dashed var(--line);
    }
    .main-nav li { border-bottom: 1px solid var(--line); }
    .main-nav a { display: block; padding: 0.7rem 0; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2rem; }
    .hero-title { font-size: 2.35rem; }
    .fs-hero { padding: 2.6rem 1.3rem; }
    .front-section { padding: 2.4rem 0; }
    .front-section.is-alt { padding: 2.4rem 1.3rem; }
    .entry { padding: 1.4rem 1.2rem 1.6rem; }
    .comments-area { padding: 1.3rem 1.1rem 1.5rem; }
    .quote-plate { padding: 1.8rem 1.4rem; gap: 1rem; }
    .quote-text { font-size: 1.5rem; }
    .quote-mark { font-size: 3.6rem; }
    .tl-item { grid-template-columns: minmax(0, 1fr); padding: 1rem; }
    .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .card-grid { gap: 2rem; }
    .sidebar { padding: 1.2rem 1.1rem 1.4rem; }
    .notfound { padding: 1.6rem 1.3rem; }
    .cookie-banner { padding: 0.9rem 1.1rem; }
}
