/*
 * Sana — «Журнал». Номер журнала о здоровье, а не газетная полоса: светлая «студийная» бумага (холодно-серая,
 * не кремовая), чёрный текст и один акцент — кобальт; крупные цветные плашки вместо линеек, скругления,
 * воздух вместо плотных колонок. Заголовки — Noto Serif Display в узком начертании (ось wdth), курсив для
 * акцента; грузинский — Noto Serif Georgian той же семьи; текст — Golos Text / Noto Sans Georgian.
 * Главное движение: заголовки выезжают по строкам (sana.js режет их по фактическому переносу),
 * ответы врачей раскрываются. Всё движение — под prefers-reduced-motion: no-preference (html.motion).
 * @author Maksym Mariukhnik <max@absoluteweb.com>
 */
:root {
    --paper: #f1f1ee;
    --stone: #e6e5e1;
    --white: #fff;
    --ink: #131417;
    --ink-2: #3a3d44;
    --muted: #666a73;
    --cobalt: #2337c6;
    --cobalt-deep: #18248f;
    --sky: #dde2ff;
    --line: rgba(19, 20, 23, .12);
    --line-2: rgba(19, 20, 23, .24);
    --serif: 'Noto Serif Display', 'Noto Serif Georgian', Georgia, 'Times New Roman', serif;
    --sans: 'Golos Text', 'Noto Sans Georgian', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --bk-accent: var(--cobalt);
    --bk-on-accent: #fff;
    --bk-radius: 14px;
    --bk-font: var(--sans);
    --bk-ink: var(--ink);
    --bk-muted: var(--muted);
    --bk-line: var(--line);
    --bk-soft: rgba(35, 55, 198, .06);

    --m-accent: var(--cobalt);
    --m-on-accent: #fff;
    --m-bg: var(--white);
    --m-line: var(--line);
    --m-chip: var(--paper);
    --m-chip-hover: var(--sky);
    --m-radius: 22px;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--paper); 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; }
p { margin: 0; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 40px; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.serif, .h2, .page-title { font-family: var(--serif); }
.h2 { font: 360 clamp(40px, 5vw, 76px)/.98 var(--serif); font-stretch: 72%; letter-spacing: -.01em; }
html[lang="ka"] .h2 { font-size: clamp(30px, 3.4vw, 50px); line-height: 1.2; font-stretch: 80%; letter-spacing: 0; }
.lead { margin-top: 16px; 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(--cobalt); color: #fff; font: 600 16px/1 var(--sans);
    transition: background .2s, color .2s, box-shadow .2s, transform .15s;
}
.btn:hover { background: var(--cobalt-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(--cobalt); color: var(--cobalt); background: transparent; }

/* ---------- Строки заголовков (sana.js) ---------- */
.ln { display: block; overflow: hidden; padding: 0 .12em .12em 0; margin: 0 -.12em -.12em 0; }
.ln-i { display: block; }

/* ---------- Шапка ---------- */
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 500 32px/1 var(--serif); font-stretch: 78%; letter-spacing: -.01em; }
.brand img { flex: none; border-radius: 11px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { padding: 8px 12px; text-decoration: none; color: var(--ink-2); font-size: 15.5px; font-weight: 500; white-space: nowrap; border-radius: 8px; }
.nav a:hover { color: var(--cobalt); }
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(--cobalt); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 9px; }
.langs { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--white); }
.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; }

/* Грузинский курсив браузер рисует искусственным наклоном — для ka курсивные подписи прямые. */
html[lang="ka"] .cover-strip span:first-child, html[lang="ka"] .cl-title { font-style: normal; }

