/*
Theme Name: dds_openhorizons.ru
Author: Анна Соколова
Description: Информационный онлайн-журнал и гид по эстетическим путешествиям: рекомендации по уходу за собой, бьюти-обзоры, вдохновляющие маршруты и истории о красоте мира. Дизайн — акварельный минимализм с японским акцентом.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: ohz
*/

/* ==================================================================
   Переменные
   ================================================================== */
:root {
    --bg:        #F8FAFD;
    --alt:       #F0F4F9;
    --footer-bg: #1C2833;
    --sidebar-bg:#F0F4F9;
    --ink:       #1E2A3A;
    --accent:    #4A90A4;
    --accent-2:  #A3B8C7;
    --accent-dk: #3A7A8A;
    --muted:     #8A9BA8;
    --card-bd:   #E2E8F0;
    --dot:       #D0D9E0;
    --sans: "Manrope", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --serif: "Lora", "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --shell: min(92%, 1180px);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background-color: var(--bg);
    background-image: radial-gradient(circle, var(--dot) 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.75;
    overflow-x: hidden;
}

/* Декоративная волна в правом нижнем углу */
body::after {
    content: "";
    position: fixed;
    right: -40px;
    bottom: -30px;
    width: 600px;
    height: 400px;
    max-width: 60vw;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='400'%3E%3Cg fill='none' stroke='%234A90A4' stroke-width='2'%3E%3Cpath d='M0 200 Q150 120 300 200 T600 200'/%3E%3Cpath d='M0 260 Q150 180 300 260 T600 260'/%3E%3Cpath d='M0 320 Q150 240 300 320 T600 320'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: bottom right;
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

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

a { color: var(--accent); text-decoration: none; }

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

/* ==================================================================
   Типографика
   ================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--sans);
    color: var(--ink);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.02em;
}

h1 { font-size: 3.5rem; margin: 0 0 0.6em; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1.1em; }

.entry-content p,
.entry-content li { line-height: 1.85; }

/* Ссылки внутри текста — пунктир → сплошная */
.entry-content a,
.widget-text a,
.comment-content a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
    transition: color .2s ease, text-decoration-style .2s ease;
}
.entry-content a:hover,
.widget-text a:hover,
.comment-content a:hover {
    color: var(--accent-dk);
    text-decoration-style: solid;
}

/* Заголовок секции: смещён влево, линия-акцент, акварельное пятно */
.section-title {
    position: relative;
    z-index: 1;
    font-size: 2.1rem;
    margin: 0 0 2rem;
    text-align: left;
}
.section-title::before {
    content: "";
    position: absolute;
    left: -0.25em;
    top: -0.2em;
    width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74,144,164,0.18), rgba(74,144,164,0) 70%);
    filter: blur(5px);
    z-index: -1;
}
.section-title::after {
    content: "";
    display: block;
    width: 2.4em;
    height: 2px;
    background: var(--accent);
    margin-top: 0.55em;
}

/* ==================================================================
   Кнопки
   ================================================================== */
.btn {
    display: inline-block;
    position: relative;
    overflow: hidden;
    z-index: 0;
    border: 2px solid var(--accent);
    color: var(--ink);
    background: transparent;
    padding: 0.7em 1.6em;
    border-radius: 4px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    transition: color .35s ease;
}
.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
    z-index: -1;
}
.btn:hover { color: #fff; }
.btn:hover::before { transform: scaleX(1); }

.btn--filled {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transition: opacity .25s ease, transform .25s ease;
}
.btn--filled::before { display: none; }
.btn--filled:hover { opacity: 0.9; transform: translateY(1px); color: #fff; }

/* ==================================================================
   Шапка
   ================================================================== */
.site-header {
    background: var(--bg);
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--card-bd);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}
.brand-logo { display: block; height: 56px; width: auto; }
.brand-mark { display: block; flex: 0 0 auto; }
.brand-text { min-width: 0; }
.brand-name {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ink);
    line-height: 1.25;
    display: block;
    max-width: 30ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.brand-desc {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.4;
    display: block;
    max-width: 46ch;
}

/* Навигация (не липкая) */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.4rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.main-nav a {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
    padding: 0.3em 0;
    border-bottom: 2px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: var(--accent);
    border-color: var(--accent);
}

.nav-toggle {
    display: none;
    background: none;
    border: 2px solid var(--accent);
    border-radius: 4px;
    padding: 0.5em 0.8em;
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 600;
    cursor: pointer;
}

/* ==================================================================
   Хлебные крошки
   ================================================================== */
.breadcrumbs {
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--muted);
    padding: 1.4rem 0 0.4rem;
}
.breadcrumbs a { color: var(--accent); }
.breadcrumbs a:hover { color: var(--accent-dk); }
.breadcrumbs .sep { margin: 0 0.35em; color: var(--accent-2); }

