/* ============================================================================
   UNO Clinic — лендинг uno-clinic.kz
   Светлая клиническая тема: белые поверхности, много воздуха, мягкие тени,
   спокойный медицинский синий + бирюза, зелёный акцент. Читается как сайт
   современной частной клиники. Независим от admin.css.
   ========================================================================== */

:root {
    /* Поверхности */
    --bg:            #ffffff;
    --bg-alt:        #f3f8fd;   /* очень светлый сине-серый для чередующихся секций */
    --bg-soft:       #eef5fc;
    --surface:       #ffffff;
    --surface-2:     #f6f9fd;
    --border:        #e4ecf5;
    --border-strong: #d0dcea;

    /* Текст — глубокий чернильно-синий, высокий контраст */
    --text:  #0f2942;
    --muted: #51657c;
    --dim:   #8395a9;

    /* Медицинская палитра */
    --brand:   #1e6fd6;   /* доверительный синий */
    --brand-600:#155cb4;
    --teal:    #0ea5a5;   /* бирюза */
    --mint:    #12a879;   /* свежий зелёный акцент */
    --grad:      linear-gradient(120deg, #1e6fd6 0%, #0ea5a5 100%);
    --grad-soft: linear-gradient(135deg, rgba(30, 111, 214, .10), rgba(14, 165, 165, .08));

    --danger: #e5484d;
    --ok:     #12a150;

    --header-bg: rgba(255, 255, 255, .86);
    --input-bg:  #ffffff;
    --input-bg-focus: #ffffff;
    --nav-bg:    rgba(255, 255, 255, .98);

    --radius:    18px;
    --radius-sm: 12px;
    --radius-lg: 26px;

    /* Мягкие «клинические» тени вместо свечения */
    --shadow-sm: 0 1px 2px rgba(15, 41, 66, .04), 0 4px 12px rgba(15, 41, 66, .05);
    --shadow:    0 12px 34px -14px rgba(15, 41, 66, .18);
    --shadow-lg: 0 30px 70px -28px rgba(15, 41, 66, .26);
    --shadow-brand: 0 14px 30px -12px rgba(30, 111, 214, .42);

    --ease: cubic-bezier(.22, .61, .36, 1);
    --header-h: 74px;

    --container: 1180px;
    --pad: clamp(16px, 4vw, 40px);
}

/* ── База ─────────────────────────────────────────────────────────────── */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.65 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-feature-settings: 'cv02', 'cv03', 'cv04';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-width: 320px;
}

img, svg, canvas, iframe { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.mono { font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: .02em; }

.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--pad);
    position: relative;
    z-index: 1;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 200;
    background: var(--brand);
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
}
.skip-link:focus { left: 12px; }

/* ── Прелоадер ────────────────────────────────────────────────────────── */

.preloader {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    background: var(--bg);
    transition: opacity .5s var(--ease), visibility .5s;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; }
.preloader__logo {
    width: 92px;
    height: 92px;
    animation: pulse 1.6s var(--ease) infinite;
    filter: drop-shadow(0 10px 24px rgba(30, 111, 214, .28));
}
@keyframes pulse {
    0%, 100% { transform: scale(.92); opacity: .65; }
    50%      { transform: scale(1.04); opacity: 1; }
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease),
                background-color .25s var(--ease), border-color .25s var(--ease), color .2s, opacity .2s;
}
.btn svg { width: 18px; height: 18px; fill: none; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }

.btn--primary {
    background: var(--grad);
    border-color: transparent;
    color: #ffffff;
    box-shadow: var(--shadow-brand);
}
.btn--primary:hover { box-shadow: 0 18px 38px -12px rgba(30, 111, 214, .5); }

.btn--glass {
    background: var(--surface);
    color: var(--brand-600);
    border-color: var(--border-strong);
}
.btn--glass:hover { border-color: var(--brand); background: var(--bg-soft); color: var(--brand-600); }

