/*
Theme Name: reencaminarte.com
Author: Устинов Георгий
Description: Тема для информационного сайта о развитии бизнеса, лидерстве и личной эффективности. Тёплая, осознанная эстетика с терракотовыми акцентами на пергаментном фоне.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: reenc
*/

/* ============================================
   ОСНОВА: переменные и сброс
   ============================================ */

:root {
    --bg: #F9F6F0;
    --bg-soft: #F4E9E0;
    --ink: #1E1E1E;
    --ink-muted: #4a4a4a;
    --accent: #C25D3A;
    --accent-deep: #A24422;
    --accent-soft: rgba(194, 93, 58, 0.1);
    --secondary: #2B4A5F;
    --line: #e2dccf;
    --line-soft: #ece6d7;
    --shadow-soft: 0 1px 3px rgba(30, 30, 30, 0.06);
    --shadow-lift: 0 4px 16px rgba(30, 30, 30, 0.08);
    --radius-card: 14px;
    --radius-pill: 40px;
    --radius-secondary: 12px;
    --gutter: 28px;
    --field-pad: 80px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    color: var(--accent-deep);
}

p {
    margin: 0 0 1em;
}

/* ============================================
   ТИПОГРАФИКА: заголовки с акцентной полосой
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: var(--ink);
    line-height: 1.25;
    margin: 1.6em 0 0.6em;
    font-weight: 600;
    letter-spacing: -0.01em;
}

h1 { font-size: 2.4em; }
h2 { font-size: 1.85em; }
h3 { font-size: 1.4em; }
h4 { font-size: 1.18em; }
h5 { font-size: 1.05em; }
h6 { font-size: 0.95em; text-transform: uppercase; letter-spacing: 0.06em; }

h2, h3 {
    position: relative;
    padding-left: 18px;
}

h2::before,
h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.18em;
    bottom: 0.18em;
    width: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* ============================================
   КАРКАС
   ============================================ */

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-main {
    flex: 1;
    padding: 48px 0 80px;
}

.shell {
    width: 85%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.shell-narrow {
    max-width: 760px;
}

.layout {
    display: flex;
    gap: 6%;
    align-items: flex-start;
}

.layout-content {
    flex: 1 1 67%;
    min-width: 0;
}

.layout-sidebar {
    flex: 0 0 27%;
}

.layout-full .layout-content {
    flex: 1 1 100%;
}

@media (max-width: 960px) {
    .shell {
        width: 92%;
        padding: 0 18px;
    }
    .layout {
        flex-direction: column;
        gap: 48px;
    }
    .layout-content,
    .layout-sidebar {
        flex: 1 1 100%;
        width: 100%;
    }
}

/* ============================================
   ШАПКА
   ============================================ */

.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 22px 0;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
}

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

.brand-mark {
    fill: var(--accent);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.05em;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.25;
    margin: 0;
}

.brand-tagline {
    font-size: 0.82em;
    color: var(--ink-muted);
    line-height: 1.35;
    margin: 2px 0 0;
    max-width: 380px;
}

.primary-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
}

.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.primary-nav a {
    color: var(--ink);
    font-size: 0.98em;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: border-color .2s ease, color .2s ease;
}

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

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 14px;
    color: var(--ink);
    font-size: 0.95em;
    cursor: pointer;
}

@media (max-width: 768px) {
    .header-inner {
        gap: 16px;
    }
    .menu-toggle {
        display: inline-block;
    }
    .primary-nav {
        flex: 1 1 100%;
        order: 3;
    }
    .primary-nav[hidden] {
        display: none !important;
    }
    .primary-nav ul {
        flex-direction: column;
        gap: 0;
        border-top: 1px solid var(--line);
        padding-top: 12px;
    }
    .primary-nav li {
        border-bottom: 1px solid var(--line-soft);
    }
    .primary-nav a {
        display: block;
        padding: 12px 4px;
        border-bottom: none;
    }
    .brand-tagline {
        display: none;
    }
}