/* ==================================================================
   Раскладки
   ================================================================== */
.site-main { padding: 1.2rem 0 4rem; }

.layout-single { display: block; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
    gap: 44px;
    align-items: start;
}
.content-area { min-width: 0; }

/* ==================================================================
   Сайдбар
   ================================================================== */
.sidebar {
    min-width: 0;
    background: var(--sidebar-bg);
    border: 1px solid var(--card-bd);
    border-radius: 8px;
    padding: 1.6rem 1.5rem;
}
.sidebar .widget { margin-bottom: 1.8rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    font-size: 1.1rem;
    margin: 0 0 1rem;
    color: var(--ink);
    position: relative;
    padding-bottom: 0.5rem;
}
.sidebar .widget-title::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 2.2em; height: 2px;
    background: var(--accent);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { margin: 0 0 0.6rem; line-height: 1.4; }
.sidebar a { color: var(--ink); }
.sidebar a:hover { color: var(--accent); }
.sidebar .post-date { color: var(--muted); font-size: 0.8rem; }

/* ==================================================================
   Карточки записей
   ================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border: 1px solid var(--card-bd);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: transform .3s ease, border-color .3s ease;
}
.card::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}
.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-2);
}
.card:hover::after { transform: scaleX(1); }

.card-thumb-wrap {
    position: relative;
    display: block;
    overflow: hidden;
}
.card-thumb-wrap > a { display: block; }
.card-thumb-wrap img,
.card-thumb--empty {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
}
.card-thumb--empty {
    background: linear-gradient(135deg, #cddbe6, #A3B8C7 60%, #7c97a8);
}
.card-cat {
    position: absolute;
    left: 0; bottom: 8px;
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    padding: 0.35em 0.9em;
    background: linear-gradient(90deg, rgba(28,40,51,0.85), rgba(28,40,51,0));
    padding-right: 2.5em;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.3rem 1.4rem 1.5rem;
}
.card-meta {
    font-family: var(--sans);
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}
.card-title {
    font-size: 1.25rem;
    margin: 0 0 0.7rem;
    line-height: 1.3;
}
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent); }
.card-excerpt { color: #40525f; font-size: 0.96rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    margin-top: auto;
    padding-top: 0.9rem;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent);
    align-self: flex-start;
}
.card-more:hover { color: var(--accent-dk); }

/* ==================================================================
   Одиночная запись / страница
   ================================================================== */
.entry-header { margin-bottom: 1.6rem; }
.entry-title { font-size: 2.6rem; margin: 0 0 0.6rem; }
.entry-meta {
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--muted);
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}
.entry-thumb { margin: 0 0 1.8rem; }
.entry-thumb img {
    display: block;
    width: 100%;
    border-radius: 8px;
    clip-path: polygon(0 0, 100% 0, 100% 97%, 0 100%);
}
.entry-content { font-size: 1.05rem; }
.entry-content h2 { margin: 1.8rem 0 0.8rem; }
.entry-content h3 { margin: 1.5rem 0 0.6rem; }
.entry-content img { border-radius: 6px; }
.entry-content blockquote {
    margin: 1.6rem 0;
    padding: 1.4rem 1.6rem;
    background: linear-gradient(120deg, rgba(74,144,164,0.06), rgba(240,244,249,0.6));
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    font-style: italic;
    color: #35485a;
}
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content li { margin-bottom: 0.5rem; }

.post-tags {
    margin: 2rem 0 0;
    font-family: var(--sans);
    font-size: 0.85rem;
}
.post-tags a {
    display: inline-block;
    margin: 0 0.4rem 0.4rem 0;
    padding: 0.3em 0.8em;
    border: 1px solid var(--accent-2);
    border-radius: 4px;
    color: var(--accent);
}
.post-tags a:hover { border-color: var(--accent); background: rgba(74,144,164,0.08); }

