/*
 * Kavkasia Med — «Видео-экскурсия». Сайт как спокойный фильм о клинике: тёмная сумеречная рамка (шапка, ролик,
 * путь до кабинета, подвал) и светлые «туманные» страницы внутри. Один тёплый акцент — янтарь освещённых окон:
 * главная кнопка, номера шагов, кольцо ролика. Всё, что про запись, — в глубоком сумеречно-синем.
 * Заголовки — Spectral Light (грузинский — Noto Serif Georgian), текст — Inter Tight / Noto Sans Georgian.
 * Скругления маленькие (6–10 px), без теней-подушек: кадр, а не карточка.
 * Главное движение: беззвучный ролик на первом экране, при прокрутке темнеет и приближается (--sp из kavkasia.js);
 * при «уменьшить движение» — постер, всё стоит.
 * @author Maksym Mariukhnik <max@absoluteweb.com>
 */
:root {
    --night: #10161d;
    --night-2: #18212b;
    --night-3: #253140;
    --on-night: #eef1f4;
    --on-night-2: #b3bdc8;
    --fog: #eef0f2;
    --white: #fff;
    --ink: #131a22;
    --ink-2: #364150;
    --muted: #5a6573;
    --line: rgba(19, 26, 34, .12);
    --line-2: rgba(19, 26, 34, .22);
    --amber: #f2ab45;
    --amber-hi: #f7c06c;
    --blue: #22384d;
    --blue-2: #2f4c67;
    --serif: 'Spectral', 'Noto Serif Georgian', Georgia, serif;
    --sans: 'Inter Tight', 'Noto Sans Georgian', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --bk-accent: var(--blue);
    --bk-on-accent: #fff;
    --bk-radius: 8px;
    --bk-font: var(--sans);
    --bk-ink: var(--ink);
    --bk-muted: var(--muted);
    --bk-line: var(--line-2);
    --bk-soft: rgba(34, 56, 77, .07);

    --m-accent: var(--blue);
    --m-on-accent: #fff;
    --m-bg: var(--white);
    --m-line: var(--line);
    --m-chip: rgba(34, 56, 77, .07);
    --m-chip-hover: rgba(34, 56, 77, .14);
    --m-radius: 10px;
    --m-btn-radius: 6px;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
    margin: 0; background: var(--fog); color: var(--ink);
    font: 400 17px/1.6 var(--sans); -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; text-wrap: balance; font-weight: 400; }
p { margin: 0; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 40px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 3px; border-radius: 4px; }
.top :focus-visible, .tour :focus-visible, .route :focus-visible, .foot :focus-visible { outline-color: var(--amber); }