/* ============================================
   КНОПКИ
   ============================================ */

.btn {
    display: inline-block;
    font-family: inherit;
    font-size: 1em;
    line-height: 1.2;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}

.btn:hover {
    background: var(--accent-deep);
    color: #fff;
    transform: translateY(2px);
    box-shadow: 0 6px 16px rgba(162, 68, 34, 0.18);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
    padding: 11px 24px;
    border-radius: var(--radius-secondary);
    transition: background .2s ease, box-shadow .2s ease, color .15s ease;
}

.btn-secondary:hover {
    background: var(--accent-soft);
    color: var(--accent-deep);
    box-shadow: 0 2px 8px rgba(194, 93, 58, 0.1);
    transform: none;
}

.btn-link {
    color: var(--accent);
    background: none;
    border: none;
    padding: 0;
    position: relative;
    display: inline-block;
}

.btn-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width .25s ease, left .25s ease;
}

.btn-link:hover::after {
    left: 0;
    width: 100%;
}

/* ============================================
   ГЛАВНАЯ — ТЕМАТИЧЕСКИЕ БЛОКИ
   ============================================ */

.front-block {
    margin: 0 0 76px;
}

.front-block-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78em;
    color: var(--secondary);
    margin: 0 0 14px;
}

.front-block-lead {
    font-size: 1.15em;
    color: var(--ink-muted);
    max-width: 720px;
    margin: 0 0 28px;
}

/* Траектория роста — горизонтальная шкала */
.trajectory {
    background: var(--bg-soft);
    border-radius: var(--radius-card);
    padding: 40px 36px;
}

.trajectory-stages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 24px;
    position: relative;
}

.trajectory-stages::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 6%;
    right: 6%;
    height: 2px;
    background: linear-gradient(to right, var(--accent), var(--secondary));
    border-radius: 2px;
    opacity: 0.45;
}

.trajectory-stage {
    text-align: center;
    padding: 0 14px;
    position: relative;
    z-index: 1;
}

.trajectory-stage-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    box-shadow: 0 0 0 6px var(--bg-soft);
}

.trajectory-stage-title {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 8px;
    padding-left: 0;
}

.trajectory-stage-title::before {
    display: none;
}

.trajectory-stage-text {
    font-size: 0.95em;
    color: var(--ink-muted);
    margin: 0;
}

/* Манифест-блок */
.manifest-block {
    background: var(--bg-soft);
    padding: 56px 48px;
    border-radius: var(--radius-card);
    border-left: 4px solid var(--secondary);
}

.manifest-block blockquote {
    font-size: 1.4em;
    font-style: italic;
    color: var(--secondary);
    margin: 0 0 16px;
    line-height: 1.5;
    border: none;
    padding: 0;
}

.manifest-block cite {
    color: var(--ink-muted);
    font-style: normal;
    font-size: 0.92em;
}

/* Колонки преимуществ */
.values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.value-card {
    padding: 4px 0 0;
}

.value-card-label {
    color: var(--accent);
    font-size: 2em;
    font-weight: 600;
    line-height: 1;
    margin: 0 0 12px;
    font-family: 'Georgia', serif;
}

.value-card-title {
    margin: 0 0 8px;
    font-size: 1.15em;
    padding-left: 0;
}

.value-card-title::before {
    display: none;
}

.value-card-text {
    color: var(--ink-muted);
    font-size: 0.96em;
    margin: 0;
}

@media (max-width: 768px) {
    .values { grid-template-columns: 1fr; gap: 22px; }
    .trajectory-stages { grid-template-columns: 1fr; gap: 32px; }
    .trajectory-stages::before { display: none; }
    .trajectory { padding: 28px 22px; }
    .manifest-block { padding: 36px 24px; }
    .manifest-block blockquote { font-size: 1.18em; }
}