/* ---------- Обложка ---------- */
.cover { padding: 8px 0 104px; }
.cover-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.cover-strip {
    grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px;
    padding: 12px 0 14px; border-top: 3px solid var(--ink); font-size: 14.5px; font-weight: 500; color: var(--ink-2);
}
.cover-strip span:first-child { font: italic 500 18px/1.2 var(--serif); color: var(--cobalt); }
.cover-title {
    grid-column: 1 / span 9; grid-row: 2; position: relative; z-index: 2; margin-top: 22px;
    font: 330 clamp(50px, 9.6vw, 146px)/.9 var(--serif); font-stretch: 66%; letter-spacing: -.012em;
}
.cover-title em { font-style: italic; font-weight: 380; color: var(--cobalt); }
html[lang="ka"] .cover-title { font-size: clamp(34px, 5.9vw, 86px); line-height: 1.12; font-stretch: 72%; letter-spacing: 0; }
html[lang="ka"] .cover-title em { font-style: normal; font-weight: 500; }
.cover-copy { grid-column: 1 / span 6; grid-row: 3; margin-top: 36px; }
.cover-lead { max-width: 44ch; font-size: 19.5px; line-height: 1.55; color: var(--ink-2); }
html[lang="ka"] .cover-lead { font-size: 17.5px; }
.cover-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.cover-photo { grid-column: 8 / -1; grid-row: 2 / span 3; position: relative; margin: 64px 0 0; }
.cover-frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 30px; background: var(--stone); isolation: isolate; }
.cover-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 0; }
/* Кобальтовая плашка за фото — как цветной блок на развороте. */
.cover-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 30px; background: var(--cobalt); transform: translate(22px, 22px); }
.cover-cap {
    position: absolute; top: 26px; right: 18px; z-index: 2; writing-mode: vertical-rl; transform: rotate(180deg);
    font-size: 13px; line-height: 1.2; color: var(--ink-2);
}
.cover-cap b { font-weight: 600; color: var(--ink); margin-left: 6px; }
.cover-cap b::after { content: " · "; font-weight: 400; }

.cover-lines {
    grid-column: 6 / span 4; grid-row: 3 / span 2; align-self: end; position: relative; z-index: 3; margin-bottom: -36px;
    padding: 22px 24px 18px; border-radius: 24px; background: var(--white); box-shadow: 0 28px 60px -34px rgba(19, 20, 23, .45);
}
.cl-title { font: italic 500 19px/1.2 var(--serif); color: var(--cobalt); margin-bottom: 6px; }
.cl-list { list-style: none; margin: 0; padding: 0; }
.cl-list a { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 10px 0; text-decoration: none; font-size: 15.5px; line-height: 1.35; font-weight: 500; }
.cl-list li + li a { border-top: 1px solid var(--line); }
.cl-list a:hover span:last-child { color: var(--cobalt); text-decoration: underline; text-underline-offset: 4px; }
.cl-n { font: italic 400 22px/1 var(--serif); color: var(--cobalt); }