.h2 { font: 300 clamp(36px, 4.4vw, 62px)/1.06 var(--serif); letter-spacing: -.012em; }
html[lang="ka"] .h2 { font-size: clamp(26px, 2.8vw, 38px); line-height: 1.3; letter-spacing: 0; }
.lead { max-width: 58ch; color: var(--ink-2); font-size: 19px; line-height: 1.55; }
html[lang="ka"] .lead { font-size: 16.5px; }
.sec { padding: 112px 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 20px 64px; align-items: end; margin-bottom: 56px; }
.sec-head-row { display: flex; justify-content: space-between; flex-wrap: wrap; }
.more { font-weight: 600; text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.more:hover { color: var(--blue-2); text-decoration-color: currentColor; }

/* Кнопки: янтарь — главное действие, контур — второе. */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px;
    border: 0; border-radius: 8px; cursor: pointer; text-decoration: none; white-space: nowrap;
    background: var(--amber); color: var(--night); font: 600 16px/1.1 var(--sans);
    transition: background .2s, color .2s, box-shadow .2s;
}
html[lang="ka"] .btn { font-size: 15px; }
.btn:hover { background: var(--amber-hi); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Шапка ---------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--night); color: var(--on-night); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 400 25px/1 var(--serif); letter-spacing: -.005em; white-space: nowrap; }
.brand img { flex: none; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { padding: 8px 11px; text-decoration: none; color: var(--on-night-2); font-size: 15px; font-weight: 500; white-space: nowrap; border-radius: 6px; }
.nav a:hover { color: #fff; }
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: #fff; box-shadow: inset 0 -2px 0 var(--amber); border-radius: 0; }
.langs { display: flex; gap: 2px; padding: 3px; border-radius: 8px; background: var(--night-2); }
.langs button { min-width: 38px; min-height: 34px; padding: 0 8px; border: 0; border-radius: 6px; cursor: pointer; background: transparent; color: var(--on-night-2); font: 600 13.5px var(--sans); }
.langs button:hover { color: #fff; }
.langs button[aria-pressed="true"] { background: var(--on-night); color: var(--night); }
.top-book { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* ---------- Первый экран: ролик ---------- */
.tour {
    --sp: 0;
    position: relative; isolation: isolate; overflow: hidden; color: #fff;
    min-height: clamp(580px, calc(100svh - 112px), 940px);
    display: flex;
    background: #0c1015 url('../assets/video/tour.jpg') center / cover no-repeat;
}
.tour-media { position: absolute; inset: 0; z-index: -2; }
.tour-video { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) brightness(1.06); transform-origin: 50% 40%; }
.no-video .tour-video { visibility: hidden; }
/* Затемнение: снизу и слева, чтобы текст читался на любом кадре; при прокрутке темнеет ещё. */
.tour-scrim {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        linear-gradient(to top, rgba(9, 12, 16, .92) 0%, rgba(9, 12, 16, .66) 32%, rgba(9, 12, 16, .14) 66%, rgba(9, 12, 16, .3) 100%),
        linear-gradient(to right, rgba(9, 12, 16, .5) 0%, rgba(9, 12, 16, .12) 55%, rgba(9, 12, 16, 0) 100%);
}
.tour-scrim::after { content: ''; position: absolute; inset: 0; background: #080b0f; opacity: calc(var(--sp) * .75); }
.tour-inner { position: relative; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 44px; padding-top: 96px; padding-bottom: 30px; }
.tour-copy { max-width: 820px; }
.tour-cap { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; color: var(--on-night-2); font-size: 14px; font-weight: 500; letter-spacing: .01em; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(242, 171, 69, .2); }
.tour-title { font: 300 clamp(46px, 6.6vw, 100px)/1 var(--serif); letter-spacing: -.02em; max-width: 13ch; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
html[lang="ka"] .tour-title { font-size: clamp(32px, 4.2vw, 60px); line-height: 1.22; letter-spacing: 0; max-width: 18ch; }
.tour-lead { margin-top: 24px; max-width: 54ch; color: rgba(255, 255, 255, .88); font-size: 19px; line-height: 1.55; }
html[lang="ka"] .tour-lead { font-size: 16.5px; }
.tour-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.tour-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .2); }
.chapters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; min-width: 0; }
.ch-title { color: var(--on-night-2); font-size: 14px; }
.chapters ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.chapters li { display: flex; align-items: center; }
.chapters li + li::before { content: ''; width: 18px; height: 1px; margin-right: 6px; background: rgba(255, 255, 255, .35); }
.chapters a { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 14px 0 6px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; transition: background .2s; }
.chapters a:hover { background: rgba(255, 255, 255, .12); }
.ch-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--amber); color: var(--amber); font-size: 13px; font-weight: 600; }