.btn--lg { padding: 16px 30px; font-size: 16px; }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* ── Шапка ────────────────────────────────────────────────────────────── */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: background-color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
    border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
    background: var(--header-bg);
    -webkit-backdrop-filter: saturate(150%) blur(16px);
    backdrop-filter: saturate(150%) blur(16px);
    border-bottom-color: var(--border);
    box-shadow: 0 10px 30px -22px rgba(15, 41, 66, .4);
}
.site-header__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
}

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand__logo { width: 40px; height: 40px; border-radius: 50%; }
.brand__name { font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: var(--text); }
.brand__accent {
    margin-left: 5px;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav { display: flex; gap: 4px; }
.nav__link {
    position: relative;
    padding: 9px 14px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 500;
    transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav__link:hover { color: var(--brand-600); background: var(--bg-soft); }

.site-header__actions { display: flex; align-items: center; gap: 12px; }

.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-weight: 600;
    font-size: 15px;
    transition: color .2s var(--ease);
}
.phone-link:hover { color: var(--brand); }
.phone-link svg { width: 17px; height: 17px; fill: currentColor; }

.burger {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
    position: relative;
}
.burger span {
    position: absolute;
    left: 12px;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── HERO ─────────────────────────────────────────────────────────────── */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 40px) 0 88px;
    overflow: hidden;
    isolation: isolate;
}
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60% 55% at 82% 8%, rgba(14, 165, 165, .12), transparent 60%),
        radial-gradient(70% 60% at 8% 0%, rgba(30, 111, 214, .12), transparent 58%),
        linear-gradient(180deg, #f2f8ff 0%, #ffffff 62%);
}
.hero__bg::after {          /* тонкая сетка-«медкарта» */
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(30, 111, 214, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 111, 214, .045) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000 40%, transparent 80%);
            mask-image: radial-gradient(80% 70% at 50% 30%, #000 40%, transparent 80%);
}

/* 3D-сцена HERO (Three.js): над фоновым градиентом, но за контентом. */
.hero__canvas {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.4s var(--ease);
}
.hero__canvas.is-ready { opacity: 1; }

.hero__inner {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
    position: relative;        /* контент HERO — над 3D-канвасом */
    z-index: 1;
}
.hero__content { max-width: 640px; }

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding: 8px 16px 8px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}
.hero__eyebrow .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 4px rgba(18, 168, 121, .16);
    animation: blink 2.4s var(--ease) infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

