/*
Theme Name: dds_rollingoutdough.com
Author: Анна Соколова
Description: Образовательный блог-навигатор по профессиям в сфере здоровья, питания и велнеса. Спокойная премиум-велнес и edtech-эстетика: воздух, мягкие тона муки, шалфея и тёплой глины.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: rod
*/

/* ============================================================
   1. Переменные и базовая типографика
   ============================================================ */
:root {
    --bg:          #FEFCF5;
    --ink:         #1E2623;
    --ink-soft:    #4d5650;
    --sage:        #6B8C6A;
    --sage-dark:   #51714f;
    --clay:        #C57C58;
    --clay-dark:   #a8623f;
    --ginger:      #EFD09E;
    --coral:       #E2A28B;
    --line:        #e6e1d2;
    --card:        #ffffff;
    --footer-bg:   #2a322c;
    --footer-ink:  #e9ede6;
    --footer-soft: #aab3a6;
    --shadow:      0 10px 30px rgba(30, 38, 35, 0.08);
    --shadow-soft: 0 4px 14px rgba(30, 38, 35, 0.06);
    --radius:      16px;
    --font-head:   'Manrope', 'Trebuchet MS', sans-serif;
    --font-body:   'Source Serif 4', Georgia, 'Times New Roman', serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.72;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.22;
    font-weight: 700;
    margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 4vw, 2.85rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.05rem); letter-spacing: -0.015em; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; }

a { color: var(--sage-dark); text-decoration: none; }
a:hover { color: var(--clay-dark); text-decoration: underline; }

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

ul, ol { padding-left: 1.3em; }

blockquote {
    margin: 1.6em 0;
    padding: 1.1em 1.4em;
    background: var(--ginger);
    border-radius: var(--radius);
    border-left: 4px solid var(--clay);
    font-style: italic;
}
blockquote p:last-child { margin-bottom: 0; }

code, pre {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    background: #f2efe2;
    border-radius: 6px;
}
code { padding: 0.1em 0.4em; font-size: 0.9em; }
pre { padding: 1em 1.2em; overflow-x: auto; border-radius: 12px; }
pre code { background: none; padding: 0; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    border: 1px solid var(--line);
}
th, td {
    border: 1px solid var(--line);
    padding: 0.7em 0.9em;
    text-align: left;
}
th { background: #f4f1e4; font-family: var(--font-head); font-weight: 600; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--ink);
    color: #fff;
    padding: 10px 18px;
    z-index: 999;
    border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ============================================================
   2. Контейнеры ширины (см. A12 — ширина в одном месте)
   ============================================================ */
.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}

/* ============================================================
   3. Кнопки
   ============================================================ */
.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border-radius: var(--radius);
    padding: 0.95em 1.8em;
    border: 2px solid transparent;
    transition: box-shadow .2s ease, background-color .2s ease, transform .05s ease;
    text-align: center;
}
.btn:hover { text-decoration: none; }

.btn-primary {
    background: var(--clay);
    color: #fff;
    box-shadow: var(--shadow-soft);
}
.btn-primary:hover { color: #fff; box-shadow: 0 12px 26px rgba(165, 98, 63, 0.32); }
.btn-primary:active { box-shadow: none; transform: translateY(1px); }

.btn-secondary {
    background: transparent;
    color: var(--sage-dark);
    border-color: var(--sage);
}
.btn-secondary:hover {
    color: var(--sage-dark);
    background: rgba(107, 140, 106, 0.1);
}

/* ============================================================
   4. Шапка
   ============================================================ */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
}
.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.site-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}
.brand-logo-link { display: block; flex: 0 0 auto; line-height: 0; }
.brand-logo { display: block; width: 56px; height: 56px; border-radius: 14px; }
.site-identity { min-width: 0; max-width: 460px; }
.site-title {
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.4;
    color: var(--ink);
}
.site-description {
    display: block;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--ink-soft);
    margin-top: 4px;
}

/* Навигация */
.main-nav { display: flex; align-items: center; }
.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.nav-menu li { margin: 0; }
.nav-menu a {
    display: block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--ink);
    padding: 0.5em 0.9em;
    border-radius: 10px;
}
.nav-menu a:hover {
    color: var(--sage-dark);
    background: rgba(107, 140, 106, 0.1);
    text-decoration: none;
}
.nav-menu .current-menu-item > a {
    color: #fff;
    background: var(--sage);
}

.nav-toggle {
    display: none;
    width: 46px; height: 46px;
    border: 1px solid var(--line);
    background: var(--card);
    border-radius: 12px;
    cursor: pointer;
    position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
    content: "";
    position: absolute;
    left: 12px;
    width: 22px; height: 2px;
    background: var(--ink);
}
.nav-toggle-bar { top: 22px; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }

/* ============================================================
   5. Раскладки страниц
   ============================================================ */
.site-main { padding: 40px 0 60px; }

.layout-single {
    width: min(85%, 1040px);
    margin-inline: auto;
}
.layout-with-sidebar {
    width: min(92%, 1180px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 44px;
    align-items: start;
}
.content-area { min-width: 0; }

@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

/* Хлебные крошки */
.breadcrumbs {
    width: min(92%, 1180px);
    margin: 0 auto 26px;
    font-family: var(--font-head);
    font-size: 0.88rem;
    color: var(--ink-soft);
}
.breadcrumbs a { color: var(--sage-dark); }
.breadcrumbs .sep { color: var(--clay); margin: 0 2px; }

/* ============================================================
   6. Карточки записей (см. A8, A10)
   ============================================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 30px;
}

.card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.card-thumb { display: block; }
.card-thumb .card-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.card-thumb-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--ginger), var(--coral));
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 22px 24px 24px;
    min-width: 0;
}
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-family: var(--font-head);
    font-size: 0.78rem;
    color: var(--ink-soft);
    margin-bottom: 8px;
}
.card-cat {
    background: rgba(107, 140, 106, 0.14);
    color: var(--sage-dark);
    padding: 2px 10px;
    border-radius: 40px;
    font-weight: 600;
}
.card-title { font-size: 1.22rem; margin-bottom: 8px; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--clay-dark); text-decoration: none; }

.card-excerpt { flex: 1; font-size: 0.96rem; color: var(--ink-soft); }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

.card-more {
    margin-top: 14px;
    align-self: flex-start;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--clay-dark);
    border-bottom: 2px dotted var(--clay);
    padding-bottom: 2px;
}
.card-more:hover { text-decoration: none; color: var(--sage-dark); border-color: var(--sage); }

/* ============================================================
   7. Запись и страница (контент)
   ============================================================ */
.entry {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 38px clamp(20px, 4vw, 48px);
    box-shadow: var(--shadow-soft);
}
.entry-header { margin-bottom: 22px; }
.entry-meta {
    font-family: var(--font-head);
    font-size: 0.85rem;
    color: var(--ink-soft);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 10px;
}
.entry-thumb {
    margin: 0 0 26px;
    border-radius: var(--radius);
    overflow: hidden;
}
.entry-thumb img { display: block; width: 100%; height: auto; }
.entry-content { min-width: 0; }
.entry-content img { border-radius: 12px; }
.entry-content h2 { margin-top: 1.4em; }
.entry-content > *:last-child { margin-bottom: 0; }

.entry-footer {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-family: var(--font-head);
    font-size: 0.88rem;
}
.entry-footer a {
    display: inline-block;
    background: rgba(239, 208, 158, 0.5);
    color: var(--ink);
    padding: 3px 12px;
    border-radius: 40px;
    margin: 3px 4px 3px 0;
}

.page-intro { margin-bottom: 30px; }
.page-intro h1 { margin-bottom: 6px; }

/* ============================================================
   8. Сайдбар и виджеты
   ============================================================ */
.sidebar { min-width: 0; }

.widget {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 24px 26px;
    margin-bottom: 26px;
    color: var(--ink);
}
.widget:last-child { margin-bottom: 0; }
.widget-title {
    font-size: 1.05rem;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ginger);
    color: var(--ink);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: none; }
.widget a { color: var(--sage-dark); }
.widget a:hover { color: var(--clay-dark); }
.widget .post-date { display: block; font-family: var(--font-head); font-size: 0.78rem; color: var(--ink-soft); }

/* ============================================================
   9. Подвал
   ============================================================ */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-ink);
    margin-top: 50px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
    padding: 52px 0 44px;
}
.footer-col { min-width: 0; }

/* Виджеты в подвале — светлый текст на тёмном фоне */
.footer-col .widget {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    color: var(--footer-ink);
}
.footer-col .widget-title {
    color: #fff;
    border-bottom-color: rgba(239, 208, 158, 0.45);
}
.footer-col .widget,
.footer-col .widget p { color: var(--footer-ink); }
.footer-col .widget li { border-bottom-color: rgba(255, 255, 255, 0.12); }
.footer-col .widget a { color: var(--ginger); }
.footer-col .widget a:hover { color: #fff; }
.footer-col .widget .post-date { color: var(--footer-soft); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 0;
}
.copyright {
    margin: 0;
    font-family: var(--font-head);
    font-size: 0.84rem;
    color: var(--footer-soft);
}

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

/* ============================================================
   10. Пагинация
   ============================================================ */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
    justify-content: center;
}
.pagination .page-numbers {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.55em 0.95em;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card);
    color: var(--ink);
}
.pagination a.page-numbers:hover {
    background: rgba(107, 140, 106, 0.12);
    text-decoration: none;
    color: var(--sage-dark);
}
.pagination .page-numbers.current {
    background: var(--sage);
    border-color: var(--sage);
    color: #fff;
}
.pagination .page-numbers.dots { border: none; background: none; }