/* Кнопка паузы: всегда видна, кольцо показывает ход ролика. */
.tour-toggle {
    flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 4px 20px 4px 4px; cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; background: rgba(12, 16, 21, .55); color: #fff;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 600 15px var(--sans);
    transition: background .2s, border-color .2s;
}
.tour-toggle:hover { background: rgba(12, 16, 21, .8); border-color: rgba(255, 255, 255, .5); }
.tt-ring { width: 44px; height: 44px; flex: none; }
.tt-track { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 2; }
.tt-prog {
    fill: none; stroke: var(--amber); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--tp, 0));
    transform: rotate(-90deg); transform-origin: 22px 22px; transition: stroke-dashoffset .3s linear;
}
.no-ease .tt-prog { transition: none; }
.tt-pause, .tt-play { fill: #fff; }
.tour.is-playing .tt-play, .tour:not(.is-playing) .tt-pause { display: none; }

/* ---------- Путь до кабинета (тёмная «плёнка») ---------- */
.route { padding: 112px 0 120px; background: var(--night); color: var(--on-night); }
.route .lead { color: var(--on-night-2); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.step { min-width: 0; }
.step-fig { margin: 0 0 24px; overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 3; background: var(--night-3); }
.step-fig img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.step-n { display: flex; align-items: center; gap: 12px; color: var(--on-night-2); font-size: 14px; font-weight: 500; }
.step-n span { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--amber); color: var(--night); font-weight: 700; font-size: 15px; }
.step-n::after { content: ''; flex: 1; height: 1px; background: linear-gradient(to right, rgba(242, 171, 69, .55), rgba(242, 171, 69, 0)); }
.step:last-child .step-n::after { display: none; }
.step-title { margin-top: 16px; font: 300 clamp(28px, 2.6vw, 38px)/1.1 var(--serif); }
html[lang="ka"] .step-title { font-size: clamp(22px, 2vw, 27px); line-height: 1.3; }
.step-text { margin-top: 12px; color: var(--on-night-2); max-width: 44ch; }

/* ---------- Что взять с собой и цифры ---------- */
.prep-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px 96px; align-items: start; }
.bring { margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 0; }
.bring li { position: relative; padding: 16px 0 16px 44px; border-top: 1px solid var(--line); font-size: 18px; }
html[lang="ka"] .bring li { font-size: 16px; }
.bring li:last-child { border-bottom: 1px solid var(--line); }
.bring li::before {
    content: ''; position: absolute; left: 0; top: 17px; width: 26px; height: 26px; border-radius: 50%;
    background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M8 13.5l3.3 3.2L18 9.8' fill='none' stroke='%2310161d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 26px no-repeat;
}
.prep-note { margin-top: 24px; color: var(--ink-2); max-width: 46ch; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.facts li { padding: 32px 24px 34px 0; border-bottom: 1px solid var(--line); }
.facts li:nth-child(odd) { border-right: 1px solid var(--line); }
.facts li:nth-child(even) { padding-left: 32px; }
.facts strong { display: block; font: 300 clamp(64px, 7vw, 104px)/.9 var(--serif); letter-spacing: -.03em; color: var(--blue); font-variant-numeric: lining-nums; }
.facts span { display: block; margin-top: 14px; max-width: 24ch; color: var(--ink-2); font-size: 16px; line-height: 1.45; }

/* ---------- Врачи и запись ---------- */
.book-sec { background: var(--white); }
.book-sec .g-modes { background: var(--fog); box-shadow: none; }
.docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.doc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: start; min-width: 0; padding-top: 28px; border-top: 1px solid var(--line-2); }
.doc-ph { overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 5; background: var(--fog); }
.doc-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.doc-body { min-width: 0; }
.doc-name { font: 400 clamp(26px, 2.2vw, 32px)/1.12 var(--serif); }
html[lang="ka"] .doc-name { font-size: 22px; line-height: 1.3; }
.doc-role { margin-top: 6px; color: var(--blue-2); font-weight: 600; font-size: 16px; }
.doc-meta { margin-top: 10px; color: var(--muted); font-size: 14.5px; }
.doc-bio { margin-top: 14px; color: var(--ink-2); font-size: 16px; }
.doc-act { margin-top: 20px; }
.doc-act .btn { min-height: 48px; font-size: 15px; }