/* Таблицы */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}
.entry-content th,
.entry-content td {
    border: 1px solid var(--accent-2);
    padding: 0.7em 0.9em;
    text-align: left;
}
.entry-content th {
    background: var(--alt);
    font-family: var(--sans);
}

/* ==================================================================
   Пагинация
   ================================================================== */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 3rem 0 0;
    justify-content: center;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6em;
    height: 2.6em;
    padding: 0 0.6em;
    border: 1px solid var(--card-bd);
    border-radius: 4px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink);
    background: var(--bg);
    transition: all .2s 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: #fff;
}
.pagination .page-numbers.dots {
    border: none;
    background: none;
}

/* ==================================================================
   Форма поиска
   ================================================================== */
.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 420px;
}
.search-form .search-field {
    flex: 1;
    min-width: 0;
    padding: 0.65em 0.9em;
    border: 1px solid var(--accent-2);
    border-radius: 4px;
    font-family: var(--serif);
    font-size: 0.95rem;
    background: #fff;
    color: var(--ink);
}
.search-form .search-field:focus {
    outline: none;
    border-color: var(--accent);
}
.search-form .search-submit {
    border: 2px solid var(--accent);
    background: var(--accent);
    color: #fff;
    border-radius: 4px;
    padding: 0 1.1em;
    font-family: var(--sans);
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s ease;
}
.search-form .search-submit:hover { opacity: 0.9; }

/* ==================================================================
   Главная — общие секции
   ================================================================== */
.front-section { padding: 5rem 0; }
.front-section--alt {
    background-color: var(--alt);
    background-image: radial-gradient(circle, #C6D2DD 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Декоративная точка между секциями */
.front-dot {
    height: 8px;
}
.front-dot span {
    display: block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    margin-left: 68%;
}

/* --- Блок 1: Hero --- */
.hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--footer-bg);
}
.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(28,40,51,0.72) 0%, rgba(28,40,51,0.35) 40%, rgba(28,40,51,0) 75%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    width: var(--shell);
    margin-inline: auto;
}
.hero-text { max-width: 44%; }
.hero-eyebrow {
    font-family: var(--sans);
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin: 0 0 1rem;
}
.hero-title {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 3.4rem;
    line-height: 1.12;
    margin: 0 0 1.2rem;
    letter-spacing: 0.02em;
}
.hero-title::before {
    content: "";
    position: absolute;
    left: -0.2em; top: -0.15em;
    width: 1.6em; height: 1.6em;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74,144,164,0.35), rgba(74,144,164,0) 70%);
    filter: blur(8px);
    z-index: -1;
}
.hero-sub {
    color: #dbe6ee;
    font-size: 1.1rem;
    max-width: 40ch;
    margin: 0 0 1.6rem;
}
.hero-accent-line {
    width: 12ch;
    height: 2px;
    background: var(--accent);
    margin-bottom: 1.8rem;
}