/* ---------- Врач отвечает ---------- */
.ask { background: var(--cobalt); color: #fff; padding: 128px 0; }
.ask ::selection { background: #fff; color: var(--cobalt); }
.ask-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.ask-side { position: sticky; top: 40px; }
.ask-title { font: 330 clamp(56px, 7.4vw, 112px)/.9 var(--serif); font-stretch: 66%; letter-spacing: -.012em; }
html[lang="ka"] .ask-title { font-size: clamp(38px, 4.4vw, 64px); line-height: 1.15; font-stretch: 74%; letter-spacing: 0; }
.ask-lead { margin-top: 26px; max-width: 34ch; font-size: 19px; color: rgba(255, 255, 255, .86); }
.ask-docs { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 14px; }
.ask-docs li { display: flex; align-items: center; gap: 14px; }
.av { position: relative; flex: none; width: 56px; height: 56px; overflow: hidden; border-radius: 50%; background: var(--stone); }
.av img { width: 100%; height: 100%; object-fit: cover; object-position: var(--face); transform: scale(2.6); transform-origin: var(--face); }
.ask-docs span { font-size: 15px; line-height: 1.35; color: rgba(255, 255, 255, .8); }
.ask-docs b { display: block; font: 500 21px/1.2 var(--serif); font-stretch: 85%; color: #fff; }
.ask-note { margin-top: 34px; max-width: 38ch; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .72); }

.qa-list { display: grid; gap: 14px; }
.qa { border-radius: 26px; background: var(--white); color: var(--ink); }
.qa-h { margin: 0; font: inherit; }
.qa-btn {
    display: grid; grid-template-columns: 52px minmax(0, 1fr) 46px; column-gap: 14px; row-gap: 14px; align-items: start;
    width: 100%; padding: 26px 26px 24px; border: 0; border-radius: 26px; cursor: pointer; text-align: left;
    background: transparent; color: inherit; font: inherit;
}
.qa-btn:focus-visible { outline: 3px solid var(--cobalt); outline-offset: -6px; border-radius: 26px; }
.qa-n { grid-row: 1 / span 2; padding-top: 4px; font: italic 400 30px/1 var(--serif); color: var(--cobalt); }
.qa-q { font: 420 clamp(25px, 2.2vw, 32px)/1.12 var(--serif); font-stretch: 82%; letter-spacing: -.005em; transition: color .2s; }
html[lang="ka"] .qa-q { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.35; font-stretch: 88%; letter-spacing: 0; }
.qa-btn:hover .qa-q { color: var(--cobalt); }
.qa-who { grid-column: 2; display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.3; color: var(--muted); }
.qa-who .av { width: 36px; height: 36px; }
.qa-who b { color: var(--ink); font-weight: 600; }
.qa-ico { grid-column: 3; grid-row: 1; position: relative; width: 46px; height: 46px; border-radius: 50%; background: var(--sky); transition: background .25s, transform .4s; }
.qa-ico::before, .qa-ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; margin: -1px 0 0 -8px; border-radius: 2px; background: var(--cobalt); transition: transform .35s, background .25s; }
.qa-ico::after { transform: rotate(90deg); }
.qa-btn:hover .qa-ico { background: #c9d1ff; }
.qa-btn[aria-expanded="true"] .qa-ico { background: var(--cobalt); transform: rotate(180deg); }
.qa-btn[aria-expanded="true"] .qa-ico::before { background: #fff; }
.qa-btn[aria-expanded="true"] .qa-ico::after { background: #fff; transform: rotate(0deg); }

/* Ответ: свёрнутый блок не виден и не доступен с клавиатуры (visibility), раскрытие — высотой через grid-rows. */
.qa-p { display: grid; grid-template-rows: 0fr; visibility: hidden; }
.qa.is-open .qa-p { grid-template-rows: 1fr; visibility: visible; }
.qa-in { overflow: hidden; min-height: 0; }
.qa-body { padding: 0 32px 30px 92px; }
.qa-body > p:not(.qa-short) { max-width: 60ch; margin-bottom: 14px; font-size: 17.5px; line-height: 1.65; color: var(--ink-2); }
html[lang="ka"] .qa-body > p:not(.qa-short) { font-size: 16px; }
.qa-short { margin: 20px 0 0; max-width: 54ch; padding: 16px 20px; border-radius: 16px; background: var(--sky); font: italic 400 21px/1.4 var(--serif); font-stretch: 90%; color: var(--cobalt-deep); }
html[lang="ka"] .qa-short { font-style: normal; font-size: 17px; }
.qa-short b { font: 600 14px/1 var(--sans); font-style: normal; margin-right: 6px; }
.qa-act { margin-top: 22px; }
.qa-book { min-height: 46px; padding: 0 22px; font-size: 15px; }

/* ---------- Колонка терапевта ---------- */
.column { padding: 136px 0 112px; }
.col-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center; }
.col-photo { margin: 0; overflow: hidden; border-radius: 30px; aspect-ratio: 4 / 5; background: var(--stone); }
.col-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 0; }
.col-kicker { font: italic 500 24px/1.2 var(--serif); color: var(--cobalt); }
html[lang="ka"] .col-kicker { font-style: normal; font-size: 20px; }
.col-quote { position: relative; margin: 26px 0 0; padding: 0; }
.col-quote::before { content: "\201C"; position: absolute; left: -.56em; top: -.12em; font: 400 120px/1 var(--serif); color: var(--cobalt); }
.col-quote p { font: 360 clamp(34px, 3.7vw, 56px)/1.04 var(--serif); font-stretch: 72%; letter-spacing: -.008em; }
html[lang="ka"] .col-quote p { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.35; font-stretch: 82%; letter-spacing: 0; }
.col-text { margin-top: 34px; max-width: 58ch; font-size: 18px; line-height: 1.7; color: var(--ink-2); }
html[lang="ka"] .col-text { font-size: 16.5px; }
.col-text::first-letter { float: left; margin: .1em .12em 0 0; font: 400 4.6em/.78 var(--serif); font-stretch: 70%; color: var(--cobalt); }
.col-sign { margin-top: 24px; font-size: 15px; color: var(--muted); }
.col-sign b { display: block; font: 500 22px/1.2 var(--serif); font-stretch: 85%; color: var(--ink); }

/* ---------- Рубрики ---------- */
.sec { padding: 112px 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 56px; }
.more { font-weight: 600; color: var(--cobalt); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.more::after { content: " →"; }
.rub-sec { background: var(--white); }
.rubs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 80px; }
.rubs li::before { content: ""; display: block; width: 36px; height: 6px; margin-bottom: 20px; border-radius: 3px; background: var(--cobalt); }
.rubs h3 { font: 400 clamp(27px, 2.5vw, 36px)/1.06 var(--serif); font-stretch: 76%; letter-spacing: -.005em; }
html[lang="ka"] .rubs h3 { font-size: clamp(21px, 1.8vw, 26px); line-height: 1.3; font-stretch: 86%; letter-spacing: 0; }
.rubs p { margin-top: 12px; max-width: 46ch; color: var(--ink-2); }
.rubs small { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); }

/* ---------- Разворот: холл и цифры ---------- */
.spread { padding: 0 0 104px; background: var(--white); }
.spread-fig { margin: 0; }
.spread-fig img { width: 100%; height: clamp(300px, 46vw, 660px); object-fit: cover; object-position: 50% 60%; }
.spread-fig figcaption { padding-top: 16px; font: italic 400 19px/1.4 var(--serif); color: var(--ink-2); }
html[lang="ka"] .spread-fig figcaption { font-style: normal; font-size: 16px; }
.facts { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.facts strong { display: block; font: 300 clamp(72px, 8vw, 120px)/.85 var(--serif); font-stretch: 64%; color: var(--cobalt); font-variant-numeric: lining-nums; }
.facts span { display: block; margin-top: 12px; max-width: 22ch; color: var(--ink-2); font-size: 16px; line-height: 1.45; }

/* ---------- Запись ---------- */
.book-sec { background: var(--paper); }
.docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.docs[data-mode="inline"] { grid-template-columns: minmax(0, 1fr); }
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); overflow: hidden; border-radius: 28px; background: var(--white); }
.doc-ph { width: 100%; height: 100%; min-height: 300px; object-fit: cover; object-position: 66% 6%; background: var(--stone); }
.doc-body { padding: 28px 30px 30px; min-width: 0; }
.doc-name { font: 420 32px/1.05 var(--serif); font-stretch: 80%; }
html[lang="ka"] .doc-name { font-size: 25px; line-height: 1.3; font-stretch: 88%; }
.doc-role { margin-top: 6px; font-weight: 600; color: var(--cobalt); }
.doc-meta { margin-top: 10px; font-size: 15px; color: var(--muted); }
.doc-topics { margin-top: 8px; font-size: 15.5px; color: var(--ink-2); }
.doc-topics b { font-weight: 600; color: var(--ink); }
.doc-act { margin-top: 22px; }
.docs[data-mode="inline"] .doc { grid-template-columns: 280px minmax(0, 1fr); }