/* ---------- Направления ---------- */
.svc-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.svc-rows li { padding: 26px 0 28px; border-bottom: 1px solid var(--line); }
.svc-rows h3 { font: 400 clamp(22px, 1.9vw, 27px)/1.2 var(--serif); }
html[lang="ka"] .svc-rows h3 { font-size: 19px; line-height: 1.35; }
.svc-rows p { margin-top: 8px; color: var(--ink-2); font-size: 16px; max-width: 52ch; }
.svc-rows small { display: block; margin-top: 10px; color: var(--blue-2); font-size: 14px; font-weight: 600; }

/* ---------- Как нас найти ---------- */
.visit { padding: 104px 0; background: var(--white); border-top: 1px solid var(--line); }
.visit-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 96px; align-items: end; }
.visit-how { margin-top: 20px; color: var(--ink-2); max-width: 40ch; font-size: 18px; }
html[lang="ka"] .visit-how { font-size: 16px; }
.visit-addr { display: grid; gap: 4px; font: 300 clamp(24px, 2.3vw, 32px)/1.25 var(--serif); }
.visit-addr span + span { font: 400 16px/1.5 var(--sans); color: var(--muted); }
html[lang="ka"] .visit-addr { font-size: 21px; line-height: 1.4; }
.visit-phone { display: inline-block; margin-top: 18px; font: 400 clamp(30px, 3vw, 42px)/1.1 var(--serif); text-decoration: none; font-variant-numeric: lining-nums; }
.visit-phone:hover { color: var(--blue-2); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* ---------- Подвал ---------- */
.foot { padding: 72px 0 40px; background: var(--night); color: var(--on-night); }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 4fr); gap: 36px 48px; }
.foot-brand { display: flex; align-items: center; gap: 16px; }
.foot-brand img { flex: none; border-radius: 11px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.foot-brand p, .foot-col { display: grid; gap: 4px; align-content: start; }
.foot-brand b { font: 400 26px/1.1 var(--serif); }
.foot-brand span { color: var(--on-night-2); font-size: 15px; }
.foot-col b { margin-bottom: 4px; color: var(--amber); font-size: 14px; font-weight: 600; }
.foot-col, .foot-col a { color: var(--on-night-2); font-size: 15.5px; }
.foot-col a { text-decoration: none; }
.foot-col a:hover { color: #fff; text-decoration: underline; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot-note { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); color: #8d98a5; font-size: 13.5px; }

/* ---------- Внутренние страницы ---------- */
.page { max-width: 1320px; margin: 0 auto; padding: 72px 40px 120px; }
.page-title { margin-bottom: 48px; font: 300 clamp(48px, 6.4vw, 92px)/1 var(--serif); letter-spacing: -.02em; }
html[lang="ka"] .page-title { font-size: clamp(32px, 4.4vw, 58px); line-height: 1.2; letter-spacing: 0; }
.page .g-modes { background: var(--white); }

.doc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.doc-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: start; min-width: 0; padding: 24px; border-radius: 10px; background: var(--white); }
.doc-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 6px; }
.doc-card .bk-book { margin-top: 20px; min-height: 48px; font-size: 15px; }

.svc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.svc-card { display: flex; flex-direction: column; align-items: flex-start; padding: 30px 30px 28px; border-radius: 10px; background: var(--white); }
.svc-title { font: 400 clamp(23px, 2vw, 29px)/1.18 var(--serif); }
html[lang="ka"] .svc-title { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.35; }
.svc-text { margin-top: 10px; color: var(--ink-2); max-width: 52ch; }
.svc-docs { margin-top: 10px; font-size: 15px; color: var(--muted); }
.svc-docs b { color: var(--blue-2); font-weight: 600; }
.svc-book { margin-top: auto; min-height: 46px; padding: 0 20px; font-size: 15px; }
.svc-docs + .svc-book, .svc-text + .svc-book { margin-top: 22px; }