/* ============================================
   КАРТОЧКИ ЗАПИСЕЙ — критично, см. A8, A10
   ============================================ */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 28px;
    margin: 32px 0;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin: 32px 0;
}

.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid transparent;
    transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}

.card:hover {
    box-shadow: none;
    border-color: var(--line);
    transform: translateY(-1px);
}

.card-row {
    flex-direction: row;
}

.card-thumb-wrap {
    background: var(--bg-soft);
    overflow: hidden;
    position: relative;
}

.card-thumb-wrap img {
    display: block;
}

/* Вертикальная (сетка) — aspect-ratio на img */
.card:not(.card-row) .card-thumb-wrap img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.card:not(.card-row) .card-thumb-wrap a {
    display: block;
}

/* Горизонтальная — абсолютное позиционирование <a>, см. A10 */
.card-row .card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
}

.card-row .card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.card-row .card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-body {
    flex: 1;
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
}

.card-meta {
    font-size: 0.82em;
    color: var(--ink-muted);
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.card-meta a {
    color: var(--secondary);
}

.card-title {
    font-size: 1.22em;
    margin: 0 0 12px;
    line-height: 1.3;
    padding-left: 0;
}

.card-title::before {
    display: none;
}

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

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

.card-excerpt {
    color: var(--ink-muted);
    font-size: 0.95em;
    margin: 0 0 16px;
}

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

.card-footer {
    margin-top: auto;
    padding-top: 4px;
}

@media (max-width: 600px) {
    .card-row {
        flex-direction: column;
    }
    .card-row .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }
    .card-row .card-thumb-wrap a {
        position: static;
    }
    .card-row .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

/* ============================================
   ГЕРОЙ-БЛОК ГЛАВНОЙ
   ============================================ */

.hero {
    padding: 36px 0 56px;
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: 64px;
}

.hero h1 {
    font-size: 2.8em;
    margin: 0 0 18px;
    max-width: 18em;
    line-height: 1.15;
    padding-left: 0;
}

.hero h1::before { display: none; }

.hero-subtitle {
    font-size: 1.18em;
    color: var(--ink-muted);
    max-width: 38em;
    margin: 0 0 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .hero h1 { font-size: 2em; }
    .hero { padding: 16px 0 36px; margin-bottom: 40px; }
}

/* ============================================
   ХЛЕБНЫЕ КРОШКИ
   ============================================ */

.breadcrumbs {
    font-size: 0.88em;
    color: var(--ink-muted);
    margin: 0 0 28px;
}

.breadcrumbs a {
    color: var(--secondary);
}

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

.breadcrumbs-sep {
    margin: 0 8px;
    color: var(--line);
}

.breadcrumbs-current {
    color: var(--ink);
}

/* ============================================
   КОНТЕНТ ЗАПИСИ И СТРАНИЦЫ
   ============================================ */

.entry {
    margin-bottom: 56px;
}

.entry-header {
    margin-bottom: 32px;
}

.entry-meta {
    font-size: 0.88em;
    color: var(--ink-muted);
    margin: 8px 0 0;
}

.entry-title {
    font-size: 2.2em;
    margin: 0;
    line-height: 1.2;
    padding-left: 0;
}

.entry-title::before { display: none; }

.entry-thumb {
    margin: 0 0 28px;
    border-radius: var(--radius-card);
    overflow: hidden;
}

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

.entry-content {
    font-size: 1.05em;
}

.entry-content p {
    margin: 0 0 1.2em;
}

.entry-content blockquote {
    border-left: 3px solid var(--secondary);
    padding: 4px 0 4px 22px;
    margin: 28px 0;
    color: var(--secondary);
    font-style: italic;
}

.entry-content ul,
.entry-content ol {
    padding-left: 22px;
    margin: 0 0 1.2em;
}

.entry-content li {
    margin: 0 0 0.4em;
}

.entry-content img {
    border-radius: 8px;
    height: auto;
}

.entry-content figure {
    margin: 28px 0;
}

.entry-content figcaption {
    font-size: 0.88em;
    color: var(--ink-muted);
    text-align: center;
    margin-top: 8px;
}

.entry-tags {
    margin: 32px 0 0;
    font-size: 0.92em;
    color: var(--ink-muted);
}

.entry-tags a {
    margin-right: 8px;
}

/* Таблицы */
.entry-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 24px 0;
}