.hero__title {
    font-size: clamp(32px, 5.6vw, 64px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -.035em;
    margin-bottom: 22px;
    text-wrap: balance;
    color: var(--text);
}
.hero__sub {
    max-width: 560px;
    font-size: clamp(15px, 1.5vw, 18px);
    color: var(--muted);
    margin-bottom: 32px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.license-chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}
.license-chip svg { width: 22px; height: 22px; flex: none; stroke: var(--mint); color: var(--mint); }

/* Визуальная панель героя: карточка мониторинга + ЭКГ + бейджи */
.hero__visual { position: relative; justify-self: center; width: 100%; max-width: 440px; }

.hero-card {
    position: relative;
    z-index: 2;
    padding: 22px 22px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}
.hero-card__head { display: flex; align-items: center; gap: 12px; }
.hero-card__pulse {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 13px;
    background: var(--grad-soft);
    color: var(--brand);
    flex: none;
}
.hero-card__pulse svg { width: 24px; height: 24px; }
.hero-card__title { font-weight: 700; font-size: 15px; }
.hero-card__sub { color: var(--dim); font-size: 12.5px; }
.hero-card__live { margin-left: auto; color: var(--mint); font-size: 12px; font-weight: 600; white-space: nowrap; }

.hero-ecg {
    margin: 16px 0 6px;
    height: 90px;
    border-radius: 14px;
    background: linear-gradient(180deg, #f6fbff, #eef6ff);
    border: 1px solid var(--border);
    color: var(--brand);
    overflow: hidden;
}
.hero-ecg svg { width: 100%; height: 100%; }
.hero-ecg__line {
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
    animation: ecg 3.2s linear infinite;
}
@keyframes ecg { to { stroke-dashoffset: 0; } }

.hero-card__metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
}
.hero-metric {
    padding: 12px 10px;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    text-align: center;
}
.hero-metric__val { display: block; font-weight: 800; font-size: 17px; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.hero-metric__lbl { display: block; margin-top: 3px; color: var(--dim); font-size: 11px; line-height: 1.3; }

.hero-badge {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 15px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
    max-width: 230px;
}
.hero-badge__ic {
    display: grid; place-items: center;
    width: 34px; height: 34px; flex: none;
    border-radius: 10px;
    background: var(--grad-soft);
}
.hero-badge--care .hero-badge__ic { color: var(--mint); }
.hero-badge--doc  .hero-badge__ic { color: var(--brand); }
.hero-badge__ic svg { width: 19px; height: 19px; }
.hero-badge__t { font-weight: 700; font-size: 13px; line-height: 1.2; }
.hero-badge__s { color: var(--dim); font-size: 11.5px; }
.hero-badge--care { top: -22px; left: -26px; animation: float 5s var(--ease) infinite; }
.hero-badge--doc  { bottom: -20px; right: -22px; animation: float 5s var(--ease) infinite .8s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    display: grid;
    justify-items: center;
    gap: 8px;
    color: var(--dim);
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    z-index: 1;
}
.scroll-hint__mouse {
    display: block;
    width: 24px;
    height: 38px;
    border: 1.5px solid var(--border-strong);
    border-radius: 14px;
    position: relative;
}
.scroll-hint__mouse span {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 3px;
    height: 7px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: var(--brand);
    animation: wheel 1.8s var(--ease) infinite;
}
@keyframes wheel {
    0%   { transform: translateY(0); opacity: 0; }
    30%  { opacity: 1; }
    100% { transform: translateY(13px); opacity: 0; }
}

/* ── Секции ───────────────────────────────────────────────────────────── */

.section { padding: clamp(60px, 8vw, 116px) 0; position: relative; }
.section--alt { background: var(--bg-alt); }

.section__head { max-width: 720px; margin-bottom: clamp(34px, 5vw, 60px); }
.section__eyebrow {
    margin-bottom: 12px;
    color: var(--teal);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.section__title {
    font-size: clamp(27px, 4vw, 44px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.03em;
    text-wrap: balance;
    color: var(--text);
}
.section__sub { margin-top: 16px; color: var(--muted); font-size: clamp(15px, 1.4vw, 17px); }
.section__foot { display: flex; justify-content: center; margin-top: 44px; }

/* ── Преимущества ─────────────────────────────────────────────────────── */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}
.tilt-card { perspective: 900px; contain: layout paint; }
.tilt-card__inner {
    height: 100%;
    padding: 30px 26px 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transform-style: preserve-3d;
    transition: transform .4s var(--ease), border-color .3s var(--ease), box-shadow .4s var(--ease);
}
.tilt-card:hover .tilt-card__inner { border-color: var(--border-strong); box-shadow: var(--shadow); }
.tilt-card.is-tilting .tilt-card__inner { transition: border-color .3s var(--ease), box-shadow .4s var(--ease); }

.tilt-card__icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 22px;
    border-radius: 15px;
    background: var(--grad-soft);
    border: 1px solid var(--border);
    color: var(--brand);
    transform: translateZ(34px);
}
.tilt-card__icon svg { width: 26px; height: 26px; stroke: currentColor; }
.tilt-card__title { margin-bottom: 10px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; transform: translateZ(22px); }
.tilt-card__text { color: var(--muted); font-size: 15px; transform: translateZ(12px); }

/* ── Услуги ───────────────────────────────────────────────────────────── */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.service-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 26px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--grad);
    opacity: 0;
    transition: opacity .3s var(--ease);
}
.service-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.service-card:hover::before { opacity: 1; }