/* --- Блок 2: Статистика --- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}
.stat {
    text-align: center;
    padding: 1.2rem 1.4rem;
    position: relative;
}
.stat + .stat::before {
    content: "";
    position: absolute;
    left: 0; top: 15%; bottom: 15%;
    border-left: 2px dashed var(--accent-2);
}
.stat-num {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 4rem;
    line-height: 1;
    color: var(--ink);
}
.stat-label {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.9rem;
    color: var(--muted);
    font-family: var(--sans);
}

/* --- Блок 3: Таймлайн --- */
.timeline {
    position: relative;
    max-width: 760px;
    padding-left: 2.4rem;
    border-left: 2px solid var(--accent);
}
.tl-step {
    position: relative;
    margin-bottom: 2.6rem;
    background: var(--bg);
    border: 1px solid var(--card-bd);
    border-radius: 8px;
    padding: 1.5rem 1.7rem;
}
.tl-step:last-child { margin-bottom: 0; }
.tl-step:nth-child(odd) { margin-left: 1.6rem; }
.tl-step:nth-child(even) { margin-left: 0; }
.tl-step::before {
    content: "";
    position: absolute;
    left: -3.2rem;
    top: 1.7rem;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px 22px;
}
.tl-step:nth-child(odd)::before { left: -4.8rem; }
.tl-step--1::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A90A4' stroke-width='1.6'%3E%3Cpath d='M12 21s7-6.4 7-11a7 7 0 10-14 0c0 4.6 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.4'/%3E%3C/svg%3E"); }
.tl-step--2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A90A4' stroke-width='1.6'%3E%3Crect x='4' y='7' width='16' height='13' rx='2'/%3E%3Cpath d='M9 7V5a3 3 0 016 0v2'/%3E%3C/svg%3E"); }
.tl-step--3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A90A4' stroke-width='1.6'%3E%3Cpath d='M12 3l2.4 5 5.5.5-4.2 3.7 1.3 5.4L12 20.6 6.7 23.6 8 18.2 3.8 14.5 9.3 14z'/%3E%3C/svg%3E"); }
.tl-step h3 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.tl-step p { margin: 0; color: #40525f; font-size: 0.98rem; }

/* --- Блок 4: Галерея / мозаика --- */
.mosaic {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 180px;
    gap: 0;
}
.mosaic-item {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--card-bd);
}
.mosaic-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.mosaic-item:hover img { transform: scale(1.04); }
.mosaic-item::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    transition: border-color .3s ease;
    pointer-events: none;
}
.mosaic-item:hover::after { border-color: var(--accent); }
.mosaic-item.big { grid-column: span 2; grid-row: span 2; }