.entry-content table,
.entry-content th,
.entry-content td {
    border: 1px solid var(--line);
}

.entry-content th,
.entry-content td {
    padding: 10px 14px;
    text-align: left;
}

.entry-content th {
    background: var(--bg-soft);
    font-weight: 600;
}

/* Код */
.entry-content code {
    background: var(--bg-soft);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Menlo', 'Monaco', monospace;
    font-size: 0.92em;
}

.entry-content pre {
    background: var(--bg-soft);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
}

.entry-content pre code {
    background: none;
    padding: 0;
}

/* ============================================
   САЙДБАР И ВИДЖЕТЫ
   ============================================ */

.sidebar {
    font-size: 0.96em;
}

.widget {
    margin: 0 0 36px;
}

.widget-title,
.widget h2 {
    font-size: 0.88em;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--secondary);
    margin: 0 0 14px;
    padding-left: 0;
}

.widget-title::before,
.widget h2::before {
    display: none;
}

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

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid var(--line-soft);
}

.widget li:last-child {
    border-bottom: none;
}

.widget li a {
    color: var(--ink);
}

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

/* Дневник фокуса в сайдбаре */
.focus-diary {
    background: var(--bg-soft);
    padding: 22px 24px;
    border-radius: var(--radius-card);
    position: relative;
    transform: rotate(-0.4deg);
    box-shadow: 0 1px 6px rgba(30, 30, 30, 0.05);
}

.focus-diary-label {
    font-size: 0.74em;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin: 0 0 10px;
}

.focus-diary-text {
    font-style: italic;
    color: var(--ink);
    font-size: 1.02em;
    line-height: 1.55;
    margin: 0;
}

.focus-diary-author {
    margin: 14px 0 0;
    font-size: 0.86em;
    color: var(--ink-muted);
}

/* Поиск */
.search-form {
    display: flex;
    gap: 8px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    font-size: 0.95em;
    color: var(--ink);
}

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

.search-form button {
    padding: 10px 20px;
    background: var(--secondary);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95em;
}

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

/* ============================================
   ПАГИНАЦИЯ
   ============================================ */

.pagination {
    margin: 48px 0 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    text-decoration: none;
    font-size: 0.95em;
    transition: all .2s ease;
}

.pagination .page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
}

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

.pagination .page-numbers.dots {
    border: none;
    background: none;
}

/* ============================================
   КОММЕНТАРИИ
   ============================================ */

