/*
Theme Name: dds_diligentdividend.com
Description: Информационная тема для сайта о дивидендных инвестициях и личных финансах. Морская навигационная эстетика: холодная палитра, картографические акценты, японский минимализм.
Author: Георгий Павлов
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: dvdnav
*/

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

:root {
    --bg: #F0F5F9;
    --bg-alt: #E6EEF5;
    --deep: #0A1A2E;
    --panel: #FFFFFF;
    --text: #1E2B39;
    --accent: #0087A5;
    --accent-dark: #005F75;
    --gold: #D4A843;
    --muted: #6D849C;
    --line: #B0C8DB;
    --radius: 8px;
    --shadow: 0 6px 18px rgba(30, 70, 110, 0.08);
    --shadow-hover: 0 12px 26px rgba(30, 70, 110, 0.14);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(0deg, rgba(109, 132, 156, 0.05) 0 1px, transparent 1px 44px),
        repeating-linear-gradient(90deg, rgba(109, 132, 156, 0.05) 0 1px, transparent 1px 44px);
    color: var(--text);
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
}

body::after {
    content: "";
    position: fixed;
    right: -60px;
    bottom: -60px;
    width: 380px;
    height: 380px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
    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='%23B0C8DB' stroke-width='2'%3E%3Ccircle cx='100' cy='100' r='92'/%3E%3Ccircle cx='100' cy='100' r='66'/%3E%3Ccircle cx='100' cy='100' r='28'/%3E%3Cpath d='M100 2v196M2 100h196M31 31l138 138M169 31L31 169'/%3E%3C/g%3E%3Cpath d='M100 18l14 68 68 14-68 14-14 68-14-68-68-14 68-14z' fill='%23B0C8DB'/%3E%3C/svg%3E");
}

@media (max-width: 960px) {
    body::after {
        display: none;
    }
}

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

a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
    color: var(--accent-dark);
    border-bottom-color: var(--accent-dark);
}

p {
    margin: 0 0 1.1em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    color: var(--deep);
    line-height: 1.22;
    margin: 0 0 0.7em;
    letter-spacing: 0.02em;
}

h1 { font-size: 3.4rem; letter-spacing: 0.05em; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

/* Верхняя декоративная полоса — «горизонт» */
.horizon-bar {
    height: 3px;
    background: var(--accent);
}

/* Навигационный маркер перед H2 в текстовом контенте */
.entry-content h2::before,
.section-title::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 0.6rem;
    vertical-align: -2px;
    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 24 24'%3E%3Cg fill='none' stroke='%230087A5' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cellipse cx='12' cy='12' rx='4.5' ry='10'/%3E%3Cpath d='M2 12h20M4 6.5h16M4 17.5h16'/%3E%3C/g%3E%3C/svg%3E");
}

/* Заголовок секции с линией-якорем на 2/3 длины */
.section-title {
    position: relative;
    padding-bottom: 0.7rem;
    margin-bottom: 1.8rem;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 66%;
    max-width: 220px;
    height: 2px;
    background: var(--accent);
}

.section-title.offset {
    margin-left: 8%;
}

/* Разделитель с ромбом-буем */
.buoy-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 3.2rem 0;
}

.buoy-divider::before,
.buoy-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.buoy-divider span {
    width: 10px;
    height: 10px;
    background: var(--accent);
    transform: rotate(45deg);
}

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

.btn,
.entry-content .btn {
    display: inline-block;
    padding: 0.72rem 1.5rem;
    border-radius: 6px;
    background: var(--accent);
    color: #FFFFFF;
    border: 1.5px solid var(--accent);
    font-size: 0.97rem;
    letter-spacing: 0.03em;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #FFFFFF;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
}

.btn-outline:hover {
    background: rgba(0, 135, 165, 0.12);
    color: var(--accent-dark);
    transform: translateY(-1px);
}

.btn-light {
    background: transparent;
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.75);
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: #FFFFFF;
    color: #FFFFFF;
}

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

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

/* -------------------------------------------------------------
   3. Шапка
   ------------------------------------------------------------- */

.site-header {
    background: var(--deep);
    color: #E7EFF6;
    padding: 1.4rem 0 1.2rem;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    flex-wrap: wrap;
}

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

.brand-logo,
.brand-mark {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
}

.brand-logo {
    width: auto;
    max-height: 60px;
}

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

.brand-title {
    display: block;
    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    font-size: 1.12rem;
    line-height: 1.35;
    letter-spacing: 0.04em;
    color: #FFFFFF;
    border-bottom: none;
}

.brand-title:hover {
    color: #9FD9E8;
    border-bottom: none;
}

