/* ============================================================
   Клиника «Ясно» — демо-проект CloudxBear
   Дизайн-ДНК: «тёплая точность». Свежая мята + графит + один
   коралловый акцент, много воздуха, тонкие hairline-линии и
   crosshair-метки (клиническая схема), «дуга-улыбка» под
   заголовками. Geologica (display) + Golos Text (body).
   Сознательно БЕЗ glassmorphism (сигналит «стартап», плюс
   контраст WCAG) — плотные карточки, мягкие тени.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Geologica:wght@400;500;600;700&family=Golos+Text:wght@400;500;600;700&display=swap');

:root {
    --canvas: #f5faf8;
    --paper: #ffffff;
    --ink: #16302b;
    --ink-soft: #47605a;
    --muted: #85a099;
    --mint: #0fb3a3;
    --mint-deep: #0a8a7d;
    --mint-tint: #e3f5f1;
    --mint-tint-2: #d2efe9;
    --coral: #ff7a66;
    --coral-deep: #ec5a44;
    --line: #d8e8e2;
    --line-soft: #e7f1ed;
    --ok: #2fa37a;
    --shadow-sm: 0 4px 18px -10px rgba(16, 58, 52, 0.28);
    --shadow: 0 20px 50px -26px rgba(16, 58, 52, 0.35);
    --font-display: 'Geologica', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Golos Text', 'Segoe UI', system-ui, sans-serif;
    --radius: 16px;
    --nav-h: 74px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--canvas);
    color: var(--ink);
    font-size: 16.5px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection { background: var(--mint); color: #fff; }

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

a { color: inherit; }

button { font-family: inherit; cursor: pointer; }

:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 3px; border-radius: 4px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

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

h1, h2, h3, .display {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.16;
    letter-spacing: -0.01em;
    color: var(--ink);
}

h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.16rem; }

.lead { font-size: 1.12rem; color: var(--ink-soft); }
.muted { color: var(--muted); }

/* Фирменный «эйрбраун» — метка раздела с точкой */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mint-deep);
}

/* Заголовки-«улыбки» — inline-block (дуга обнимает текст). Чтобы эйбрау-метка
   не вставала на ту же строку слева от заголовка, делаем её блочной и
   задаём отступ смежному заголовку (margin-bottom на inline-flex игнорируется). */
.eyebrow:has(+ h1),
.eyebrow:has(+ h2),
.eyebrow:has(+ h3) { display: flex; width: fit-content; }

.eyebrow + h1 { margin-top: 20px; }
.eyebrow + h2 { margin-top: 16px; }
.eyebrow + h3 { margin-top: 10px; }
.eyebrow + blockquote { margin-top: 22px; }

.eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 4px var(--mint-tint);
}

/* «Дуга-улыбка» — фирменный штрих под заголовком */
.smile-underline { position: relative; display: inline-block; }

.smile-underline::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.32em;
    height: 0.42em;
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    border-bottom: 3px solid var(--mint);
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    opacity: 0.85;
}

/* crosshair-метка (клиническая схема) */
.xhair { position: relative; }

.xhair::before,
.xhair::after {
    content: '';
    position: absolute;
    background: var(--line);
    pointer-events: none;
}

.xhair::before { top: -1px; left: 14px; width: 12px; height: 1px; box-shadow: 0 0 0 0 var(--line); }
.xhair::after { top: -6px; left: 19px; width: 1px; height: 12px; }

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font-family: var(--font-body);
    font-size: 0.97rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.22s, color 0.22s, border-color 0.22s, transform 0.18s, box-shadow 0.22s;
}

.btn:active { transform: translateY(1px); }

.btn-mint { background: var(--mint-deep); color: #fff; box-shadow: 0 10px 24px -12px rgba(10, 138, 125, 0.7); }
.btn-mint:hover { background: #097a6f; box-shadow: 0 14px 30px -12px rgba(10, 138, 125, 0.8); }

.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-ghost:hover { border-color: var(--mint); color: var(--mint-deep); }

.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: var(--coral-deep); }

/* ---------- Навигация ---------- */

.site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 60;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: rgba(245, 250, 248, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, background 0.3s;
}

.site-nav.scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, 0.92); }

.nav-inner { width: 100%; display: flex; align-items: center; gap: 24px; }

.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }

.logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--mint-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.logo-text { line-height: 1.1; }

.logo-text strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.16rem;
    letter-spacing: -0.01em;
}

.logo-text span { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }

.nav-links a {
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-soft);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--mint-deep); border-bottom-color: var(--mint); }