.service-card__name { font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.service-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    flex-wrap: wrap;
}
.service-card__time { display: inline-flex; align-items: center; gap: 7px; color: var(--dim); font-size: 14px; }
.service-card__time svg { width: 16px; height: 16px; stroke: currentColor; }
.service-card__price { font-size: 18px; font-weight: 800; white-space: nowrap; color: var(--brand-600); }
.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--teal);
    font-size: 14px;
    font-weight: 600;
}
.service-card__link svg { width: 16px; height: 16px; stroke: currentColor; transition: transform .25s var(--ease); }
.service-card:hover .service-card__link svg { transform: translateX(4px); }

/* ── Пустое состояние ─────────────────────────────────────────────────── */

.empty-state {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 60px 24px;
    text-align: center;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    background: var(--surface);
}
.empty-state svg { width: 44px; height: 44px; color: var(--dim); stroke: currentColor; }
.empty-state h3 { font-size: 20px; font-weight: 700; }
.empty-state p { color: var(--muted); max-width: 460px; }
.empty-state .btn { margin-top: 8px; }

/* ── О клинике ────────────────────────────────────────────────────────── */

.about-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}
.about-text p { color: var(--muted); margin-top: 18px; }
.about-text .section__title { margin-bottom: 8px; }

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.stat__value {
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 800;
    letter-spacing: -.03em;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-variant-numeric: tabular-nums;
}
.stat__label { margin-top: 4px; color: var(--dim); font-size: 13px; line-height: 1.35; }

.glass-card {
    padding: 32px 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.glass-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 22px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border);
}
.glass-card__head img { width: 48px; height: 48px; border-radius: 50%; }
.glass-card__title { font-weight: 700; font-size: 17px; }
.glass-card__sub { color: var(--dim); font-size: 13px; }

.req-list__row {
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 16px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}
.req-list__row:last-child { border-bottom: 0; padding-bottom: 0; }
.req-list dt { color: var(--dim); font-size: 13px; padding-top: 2px; }
.req-list dd { margin: 0; font-size: 14.5px; line-height: 1.5; }

/* ── Врачи ────────────────────────────────────────────────────────────── */

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
}
.doctor-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 20px 20px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.doctor-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }

