/*
 * Doctor Nino — «Клиника одного врача». Сайт от первого лица: бумага с лёгким розовым оттенком (не кремовая),
 * гранат как единственный акцент, тёмный баклажан в тексте, лист оливкового цвета — только «свободно».
 * Commissioner: заголовки с раструбами (FLAR 100), цитата с наклоном (slnt); Caveat — только подпись.
 * Главное движение: фото медленно «дышит», цитата печатается и подписывается, отзывы листаются.
 * Всё движение — под prefers-reduced-motion: no-preference (html.motion из motion.js).
 * @author Maksym Mariukhnik <max@absoluteweb.com>
 */
:root {
    --paper: #fbf6f5;
    --paper-2: #f6e8e7;
    --white: #fff;
    --ink: #2a1520;
    --ink-2: #4b3440;
    --muted: #77616b;
    --pom: #b3263e;
    --pom-deep: #7c1630;
    --seed: #f4d2d7;
    --leaf: #4c6a45;
    --leaf-hi: #7fae6f;
    --line: rgba(42, 21, 32, .13);
    --line-2: rgba(42, 21, 32, .22);
    --sans: 'Commissioner', 'Noto Sans Georgian', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --hand: 'Caveat', 'Commissioner', cursive;
    --disp: 'FLAR' 100, 'VOLM' 40, 'slnt' 0;
    --body: 'FLAR' 30, 'VOLM' 0, 'slnt' 0;

    --bk-accent: var(--pom);
    --bk-on-accent: #fff;
    --bk-radius: 16px;
    --bk-font: var(--sans);
    --bk-ink: var(--ink);
    --bk-muted: var(--muted);
    --bk-line: var(--line);
    --bk-soft: rgba(179, 38, 62, .06);

    --m-accent: var(--pom);
    --m-on-accent: #fff;
    --m-bg: var(--white);
    --m-line: var(--line);
    --m-chip: var(--paper-2);
    --m-chip-hover: var(--seed);
    --m-radius: 20px;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--paper); color: var(--ink);
    font: 400 17px/1.6 var(--sans); font-variation-settings: var(--body);
    -webkit-font-smoothing: antialiased; overflow-x: clip;
}
html[lang="ka"] body { font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; font-variation-settings: var(--disp); text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
:focus-visible { outline: 3px solid var(--pom); outline-offset: 3px; border-radius: 6px; }

.h2 { font-size: clamp(32px, 3.5vw, 50px); line-height: 1.08; letter-spacing: -.02em; font-weight: 560; }
html[lang="ka"] .h2 { font-size: clamp(26px, 2.8vw, 40px); line-height: 1.25; letter-spacing: 0; }
.lead { margin-top: 14px; max-width: 56ch; color: var(--ink-2); font-size: 19px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px;
    border: 0; border-radius: 999px; cursor: pointer; text-decoration: none; white-space: nowrap;
    background: var(--pom); color: #fff; font: 600 16px/1 var(--sans); font-variation-settings: var(--body);
    transition: background .2s, color .2s, box-shadow .2s, transform .15s;
}
.btn:hover { background: var(--pom-deep); }
.btn:active { transform: translateY(1px); }
.btn.ghost, .btn.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn.ghost:hover, .btn.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--pom); color: var(--pom-deep); background: transparent; }

/* ---------- Шапка ---------- */
.top { position: relative; z-index: 5; }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 21px; font-weight: 650; font-variation-settings: var(--disp); letter-spacing: -.01em; }
.brand img { flex: none; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-size: 15.5px; font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--pom-deep); background: var(--paper-2); }
body[data-page="home"] .nav a[data-href="home"],
body[data-page="services"] .nav a[data-href="services"],
body[data-page="doctors"] .nav a[data-href="doctors"],
body[data-page="about"] .nav a[data-href="about"],
body[data-page="contacts"] .nav a[data-href="contacts"] { color: var(--pom-deep); background: var(--seed); }
.langs { display: flex; gap: 2px; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.langs button { min-width: 38px; min-height: 34px; padding: 0 8px; border: 0; border-radius: 999px; cursor: pointer; background: transparent; color: var(--muted); font: 600 13.5px var(--sans); }
.langs button:hover { color: var(--ink); }
.langs button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.top-book { min-height: 44px; padding: 0 22px; font-size: 15px; }

/* ---------- Первый экран ---------- */
.hero { padding: 24px 0 96px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }
.hello { color: var(--pom); font-size: 22px; font-weight: 500; font-variation-settings: 'FLAR' 100, 'VOLM' 0, 'slnt' -10; }
.name {
    margin-top: 4px; font-size: clamp(52px, 6.4vw, 96px); line-height: .98; letter-spacing: -.035em; font-weight: 600;
    font-variation-settings: 'FLAR' 100, 'VOLM' 100, 'slnt' 0;
}
html[lang="ka"] .name { font-size: clamp(40px, 4.8vw, 70px); line-height: 1.12; letter-spacing: 0; }
.role { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 20px; color: var(--ink-2); font-size: 19px; line-height: 1.45; }
.role-yrs { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--seed); color: var(--pom-deep); font-size: 15px; font-weight: 600; white-space: nowrap; }