.nav-phone { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; text-decoration: none; color: var(--ink); white-space: nowrap; }
.nav-phone:hover { color: var(--mint-deep); }

.nav-cta { padding: 11px 22px; font-size: 0.9rem; white-space: nowrap; }

.burger {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.burger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sticky consult (CTA на каждом экране) ---------- */

.consult-fab {
    position: fixed;
    right: 22px;
    bottom: calc(22px + var(--cx-demo-bar-h, 0px));
    z-index: 55;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 999px;
    background: var(--mint-deep);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.92rem;
    box-shadow: 0 16px 36px -14px rgba(10, 138, 125, 0.85);
    transform: translateY(0);
    transition: transform 0.25s, box-shadow 0.25s;
}

.consult-fab:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -16px rgba(10, 138, 125, 0.9); }

.consult-fab .pulse {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #b8ffef;
    box-shadow: 0 0 0 0 rgba(184, 255, 239, 0.7);
    animation: fabpulse 2s ease-out infinite;
}

@keyframes fabpulse {
    0% { box-shadow: 0 0 0 0 rgba(184, 255, 239, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(184, 255, 239, 0); }
    100% { box-shadow: 0 0 0 0 rgba(184, 255, 239, 0); }
}

/* ---------- Hero ---------- */

.hero { position: relative; padding: calc(var(--nav-h) + 56px) 0 60px; }

/* тонкая hairline-сетка на фоне hero */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
    opacity: 0.6;
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 54px;
    align-items: center;
}

.hero-eyebrow { margin-bottom: 20px; }

.hero h1 { margin-bottom: 20px; text-wrap: balance; }

.hero h1 em { font-style: normal; color: var(--mint-deep); }

.hero-sub { max-width: 46ch; margin-bottom: 26px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 12px 22px; }

.hero-trust span { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--ink-soft); }

.hero-trust svg { flex: 0 0 auto; color: var(--mint-deep); }

/* ---------- Reveal-улыбка (SVG до/после) ---------- */

.smile-card {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 22px;
    overflow: hidden;
}

.smile-card::before,
.smile-card::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--line);
    pointer-events: none;
}

.smile-card::before { top: 12px; left: 12px; border-right: none; border-bottom: none; }
.smile-card::after { bottom: 12px; right: 12px; border-left: none; border-top: none; }

.smile-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.smile-card-head b { font-family: var(--font-display); font-size: 0.98rem; }

.smile-card-head .tag {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--mint-deep);
    background: var(--mint-tint);
    border-radius: 999px;
    padding: 4px 11px;
}

.reveal-stage {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, #f0f7ff, #e9f3ff);
    aspect-ratio: 16 / 11;
    touch-action: none;
    user-select: none;
    cursor: ew-resize;
}

.reveal-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.reveal-after { position: absolute; inset: 0; }

/* «после» обрезается по позиции ручки */
.reveal-before-wrap {
    position: absolute;
    inset: 0;
    width: 50%;
    overflow: hidden;
    border-right: 2px solid #fff;
}

.reveal-before-wrap svg { width: auto; }

.reveal-before-wrap .reveal-inner {
    position: absolute;
    inset: 0;
    width: var(--stage-w, 100%);
}

.reveal-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 40px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.reveal-handle .knob {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 18px -6px rgba(16, 58, 52, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mint-deep);
    font-size: 0.9rem;
    font-weight: 700;
}

.reveal-labels { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 10px 14px; pointer-events: none; }

.reveal-labels span {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    padding: 4px 10px;
    color: var(--ink);
}

.smile-card-foot { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.smile-card-foot .note { font-size: 0.78rem; color: var(--muted); }

/* ---------- Секции ---------- */

.section { padding: 84px 0; }

.section-head { max-width: 640px; margin-bottom: 42px; }

.section-head .eyebrow { margin-bottom: 16px; }

.section-head h2 { margin-bottom: 14px; }

.section-head p { color: var(--ink-soft); }

.section-tint { background: var(--mint-tint); }

.section-paper { background: var(--paper); }

/* ---------- Полоса доверия (реестр цифр) ---------- */

.trust-strip {
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); }

.trust-item {
    padding: 30px 26px;
    border-left: 1px solid var(--line-soft);
    position: relative;
}

.trust-item:first-child { border-left: none; }

.trust-item b {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2rem;
    color: var(--mint-deep);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    margin-bottom: 8px;
}

.trust-item span { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Конструктор плана лечения (изюминка) ---------- */

.planner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 34px; align-items: start; }

.planner-tabs { display: flex; gap: 8px; margin-bottom: 22px; }

