/*
Theme Name: dds_rostov-leasing.ru
Author: Алексей Громов
Description: Тёмная технологичная тема «Финансовый навигатор» для информационно-образовательного портала о финансовых инструментах для бизнеса.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: rleasing
*/

:root {
    --nv-bg: #0B0F19;
    --nv-bg-alt: #131B2B;
    --nv-head: #070A10;
    --nv-side: #0F172A;
    --nv-text: #E8EDF5;
    --nv-acc: #2DD4BF;
    --nv-acc-2: #3B82F6;
    --nv-muted: #6B7A8F;
    --nv-line: #1E293B;
    --nv-grad: linear-gradient(135deg, #0B0F19 0%, #1A2744 100%);
    --nv-font: "Inter", "Manrope", "Roboto", "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--nv-bg);
    background-image:
        repeating-linear-gradient(0deg, rgba(232, 237, 245, 0.03) 0 1px, transparent 1px 50px),
        repeating-linear-gradient(90deg, rgba(232, 237, 245, 0.03) 0 1px, transparent 1px 50px);
    color: var(--nv-text);
    font-family: var(--nv-font);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body::after {
    content: "";
    position: fixed;
    right: -70px;
    bottom: -70px;
    width: 420px;
    height: 420px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%231E293B' stroke-width='2'%3E%3Ccircle cx='100' cy='100' r='86'/%3E%3Ccircle cx='100' cy='100' r='62'/%3E%3Ccircle cx='100' cy='100' r='30'/%3E%3Cpath d='M100 4v192M4 100h192M32 32l136 136M168 32L32 168'/%3E%3Cpath d='M100 44l16 40 40 16-40 16-16 40-16-40-40-16 40-16z'/%3E%3C/g%3E%3C/svg%3E");
}

.page-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}

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

a {
    color: var(--nv-acc);
    text-decoration: none;
    transition: color .2s ease;
}

a:hover,
a:focus {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--nv-font);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.2;
    color: var(--nv-text);
    margin: 0 0 0.7em;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

blockquote {
    position: relative;
    margin: 1.6rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--nv-grad);
    border: 1px solid var(--nv-line);
    border-radius: 6px;
    font-size: 1.08rem;
}

blockquote::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 34px;
    height: 6px;
    background: var(--nv-acc);
    border-radius: 6px 0 0 0;
}

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

code, pre {
    font-family: "Consolas", "Menlo", monospace;
    font-size: 0.92em;
    background: #0F172A;
    color: #A5F3EB;
    border-radius: 4px;
}

code { padding: 0.1em 0.4em; }

pre {
    padding: 1rem 1.1rem;
    overflow: auto;
    border: 1px solid var(--nv-line);
}

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

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

th { background: #0F172A; color: var(--nv-text); }

hr {
    border: 0;
    height: 1px;
    background: var(--nv-line);
    margin: 2rem 0;
}

/* ---------------------------------------------------------------- Кнопки */

.btn {
    display: inline-block;
    padding: 0.68rem 1.5rem;
    border-radius: 4px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
    cursor: pointer;
    transition: background-color .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
}

.btn-fill {
    background: var(--nv-acc);
    color: #06121A;
}

.btn-fill:hover,
.btn-fill:focus {
    background: #24AF9E;
    box-shadow: 0 0 0 1px rgba(45, 212, 191, .45), 0 0 18px rgba(45, 212, 191, .35);
    text-decoration: none;
    color: #06121A;
}

.btn-ghost {
    background: transparent;
    border-color: var(--nv-muted);
    color: var(--nv-text);
}

.btn-ghost:hover,
.btn-ghost:focus {
    background: rgba(107, 122, 143, .18);
    border-color: var(--nv-acc);
    color: var(--nv-text);
    text-decoration: none;
}

/* ------------------------------------------------------- Заголовки секций */

.sec-title {
    position: relative;
    padding-left: 1.05rem;
    text-align: left;
}

.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.12em;
    width: 3px;
    height: 1.5em;
    background: var(--nv-acc);
    border-radius: 2px;
}

/* Пунктирная траектория */
.dot-track {
    height: 1px;
    background-image: repeating-linear-gradient(90deg, var(--nv-acc) 0 4px, transparent 4px 12px);
    opacity: .55;
    margin: 0;
    border: 0;
}

.rule-soft {
    height: 1px;
    background: var(--nv-line);
    margin: 2.4rem 2.4rem;
    border: 0;
}