.comments-section {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.comments-title {
    font-size: 1.4em;
    margin: 0 0 24px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}

.comment-list .children {
    list-style: none;
    padding-left: 32px;
    margin: 16px 0 0;
}

.comment-body {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: 18px 22px;
    margin: 0 0 16px;
}

.comment-author {
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 4px;
}

.comment-meta {
    font-size: 0.85em;
    color: var(--ink-muted);
    margin: 0 0 12px;
}

.comment-meta a {
    color: var(--ink-muted);
}

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

.comment-reply-link {
    font-size: 0.88em;
}

.comment-form {
    background: var(--bg-soft);
    padding: 28px;
    border-radius: var(--radius-card);
    margin-top: 24px;
}

.comment-form label {
    display: block;
    font-size: 0.92em;
    margin: 0 0 6px;
    color: var(--ink-muted);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    font-size: 1em;
    color: var(--ink);
    margin: 0 0 16px;
}

.comment-form textarea {
    min-height: 140px;
    resize: vertical;
}

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

.comment-form .form-submit input {
    background: var(--accent);
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-family: inherit;
    font-size: 1em;
    transition: background .2s ease;
}

.comment-form .form-submit input:hover {
    background: var(--accent-deep);
}

.comment-notes,
.logged-in-as {
    font-size: 0.88em;
    color: var(--ink-muted);
    margin: 0 0 16px;
}

/* ============================================
   ФУТЕР
   ============================================ */

.site-footer {
    background: #1a1a1a;
    color: #d4ccbb;
    padding: 56px 0 28px;
    margin-top: 80px;
}

.site-footer .shell {
    width: 85%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 44px;
    margin-bottom: 40px;
}

.footer-col h2,
.footer-col .widget-title {
    color: #fff;
    font-size: 0.84em;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin: 0 0 16px;
    padding-left: 0;
}

.footer-col h2::before,
.footer-col .widget-title::before {
    display: none;
}

.footer-col a {
    color: #d4ccbb;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-col .widget {
    margin: 0;
}

.footer-col li {
    border-color: rgba(255, 255, 255, 0.06);
    padding: 7px 0;
}

.footer-col li a {
    color: #d4ccbb;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85em;
    color: #998d77;
}

.footer-print {
    display: inline-block;
    font-family: 'Georgia', serif;
    font-style: italic;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin: 0 0 8px;
    font-size: 1.1em;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================
   404
   ============================================ */

.error-404 {
    text-align: center;
    padding: 60px 0;
}

.error-404 .error-code {
    font-size: 6em;
    color: var(--accent);
    margin: 0;
    line-height: 1;
    font-weight: 700;
    padding-left: 0;
}

.error-404 .error-code::before { display: none; }

.error-404 .error-title {
    font-size: 1.6em;
    margin: 16px 0 12px;
    padding-left: 0;
}

.error-404 .error-title::before { display: none; }

.error-404 p {
    color: var(--ink-muted);
    max-width: 480px;
    margin: 0 auto 24px;
}

.error-404 .search-form {
    max-width: 420px;
    margin: 0 auto 20px;
}

/* ============================================
   COOKIE-БАННЕР — A11
   ============================================ */

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

.cookie-banner {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 18px;
    background: #1a1a1a;
    color: #f3eee2;
    padding: 18px 22px;
    border-radius: var(--radius-card);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    max-width: 880px;
    margin: 0 auto;
    font-size: 0.92em;
}

.cookie-banner-text {
    flex: 1 1 240px;
    margin: 0;
    line-height: 1.5;
}

.cookie-banner-text a {
    color: var(--accent);
}

.cookie-banner-accept {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    padding: 10px 26px;
    font-family: inherit;
    font-size: 0.95em;
    cursor: pointer;
    transition: background .2s ease;
}

.cookie-banner-accept:hover {
    background: var(--accent-deep);
}

@media (max-width: 480px) {
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }
    .cookie-banner-accept {
        width: 100%;
    }
}

/* ============================================
   УТИЛИТЫ И ВСПОМОГАТЕЛЬНЫЕ
   ============================================ */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
}

.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { margin-left: -10%; margin-right: -10%; max-width: 120%; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }

.section-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 24px;
    flex-wrap: wrap;
}

.section-title-row h2 {
    margin: 0;
}

/* Минималистичная форма подписки */
.subscribe-form {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--line);
    padding: 0 0 8px;
    margin: 24px 0 0;
}

.subscribe-form input[type="email"] {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 4px;
    font-family: inherit;
    font-size: 1em;
    color: var(--ink);
}

.subscribe-form input[type="email"]:focus {
    outline: none;
}

.subscribe-form button {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    padding: 8px;
    font-size: 1.4em;
    line-height: 1;
}

.subscribe-form button:hover {
    color: var(--accent-deep);
    transform: translateX(2px);
    transition: transform .15s ease, color .15s ease;
}