.about-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.about-text p { margin: 0 0 20px; max-width: 54ch; font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.about-text p:first-child { font: 300 clamp(24px, 2.2vw, 31px)/1.32 var(--serif); color: var(--ink); }
html[lang="ka"] .about-text p { font-size: 16px; }
html[lang="ka"] .about-text p:first-child { font-size: 20px; line-height: 1.5; }
.about-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.about-facts { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 80px 0 0; padding: 0; border-top: 1px solid var(--line-2); }
.about-facts li { padding: 28px 24px 0 0; }
.about-facts li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.about-facts strong { display: block; font: 300 clamp(60px, 6.4vw, 96px)/.9 var(--serif); color: var(--blue); letter-spacing: -.03em; }
.about-facts span { display: block; margin-top: 12px; max-width: 22ch; color: var(--ink-2); font-size: 16px; line-height: 1.45; }

.ct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: start; }
.ct-list { margin: 0; display: grid; gap: 22px; }
.ct-list dt { font-size: 14px; font-weight: 600; color: var(--blue-2); }
.ct-list dd { margin: 4px 0 0; font: 300 clamp(23px, 2.1vw, 29px)/1.25 var(--serif); }
html[lang="ka"] .ct-list dd { font-size: 20px; line-height: 1.4; }
.ct-list a { text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.ct-list a:hover { color: var(--blue-2); text-decoration-color: currentColor; }
.ct-msgs { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.ct-actions { display: flex; flex-wrap: wrap; gap: 12px; align-content: start; }
.ct-actions .btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.ct-actions .btn-ghost:hover { background: var(--ink); color: #fff; }
.ct-map { grid-column: 1 / -1; width: 100%; height: 400px; border: 0; border-radius: 10px; background: var(--white); filter: grayscale(.5) contrast(.95); }

/* Форма обратной связи: белый лист на тумане, кнопка — сумеречно-синяя, как запись. */
[data-contact-form] {
    --cf-accent: var(--blue);
    --cf-radius: 8px;
    --cf-btn-radius: 8px;
    --cf-error: #b4231b;
    --cf-bg: var(--white);
    --cf-pad: 48px;
    --cf-field-bg: var(--white);
    --cf-line: var(--line);
    --cf-line-strong: var(--line-2);
    --cf-soft: var(--fog);
    border-radius: 10px;
}
.cf-intro h2 { font: 300 clamp(34px, 3.6vw, 52px)/1.05 var(--serif); letter-spacing: -.01em; }
html[lang="ka"] .cf-intro h2 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.25; letter-spacing: 0; }
.cf-done h2 { font-family: var(--serif); font-weight: 400; }

/* ---------- Движение ---------- */
@media (prefers-reduced-motion: no-preference) {
    /* Прокрутка: ролик приближается, текст уходит вверх и гаснет. */
    .tour-video { transform: scale(calc(1.02 + var(--sp) * .1)); }
    .tour-inner { transform: translateY(calc(var(--sp) * -48px)); opacity: calc(1 - var(--sp) * 1.15); }
    html.motion .rec { animation: k-rec 2.4s ease-in-out infinite; }
    html.motion .tour-bottom { animation: k-fade 1.2s .7s ease backwards; }
    html.motion .steps.in .step-n::after { animation: k-line 1.4s .5s cubic-bezier(.2, .7, .2, 1) backwards; transform-origin: left; }
    @media (hover: hover) {
        .step:hover .step-fig img, .doc:hover .doc-ph img { transform: scale(1.04); }
    }
}
@keyframes k-rec { 50% { opacity: .35; } }
@keyframes k-fade { from { opacity: 0; } }
@keyframes k-line { from { transform: scaleX(0); } }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
    .top .wrap { gap: 18px; }
    .nav a { padding: 8px 8px; font-size: 14.5px; }
    .top-book { display: none; }
    .doc, .doc-card { grid-template-columns: minmax(0, 1fr); }
    .doc-ph, .doc-photo { max-width: 360px; }
}
@media (max-width: 980px) {
    .top .wrap { flex-wrap: wrap; row-gap: 0; min-height: 0; padding-top: 12px; }
    .langs { margin-left: auto; }
    .top-book { display: inline-flex; }
    .nav { order: 5; width: calc(100% + 56px); margin: 8px -28px 0; padding: 0 22px 8px; overflow-x: auto; scrollbar-width: none; }
    .nav::-webkit-scrollbar { display: none; }
    .wrap { padding: 0 28px; }
    .page { padding: 56px 28px 96px; }
    .sec, .route { padding: 88px 0; }
    .visit { padding: 80px 0; }
    .sec-head { grid-template-columns: minmax(0, 1fr); margin-bottom: 40px; }
    .steps { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 28px; }
    .step-fig { grid-row: 1 / span 3; margin: 0; }
    .step-title { margin-top: 12px; }
    .step-n::after { display: none; }
    .prep-grid, .visit-grid, .about-grid, .ct-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .docs, .doc-grid, .svc-list, .svc-rows { grid-template-columns: minmax(0, 1fr); }
    .doc, .doc-card { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
    .doc-ph, .doc-photo { max-width: none; }
    .about-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about-facts li:nth-child(3) { padding-left: 0; border-left: 0; }
    .about-facts li:nth-child(n+3) { margin-top: 28px; }
    .foot .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .foot-brand { grid-column: 1 / -1; }
    [data-contact-form] { --cf-pad: 32px; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .wrap { padding: 0 18px; }
    .page { padding: 40px 18px 80px; }
    .brand { font-size: 21px; gap: 9px; }
    .brand img { width: 30px; height: 30px; border-radius: 8px; }
    .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: 6px -18px 0; padding: 0 12px 8px; }

    .tour { min-height: calc(100svh - 120px); }
    .tour-inner { gap: 28px; padding-top: 72px; padding-bottom: 20px; }
    .tour-cap { margin-bottom: 16px; font-size: 13px; }
    .tour-title { font-size: clamp(38px, 11vw, 48px); line-height: 1.03; }
    html[lang="ka"] .tour-title { font-size: 28px; line-height: 1.25; }
    .tour-lead { margin-top: 16px; font-size: 16.5px; }
    html[lang="ka"] .tour-lead { font-size: 15px; }
    .tour-actions { margin-top: 24px; }
    .tour-actions .btn { width: 100%; }
    .tour-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
    .ch-title { width: 100%; }
    .chapters { gap: 6px; }
    .chapters li + li::before { display: none; }
    .chapters a { padding: 0 10px 0 4px; font-size: 14px; gap: 7px; }
    html[lang="ka"] .chapters a { font-size: 13px; }
    .ch-n { width: 24px; height: 24px; font-size: 12px; }
    .tour-toggle { position: absolute; top: 16px; right: 18px; min-height: 44px; padding: 2px 16px 2px 2px; font-size: 14px; gap: 6px; }
    .tt-ring { width: 40px; height: 40px; }

    .sec, .route { padding: 72px 0; }
    .visit { padding: 64px 0; }
    .lead { font-size: 17px; }
    .step { display: block; }
    .step-fig { margin-bottom: 18px; }
    .facts li { padding: 24px 14px 26px 0; }
    .facts li:nth-child(even) { padding-left: 16px; }
    .facts strong { font-size: 60px; }
    .facts span { font-size: 14.5px; }
    .doc, .doc-card { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .doc-ph { aspect-ratio: 4 / 4; }
    .doc-photo { aspect-ratio: 1; }
    .doc-card { padding: 18px; }
    .doc-act .btn, .doc-card .bk-book { width: 100%; }
    .svc-card { padding: 24px 22px; }
    .btns .btn { width: 100%; }
    .page-title { margin-bottom: 32px; }
    .about-facts li { padding-right: 12px; }
    .about-facts li + li { padding-left: 14px; }
    .about-facts strong { font-size: 56px; }
    .ct-map { height: 300px; }
    .foot .wrap { grid-template-columns: minmax(0, 1fr); }
    [data-contact-form] { --cf-pad: 22px; }
}