/* ============================================================
   11. Комментарии
   ============================================================ */
.comments-area {
    margin-top: 36px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px clamp(20px, 4vw, 44px);
}
.comments-title { font-size: 1.4rem; }
.comment-list { list-style: none; margin: 0 0 28px; padding: 0; }
.comment-list ol.children { list-style: none; margin: 14px 0 0; padding-left: clamp(16px, 4vw, 40px); }
.comment-item { margin-bottom: 18px; }
.comment-body {
    background: #faf8ef;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px 20px;
}
.comment-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.comment-avatar { border-radius: 50%; display: block; }
.comment-author { font-family: var(--font-head); font-weight: 700; display: block; }
.comment-date { font-family: var(--font-head); font-size: 0.8rem; color: var(--ink-soft); }
.comment-text { font-size: 0.97rem; }
.comment-text p:last-child { margin-bottom: 0; }
.comment-awaiting { font-size: 0.85rem; color: var(--clay-dark); }
.comment-actions { font-family: var(--font-head); font-size: 0.86rem; }
.comment-actions a { font-weight: 600; }
.comments-closed { font-family: var(--font-head); color: var(--ink-soft); }

.comment-respond {
    background: #faf8ef;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
}
.comment-reply-title { font-size: 1.2rem; }
.comment-form label {
    display: block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.7em 0.9em;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    margin-bottom: 14px;
}
.comment-form textarea:focus,
.comment-form input:focus,
.search-field:focus {
    outline: 2px solid var(--sage);
    outline-offset: 1px;
}

/* ============================================================
   12. Форма поиска
   ============================================================ */
.search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.search-field {
    flex: 1;
    min-width: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.7em 1em;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}
.widget .search-form { margin-top: 4px; }

/* ============================================================
   13. Главная страница
   ============================================================ */
.front-page {
    width: min(85%, 1180px);
    margin-inline: auto;
    padding: 8px 0 10px;
}
.fp-section {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: clamp(26px, 4.5vw, 54px);
    margin-bottom: 36px;
    box-shadow: var(--shadow-soft);
}
.fp-eyebrow {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--clay-dark);
    background: rgba(239, 208, 158, 0.55);
    padding: 5px 14px;
    border-radius: 40px;
    margin-bottom: 16px;
}
.fp-lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 60ch; }

/* --- Карьерный следопыт (слайдер) --- */
.fp-hero { background: linear-gradient(160deg, #ffffff 0%, #f6f3e6 100%); }
.pathfinder { margin-top: 26px; }
.pathfinder-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x proximity;
}
.pathfinder-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 132px;
    padding: 18px 12px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.86rem;
    color: var(--ink);
    text-align: center;
    transition: border-color .15s ease, background .15s ease, transform .05s ease;
}
.pathfinder-item:hover { border-color: var(--sage); }
.pathfinder-item:active { transform: translateY(1px); }
.pathfinder-item.is-active {
    background: var(--sage);
    border-color: var(--sage);
    color: #fff;
}
.pathfinder-item .pf-icon {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(107, 140, 106, 0.14);
    border-radius: 50%;
}
.pathfinder-item.is-active .pf-icon { background: rgba(255, 255, 255, 0.2); }
.pathfinder-item .pf-icon svg { width: 22px; height: 22px; }

.pathfinder-panel[hidden] { display: none !important; }
.pathfinder-panel {
    margin-top: 18px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-left: 4px solid var(--clay);
    border-radius: var(--radius);
    padding: 22px 26px;
}
.pathfinder-panel h3 { margin-bottom: 10px; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
    position: relative;
    padding: 6px 0 6px 30px;
    font-size: 0.97rem;
}
.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0; top: 6px;
    width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    background: var(--sage);
    color: #fff;
    border-radius: 50%;
    font-size: 0.7rem;
    font-family: var(--font-head);
}

/* --- Дорожки обучения --- */
.tracks { margin-top: 26px; display: flex; flex-direction: column; gap: 18px; }
.track { min-width: 0; }
.track-head {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-family: var(--font-head);
    font-size: 0.92rem;
    margin-bottom: 7px;
}
.track-name { font-weight: 700; }
.track-value { color: var(--ink-soft); }
.track-rail {
    height: 18px;
    background: #f1eddd;
    border-radius: 40px;
    overflow: hidden;
}
.track-fill {
    height: 100%;
    border-radius: 40px;
    background: linear-gradient(90deg, var(--ginger), var(--clay));
}