.doctor-card__frame {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 16px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-soft);
    display: grid;
    place-items: center;
}
.doctor-card__photo { width: 100%; height: 100%; object-fit: cover; }
.doctor-card__avatar {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: var(--grad);
    color: #fff;
    font-size: clamp(34px, 8vw, 48px);
    font-weight: 800;
    letter-spacing: .01em;
}
.doctor-card__body { display: grid; gap: 5px; }
.doctor-card__name { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.doctor-card__spec { color: var(--brand-600); font-size: 14px; font-weight: 600; }
.doctor-card__position { color: var(--muted); font-size: 13.5px; }
.doctor-card__bio { color: var(--dim); font-size: 13px; line-height: 1.55; margin-top: 6px; }

/* ── Оборудование и технологии ────────────────────────────────────────── */

.equip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.equip-card {
    display: grid;
    justify-items: start;
    gap: 12px;
    padding: 28px 26px 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .35s var(--ease);
}
.equip-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.equip-card__visual {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    margin-bottom: 6px;
    border-radius: 20px;
    background: var(--grad-soft);
    border: 1px solid var(--border);
    color: var(--brand);
}
.equip-card__visual svg { width: 46px; height: 46px; }
.equip-card__visual--laser  { color: var(--mint); }
.equip-card__visual--lab    { color: var(--teal); }
.equip-card__visual--monitor { color: var(--brand); }
.equip-card__title { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.equip-card__text { color: var(--muted); font-size: 14.5px; }

/* Живой визуал: тонкий «скан» проходит по иконке при наведении. */
.equip-card__visual { position: relative; overflow: hidden; }
.equip-card__scan {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(30, 111, 214, .28) 50%, transparent 100%);
    height: 34%;
    transform: translateY(-140%);
    opacity: 0;
    pointer-events: none;
}
.equip-card:hover .equip-card__scan { animation: equip-scan 1.5s var(--ease) infinite; }
@keyframes equip-scan {
    0%   { transform: translateY(-140%); opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { transform: translateY(240%); opacity: 0; }
}
.equip-card__visual svg { position: relative; z-index: 1; }

/* Чип-подпись под текстом карточки. */
.equip-card__tag {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--brand-600);
    background: var(--grad-soft);
    border: 1px solid var(--border);
}

/* ── Галерея клиники ──────────────────────────────────────────────────── */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}
.gallery-tile {
    position: relative;
    grid-column: span 2;
    margin: 0;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--grad-soft);
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .4s var(--ease), border-color .3s var(--ease);
}
.gallery-tile--wide { grid-column: span 3; }
.gallery-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.gallery-tile__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-tile__ph {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--brand);
    opacity: .5;
}
.gallery-tile__ph svg { width: 44px; height: 44px; }
.gallery-tile__cap {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 14px 16px 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    background: linear-gradient(0deg, var(--surface) 30%, rgba(255, 255, 255, 0) 100%);
}
/* Подпись поверх реального фото — белым по тёмному градиенту. */
.gallery-tile__img + .gallery-tile__cap {
    color: #fff;
    background: linear-gradient(0deg, rgba(4, 16, 33, .82) 0%, rgba(4, 16, 33, .32) 55%, transparent 100%);
}

/* ── Отзывы ───────────────────────────────────────────────────────────── */

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.review-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 28px 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .35s var(--ease), border-color .3s var(--ease);
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.review-card__stars { color: #f5a623; font-size: 16px; letter-spacing: 3px; }
.review-card__text { margin: 0; color: var(--text); font-size: 15px; line-height: 1.6; }
.review-card__author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review-card__avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    background: var(--grad);
}
.review-card__name { display: block; font-weight: 700; font-size: 14.5px; }
.review-card__meta { display: block; color: var(--dim); font-size: 13px; }

/* ── FAQ ──────────────────────────────────────────────────────────────── */

.faq-wrap { max-width: 820px; }
.faq-list { display: grid; gap: 14px; }
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: border-color .25s var(--ease), box-shadow .3s var(--ease);
}
.faq-item[open] { border-color: var(--border-strong); box-shadow: var(--shadow); }
.faq-item__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    color: var(--text);
    list-style: none;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q:hover { color: var(--brand-600); }
.faq-item__ic {
    position: relative;
    flex: none;
    width: 20px;
    height: 20px;
}
.faq-item__ic::before,
.faq-item__ic::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 12px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand);
    transform: translate(-50%, -50%);
    transition: transform .3s var(--ease), opacity .2s;
}
.faq-item__ic::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-item__ic::after { transform: translate(-50%, -50%) rotate(0); opacity: 0; }
.faq-item__a {
    padding: 0 22px 20px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}
.faq-item__a p { margin: 0; }
.faq-item__a a { color: var(--brand-600); font-weight: 600; }
/* Плавное раскрытие ответа. */
.faq-item[open] .faq-item__a { animation: faq-open .32s var(--ease); }
@keyframes faq-open {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Форма записи ─────────────────────────────────────────────────────── */

.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}
.booking-intro p { color: var(--muted); margin-top: 18px; }
.booking-intro .section__title { margin-bottom: 6px; }