.planner-tab {
    border: 1.5px solid var(--line);
    background: var(--paper);
    border-radius: 999px;
    padding: 10px 20px;
    font-family: var(--font-display);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink-soft);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.planner-tab.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.svc-group { display: none; }
.svc-group.active { display: block; }

.svc-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--paper);
    border: 1.5px solid var(--line);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.svc-item:hover { border-color: var(--mint); }

.svc-item.on { border-color: var(--mint-deep); background: var(--mint-tint); box-shadow: inset 0 0 0 1px var(--mint-deep); }

.svc-check {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    border: 2px solid var(--line);
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.2s, border-color 0.2s;
}

.svc-item.on .svc-check { background: var(--mint-deep); border-color: var(--mint-deep); }

.svc-check svg { opacity: 0; transition: opacity 0.2s; }
.svc-item.on .svc-check svg { opacity: 1; }

.svc-body { flex: 1; min-width: 0; }

.svc-body b { display: block; font-weight: 600; font-size: 1rem; }

.svc-body span { font-size: 0.85rem; color: var(--muted); }

.svc-price { text-align: right; white-space: nowrap; font-family: var(--font-display); font-weight: 600; }

.svc-price small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.72rem; color: var(--muted); }

/* Сводка плана — «медицинская смета» */
.plan-card {
    position: sticky;
    top: calc(var(--nav-h) + 18px);
    background: var(--ink);
    color: #eafaf6;
    border-radius: 20px;
    padding: 26px;
    box-shadow: var(--shadow);
}

.plan-card h3 { color: #fff; font-size: 1.1rem; margin-bottom: 4px; }

.plan-card .plan-sub { font-size: 0.84rem; color: #9fc7bd; margin-bottom: 18px; }

.plan-lines { list-style: none; min-height: 60px; margin-bottom: 16px; }

.plan-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
    font-size: 0.92rem;
    animation: planin 0.3s ease;
}

@keyframes planin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.plan-line .pl-name { color: #d5efe8; }
.plan-line .pl-price { font-family: var(--font-display); font-weight: 600; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }

.plan-empty { color: #7fb3a8; font-size: 0.9rem; padding: 14px 0; }

.plan-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 14px 0; }

.plan-chip {
    font-size: 0.76rem;
    color: #b7e6dc;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    padding: 5px 12px;
}

.plan-chip b { color: #fff; font-family: var(--font-display); }

.plan-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    margin-bottom: 16px;
}

.plan-total span { font-size: 0.9rem; color: #9fc7bd; }

.plan-total b { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; color: #fff; font-variant-numeric: tabular-nums; }

.plan-card .btn { width: 100%; }

.plan-card .plan-note { font-size: 0.74rem; color: #7fb3a8; margin-top: 12px; line-height: 1.5; }

/* ---------- Перенос плана в запись ---------- */

.plan-recall {
    background: var(--mint-tint);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px 24px;
    margin-bottom: 18px;
}

.plan-recall h3 { font-size: 1.04rem; margin-bottom: 4px; }

.plan-recall .pr-sub { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 14px; }

.plan-recall ul { list-style: none; display: flex; flex-direction: column; gap: 7px; margin-bottom: 12px; }

.plan-recall li { display: flex; justify-content: space-between; gap: 14px; font-size: 0.92rem; color: var(--ink-soft); }

.plan-recall li b { font-family: var(--font-display); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }

.plan-recall .pr-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    padding-top: 13px;
    border-top: 1px dashed var(--line);
}

.plan-recall .pr-total span { font-size: 0.84rem; color: var(--ink-soft); }

.plan-recall .pr-total b { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--mint-deep); font-variant-numeric: tabular-nums; }

.plan-recall .pr-actions { margin-top: 14px; display: flex; gap: 18px; font-size: 0.84rem; }

.plan-recall .pr-actions a { color: var(--mint-deep); text-decoration: none; font-weight: 600; cursor: pointer; }

.plan-recall .pr-actions a:hover { text-decoration: underline; }

/* ---------- Кабинеты / направления ---------- */

.dir-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.dir-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    color: #fff;
    text-decoration: none;
}

.dir-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }

.dir-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(12, 40, 36, 0.86)); }

.dir-card:hover img { transform: scale(1.05); }

.dir-card-body { position: relative; z-index: 1; padding: 26px 28px; }

.dir-card-body h3 { color: #fff; font-size: 1.35rem; margin-bottom: 6px; }

.dir-card-body p { color: rgba(255, 255, 255, 0.85); font-size: 0.92rem; margin-bottom: 12px; }

.dir-card-body .go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; }