.quote { position: relative; margin: 36px 0 0; padding: 4px 0 0 46px; max-width: 30em; }
.quote::before {
    content: "\201C"; position: absolute; left: -4px; top: -26px; color: var(--pom);
    font: 600 104px/1 var(--sans); font-variation-settings: 'FLAR' 100, 'VOLM' 100, 'slnt' 0;
}
.quote p { position: relative; font-size: clamp(21px, 1.85vw, 27px); line-height: 1.38; font-weight: 420; font-variation-settings: 'FLAR' 100, 'VOLM' 0, 'slnt' -9; color: var(--ink); }
html[lang="ka"] .quote p { font-size: clamp(19px, 1.55vw, 23px); line-height: 1.5; }
.q-ghost { color: transparent; }
.q-live { position: absolute; inset: 0; }
.sig { display: inline-block; margin-top: 6px; color: var(--pom); font: 600 44px/1 var(--hand); transform: rotate(-4deg); transform-origin: left center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.portrait { position: relative; margin: 0; justify-self: end; width: min(100%, 580px); }
.portrait-frame, .portrait::before { border-radius: 8px 46% 8px 46% / 8px 34% 8px 34%; }
.portrait-frame { position: relative; overflow: hidden; aspect-ratio: 9 / 10; background: var(--paper-2); isolation: isolate; }
.portrait-frame img { width: 100%; height: 112%; object-fit: cover; object-position: 50% 0; transform-origin: 50% 30%; }
/* Линия того же «зерна», сдвинутая вправо-вниз, дышит в противофазе с фото. */
.portrait::before { content: ""; position: absolute; inset: 0; transform: translate(20px, 20px); box-shadow: inset 0 0 0 1.5px var(--pom); opacity: .55; pointer-events: none; }
.slot { position: absolute; left: -44px; bottom: 36px; z-index: 2; }
.slot-btn {
    display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 16px; border: 0; border-radius: 18px; cursor: pointer; text-align: left;
    background: var(--white); color: var(--ink); font: inherit; box-shadow: 0 18px 40px -12px rgba(124, 22, 48, .35), 0 0 0 1px rgba(124, 22, 48, .06);
    transition: transform .2s, box-shadow .2s;
}
.slot-btn:hover { transform: translateY(-2px); box-shadow: 0 24px 46px -12px rgba(124, 22, 48, .42), 0 0 0 1px rgba(124, 22, 48, .1); }
.slot-btn small { display: block; color: var(--muted); font-size: 13px; line-height: 1.3; }
.slot-btn b { display: block; font-size: 18px; font-weight: 650; font-variation-settings: var(--disp); line-height: 1.3; }
.slot-btn svg { flex: none; fill: none; stroke: var(--pom); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pulse { position: relative; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--leaf-hi); box-shadow: 0 0 0 4px rgba(127, 174, 111, .22); }

/* ---------- Секции ---------- */
.sec { padding: 112px 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 48px; }
.more { color: var(--pom-deep); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.more:hover { color: var(--pom); }

/* История */
.story-sec { padding-top: 40px; }
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: start; }
.story-side { position: sticky; top: 32px; }
.room { margin: 36px 0 0; }
.room img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; }
.room figcaption { margin-top: 12px; color: var(--muted); font-size: 15px; font-variation-settings: 'FLAR' 60, 'VOLM' 0, 'slnt' -8; }
.story-list { position: relative; list-style: none; margin: 0; padding: 8px 0 0 0; }
.story-list::before { content: ""; position: absolute; left: 7px; top: 22px; bottom: 30px; width: 2px; background: linear-gradient(var(--pom), var(--seed)); transform-origin: top; }
.story-list li { position: relative; padding: 0 0 56px 56px; }
.story-list li:last-child { padding-bottom: 0; }
.story-list li::before { content: ""; position: absolute; left: 0; top: 18px; width: 16px; height: 16px; border-radius: 50% 50% 50% 12%; background: var(--pom); box-shadow: 0 0 0 6px var(--paper); transform: rotate(-45deg); }
.yr { display: block; color: var(--pom); font-size: 54px; line-height: 1.05; font-weight: 300; letter-spacing: -.03em; font-variation-settings: 'FLAR' 100, 'VOLM' 100, 'slnt' 0; font-variant-numeric: lining-nums; }
.story-list p { margin-top: 10px; max-width: 46ch; color: var(--ink-2); font-size: 20px; line-height: 1.55; }
html[lang="ka"] .story-list p { font-size: 17.5px; }