/* Лазерная линия */
.laser {
    position: relative;
    height: 2px;
    width: 100%;
    overflow: hidden;
    background: rgba(45, 212, 191, .12);
    border-radius: 2px;
    margin: 1.2rem 0 1.6rem;
}

.laser::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 38%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--nv-acc), transparent);
    animation: nv-scan 3.4s linear infinite;
}

@keyframes nv-scan {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(363%); }
}

@media (prefers-reduced-motion: reduce) {
    .laser::after { animation: none; }
    html { scroll-behavior: auto; }
}

/* Маркеры-стрелки */
.tick-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.tick-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6em;
}

.tick-list li::before {
    content: "➤";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--nv-acc);
    font-size: 0.8em;
    line-height: 1.9;
}

/* ------------------------------------------------------------------ Шапка */

.top-bar {
    background: var(--nv-head);
    border-bottom: 1px solid var(--nv-line);
    padding: 1.1rem 0;
}

.top-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    flex: 1 1 320px;
}

.brand a { text-decoration: none; color: inherit; display: block; }

.brand-mark { flex: 0 0 auto; line-height: 0; }

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

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

.brand-name {
    display: block;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--nv-text);
    line-height: 1.35;
    letter-spacing: -0.01em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.brand-desc {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.78rem;
    color: var(--nv-muted);
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--nv-muted);
    border-radius: 4px;
    color: var(--nv-text);
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
}

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

.main-nav li { margin: 0; }

.main-nav a {
    display: inline-block;
    padding: 0.35rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--nv-text);
    border-bottom: 1px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus {
    color: var(--nv-acc);
    text-decoration: none;
    border-bottom-color: var(--nv-acc);
}

.main-nav .current-menu-item > a {
    color: var(--nv-acc);
    border-bottom-color: var(--nv-acc);
}

/* -------------------------------------------------------- Хлебные крошки */

.crumbs {
    font-size: 0.85rem;
    color: var(--nv-muted);
    padding: 1.1rem 0 0;
    line-height: 1.6;
}

.crumbs a { color: var(--nv-muted); }
.crumbs a:hover { color: var(--nv-acc); }
.crumbs-sep { color: var(--nv-line); margin: 0 0.25rem; }
.crumbs span:not(.crumbs-sep) { color: var(--nv-text); }

/* ------------------------------------------------------------- Раскладки */

.site-main {
    flex: 1 1 auto;
    padding: 1.6rem 0 3.4rem;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: 67% 27%;
    justify-content: space-between;
    gap: 2rem;
    align-items: start;
}

.layout-with-sidebar > * { min-width: 0; }

.layout-single {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

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

/* ---------------------------------------------------------------- Сайдбар */

.sidebar {
    background: var(--nv-side);
    border: 1px solid var(--nv-line);
    border-radius: 6px;
    padding: 1.4rem 1.4rem 0.6rem;
    color: var(--nv-text);
}

.sidebar .widget { margin-bottom: 1.4rem; }

.sidebar .widget-title {
    position: relative;
    padding-left: 0.85rem;
    font-size: 1.05rem;
    margin-bottom: 0.9rem;
    color: var(--nv-text);
}

.sidebar .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 3px;
    height: 1.2em;
    background: var(--nv-acc);
    border-radius: 2px;
}

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

.sidebar li {
    padding: 0.45rem 0 0.45rem 1.1rem;
    position: relative;
    border-bottom: 1px solid var(--nv-line);
    color: var(--nv-text);
    font-size: 0.94rem;
}

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

.sidebar li::before {
    content: "◆";
    position: absolute;
    left: 0;
    top: 0.45rem;
    font-size: 0.6rem;
    color: var(--nv-acc);
}

.sidebar a { color: var(--nv-text); }
.sidebar a:hover { color: var(--nv-acc); }
.sidebar p { color: var(--nv-text); }
.sidebar .post-date { display: block; color: var(--nv-muted); font-size: 0.8rem; }

/* --------------------------------------------------------------- Карточки */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.card-stack {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #0E1524;
    border: 1px solid var(--nv-line);
    border-radius: 6px;
    overflow: hidden;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--nv-acc);
    box-shadow: inset 0 0 22px rgba(45, 212, 191, .12);
}

.card-thumb { display: block; line-height: 0; }

.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0;
}

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

.card-title {
    font-size: 1.12rem;
    margin: 0 0 0.55rem;
    line-height: 1.35;
}