.brand-desc {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #90A9C0;
    max-width: 520px;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    color: #FFFFFF;
    padding: 0.5rem 0.9rem;
    font-size: 0.95rem;
    cursor: pointer;
}

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

.main-nav a {
    color: #D6E4F0;
    font-size: 0.98rem;
    letter-spacing: 0.04em;
    border-bottom: 1px dashed transparent;
    padding-bottom: 2px;
}

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

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

.breadcrumbs {
    font-size: 0.87rem;
    color: var(--muted);
    padding: 1.4rem 0 0.4rem;
}

.breadcrumbs a {
    color: var(--muted);
    border-bottom: 1px dashed rgba(109, 132, 156, 0.5);
}

.breadcrumbs a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.breadcrumbs .sep {
    margin: 0 0.35rem;
    color: var(--line);
}

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

.site-main {
    padding: 1.6rem 0 4rem;
}

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

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

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

.sidebar {
    min-width: 0;
    background: var(--panel);
    border-radius: var(--radius);
    padding: 1.6rem 1.5rem;
    box-shadow: var(--shadow);
    border-bottom: 2px solid var(--line);
}

.sidebar .widget + .widget {
    margin-top: 2rem;
}

.sidebar .widget-title {
    font-size: 1.1rem;
    color: var(--deep);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--line);
}

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

.sidebar .widget li {
    padding: 0.5rem 0 0.5rem 1.1rem;
    position: relative;
    border-bottom: 1px dotted rgba(176, 200, 219, 0.8);
    color: var(--text);
}

.sidebar .widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05rem;
    width: 6px;
    height: 6px;
    background: var(--accent);
    transform: rotate(45deg);
}

.sidebar .widget a {
    color: var(--text);
}

.sidebar .widget a:hover {
    color: var(--accent);
}

.sidebar .post-date {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
}

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

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

.card {
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border-radius: var(--radius);
    overflow: hidden;
    border-bottom: 2px solid var(--line);
    box-shadow: 0 4px 14px rgba(30, 70, 110, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-bottom-color: var(--accent);
}

.card-thumb {
    display: block;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
}

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

.card-thumb-empty {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #0A1A2E 0%, #1E4A63 100%);
    position: relative;
}

.card-thumb-empty::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 18px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 18px);
}

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

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

.card-title a {
    color: var(--deep);
    border-bottom: none;
}

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

.card-meta {
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    margin-bottom: 0.7rem;
}

.card-excerpt {
    color: var(--text);
    font-size: 0.95rem;
    flex: 1;
}

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

.card-more {
    margin-top: 1rem;
    align-self: flex-start;
}

/* -------------------------------------------------------------
   7. Главная страница
   ------------------------------------------------------------- */

.fs {
    padding: 4.2rem 0;
}

.fs-inner {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
}

.fs-alt {
    background: var(--bg-alt);
}

.fs-lede {
    color: var(--muted);
    max-width: 780px;
    margin-bottom: 2.4rem;
}

/* Блок 1 — Hero */
.hero {
    position: relative;
    padding: 0;
    color: #FFFFFF;
    background: var(--deep);
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(10, 26, 46, 0.92) 0%, rgba(10, 26, 46, 0.7) 55%, rgba(0, 95, 117, 0.55) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 5.6rem 0 5.2rem;
}

.hero h1 {
    color: #FFFFFF;
    font-size: 3.4rem;
    letter-spacing: 0.06em;
    margin-bottom: 1.1rem;
    max-width: 15ch;
}

.hero-sub {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.08rem;
    max-width: 620px;
    margin-bottom: 2rem;
}

.hero-coords {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.4rem;
}

/* Блок 2 — Таймлайн */
.timeline {
    position: relative;
    margin-top: 2.6rem;
    padding: 1rem 0;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 0;
    border-left: 2px dashed var(--accent);
    transform: translateX(-1px);
}

.tl-item {
    position: relative;
    width: 46%;
    margin-bottom: 2.4rem;
    min-width: 0;
}

.tl-item:nth-child(odd) {
    margin-left: 0;
    text-align: right;
    padding-right: 2.2rem;
}

.tl-item:nth-child(even) {
    margin-left: 54%;
    padding-left: 2.2rem;
}

.tl-item::after {
    content: "";
    position: absolute;
    top: 0.55rem;
    width: 13px;
    height: 13px;
    background: var(--bg);
    border: 2px solid var(--accent);
    transform: rotate(45deg);
}

.tl-item:nth-child(odd)::after {
    right: -7px;
}

.tl-item:nth-child(even)::after {
    left: -7px;
}

.tl-step {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.3rem;
}

.tl-item h3 {
    font-size: 1.16rem;
    margin-bottom: 0.4rem;
}