/* Как я принимаю */
.promise-sec { background: var(--paper-2); }
.promises { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 48px 0 0; padding: 0; }
.promises li { padding: 6px 40px 0; border-left: 1px solid var(--line-2); }
.promises li:first-child { padding-left: 0; border-left: 0; }
.promises h3 { font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
html[lang="ka"] .promises h3 { font-size: 20px; line-height: 1.35; }
.promises h3::before { content: ""; display: block; width: 14px; height: 14px; margin-bottom: 18px; border-radius: 50% 50% 50% 12%; background: var(--pom); transform: rotate(-45deg); }
.promises p { margin-top: 12px; color: var(--ink-2); }

/* С чем приходят */
.svc-lines { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; margin: 0; padding: 0; }
.svc-lines li { padding: 22px 0 24px; border-top: 1px solid var(--line); }
.svc-lines h3 { font-size: 21px; line-height: 1.3; font-weight: 600; transition: color .2s; }
html[lang="ka"] .svc-lines h3 { font-size: 18px; }
.svc-lines li:hover h3 { color: var(--pom-deep); }
.svc-lines p { margin-top: 6px; color: var(--muted); font-size: 16px; }

/* ---------- Отзывы ---------- */
.rev { padding: 104px 0 96px; background: var(--pom-deep); color: #fff4f5; }
.rev .h2 { color: #fff; }
.rev-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 32px; margin-bottom: 44px; }
.rev-demo { display: inline-flex; align-items: center; gap: 8px; color: var(--seed); font-size: 14px; opacity: .85; }
.rev-demo::before { content: "i"; display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.2px currentColor; font: 600 11px/1 var(--sans); }
.rev-car { position: relative; }
.rev-viewport { overflow: hidden; }
.rev-track { --i: 0; list-style: none; display: flex; margin: 0; padding: 0; transform: translateX(calc(var(--i) * -100%)); }
.rev-slide { flex: 0 0 100%; min-width: 0; padding-right: 8%; outline: 0; }
.rev-slide blockquote { position: relative; margin: 0; padding-left: 64px; }
.rev-slide blockquote::before { content: "\201C"; position: absolute; left: 0; top: -14px; color: var(--seed); opacity: .5; font: 600 96px/1 var(--sans); font-variation-settings: 'FLAR' 100, 'VOLM' 100, 'slnt' 0; }
.rev-slide p { max-width: 30em; font-size: clamp(25px, 2.9vw, 40px); line-height: 1.3; font-weight: 400; letter-spacing: -.012em; font-variation-settings: 'FLAR' 100, 'VOLM' 30, 'slnt' 0; }
html[lang="ka"] .rev-slide p { font-size: clamp(21px, 2.2vw, 30px); line-height: 1.5; letter-spacing: 0; }
.rev-slide footer { margin-top: 22px; color: var(--seed); font-size: 18px; font-weight: 500; }
.rev-slide footer::before { content: "— "; }
.rev-ctrl { display: flex; align-items: center; gap: 12px; margin-top: 48px; padding-left: 64px; }
.rev-btn { display: grid; place-items: center; width: 50px; height: 50px; border: 0; border-radius: 50%; cursor: pointer; background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); transition: background .2s, color .2s; }
.rev-btn:hover { background: #fff; color: var(--pom-deep); }
.rev-btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rev-btn .i-play path { fill: currentColor; stroke: none; }
.rev-pause { margin-left: auto; width: 44px; height: 44px; }
.rev-btn[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .rev-progress { display: none; } }
.rev-pause .i-play, .rev-car.is-stopped .rev-pause .i-pause { display: none; }
.rev-car.is-stopped .rev-pause .i-play { display: block; }
.rev-dots { display: flex; gap: 8px; margin-left: 14px; }
.rev-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; cursor: pointer; background: rgba(255, 255, 255, .35); transition: width .3s, background .3s; position: relative; }
.rev-dot::after { content: ""; position: absolute; inset: -12px -4px; }
.rev-dot[aria-current="true"] { width: 30px; background: #fff; }
.rev-count { margin-left: 10px; color: var(--seed); font-size: 14px; font-variant-numeric: tabular-nums; }
.rev-progress { height: 2px; margin: 28px 0 0 64px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.rev-progress i { display: block; height: 100%; background: var(--seed); transform: scaleX(0); transform-origin: left; }
.rev :focus-visible { outline-color: #fff; }

/* ---------- Запись ---------- */
.book-head { margin-bottom: 36px; }
.docs { display: grid; gap: 20px; max-width: 980px; }
.doc { display: flex; gap: 32px; padding: 24px; border-radius: 28px; background: var(--white); box-shadow: 0 1px 0 var(--line), 0 24px 60px -36px rgba(124, 22, 48, .35); }
.doc-ph { flex: none; width: 168px; height: 176px; object-fit: cover; object-position: 50% 8%; border-radius: 8px 42% 8px 42% / 8px 30% 8px 30%; }
.doc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.doc-name { font-size: 28px; line-height: 1.15; font-weight: 600; letter-spacing: -.015em; }
html[lang="ka"] .doc-name { font-size: 23px; letter-spacing: 0; }
.doc-role { margin-top: 6px; color: var(--ink-2); }
.doc-meta { margin-top: 4px; color: var(--muted); font-size: 15px; }
.doc-bio { margin-top: 12px; color: var(--ink-2); }
.doc-act { margin-top: auto; padding-top: 18px; width: 100%; }
.doc-act .bk-inline { margin-top: 0; }
.bk-book { min-height: 50px; }
.bk-row { border-radius: 24px; background: var(--white); }
.bk-row-who img { object-position: 50% 10%; }

/* ---------- Где меня найти ---------- */
.visit-sec { padding-top: 40px; }
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.addr { margin-top: 18px; font-size: 21px; color: var(--ink-2); }
.week { width: 100%; max-width: 440px; margin-top: 26px; border-collapse: collapse; font-size: 16px; }
.week th, .week td { padding: 9px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.week td { text-align: right; font-variant-numeric: tabular-nums; }
.week .off { color: var(--muted); }
.week tr.is-today th, .week tr.is-today td { color: var(--pom-deep); font-weight: 650; }
.week tr.is-today th::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 10px; vertical-align: middle; border-radius: 50%; background: var(--pom); }
.visit-side { padding: 36px; border-radius: 28px; background: var(--paper-2); }
.visit-phone { display: inline-block; color: var(--pom-deep); text-decoration: none; font-size: clamp(30px, 3vw, 42px); font-weight: 600; letter-spacing: -.02em; font-variation-settings: var(--disp); font-variant-numeric: lining-nums; }
.visit-phone:hover { color: var(--pom); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.nurse { display: flex; gap: 16px; align-items: flex-start; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line-2); }
.nurse-ava { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--seed); color: var(--pom-deep); font-weight: 650; font-size: 18px; font-variation-settings: var(--disp); }
.nurse p { color: var(--ink-2); font-size: 15.5px; }
.nurse b { display: block; color: var(--ink); font-size: 17px; }
.nurse small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 14px; }

/* ---------- Футер ---------- */
.foot { margin-top: 40px; padding: 64px 0 40px; background: var(--ink); color: #eadde1; font-size: 15.5px; }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px 40px; }
.foot-sign { display: grid; gap: 10px; align-content: start; }
.foot-sign .sig { margin: 0; color: var(--seed); font-size: 52px; }
.foot .brand { font-size: 18px; color: #fff; }
.foot a { color: #fff; }
.foot-col { line-height: 1.7; }
.foot-links { display: inline-flex; flex-wrap: wrap; gap: 4px 16px; }
.foot-links a { color: var(--seed); }
.foot-note { grid-column: 1 / -1; margin-top: 18px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); color: rgba(234, 221, 225, .65); font-size: 13.5px; }

/* ---------- Внутренние страницы ---------- */
.page { max-width: 1280px; margin: 0 auto; padding: 40px 40px 96px; }
.page-title { margin-bottom: 40px; font-size: clamp(44px, 5vw, 76px); line-height: 1; letter-spacing: -.03em; font-weight: 600; font-variation-settings: 'FLAR' 100, 'VOLM' 100, 'slnt' 0; }
html[lang="ka"] .page-title { font-size: clamp(34px, 3.8vw, 54px); line-height: 1.2; letter-spacing: 0; }

/* «Обо мне» */
.me-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.me-photo { position: sticky; top: 32px; margin: 0; }
.me-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 0; border-radius: 8px 46% 8px 46% / 8px 34% 8px 34%; }
.me .page-title { margin-bottom: 18px; }
.me-name { color: var(--ink-2); font-size: 20px; }
.me-name b { color: var(--pom-deep); font-weight: 650; }
.me-bio { margin-top: 18px; max-width: 52ch; font-size: 21px; line-height: 1.5; font-variation-settings: 'FLAR' 100, 'VOLM' 0, 'slnt' -7; }
html[lang="ka"] .me-bio { font-size: 18px; }
.h3 { margin: 52px 0 18px; font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
html[lang="ka"] .h3 { font-size: 22px; }
.edu { list-style: none; margin: 0; padding: 0; }
.edu li { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.edu .yr { font-size: 17px; font-weight: 600; letter-spacing: 0; line-height: 1.6; }
.approach { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.approach li { position: relative; padding-left: 30px; color: var(--ink-2); }
.approach li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 11px; height: 11px; border-radius: 50% 50% 50% 12%; background: var(--pom); transform: rotate(-45deg); }
.approach b { color: var(--ink); font-weight: 600; }
.me .nurse { max-width: 560px; margin-top: 40px; padding: 22px 24px; border: 0; border-radius: 22px; background: var(--paper-2); }
.page-book { padding-top: 0; }
.page-book .h2 { margin-bottom: 28px; }

/* Общие страницы: услуги, кабинет, контакты */
.svc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; }
.svc-card { display: flex; flex-direction: column; align-items: flex-start; padding: 28px 0 32px; border-top: 1px solid var(--line); }
.svc-title { font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
html[lang="ka"] .svc-title { font-size: 20px; }
.svc-text { margin: 10px 0 20px; color: var(--ink-2); }
.svc-docs { display: none; }
.svc-book { margin-top: auto; min-height: 46px; padding: 0 22px; font-size: 15px; background: transparent; color: var(--pom-deep); box-shadow: inset 0 0 0 1.5px var(--pom); }
.svc-book:hover { background: var(--pom); color: #fff; }

.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.about-text p { margin: 0 0 20px; max-width: 54ch; font-size: 19px; color: var(--ink-2); }
.about-text p:first-child { font-size: 23px; line-height: 1.45; color: var(--ink); font-variation-settings: 'FLAR' 100, 'VOLM' 0, 'slnt' -7; }
html[lang="ka"] .about-text p { font-size: 17px; }
html[lang="ka"] .about-text p:first-child { font-size: 19px; }
.about-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px 120px 8px 120px; }
.about-facts { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 72px 0 0; padding: 0; }
.about-facts li { padding: 4px 28px 0; border-left: 1px solid var(--line-2); }
.about-facts li:first-child { padding-left: 0; border-left: 0; }
.about-facts strong { display: block; color: var(--pom); font-size: 56px; line-height: 1; font-weight: 300; letter-spacing: -.03em; font-variation-settings: 'FLAR' 100, 'VOLM' 100, 'slnt' 0; }
.about-facts span { display: block; margin-top: 10px; max-width: 22ch; color: var(--ink-2); font-size: 15.5px; }

.ct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: start; }
.ct-list { margin: 0; }
.ct-list dt { padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.ct-list dd { margin: 4px 0 16px; font-size: 21px; font-weight: 550; font-variation-settings: var(--disp); }
.ct-list a { text-decoration-color: var(--seed); text-underline-offset: 5px; }
.ct-list a:hover { color: var(--pom-deep); }
.ct-msgs { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.ct-actions { display: flex; flex-wrap: wrap; gap: 12px; align-content: start; }
.ct-map { grid-column: 1 / -1; width: 100%; height: 380px; border: 0; border-radius: 28px; background: var(--paper-2); filter: saturate(.75); }

/* Форма обратной связи: письмо врачу — белая карточка со скруглённым «зерном» */
[data-contact-form] {
    --cf-accent: var(--pom);
    --cf-radius: 14px;
    --cf-btn-radius: 999px;
    --cf-error: #a3122c;
    --cf-bg: var(--white);
    --cf-pad: 48px;
    --cf-field-bg: var(--paper);
    --cf-line: var(--line);
    --cf-line-strong: var(--line-2);
    --cf-soft: var(--paper-2);
    margin-top: 72px; border-radius: 8px 64px 8px 64px; box-shadow: 0 30px 70px -44px rgba(124, 22, 48, .45);
}
.cf-intro h2 { font-variation-settings: 'FLAR' 100, 'VOLM' 60, 'slnt' 0; letter-spacing: -.015em; }
.cf-intro p { font-variation-settings: 'FLAR' 60, 'VOLM' 0, 'slnt' -7; }

/* Переключатель способов записи */
.g-modes { box-shadow: 0 0 0 1px var(--line); }

/* Окно записи */
.bk-dialog { border-radius: 26px; }
.bk-head h2 { font-variation-settings: var(--disp); }
.bk-pick img, .bk-sum img, .bk-row-who img { object-position: 50% 10%; }
.bk-day, .bk-time { border-radius: 12px; }

/* ---------- Движение ---------- */
@media (prefers-reduced-motion: no-preference) {
    /* Фото «дышит»: медленное приближение и обратно; рамка-линия — в противофазе. */
    html.motion .portrait-frame img { animation: n-breathe 9s ease-in-out infinite; }
    html.motion .portrait::before { animation: n-line 9s ease-in-out infinite; }
    /* Первый показ: фото проявляется снизу вверх, плашка времени выезжает. */
    html.motion .portrait-frame { animation: n-wipe 1.5s cubic-bezier(.65, 0, .25, 1) .15s backwards; }
    html.motion .slot { animation: n-slot .8s cubic-bezier(.2, 1.2, .4, 1) 1.3s backwards; }
    html.motion .pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--leaf-hi); animation: n-pulse 2.2s ease-out 2s infinite backwards; }

    /* Курсор печати и подпись после последней буквы. */
    html.motion .quote:not(.is-done) .q-live::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -.15em; background: var(--pom); animation: n-caret 1s steps(1) infinite; }
    html.motion .quote .sig { clip-path: inset(-10px 100% -10px 0); }
    html.motion .quote.is-done .sig { clip-path: inset(-10px -10px -10px 0); transition: clip-path 1.3s cubic-bezier(.5, 0, .3, 1) .25s; }

    /* История: нить прочерчивается сверху вниз. */
    html.motion .story-list:not(.in)::before { transform: scaleY(0); }
    html.motion .story-list.in::before { transform: none; transition: transform 1.6s cubic-bezier(.65, 0, .25, 1); }

    /* Отзывы: слайд уезжает, новый текст чуть приподнимается. */
    .rev-track { transition: transform .85s cubic-bezier(.65, 0, .25, 1); }
    html.motion .rev-slide.is-on blockquote { animation: n-in .9s cubic-bezier(.2, .7, .2, 1) .2s backwards; }

    .portrait-frame img { will-change: transform; }
}
@keyframes n-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045) translateY(-.6%); } }
@keyframes n-line { 0%, 100% { transform: translate(20px, 20px) scale(1); } 50% { transform: translate(14px, 14px) scale(.985); } }
@keyframes n-wipe { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes n-slot { from { opacity: 0; transform: translate(-24px, 10px) scale(.94); } }
@keyframes n-pulse { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(3); opacity: 0; } }
@keyframes n-caret { 50% { opacity: 0; } }
@keyframes n-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
    .top .wrap { gap: 18px; }
    .nav a { padding: 8px 9px; font-size: 15px; }
    .top-book { display: none; }
}
@media (max-width: 980px) {
    .wrap { padding: 0 28px; }
    .top .wrap { flex-wrap: wrap; row-gap: 0; min-height: 0; padding-top: 14px; }
    .langs { margin-left: auto; }
    .top-book { display: inline-flex; }
    .nav { order: 5; width: calc(100% + 56px); margin: 10px -28px 0; padding: 0 22px 10px; overflow-x: auto; scrollbar-width: none; }
    .nav::-webkit-scrollbar { display: none; }
    .hero { padding: 16px 0 72px; }
    .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 36px; }
    .slot { left: -20px; bottom: 20px; }
    .sec { padding: 80px 0; }
    .story { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .story-side { position: static; }
    .promises { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .promises li, .promises li:first-child { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line-2); }
    .promises h3::before { display: none; }
    .visit { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .foot .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .foot-sign { grid-column: 1 / -1; }
    .page { padding: 32px 28px 80px; }
    .me-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .me-photo { position: static; max-width: 420px; }
    .about-grid, .ct-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .about-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
    .about-facts li:nth-child(3) { padding-left: 0; border-left: 0; }
    [data-contact-form] { --cf-pad: 32px; }
}
@media (max-width: 760px) {
    .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
    .hero-copy { display: contents; }
    .hello { order: 1; }
    .name { order: 2; }
    .portrait { order: 3; width: 100%; margin: 22px 0 0; justify-self: auto; }
    .role { order: 4; }
    .quote { order: 5; }
    .hero-actions { order: 6; }
    .portrait-frame { aspect-ratio: auto; height: min(62vw, 300px); }
    .portrait-frame img { height: 150%; object-position: 50% 4%; }
    .portrait::before { transform: translate(12px, 12px); }
    .slot { left: 12px; right: auto; bottom: -26px; }
    .role { margin-top: 44px; }
    .svc-lines { grid-template-columns: minmax(0, 1fr); }
    .svc-list { grid-template-columns: minmax(0, 1fr); }
    .doc { flex-direction: column; gap: 18px; padding: 18px; }
    .doc-ph { width: 100%; height: 260px; object-position: 50% 12%; }
    .rev-slide blockquote { padding-left: 0; padding-top: 44px; }
    .rev-slide blockquote::before { top: -10px; font-size: 80px; }
    .rev-ctrl, .rev-progress { padding-left: 0; margin-left: 0; }
    .rev-slide { padding-right: 0; }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    .wrap { padding: 0 18px; }
    .brand { font-size: 18px; gap: 8px; }
    .brand img { width: 30px; height: 30px; }
    .top .wrap { column-gap: 10px; padding-top: 10px; }
    .langs button { min-width: 32px; padding: 0 5px; }
    .top-book { display: none; }
    .nav { width: calc(100% + 36px); margin: 8px -18px 0; padding: 0 12px 8px; }
    .name { font-size: 46px; }
    html[lang="ka"] .name { font-size: 34px; }
    .hello { font-size: 19px; }
    .role { font-size: 17px; }
    .quote { margin-top: 26px; padding-left: 34px; }
    .quote::before { font-size: 80px; top: -18px; }
    .sig { font-size: 38px; }
    .hero-actions .btn { flex: 1 1 auto; }
    .sec { padding: 64px 0; }
    .yr { font-size: 42px; }
    .story-list li { padding-left: 40px; padding-bottom: 40px; }
    .story-list p { font-size: 18px; }
    .rev { padding: 72px 0; }
    .rev-ctrl { gap: 8px; margin-top: 32px; }
    .rev-dots { margin-left: 6px; gap: 6px; }
    .rev-count { display: none; }
    .visit-side { padding: 24px; }
    .week th, .week td { font-size: 15px; }
    .foot .wrap { grid-template-columns: minmax(0, 1fr); }
    .page { padding: 24px 18px 72px; }
    .edu li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .about-facts li { padding-left: 14px; }
    .about-facts li:nth-child(odd) { padding-left: 0; border-left: 0; }
    .about-facts strong { font-size: 44px; }
    .ct-map { height: 300px; border-radius: 20px; }
    [data-contact-form] { --cf-pad: 22px; border-radius: 8px 36px 8px 36px; }
    .g-modes { padding: 14px; }
}