/* ---------- Как нас найти ---------- */
.visit { padding: 112px 0; background: var(--stone); }
.visit-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 64px; align-items: start; }
.visit-how { margin-top: 18px; max-width: 32ch; color: var(--ink-2); }
.visit-addr { display: grid; gap: 6px; font: 400 clamp(24px, 2.3vw, 32px)/1.2 var(--serif); font-stretch: 82%; }
html[lang="ka"] .visit-addr { font-size: clamp(20px, 1.8vw, 25px); line-height: 1.4; font-stretch: 90%; }
.visit-addr span:last-child { font: 400 17px/1.5 var(--sans); color: var(--ink-2); }
.visit-phone {
    display: inline-block; margin-top: 26px; font: 340 clamp(42px, 5.4vw, 80px)/1 var(--serif); font-stretch: 66%; color: var(--cobalt);
    text-decoration: none; white-space: nowrap; background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat; transition: background-size .35s;
}
.visit-phone:hover { background-size: 100% 3px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- Подвал ---------- */
.foot { background: var(--ink); color: rgba(255, 255, 255, .78); padding: 40px 0 44px; }
.foot-mark { font: 300 clamp(120px, 27vw, 400px)/.78 var(--serif); font-stretch: 62.5%; letter-spacing: -.03em; color: var(--paper); margin-left: -.04em; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 48px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 15px; }
.foot-col { display: grid; gap: 4px; align-content: start; }
.foot-col b { color: #fff; font: italic 500 18px/1.3 var(--serif); margin-bottom: 4px; }
html[lang="ka"] .foot-col b { font-style: normal; }
.foot a { color: #fff; text-underline-offset: 4px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot-note { color: rgba(255, 255, 255, .55); font-size: 13.5px; }
.foot :focus-visible { outline-color: #fff; }

/* ---------- Внутренние страницы ---------- */
.page { max-width: 1320px; margin: 0 auto; padding: 40px 40px 120px; }
.page-title {
    margin: 0 0 52px; padding-top: 16px; border-top: 3px solid var(--ink);
    font: 330 clamp(52px, 8.4vw, 128px)/.9 var(--serif); font-stretch: 66%; letter-spacing: -.012em;
}
html[lang="ka"] .page-title { font-size: clamp(34px, 5vw, 72px); line-height: 1.15; font-stretch: 74%; letter-spacing: 0; }
.page .g-modes { margin-bottom: 36px; }

.doc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.doc-grid[data-mode="inline"] { grid-template-columns: minmax(0, 1fr); }
.doc-card { display: grid; grid-template-columns: 240px minmax(0, 1fr); overflow: hidden; border-radius: 28px; background: var(--white); }
.doc-grid[data-mode="inline"] .doc-card { grid-template-columns: 300px minmax(0, 1fr); }
.doc-photo { width: 100%; height: 100%; min-height: 340px; object-fit: cover; object-position: 66% 6%; background: var(--stone); }
.doc-card .doc-body { padding: 30px 32px 32px; }
.doc-card .doc-name { font-size: 36px; }
html[lang="ka"] .doc-card .doc-name { font-size: 26px; }
.doc-bio { margin-top: 14px; color: var(--ink-2); max-width: 56ch; }
.doc-card .bk-book { margin-top: 22px; }

.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: 32px 32px 30px; border-radius: 26px; background: var(--white); }
.svc-title { font: 420 clamp(27px, 2.4vw, 34px)/1.06 var(--serif); font-stretch: 78%; }
html[lang="ka"] .svc-title { font-size: clamp(21px, 1.8vw, 25px); line-height: 1.3; font-stretch: 88%; }
.svc-text { margin-top: 12px; color: var(--ink-2); max-width: 52ch; }
.svc-docs { margin-top: 10px; font-size: 15px; color: var(--muted); }
.svc-docs b { color: var(--ink); font-weight: 600; }
.svc-book { margin-top: auto; min-height: 46px; padding: 0 22px; font-size: 15px; }
.svc-docs + .svc-book, .svc-text + .svc-book { margin-top: 24px; }

.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: 18.5px; line-height: 1.65; color: var(--ink-2); }
.about-text p:first-child { font: 400 clamp(25px, 2.3vw, 32px)/1.3 var(--serif); font-stretch: 82%; color: var(--ink); }
html[lang="ka"] .about-text p { font-size: 16.5px; }
html[lang="ka"] .about-text p:first-child { font-size: 21px; line-height: 1.5; }
.about-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 30px; }
.about-facts { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin: 80px 0 0; padding: 0; }
.about-facts strong { display: block; font: 300 clamp(64px, 7vw, 104px)/.85 var(--serif); font-stretch: 64%; color: var(--cobalt); }
.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: italic 500 17px/1.2 var(--serif); color: var(--cobalt); }
html[lang="ka"] .ct-list dt { font-style: normal; }
.ct-list dd { margin: 4px 0 0; font: 400 clamp(23px, 2.1vw, 29px)/1.25 var(--serif); font-stretch: 84%; }
html[lang="ka"] .ct-list dd { font-size: 20px; line-height: 1.4; }
.ct-list a { text-decoration-color: var(--sky); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.ct-list a:hover { color: var(--cobalt); text-decoration-color: var(--cobalt); }
.ct-msgs { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.ct-actions { display: flex; flex-wrap: wrap; gap: 12px; align-content: start; }
.ct-map { grid-column: 1 / -1; width: 100%; height: 400px; border: 0; border-radius: 30px; background: var(--stone); filter: grayscale(.4); }

/* Форма обратной связи: белый лист с кобальтовой кромкой сверху */
[data-contact-form] {
    --cf-accent: var(--cobalt);
    --cf-radius: 14px;
    --cf-btn-radius: 999px;
    --cf-error: #b4231b;
    --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(--sky);
    margin-top: 80px; border-radius: 30px; box-shadow: inset 0 8px 0 var(--cobalt);
}
.cf-intro h2 { font: 360 clamp(38px, 4.2vw, 60px)/.98 var(--serif); font-stretch: 70%; letter-spacing: -.01em; }
html[lang="ka"] .cf-intro h2 { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.2; font-stretch: 80%; letter-spacing: 0; }
.cf-done h2 { font-family: var(--serif); font-stretch: 80%; font-weight: 420; }

/* Переключатель способов записи и окно записи */
.bk-head h2 { font-family: var(--serif); font-weight: 450; font-stretch: 82%; font-size: 24px; }
.bk-pick img, .bk-sum img, .bk-row-who img { object-position: 62% 8%; }
.bk-row-who h3 { font-family: var(--serif); font-weight: 450; font-stretch: 85%; font-size: 21px; }
.bk-dialog { border-radius: 26px; }

/* ---------- Движение ---------- */
@media (prefers-reduced-motion: no-preference) {
    /* Строки заголовков выезжают снизу из-под своей «маски» по очереди. */
    html.motion [data-lines]:not(.is-split) { opacity: 0; }
    html.motion [data-lines]:not(.in) .ln-i { transform: translateY(112%); }
    html.motion [data-lines].in:not(.ln-still) .ln-i { animation: s-line 1.05s cubic-bezier(.2, .75, .15, 1) backwards; animation-delay: calc(var(--i) * 120ms + 60ms); }
    html.motion .cover-title.in:not(.ln-still) .ln-i { animation-duration: 1.25s; animation-delay: calc(var(--i) * 150ms + 150ms); }

    /* Обложка: фото проявляется шторкой снизу вверх, кобальтовая плашка выезжает следом, анонсы — последними. */
    html.motion .cover-frame { animation: s-wipe 1.4s cubic-bezier(.65, 0, .25, 1) .2s backwards; }
    html.motion .cover-frame img { animation: s-zoom 2.2s cubic-bezier(.2, .7, .2, 1) .2s backwards; }
    html.motion .cover-photo::before { animation: s-block 1.1s cubic-bezier(.2, .8, .2, 1) .9s backwards; }
    html.motion .cover-lines { animation: s-card .9s cubic-bezier(.2, 1, .3, 1) 1.25s backwards; }
    html.motion .cl-list li { animation: m-rise .7s cubic-bezier(.2, .7, .2, 1) backwards; }
    html.motion .cl-list li:nth-child(1) { animation-delay: 1.45s; }
    html.motion .cl-list li:nth-child(2) { animation-delay: 1.55s; }
    html.motion .cl-list li:nth-child(3) { animation-delay: 1.65s; }
    html.motion .cover-copy > * { animation-delay: .75s; }
    html.motion .cover-copy > :nth-child(2) { animation-delay: .9s; }

    /* Ответ раскрывается высотой; текст внутри поднимается по абзацам. */
    .qa-p { transition: grid-template-rows .55s cubic-bezier(.3, .7, .2, 1), visibility 0s linear .55s; }
    .qa.is-open .qa-p { transition: grid-template-rows .55s cubic-bezier(.3, .7, .2, 1), visibility 0s; }
    html.motion .qa.is-open .qa-body > * { animation: s-in .6s cubic-bezier(.2, .7, .2, 1) backwards; }
    html.motion .qa.is-open .qa-body > :nth-child(1) { animation-delay: .1s; }
    html.motion .qa.is-open .qa-body > :nth-child(2) { animation-delay: .18s; }
    html.motion .qa.is-open .qa-body > :nth-child(3) { animation-delay: .26s; }
    html.motion .qa.is-open .qa-body > :nth-child(4) { animation-delay: .34s; }
    .qa { transition: box-shadow .3s, transform .3s; }
    .qa:hover { box-shadow: 0 22px 44px -26px rgba(5, 10, 60, .65); }

    /* Разворот: фото холла открывается шторкой сбоку вместо общего подъёма. */
    html.motion .spread-fig[data-reveal] { transform: none; opacity: 1; }
    html.motion .spread-fig[data-reveal] img { clip-path: inset(0 0 0 100%); }
    html.motion .spread-fig[data-reveal].in img { clip-path: inset(0); transition: clip-path 1.5s cubic-bezier(.65, 0, .25, 1); }
}
@keyframes s-line { from { transform: translateY(112%); } }
@keyframes s-wipe { from { clip-path: inset(100% 0 0 0 round 30px); } to { clip-path: inset(0 0 0 0 round 30px); } }
@keyframes s-zoom { from { transform: scale(1.14); } }
@keyframes s-block { from { transform: translate(0, 0); opacity: 0; } }
@keyframes s-card { from { opacity: 0; transform: translateY(30px) rotate(-1.5deg); } }
@keyframes s-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
    .top .wrap { gap: 18px; }
    .nav a { padding: 8px 9px; font-size: 15px; }
    .top-book { display: none; }
    .cover-lines { grid-column: 5 / span 5; }
}
@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; }
    .cover { padding-bottom: 80px; }
    .cover-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; }
    .cover-title { grid-column: 1 / -1; }
    .cover-copy { grid-column: 1 / -1; margin-top: 28px; }
    .cover-photo { grid-column: 1; grid-row: 4; margin-top: 44px; }
    .cover-lines { grid-column: 2; grid-row: 4; align-self: center; margin: 44px 0 0; }
    .ask { padding: 88px 0; }
    .ask-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .ask-side { position: static; }
    .ask-docs { grid-template-columns: repeat(2, max-content); gap: 14px 28px; }
    .column { padding: 96px 0 80px; }
    .col-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 40px; align-items: start; }
    .sec { padding: 88px 0; }
    .rubs { gap: 40px 48px; }
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
    .docs { grid-template-columns: minmax(0, 1fr); }
    .visit { padding: 88px 0; }
    .visit-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .foot-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .foot-note { grid-column: 1 / -1; }
    .page { padding: 32px 28px 88px; }
    .doc-grid, .svc-list { grid-template-columns: minmax(0, 1fr); }
    .about-grid, .ct-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .about-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
    [data-contact-form] { --cf-pad: 32px; }
}
@media (max-width: 760px) {
    .cover-grid { grid-template-columns: minmax(0, 1fr); }
    .cover-photo { grid-column: 1; margin: 40px 22px 0 0; }
    .cover-frame { aspect-ratio: 5 / 5.4; }
    .cover-photo::before { transform: translate(16px, 16px); }
    .cover-lines { grid-column: 1; grid-row: 5; margin: -56px 0 0 18px; }
    .col-grid { grid-template-columns: minmax(0, 1fr); }
    .col-photo { aspect-ratio: 4 / 3.4; }
    .col-quote { padding-left: 34px; }
    .col-quote::before { left: -6px; font-size: 90px; }
    .rubs { grid-template-columns: minmax(0, 1fr); }
    .doc, .docs[data-mode="inline"] .doc, .doc-card, .doc-grid[data-mode="inline"] .doc-card { grid-template-columns: minmax(0, 1fr); }
    .doc-ph, .doc-photo { height: 300px; min-height: 0; object-position: 66% 10%; }
    .qa-btn { grid-template-columns: minmax(0, 1fr) 42px; padding: 22px 20px 20px; row-gap: 12px; }
    .qa-n { grid-row: auto; grid-column: 1; padding: 0; font-size: 24px; }
    .qa-q { grid-column: 1 / -1; grid-row: 2; }
    .qa-who { grid-column: 1 / -1; grid-row: 3; }
    .qa-ico { grid-column: 2; grid-row: 1; width: 42px; height: 42px; }
    .qa-body { padding: 0 20px 24px; }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    .wrap { padding: 0 18px; }
    .brand { font-size: 27px; gap: 9px; }
    .brand img { width: 32px; height: 32px; border-radius: 9px; }
    .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; }
    .cover-strip { font-size: 13.5px; }
    .cover-strip span:first-child { font-size: 17px; }
    .cover-title { margin-top: 16px; }
    .cover-lead { font-size: 17.5px; }
    .cover-actions .btn { flex: 1 1 auto; }
    .cover-lines { margin-left: 10px; padding: 18px 18px 12px; }
    .ask { padding: 72px 0; }
    .ask-docs { grid-template-columns: minmax(0, 1fr); }
    .qa { border-radius: 22px; }
    .qa-short { font-size: 19px; }
    .column { padding: 72px 0 64px; }
    .sec { padding: 72px 0; }
    .sec-head { margin-bottom: 40px; }
    .spread { padding-bottom: 72px; }
    .facts { gap: 32px 20px; }
    .facts span { font-size: 15px; }
    .visit { padding: 72px 0; }
    .visit-phone { font-size: 46px; }
    .btns .btn { flex: 1 1 auto; }
    .foot-cols { grid-template-columns: minmax(0, 1fr); }
    .page { padding: 24px 18px 72px; }
    .page-title { margin-bottom: 36px; }
    .about-facts { gap: 32px 20px; }
    .ct-map { height: 300px; border-radius: 22px; }
    [data-contact-form] { --cf-pad: 22px; border-radius: 22px; }
    .g-modes { padding: 14px; }
}