.tl-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

/* Блок 3 — Карта тем */
.topic-map {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem;
    margin-top: 2.2rem;
}

.topic-tile {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    padding: 1.7rem 1.6rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border-bottom: 2px solid var(--line);
    color: var(--text);
    min-width: 0;
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.fs-alt .topic-tile {
    background: var(--panel);
}

.topic-tile:hover {
    background: var(--accent);
    color: #FFFFFF;
    border-bottom-color: var(--accent-dark);
    transform: translateY(-3px);
}

.topic-tile svg {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.4;
}

.topic-tile:hover svg {
    stroke: #FFFFFF;
}

.topic-tile h3 {
    font-size: 1.12rem;
    margin: 0 0 0.35rem;
    color: inherit;
}

.topic-tile p {
    margin: 0;
    font-size: 0.92rem;
    color: inherit;
    opacity: 0.85;
}

.topic-tile-text {
    min-width: 0;
}

/* Блок 4 — Статистика */
.stats-plate {
    background: linear-gradient(115deg, #0A1A2E 0%, #0F3A50 55%, #0087A5 100%);
    border-radius: 10px;
    padding: 3rem 2.4rem;
    color: #FFFFFF;
    box-shadow: var(--shadow);
}

.stats-plate .section-title {
    color: #FFFFFF;
}

.stats-plate .section-title::after {
    background: var(--gold);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 2rem;
}

.stat-cell {
    padding: 0 1.4rem;
    text-align: center;
    min-width: 0;
    border-left: 1px solid rgba(212, 168, 67, 0.65);
}

.stat-cell:first-child {
    border-left: none;
}

.stat-num {
    display: block;
    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    font-size: 2.9rem;
    line-height: 1.05;
    letter-spacing: 0.03em;
    color: #FFFFFF;
}

.stat-label {
    display: block;
    margin-top: 0.7rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.78);
}

/* Волнистый разделитель */
.wave-sep {
    display: block;
    width: 100%;
    height: 26px;
    opacity: 0.55;
}

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

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

.entry-header {
    margin-bottom: 1.8rem;
}

.entry-title {
    font-size: 2.5rem;
    margin-bottom: 0.6rem;
}

.entry-meta {
    font-size: 0.85rem;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.entry-thumb {
    margin-bottom: 1.8rem;
    border-radius: var(--radius);
    overflow: hidden;
}

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

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

.entry-content h2 {
    margin-top: 2.2rem;
}

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

.entry-content ul,
.entry-content ol {
    padding-left: 1.4rem;
    margin: 0 0 1.2rem;
}

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

.entry-content img {
    border-radius: var(--radius);
}

.entry-content blockquote {
    margin: 1.8rem 0;
    padding: 0.6rem 1.4rem;
    border-left: 2px solid var(--accent);
    color: var(--deep);
    font-size: 1.06rem;
}

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

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

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

.entry-content th {
    background: var(--bg-alt);
    color: var(--deep);
}

.entry-content code,
.entry-content pre {
    background: var(--bg-alt);
    border-radius: 4px;
}

.entry-content pre {
    padding: 1rem;
    overflow-x: auto;
}

.entry-tags {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.quote-block {
    border-left: 2px solid var(--accent);
    padding: 0.4rem 1.4rem;
    margin: 0;
    font-size: 1.25rem;
    color: var(--deep);
}

.quote-block cite {
    display: block;
    margin-top: 0.8rem;
    font-size: 0.88rem;
    font-style: normal;
    color: var(--muted);
}

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

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

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    padding: 0.5rem 0.85rem;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
    color: var(--text);
    font-size: 0.94rem;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pager .page-numbers:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
}

.pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
}

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

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

/* -------------------------------------------------------------
   10. Формы поиска и комментарии
   ------------------------------------------------------------- */

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

.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
    color: var(--text);
    font-size: 0.95rem;
}

.search-form input[type="search"]:focus {
    outline: 2px solid rgba(0, 135, 165, 0.35);
    border-color: var(--accent);
}

.search-form button {
    padding: 0.65rem 1.2rem;
    border: 1.5px solid var(--accent);
    border-radius: 6px;
    background: var(--accent);
    color: #FFFFFF;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s ease;
}

.search-form button:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.comments-title,
.comment-reply-title {
    font-size: 1.4rem;
}

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

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

.comment-item {
    background: var(--panel);
    border-radius: var(--radius);
    border-bottom: 2px solid var(--line);
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.2rem;
}

.comment-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.comment-author {
    color: var(--deep);
    font-weight: 600;
}

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

.comment-actions {
    font-size: 0.88rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
}

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

.comment-form p {
    margin-bottom: 1rem;
}

