/*
 * ЯЖИЗНЬ — премиум-слой поверх базовых стилей страниц.
 * Подключается после инлайн-<style>, поэтому переопределяет токены и
 * ключевые компоненты без правки каждой страницы.
 */

/* ---------- Дисплейный шрифт: Literata 600 (заголовки) ---------- */

@font-face {
    font-family: "Literata";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("Literata-600-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Literata";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("Literata-600-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2212;
}

/* ---------- Токены ---------- */

:root {
    --paper: #faf8f3;
    --ink: #152420;
    --accent: #0b5f52;
    --accent-dark: #07463d;
    --line: rgba(21, 36, 32, 0.12);
    --shadow: 0 1px 2px rgba(15, 32, 27, 0.05), 0 18px 48px rgba(15, 32, 27, 0.10);
    --radius: 12px;
    --bronze: #a6824c;
    --mist: #edf3ee;
    --serif: "Literata", Georgia, "Times New Roman", serif;
}

/* ---------- Типографика ---------- */

.hero h1,
.section-title,
.method-hero h1,
.cta h2,
.quiz-result h3,
.hero-service h2,
.doctor-name,
.modal__header h2,
.focus-panel__lead h2,
.therapy-highlight__intro h3 {
    font-family: var(--serif);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.section-title {
    line-height: 1.12;
}

/* Крупные цифры — серифные, как в отчёте врача */
.hero-proof__item strong,
.hero-proof div strong,
.stat strong,
.hero-panel__price strong,
.price-row > strong,
.price-new,
.price-old,
.hero-service__price,
.doctor-stats strong,
.doctor-card__badge strong,
.doctor-feature__meta strong {
    font-family: var(--serif);
    font-weight: 600;
    font-variant-numeric: lining-nums;
}

/* ---------- Кикеры: латунная линия ---------- */

.section-kicker,
.kicker,
.eyebrow {
    color: var(--bronze);
    letter-spacing: 0.16em;
}

.section-kicker::before,
.kicker::before,
.eyebrow::before {
    content: "";
    display: inline-block;
    width: 26px;
    height: 1px;
    margin-right: 10px;
    background: var(--bronze);
    vertical-align: 4px;
}

/* На тёмных подложках инлайновый color побеждает premium.css — это ожидаемо. */

/* ---------- Кнопки: спокойные пилюли без бликов ---------- */

.btn {
    border-radius: 999px;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
    background: var(--accent);
    box-shadow: 0 6px 18px rgba(8, 76, 67, 0.16);
}

.btn-primary:hover {
    transform: translateY(-1px);
    background: var(--accent-dark);
    box-shadow: 0 10px 24px rgba(8, 76, 67, 0.20);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(8, 76, 67, 0.16);
}

/* ---------- Иконки: линейные, в мягкой плашке ---------- */

.symptom-card__icon,
.diag-icon,
.situation-card__icon,
.result-grid > div > span:first-child,
.method-card > span[aria-hidden] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--mist);
    color: var(--accent);
    font-size: 0;
    line-height: 1;
}

.symptom-card__icon svg,
.diag-icon svg,
.situation-card__icon svg,
.result-grid > div > span:first-child svg,
.method-card > span[aria-hidden] svg {
    width: 24px;
    height: 24px;
}

/* Тёмные секции: плашка иконки полупрозрачная */
.section--forest .method-card > span[aria-hidden] {
    background: rgba(255, 255, 255, 0.10);
    color: #9fe3d9;
}

/* ---------- Карточки: отклик на наведение ---------- */

.symptom-card,
.route,
.strategy-card,
.program,
.signal-card,
.situation-card,
.method-card,
.trust-item,
.prep-card,
.pain-card,
.program-card,
.service {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

a.symptom-card:hover,
a.route:hover,
button.situation-card:hover,
.diagnostics button:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 48px rgba(15, 42, 36, 0.13);
    border-color: rgba(11, 95, 82, 0.35);
}

/* ---------- Медицинские сноски ---------- */

.medical-footnote {
    margin-top: 14px;
    color: var(--muted, #62706b);
    font-size: 13px;
    line-height: 1.55;
}

/* ---------- Аккуратность ---------- */

@media (prefers-reduced-motion: reduce) {
    .btn,
    .symptom-card,
    .route,
    .strategy-card,
    .program,
    .signal-card,
    .situation-card,
    .method-card,
    .trust-item,
    .prep-card,
    .pain-card,
    .program-card,
    .service {
        transition: none;
    }

    a.symptom-card:hover,
    a.route:hover,
    button.situation-card:hover,
    .diagnostics button:hover,
    .btn-primary:hover {
        transform: none;
    }
}

/* ---------- Единое меню на всех страницах ---------- */

.desktop-nav a {
    color: rgba(21, 36, 32, 0.72);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
}

.desktop-nav a:hover {
    color: var(--ink);
}

/* ---------- Ховеры кнопок: мягкие, по роли, без бликов ---------- */

/* Primary фокус повторяет спокойный ховер (без inset-блика) */
.btn-primary:focus-visible {
    transform: translateY(-1px);
    background: var(--accent-dark);
    box-shadow: 0 10px 24px rgba(8, 76, 67, 0.20);
}

/* Soft: спокойная заливка и мягкая рамка */
.btn-soft:is(:hover, :focus-visible) {
    transform: translateY(-1px);
    border-color: rgba(11, 95, 82, 0.30);
    background: var(--mist);
    color: var(--accent-dark);
    box-shadow: 0 6px 16px rgba(15, 42, 36, 0.08);
}

/* Ghost на тёмном hero: лёгкое наполнение, без резкого свечения */
.hero .btn-ghost:is(:hover, :focus-visible),
.method-hero .btn-ghost:is(:hover, :focus-visible) {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.66);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* Ghost на светлом hero (детская страница) */
.hero--deti2 .btn-ghost:is(:hover, :focus-visible) {
    background: rgba(21, 36, 32, 0.05);
    border-color: rgba(21, 36, 32, 0.34);
    box-shadow: 0 6px 16px rgba(21, 36, 32, 0.08);
}

/* Тёмная кнопка (мужской блок чекапа): плавное осветление фона, без filter */
.btn-dark:is(:hover, :focus-visible) {
    transform: translateY(-1px);
    background: #1c2b27;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

/* Текстовая кнопка «Назад» в квизе */
.quiz-back:not(:disabled):is(:hover, :focus-visible) {
    color: var(--accent-dark);
}

@media (prefers-reduced-motion: reduce) {
    .btn-primary:focus-visible,
    .btn-soft:is(:hover, :focus-visible),
    .hero .btn-ghost:is(:hover, :focus-visible),
    .method-hero .btn-ghost:is(:hover, :focus-visible),
    .hero--deti2 .btn-ghost:is(:hover, :focus-visible),
    .btn-dark:is(:hover, :focus-visible) {
        transform: none;
        filter: none;
    }
}