.card-title a { color: var(--nv-text); }
.card-title a:hover { color: var(--nv-acc); }

.card-excerpt {
    color: #C3CEDD;
    font-size: 0.94rem;
    margin-bottom: 0.9rem;
}

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

.card-excerpt p:last-child { margin-bottom: 0; }

.card-foot { margin-top: auto; }

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--nv-muted);
    margin-bottom: 0.6rem;
}

.entry-meta a { color: var(--nv-muted); }
.entry-meta a:hover { color: var(--nv-acc); }
.meta-dot { color: var(--nv-acc); font-size: 0.55rem; }

/* -------------------------------------------------------------- Пагинация */

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 2.2rem 0 0;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    padding: 0.45rem 0.75rem;
    text-align: center;
    border: 1px solid var(--nv-line);
    border-radius: 4px;
    color: var(--nv-text);
    font-size: 0.92rem;
    line-height: 1.4;
    background: #0E1524;
}

.pager a.page-numbers:hover {
    border-color: var(--nv-acc);
    color: var(--nv-acc);
    text-decoration: none;
}

.pager .page-numbers.current {
    background: var(--nv-acc);
    border-color: var(--nv-acc);
    color: #06121A;
    font-weight: 700;
}

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

/* ------------------------------------------------------- Записи и страницы */

.entry-head { margin-bottom: 1.4rem; }

.entry-title {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
}

.entry-thumb {
    margin: 0 0 1.6rem;
    border: 1px solid var(--nv-line);
    border-radius: 6px;
    overflow: hidden;
    line-height: 0;
}

.entry-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
}

.entry-content { font-size: 1rem; }

.entry-content h2 {
    font-size: 1.6rem;
    margin-top: 2rem;
    position: relative;
    padding-left: 1.05rem;
}

.entry-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.12em;
    width: 3px;
    height: 1.5em;
    background: var(--nv-acc);
    border-radius: 2px;
}

.entry-content h3 { margin-top: 1.6rem; }

.entry-content img { border-radius: 6px; display: block; }

.entry-content ul li::marker { color: var(--nv-acc); }

.entry-tags {
    margin-top: 1.8rem;
    font-size: 0.86rem;
    color: var(--nv-muted);
}

.entry-tags a {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    margin: 0.2rem 0.3rem 0.2rem 0;
    border: 1px solid var(--nv-line);
    border-radius: 4px;
    color: var(--nv-muted);
    font-size: 0.82rem;
}

.entry-tags a:hover {
    border-color: var(--nv-acc);
    color: var(--nv-acc);
    text-decoration: none;
}

.post-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--nv-line);
    font-size: 0.9rem;
}

.post-nav > div { min-width: 0; flex: 1 1 240px; }

/* ------------------------------------------------------------ Комментарии */

.comments-block {
    margin-top: 2.6rem;
    padding: 1.6rem 1.6rem 1.2rem;
    background: var(--nv-side);
    border: 1px solid var(--nv-line);
    border-radius: 6px;
}

.comments-title {
    font-size: 1.3rem;
    position: relative;
    padding-left: 0.9rem;
}

.comments-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 3px;
    height: 1.3em;
    background: var(--nv-acc);
    border-radius: 2px;
}

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

.comment-list .children {
    list-style: none;
    padding-left: 1.2rem;
    margin-top: 0.9rem;
}

.note {
    border: 1px solid var(--nv-line);
    border-radius: 6px;
    padding: 1rem 1.15rem;
    margin-bottom: 0.9rem;
    background: #0B111E;
}

.note-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: baseline;
    margin-bottom: 0.4rem;
}

.note-author { font-weight: 700; color: var(--nv-text); }
.note-date { font-size: 0.8rem; color: var(--nv-muted); }
.note-hold { font-size: 0.85rem; color: var(--nv-acc); }
.note-body { font-size: 0.95rem; }
.note-body p:last-child { margin-bottom: 0; }
.note-tools { font-size: 0.85rem; }

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

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: #0B111E;
    border: 1px solid var(--nv-line);
    border-radius: 4px;
    color: var(--nv-text);
    font-family: inherit;
    font-size: 0.95rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--nv-acc);
}

.comment-form .submit {
    display: inline-block;
    padding: 0.68rem 1.5rem;
    border-radius: 4px;
    border: 1px solid transparent;
    background: var(--nv-acc);
    color: #06121A;
    font-weight: 600;
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
}