.comment-form .submit {
    padding: 0.7rem 1.5rem;
    border: 1.5px solid var(--accent);
    border-radius: 6px;
    background: var(--accent);
    color: #FFFFFF;
    cursor: pointer;
    font-size: 0.96rem;
}

.comment-form .submit:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

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

.site-footer {
    background: var(--deep);
    color: #C6D6E4;
    padding: 3.2rem 0 1.6rem;
    margin-top: 2rem;
}

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

.footer-cols .widget-title {
    font-size: 1.05rem;
    color: #FFFFFF;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(176, 200, 219, 0.28);
}

.footer-cols .widget {
    min-width: 0;
    color: #C6D6E4;
    font-size: 0.94rem;
}

.footer-cols .widget p {
    color: #C6D6E4;
}

.footer-cols .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-cols .widget li {
    padding: 0.4rem 0 0.4rem 1rem;
    position: relative;
    border-bottom: 1px dotted rgba(176, 200, 219, 0.2);
}

.footer-cols .widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.95rem;
    width: 5px;
    height: 5px;
    background: var(--gold);
    transform: rotate(45deg);
}

.footer-cols .widget a {
    color: #C6D6E4;
    border-bottom: 1px dashed transparent;
}

.footer-cols .widget a:hover {
    color: #FFFFFF;
    border-bottom-color: var(--gold);
}

.footer-cols .widget .post-date {
    display: block;
    font-size: 0.8rem;
    color: #90A9C0;
}

.footer-contacts {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.site-copy {
    margin-top: 2.6rem;
    padding-top: 1.3rem;
    border-top: 1px solid rgba(176, 200, 219, 0.2);
    font-size: 0.86rem;
    color: #90A9C0;
}

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    flex-wrap: wrap;
    padding: 1.1rem 1.6rem;
    background: rgba(10, 26, 46, 0.97);
    color: #D6E4F0;
    border-top: 3px solid var(--accent);
    font-size: 0.9rem;
}

.cookie-banner p {
    margin: 0;
    max-width: 820px;
}

.cookie-banner a {
    color: #9FD9E8;
}

/* -------------------------------------------------------------
   13. 404 и поиск
   ------------------------------------------------------------- */

.notice-block {
    background: var(--panel);
    border-radius: var(--radius);
    border-bottom: 2px solid var(--line);
    padding: 2.4rem 2.2rem;
    box-shadow: var(--shadow);
}

.notice-block h1 {
    font-size: 2.6rem;
}

.notice-actions {
    margin-top: 1.6rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.archive-head {
    margin-bottom: 2rem;
}

.archive-title {
    font-size: 2.2rem;
    margin-bottom: 0.4rem;
}

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

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

@media (max-width: 960px) {
    body {
        font-size: 16px;
    }

    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.6rem; }

    .hero h1 { font-size: 2.4rem; }

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

    .layout-single {
        width: 100%;
    }

    .fs-inner {
        width: 100%;
    }

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

    .main-nav {
        flex-basis: 100%;
    }

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

    .main-nav ul {
        flex-direction: column;
        gap: 0.2rem;
        margin-top: 1rem;
        border-top: 1px solid rgba(176, 200, 219, 0.25);
        padding-top: 0.8rem;
    }

    .main-nav li {
        padding: 0.45rem 0;
    }

    .stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.8rem 0;
    }

    .stat-cell:nth-child(3) {
        border-left: none;
    }
}

@media (max-width: 600px) {
    .fs {
        padding: 3rem 0;
    }

    .hero-content {
        padding: 3.6rem 0 3.4rem;
    }

    .hero h1 {
        font-size: 2rem;
        letter-spacing: 0.04em;
    }

    .entry-title {
        font-size: 1.9rem;
    }

    .section-title.offset {
        margin-left: 0;
    }

    .topic-map {
        grid-template-columns: minmax(0, 1fr);
    }

    .timeline::before {
        left: 8px;
    }

    .tl-item,
    .tl-item:nth-child(odd),
    .tl-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        text-align: left;
        padding-left: 2rem;
        padding-right: 0;
    }

    .tl-item:nth-child(odd)::after,
    .tl-item:nth-child(even)::after {
        left: 2px;
        right: auto;
    }

    .stats-plate {
        padding: 2rem 1.4rem;
    }

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

    .stat-cell,
    .stat-cell:nth-child(3) {
        border-left: none;
        padding: 0;
    }

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

    .notice-block {
        padding: 1.8rem 1.4rem;
    }

    .sidebar {
        padding: 1.4rem 1.2rem;
    }

    .cookie-banner {
        padding: 1rem 1.2rem;
    }
}