.checklist { display: grid; gap: 12px; margin-top: 28px; }
.checklist li { position: relative; padding-left: 32px; color: var(--muted); font-size: 15px; }
.checklist li::before {
    content: '';
    position: absolute;
    left: 0; top: 2px;
    width: 21px; height: 21px;
    border-radius: 50%;
    background: var(--grad-soft);
    border: 1px solid var(--border-strong);
}
.checklist li::after {
    content: '';
    position: absolute;
    left: 6.5px; top: 8px;
    width: 8px; height: 4px;
    border-left: 2px solid var(--mint);
    border-bottom: 2px solid var(--mint);
    transform: rotate(-45deg);
}
.booking-intro__contacts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.form-card {
    padding: clamp(24px, 3vw, 38px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}
.lead-form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; color: var(--muted); }
.req { color: var(--danger); }

.input, .select, .textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--input-bg);
    color: var(--text);
    font-size: 15.5px;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
    -webkit-appearance: none;
    appearance: none;
}
.textarea { resize: vertical; min-height: 96px; }
.select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2351657c' stroke-width='2' stroke-linecap='round'><path d='m6 9 6 6 6-6'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 44px;
}
.select option { background: #fff; color: var(--text); }
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(30, 111, 214, .14);
}
.input.is-invalid, .textarea.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(229, 72, 77, .12); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.form-note { color: var(--dim); font-size: 12.5px; text-align: center; line-height: 1.5; }

.form-msg { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14.5px; border: 1px solid transparent; }
.form-msg--ok    { background: rgba(18, 161, 80, .10); border-color: rgba(18, 161, 80, .40); color: var(--ok); }
.form-msg--error { background: rgba(229, 72, 77, .08); border-color: rgba(229, 72, 77, .38); color: var(--danger); }