/* --- Профессии «тесто для пиццы» --- */
.profession-grid {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 22px;
}
.profession-card {
    min-width: 0;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.profession-head {
    cursor: pointer;
    padding: 22px 24px;
    list-style: none;
}
.profession-head h3 { margin-bottom: 4px; }
.profession-head p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
.profession-roll {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s ease;
}
.profession-card:hover .profession-roll,
.profession-card.is-rolled .profession-roll {
    grid-template-rows: 1fr;
}
.profession-roll-inner {
    overflow: hidden;
    min-height: 0;
}
.profession-roll-pad {
    padding: 0 24px 22px;
    border-top: 1px dashed var(--line);
}
.profession-skills {
    list-style: none;
    margin: 14px 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.profession-skills li {
    background: rgba(107, 140, 106, 0.14);
    color: var(--sage-dark);
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 40px;
}
.profession-quote {
    font-style: italic;
    font-size: 0.94rem;
    color: var(--ink-soft);
    margin: 0;
}

/* --- Профиль специалиста --- */
.expert {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
    gap: 34px;
    align-items: center;
    margin-top: 8px;
}
.expert-illustration {
    min-width: 0;
    background: linear-gradient(150deg, var(--ginger), var(--coral));
    border-radius: 22px;
    padding: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.expert-illustration svg { width: 100%; height: auto; max-width: 240px; }
.expert-summary { min-width: 0; }
.expert-audio {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--sage-dark);
    background: rgba(107, 140, 106, 0.12);
    padding: 8px 16px;
    border-radius: 40px;
    margin-top: 8px;
}
.expert-audio .mic {
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    background: var(--sage);
    border-radius: 50%;
}
.expert-audio .mic svg { width: 16px; height: 16px; }

@media (max-width: 760px) {
    .expert { grid-template-columns: minmax(0, 1fr); }
}

/* Шаги «карта смыслов» */
.steps {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 20px;
}
.step {
    min-width: 0;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}
.step-num {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    background: var(--sage);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 800;
    border-radius: 12px;
    margin-bottom: 12px;
}
.step h3 { font-size: 1.12rem; }
.step p { margin: 0; font-size: 0.93rem; color: var(--ink-soft); }

.fp-recent-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.fp-recent { background: transparent; border: none; box-shadow: none; padding: 0; }
.fp-cta { margin-top: 26px; }

/* ============================================================
   14. Cookie-баннер (см. A11, D6)
   ============================================================ */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 200;
    background: var(--footer-bg);
    color: var(--footer-ink);
    border-top: 3px solid var(--clay);
    padding: 16px 0;
    box-shadow: 0 -8px 24px rgba(30, 38, 35, 0.18);
}
.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.cookie-text { margin: 0; font-size: 0.92rem; min-width: 0; flex: 1; }
.cookie-accept { flex: 0 0 auto; }

/* ============================================================
   15. Режим «только факты»
   ============================================================ */
.facts-toggle {
    position: fixed;
    right: 18px; bottom: 86px;
    z-index: 150;
    width: 50px; height: 50px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
    cursor: pointer;
    box-shadow: var(--shadow);
    font-size: 1.3rem;
    line-height: 1;
}
.facts-toggle[aria-pressed="true"] {
    background: var(--sage);
    color: #fff;
    border-color: var(--sage);
}
body.facts-only .decorative { display: none !important; }

/* ============================================================
   16. 404
   ============================================================ */
.error-404 {
    text-align: center;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(30px, 6vw, 64px);
}
.error-404 .big-404 {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(4rem, 12vw, 8rem);
    color: var(--ginger);
    line-height: 1;
    margin: 0;
}
.error-404 .search-form { max-width: 440px; margin: 24px auto 0; }
.error-404 .btn { margin-top: 18px; }

/* ============================================================
   17. Адаптив
   ============================================================ */
@media (max-width: 960px) {
    .expert { gap: 26px; }
}

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

    .nav-toggle { display: block; }
    .main-nav { position: relative; }
    .nav-menu {
        display: none;
        position: absolute;
        right: 0;
        top: 56px;
        flex-direction: column;
        gap: 2px;
        background: var(--card);
        border: 1px solid var(--line);
        border-radius: 14px;
        padding: 10px;
        min-width: 220px;
        box-shadow: var(--shadow);
        z-index: 100;
    }
    .nav-menu.is-open { display: flex; }
    .site-header-inner { flex-wrap: nowrap; }

    .pathfinder-item { width: 116px; }
}