/* ---------- Врачи-досье ---------- */

.docs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.doc-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
}

.doc-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 18px;
    background: var(--mint-tint);
}

.doc-verify {
    position: absolute;
    top: 34px;
    right: 34px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--mint-deep);
    box-shadow: var(--shadow-sm);
}

.doc-card h3 { font-size: 1.14rem; margin-bottom: 2px; }

.doc-role { font-size: 0.88rem; color: var(--mint-deep); font-weight: 600; margin-bottom: 14px; }

.doc-rows { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.doc-rows li { display: flex; gap: 10px; font-size: 0.88rem; color: var(--ink-soft); }

.doc-rows li b { color: var(--ink); font-weight: 600; font-family: var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }

.doc-lic {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
    font-family: var(--font-display);
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    color: var(--muted);
}

/* ---------- Кейсы до/после (истории) ---------- */

.case-list { display: flex; flex-direction: column; gap: 40px; }

.case-row {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 40px;
    align-items: center;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 28px;
}

.case-row:nth-child(even) .case-story { order: 2; }

.case-story .eyebrow { margin-bottom: 14px; }

.case-story h3 { font-size: 1.3rem; margin-bottom: 10px; }

.case-story p { color: var(--ink-soft); margin-bottom: 14px; }

.case-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; }

.case-facts span { font-size: 0.85rem; color: var(--ink-soft); }
.case-facts b { color: var(--ink); font-family: var(--font-display); }

/* ---------- Прозрачность / документы ---------- */

.trans-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

.doc-accordion { border-top: 1px solid var(--line); }

.doc-acc-item { border-bottom: 1px solid var(--line); }

.doc-acc-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 40px 20px 0;
    position: relative;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.02rem;
}

.doc-acc-item summary::-webkit-details-marker { display: none; }

.doc-acc-item summary::after {
    content: '+';
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--mint-deep);
    transition: transform 0.25s;
}

.doc-acc-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.doc-acc-item .acc-body { padding: 0 0 20px; color: var(--ink-soft); max-width: 60ch; }

.docs-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.docs-shot {
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--paper);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--muted);
    text-align: center;
    padding: 20px;
}

.docs-shot svg { color: var(--mint-deep); }

.docs-shot b { font-family: var(--font-display); font-size: 0.9rem; color: var(--ink); }

.docs-shot span { font-size: 0.76rem; }

/* ---------- Отзыв (один, крупный) ---------- */