.spinner {
    width: 18px; height: 18px;
    border: 2px solid rgba(255, 255, 255, .5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Контакты и карта ─────────────────────────────────────────────────── */

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
    margin-bottom: 32px;
}
.contact-card {
    padding: 28px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.contact-card__icon {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    margin-bottom: 18px;
    border-radius: 13px;
    background: var(--grad-soft);
    border: 1px solid var(--border);
    color: var(--brand);
}
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.contact-card p { color: var(--muted); font-size: 15px; }
.contact-card a { color: var(--muted); transition: color .2s var(--ease); }
.contact-card a:hover { color: var(--brand); }

.map {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    min-height: 320px;
}
.map__placeholder {
    display: grid;
    place-items: center;
    justify-items: center;
    gap: 14px;
    min-height: 320px;
    padding: 40px 24px;
    text-align: center;
}
.map__placeholder svg { width: 42px; height: 42px; color: var(--dim); }
.map__placeholder p { color: var(--muted); font-size: 15px; max-width: 420px; }
.map iframe { width: 100%; height: 420px; border: 0; }

/* ── Футер ────────────────────────────────────────────────────────────── */

.site-footer {
    position: relative;
    z-index: 1;
    padding: clamp(48px, 6vw, 78px) 0 28px;
    border-top: 1px solid var(--border);
    background: #0f2942;
    color: #cfdbe9;
}
.site-footer .brand__name { color: #fff; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.2fr 1.6fr;
    gap: 40px 32px;
    padding-bottom: 42px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-col { display: grid; align-content: start; gap: 10px; }
.footer-col h4 {
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #8ba0b8;
}
.footer-col > a { color: #cfdbe9; font-size: 15px; width: fit-content; transition: color .2s var(--ease); }
.footer-col > a:hover { color: #6bd3d0; }
.footer-col .brand { margin-bottom: 8px; }
.footer-legal { color: #8ba0b8; font-size: 13.5px; line-height: 1.6; }
.site-footer .mono { color: #cfdbe9; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 24px;
    color: #8ba0b8;
    font-size: 13px;
}
.footer-staff { color: #8ba0b8; transition: color .2s var(--ease); }
.footer-staff:hover { color: #cfdbe9; text-decoration: underline; }

/* ── Плавающие кнопки ─────────────────────────────────────────────────── */

.fab-group {
    position: fixed;
    right: clamp(14px, 3vw, 28px);
    bottom: clamp(14px, 3vw, 28px);
    z-index: 90;
    display: grid;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.fab-group.is-visible { opacity: 1; visibility: visible; transform: none; }
.fab {
    display: grid;
    place-items: center;
    width: 54px; height: 54px;
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 14px 30px -8px rgba(15, 41, 66, .4);
    transition: transform .25s var(--ease), filter .25s var(--ease);
}
.fab:hover { transform: scale(1.08); filter: brightness(1.05); }
.fab svg { width: 26px; height: 26px; fill: currentColor; }
.fab--wa { background: #25d366; color: #fff; }
.fab--call { background: var(--grad); color: #fff; }

/* ── Появление по скроллу ─────────────────────────────────────────────── */

.js [data-reveal] { opacity: 0; transform: translateY(26px); will-change: opacity, transform; }
.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    will-change: auto;
}

/* ── Подсветка карточек за курсором (очень мягкая на светлом) ──────────── */

.spotlight { position: relative; isolation: isolate; }
.spotlight::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    opacity: 0;
    transition: opacity .35s var(--ease);
    background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(30, 111, 214, .07), transparent 66%);
}
.spotlight:hover::before { opacity: 1; }
.glow-border { position: relative; }

/* Полоса прочитанного: тонкая, поверх шапки. Ширину ставит landing.js. */
.read-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0;
    z-index: 150;
    background: var(--grad);
    transition: width .1s linear;
    pointer-events: none;
}

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

@media (max-width: 1024px) {
    .hero__inner { grid-template-columns: 1fr; gap: 48px; }
    .hero__content { max-width: 640px; }
    .hero__visual { max-width: 400px; margin-top: 6px; }
    .about-grid, .booking-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-col--wide { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    .phone-link span { display: none; }
    .phone-link {
        width: 42px; height: 42px;
        justify-content: center;
        border: 1px solid var(--border-strong);
        border-radius: 12px;
        background: var(--surface);
    }
    .burger { display: block; }
    .nav {
        position: fixed;
        inset: var(--header-h) 0 auto;
        flex-direction: column;
        gap: 2px;
        padding: 18px var(--pad) 28px;
        background: var(--nav-bg);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        transform: translateY(-130%);
        transition: transform .4s var(--ease);
        visibility: hidden;
    }
    .nav.is-open { transform: none; visibility: visible; }
    .nav__link { padding: 14px 12px; font-size: 17px; border-radius: 12px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .gallery-tile, .gallery-tile--wide { grid-column: auto; }
}

@media (max-width: 620px) {
    :root { --header-h: 64px; }
    .hero { min-height: auto; padding-bottom: 96px; }
    .hero__actions .btn { flex: 1 1 100%; }
    .hero-badge--care { left: -6px; top: -16px; }
    .hero-badge--doc  { right: -6px; bottom: -14px; }
    .scroll-hint { display: none; }
    .stats { grid-template-columns: 1fr; gap: 20px; text-align: left; }
    .stat__value { font-size: 34px; }
    .req-list__row { grid-template-columns: 1fr; gap: 4px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { justify-content: center; text-align: center; }
    .site-header__actions .btn--primary { display: none; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-tile { aspect-ratio: 16 / 9; }
}

@media (max-width: 380px) {
    .brand__name { font-size: 17px; }
    .fab { width: 48px; height: 48px; }
    .hero-badge { max-width: 200px; }
}

/* ── Уважение к настройкам пользователя ───────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .spotlight::before { display: none; }
    .hero-ecg__line { animation: none; stroke-dashoffset: 0; }
    .hero-badge--care, .hero-badge--doc { animation: none; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .js [data-reveal] { opacity: 1; transform: none; will-change: auto; }
    .tilt-card__inner { transform: none !important; }
    .btn:hover, .service-card:hover, .doctor-card:hover, .fab:hover { transform: none; }
    .preloader__logo { animation: none; }
}