/* --- Текст + иллюстрация (используется на главной внутри секций) --- */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}
.split--reverse .split-media { order: 2; }
.split-media img {
    display: block;
    width: 100%;
    border-radius: 8px;
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
}
.split-text p { color: #3a4c5a; }

.front-lead { color: #40525f; max-width: 62ch; margin: 0 0 1rem; }

/* CTA-плашка */
.cta-band {
    background: var(--footer-bg);
    background-image: linear-gradient(120deg, rgba(74,144,164,0.35), rgba(28,40,51,0.9));
    color: #fff;
    border-radius: 10px;
    padding: 3rem 2.6rem;
    text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfdbe4; max-width: 56ch; margin-inline: auto; }

/* ==================================================================
   Подвал
   ================================================================== */
.site-footer {
    background: var(--footer-bg);
    color: #c7d2db;
    padding: 3.4rem 0 1.6rem;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
}
.site-footer .widget-title {
    color: #fff;
    font-size: 1.1rem;
    margin: 0 0 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.site-footer .widget-title::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 2.2em; height: 2px;
    background: var(--accent);
}
.site-footer .widget { font-size: 0.95rem; line-height: 1.7; }
.site-footer p { color: #c7d2db; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 0.55rem; }
.site-footer a { color: #d8e2ea; }
.site-footer a:hover { color: var(--accent); }
.site-footer .widget-text a {
    color: #8fd0e0;
    text-decoration-color: rgba(143,208,224,0.5);
}
.site-footer .widget-text a:hover { color: #b6e2ee; }

.site-copyright {
    margin-top: 2.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    font-family: var(--sans);
    font-size: 0.85rem;
    color: #90a1ad;
    text-align: center;
}

/* ==================================================================
   Комментарии
   ================================================================== */
.comments-area { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--card-bd); }
.comments-title { font-size: 1.5rem; margin: 0 0 1.5rem; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .children { list-style: none; margin: 1rem 0 0 1.6rem; padding: 0; }
.comment-item { margin-bottom: 1.5rem; }
.comment-body {
    background: var(--alt);
    border: 1px solid var(--card-bd);
    border-radius: 8px;
    padding: 1.2rem 1.4rem;
}
.comment-meta { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.comment-author { font-family: var(--sans); font-weight: 600; color: var(--ink); }
.comment-date { font-size: 0.8rem; color: var(--muted); }
.comment-content { font-size: 0.98rem; }
.comment-reply a {
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}
.comment-awaiting-moderation { color: var(--muted); font-size: 0.85rem; }

.comment-respond {
    margin-top: 2rem;
    background: var(--alt);
    border: 1px solid var(--card-bd);
    border-radius: 8px;
    padding: 1.6rem 1.7rem;
}
.comment-respond .comment-reply-title { margin-top: 0; }
.comment-form label { font-family: var(--sans); font-size: 0.88rem; display: block; margin-bottom: 0.3rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.6em 0.8em;
    border: 1px solid var(--accent-2);
    border-radius: 4px;
    font-family: var(--serif);
    font-size: 0.95rem;
    background: #fff;
    color: var(--ink);
    margin-bottom: 1rem;
}
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--accent); }
.comment-form .submit {
    border: 2px solid var(--accent);
    background: var(--accent);
    color: #fff;
    border-radius: 4px;
    padding: 0.6em 1.5em;
    font-family: var(--sans);
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s ease;
}
.comment-form .submit:hover { opacity: 0.9; }

/* ==================================================================
   404
   ================================================================== */
.error-404 { text-align: center; padding: 3rem 0; }
.error-404 .error-code {
    font-family: var(--sans);
    font-size: 6rem;
    color: var(--accent);
    line-height: 1;
    margin: 0;
}
.error-404 .search-form { margin: 1.6rem auto; }

/* ==================================================================
   Cookie-баннер
   ================================================================== */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 1rem; right: 1rem; bottom: 1rem;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    max-width: 960px;
    margin-inline: auto;
    background: #22323f;
    color: #dbe6ee;
    border: 1px solid rgba(74,144,164,0.4);
    border-radius: 10px;
    padding: 1.1rem 1.5rem;
    box-shadow: 0 10px 30px rgba(28,40,51,0.25);
}
.cookie-banner p { margin: 0; font-size: 0.9rem; min-width: 0; flex: 1; }
.cookie-banner a { color: #8fd0e0; }
.cookie-banner .cookie-accept {
    border: 2px solid var(--accent);
    background: var(--accent);
    color: #fff;
    border-radius: 4px;
    padding: 0.55em 1.4em;
    font-family: var(--sans);
    font-weight: 600;
    cursor: pointer;
    flex: 0 0 auto;
    transition: opacity .2s ease;
}
.cookie-banner .cookie-accept:hover { opacity: 0.9; }

/* ==================================================================
   Утилиты / служебное
   ================================================================== */
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
.page-title { font-size: 2.4rem; margin: 0.5rem 0 1.8rem; }

/* ==================================================================
   Адаптив
   ================================================================== */
@media (max-width: 960px) {
    h1 { font-size: 2.8rem; }
    .layout-with-sidebar { grid-template-columns: 1fr; gap: 32px; }
    .hero-text { max-width: 62%; }
    .split { grid-template-columns: 1fr; gap: 1.6rem; }
    .split--reverse .split-media { order: 0; }
    .mosaic { grid-auto-rows: 150px; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    body { font-size: 17px; }
    h1 { font-size: 2.2rem; }
    .section-title { font-size: 1.7rem; }
    .front-section { padding: 3rem 0; }

    .site-header { padding: 1rem 0; }
    .brand { flex: 1; }
    .nav-toggle { display: inline-block; }
    .main-nav {
        display: none;
        flex-basis: 100%;
        width: 100%;
        margin-top: 1rem;
    }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0.2rem; }
    .main-nav li { border-bottom: 1px solid var(--card-bd); }
    .main-nav a { display: block; padding: 0.7em 0; border-bottom: none; }

    .hero { min-height: 460px; }
    .hero-text { max-width: 100%; }
    .hero-title { font-size: 2.3rem; }
    .hero-overlay { background: linear-gradient(90deg, rgba(28,40,51,0.8), rgba(28,40,51,0.45)); }

    .stats-row { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(3)::before,
    .stat + .stat::before { display: none; }
    .stat { border-bottom: 1px dashed var(--accent-2); }
    .stat-num { font-size: 3rem; }

    .timeline { padding-left: 1.6rem; }
    .tl-step,
    .tl-step:nth-child(odd) { margin-left: 0.8rem; }
    .tl-step::before,
    .tl-step:nth-child(odd)::before { left: -2.6rem; width: 32px; height: 32px; background-size: 18px 18px; }

    .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; }
    .mosaic-item.big { grid-column: span 2; grid-row: span 1; }

    .footer-cols { grid-template-columns: 1fr; gap: 1.8rem; }

    .cta-band { padding: 2rem 1.4rem; }
    .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
}