.comment-form .submit:hover {
    background: #24AF9E;
    box-shadow: 0 0 18px rgba(45, 212, 191, .35);
}

.comment-respond { margin-top: 1.2rem; }
.comment-reply-title { font-size: 1.1rem; }

/* ------------------------------------------------------------ Форма поиска */

.search-box {
    display: flex;
    gap: 0.5rem;
    max-width: 460px;
}

.search-box input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.6rem 0.8rem;
    background: #0B111E;
    border: 1px solid var(--nv-line);
    border-radius: 4px;
    color: var(--nv-text);
    font-family: inherit;
    font-size: 0.95rem;
}

.search-box input[type="search"]:focus {
    outline: none;
    border-color: var(--nv-acc);
}

.search-box button {
    padding: 0.6rem 1.1rem;
    border: 0;
    border-radius: 4px;
    background: var(--nv-acc);
    color: #06121A;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
}

.search-box button:hover { background: #24AF9E; }

/* ---------------------------------------------------------------- Главная */

.front-hero,
.fsec {
    position: relative;
    border-radius: 6px;
    padding: 2.8rem 2.2rem;
    margin-bottom: 2.2rem;
}

.fsec--alt { background: var(--nv-bg-alt); }
.fsec--grad { background: var(--nv-grad); border: 1px solid var(--nv-line); }
.fsec--plain { padding-left: 0; padding-right: 0; }

/* Hero */
.front-hero {
    overflow: hidden;
    background: var(--nv-grad);
    border: 1px solid var(--nv-line);
    padding: 3.2rem 2.4rem;
    margin-bottom: 2.2rem;
}

.hero-compass {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 340px;
    max-width: 46%;
    opacity: .5;
    display: block;
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.hero-kicker {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--nv-acc);
    margin-bottom: 0.9rem;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.05;
    margin-bottom: 0.4rem;
}

.hero-text {
    color: #C3CEDD;
    font-size: 1.05rem;
    margin-bottom: 1.4rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

/* Статистика */
.stats-band {
    padding: 1.8rem 0;
    border-top: 1px dashed rgba(45, 212, 191, .45);
    border-bottom: 1px dashed rgba(45, 212, 191, .45);
    margin-top: 1.6rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
}

.stat-cell { min-width: 0; }

.stat-num {
    display: block;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.05;
    color: var(--nv-acc);
    letter-spacing: -0.03em;
}

.stat-label {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.88rem;
    color: var(--nv-muted);
    line-height: 1.45;
}

/* Zigzag */
.zig-row {
    display: grid;
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
    gap: 1.8rem;
    align-items: center;
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--nv-line);
}

.zig-row:last-child { border-bottom: 0; padding-bottom: 0; }

.zig-row--flip .zig-art { order: 2; }
.zig-row--flip .zig-copy { order: 1; }

.zig-art { min-width: 0; line-height: 0; }

.zig-art img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    border: 1px solid var(--nv-line);
    border-radius: 6px;
    background: #0B111E;
    padding: 0.6rem;
}

.zig-copy { min-width: 0; }
.zig-copy h3 { margin-bottom: 0.5rem; }
.zig-copy p { color: #C3CEDD; margin-bottom: 0; }

/* Таймлайн */
.timeline {
    position: relative;
    margin: 0;
    padding: 0 0 0 1.8rem;
    list-style: none;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: var(--nv-muted);
}

.timeline li {
    position: relative;
    margin: 0 0 1.6rem;
    min-width: 0;
}

.timeline li:last-child { margin-bottom: 0; }

.timeline li::before {
    content: "";
    position: absolute;
    left: -1.8rem;
    top: 0.45rem;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--nv-acc);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, .18);
}

.tl-step {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--nv-muted);
    margin-bottom: 0.2rem;
}

.timeline h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.timeline p { color: #C3CEDD; margin-bottom: 0; }

/* Блок последних записей на главной */
.latest-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.latest-head h2 { margin-bottom: 0; }

/* --------------------------------------------------------------- Подвал */

.site-foot {
    background: var(--nv-head);
    border-top: 1px solid var(--nv-line);
    padding: 2.6rem 0 1.4rem;
    color: #D3DBE7;
    margin-top: auto;
}

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

.foot-cols > * { min-width: 0; }

.site-foot .widget { margin-bottom: 1.2rem; }

.site-foot .widget-title {
    position: relative;
    padding-left: 0.85rem;
    font-size: 1rem;
    color: #E8EDF5;
    margin-bottom: 0.8rem;
}

.site-foot .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 3px;
    height: 1.2em;
    background: var(--nv-acc);
    border-radius: 2px;
}