.quote-band { background: var(--ink); color: #eafaf6; }

.quote-inner { max-width: 820px; margin: 0 auto; text-align: center; }

.quote-inner .eyebrow { color: #7fe0d0; justify-content: center; margin-bottom: 22px; }
.quote-inner .eyebrow::before { background: #7fe0d0; box-shadow: 0 0 0 4px rgba(127, 224, 208, 0.2); }

.quote-inner blockquote {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.3rem, 2.8vw, 2rem);
    line-height: 1.4;
    color: #fff;
    margin-bottom: 22px;
}

.quote-inner blockquote em { font-style: normal; color: #6fe0cd; }

.quote-inner footer { font-size: 0.9rem; color: #9fc7bd; }

.quote-inner footer strong { color: #fff; font-family: var(--font-display); }

/* ---------- CTA-запись ---------- */

.book-band {
    background: linear-gradient(135deg, var(--mint-tint), var(--mint-tint-2));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.book-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }

.book-text h2 { margin-bottom: 12px; }
.book-text p { color: var(--ink-soft); margin-bottom: 20px; }

.book-form {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.form-row { margin-bottom: 14px; }

.form-row label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }

.form-row input, .form-row select, .form-row textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid var(--line);
    border-radius: 11px;
    background: var(--canvas);
    font-family: inherit;
    font-size: 0.96rem;
    color: var(--ink);
    transition: border-color 0.2s, background 0.2s;
}

.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--mint); background: #fff; }

.form-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.book-form .btn { width: 100%; margin-top: 4px; }

.form-note { font-size: 0.76rem; color: var(--muted); margin-top: 12px; line-height: 1.5; }

.form-ok { text-align: center; padding: 20px 6px; }

.form-ok .ok-mark {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--mint-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mint-deep);
}

.form-ok h3 { margin-bottom: 8px; }
.form-ok p { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Page hero (внутренние) ---------- */

.page-hero { position: relative; padding: calc(var(--nav-h) + 46px) 0 42px; border-bottom: 1px solid var(--line); }

.page-hero h1 { margin: 16px 0 14px; max-width: 20ch; }
.page-hero .lead { max-width: 58ch; }

.crumbs { font-size: 0.82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--mint-deep); }
.crumbs span::before { content: '·'; margin-right: 8px; }

/* ---------- Прайс-таблица (услуги) ---------- */

.price-block { margin-bottom: 40px; }

.price-block h2 { margin-bottom: 8px; }
.price-block > p { color: var(--ink-soft); margin-bottom: 20px; max-width: 60ch; }

.price-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

.price-table th, .price-table td { padding: 15px 22px; text-align: left; border-bottom: 1px solid var(--line-soft); }

.price-table th { background: var(--mint-tint); font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }

.price-table tr:last-child td { border-bottom: none; }

.price-table td:last-child { text-align: right; font-family: var(--font-display); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }

.price-table .td-name b { font-weight: 600; }
.price-table .td-name span { display: block; font-size: 0.82rem; color: var(--muted); }

.table-scroll { overflow-x: auto; border-radius: var(--radius); }

/* ---------- Появление ---------- */

.reveal-on { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-on.visible { opacity: 1; transform: none; }
.reveal-on.d1 { transition-delay: 0.1s; }
.reveal-on.d2 { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal-on { opacity: 1; transform: none; transition: none; }
    .consult-fab .pulse { animation: none; }
}

/* ---------- Футер ---------- */

.site-footer { background: var(--ink); color: #a9c6be; padding: 58px 0 34px; font-size: 0.92rem; }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; margin-bottom: 38px; }

.footer-brand strong { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: #fff; display: block; margin-bottom: 10px; }

.footer-brand p { max-width: 34ch; color: #8fb3aa; }

.footer-col h4 { font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #6f948b; margin-bottom: 15px; }

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col a { color: #a9c6be; text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; font-size: 0.79rem; color: #6f948b; }

.footer-bottom a { color: #8fb3aa; }

.footer-disclaimer { margin-top: 16px; font-size: 0.76rem; color: #5f847b; max-width: 90ch; line-height: 1.6; }

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

@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .smile-card { max-width: 520px; }
    .trust-row { grid-template-columns: 1fr 1fr; }
    .trust-item:nth-child(3) { border-left: none; }
    .trust-item:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
    .planner { grid-template-columns: 1fr; }
    .plan-card { position: static; }
    .dir-grid { grid-template-columns: 1fr; }
    .docs-grid { grid-template-columns: 1fr 1fr; }
    .case-row { grid-template-columns: 1fr; gap: 24px; }
    .case-row:nth-child(even) .case-story { order: 0; }
    .trans-grid { grid-template-columns: 1fr; gap: 30px; }
    .book-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    body { font-size: 16px; }
    .section { padding: 60px 0; }
    .container { padding: 0 20px; }

    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 22px 36px -20px rgba(16, 58, 52, 0.45);
        padding: 14px 14px 20px;
        display: none;
    }

    .nav-links.open { display: flex; }
    .nav-links a {
        display: block;
        padding: 15px 16px;
        font-size: 1.06rem;
        border-radius: 12px;
        border-bottom: none;
    }
    .nav-links a.active { color: var(--mint-deep); background: var(--mint-tint); border-bottom: none; }
    .nav-links a:active { background: var(--mint-tint); }
    .nav-phone { display: none; }
    .burger { display: flex; }
    .nav-cta { padding: 9px 16px; font-size: 0.82rem; }

    .hero { padding-top: calc(var(--nav-h) + 34px); }
    .hero::before { background-size: 34px 34px; }

    .trust-row { grid-template-columns: 1fr 1fr; }
    .trust-item { padding: 22px 16px; }
    .trust-item b { font-size: 1.55rem; }

    .docs-grid { grid-template-columns: 1fr; max-width: 420px; }
    .docs-shots { grid-template-columns: 1fr 1fr; }
    .form-cols { grid-template-columns: 1fr; }

    .consult-fab { right: 14px; bottom: calc(14px + var(--cx-demo-bar-h, 0px)); padding: 12px 18px; font-size: 0.85rem; }

    .footer-grid { grid-template-columns: 1fr; gap: 28px; }

    .svc-item { padding: 14px 16px; gap: 12px; }
    .svc-price { font-size: 0.92rem; }
}

@media (max-width: 480px) {
    .hero-actions .btn { width: 100%; }
    .trust-row { grid-template-columns: 1fr; }
    .trust-item { border-left: none; border-top: 1px solid var(--line-soft); }
    .trust-item:first-child { border-top: none; }
    .planner-tabs { flex-wrap: wrap; }
    .reveal-stage { aspect-ratio: 4 / 3; }
}