.site-foot p { color: #B9C5D4; font-size: 0.92rem; }

.site-foot ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.site-foot li {
    position: relative;
    padding: 0.3rem 0 0.3rem 1.05rem;
    font-size: 0.92rem;
    color: #D3DBE7;
}

.site-foot li::before {
    content: "➤";
    position: absolute;
    left: 0;
    top: 0.3rem;
    font-size: 0.62rem;
    color: var(--nv-acc);
}

.site-foot a { color: #D3DBE7; }
.site-foot a:hover { color: var(--nv-acc); }

.foot-contact { font-size: 0.92rem; color: #B9C5D4; }
.foot-contact a { color: var(--nv-acc); }

.foot-bottom {
    margin-top: 1.8rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--nv-line);
    font-size: 0.82rem;
    color: var(--nv-muted);
    line-height: 1.6;
}

/* -------------------------------------------------------- Cookie-баннер */

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

.cookie-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.4rem;
    background: #070A10;
    border-top: 1px solid var(--nv-acc);
    color: #D3DBE7;
    font-size: 0.88rem;
    line-height: 1.55;
}

.cookie-bar p { margin: 0; min-width: 0; flex: 1 1 320px; }

/* ------------------------------------------------------------------- 404 */

.zero-box {
    padding: 2.6rem 2.2rem;
    background: var(--nv-grad);
    border: 1px solid var(--nv-line);
    border-radius: 6px;
    text-align: left;
}

.zero-code {
    font-size: 4.4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--nv-acc);
    letter-spacing: -0.04em;
    margin-bottom: 0.6rem;
}

.zero-box .search-box { margin: 1.4rem 0; }

/* ------------------------------------------------------------- Адаптив */

@media (max-width: 960px) {
    h1 { font-size: 2.6rem; }
    .hero-title { font-size: 2.6rem; }
    .entry-title { font-size: 1.9rem; }

    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .layout-single { width: 100%; }

    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .hero-compass { opacity: .28; }
}

@media (max-width: 600px) {
    body { font-size: 15px; }

    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.6rem; }
    .hero-title { font-size: 2.1rem; }
    .entry-title { font-size: 1.6rem; }

    .nav-toggle { display: inline-block; }

    .main-nav[hidden] { display: none !important; }

    .main-nav {
        flex: 1 1 100%;
        width: 100%;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        margin-top: 0.6rem;
        border-top: 1px solid var(--nv-line);
    }

    .main-nav li { border-bottom: 1px solid var(--nv-line); }
    .main-nav a { display: block; padding: 0.65rem 0; }

    .front-hero { padding: 2rem 1.3rem; }
    .fsec { padding: 1.9rem 1.3rem; }
    .fsec--plain { padding-left: 0; padding-right: 0; }

    .hero-compass { display: none; }

    .card-grid { grid-template-columns: minmax(0, 1fr); }
    .stats-grid { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
    .foot-cols { grid-template-columns: minmax(0, 1fr); }

    .zig-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .zig-row--flip .zig-art { order: 0; }
    .zig-row--flip .zig-copy { order: 0; }

    .zig-art img { aspect-ratio: 16 / 9; }

    .comments-block { padding: 1.2rem 1.1rem 0.9rem; }
    .sidebar { padding: 1.2rem 1.1rem 0.5rem; }
    .zero-box { padding: 1.9rem 1.3rem; }
    .cookie-bar { padding: 0.9rem 1.1rem; }
    .rule-soft { margin: 1.8rem 1rem; }
    .stat-num { font-size: 2.1rem; }
}

/* ------------------------------------------------------- Служебные классы */

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

.archive-note {
    color: #C3CEDD;
    font-size: 0.95rem;
}

.alignleft { float: left; margin: 0 1.2rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.2rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

.wp-caption { max-width: 100%; }

.wp-caption-text,
figcaption {
    font-size: 0.84rem;
    color: var(--nv-muted);
    margin-top: 0.4rem;
}

.sticky .card-title::after {
    content: "закреплено";
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.1rem 0.45rem;
    border: 1px solid var(--nv-acc);
    border-radius: 4px;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--nv-acc);
    vertical-align: middle;
}
