/*
 * Minuta (стиль «Ближайшее окно»): тёмный графит, один сигнальный цвет — лайм «свободно».
 * Шрифты: Geologica (текст и заголовки), JetBrains Mono (время и цифры), Noto Sans Georgian (ka).
 * Главный приём — табло ближайшего времени на первом экране (home.html, live.js):
 * цифры выкатываются как на табло, лента дня заполняется слева направо, «через …» проворачивается раз в минуту.
 * @author Maksym Mariukhnik <max@absoluteweb.com>
 */
:root {
    --bg: #0b0d10;
    --bg-2: #0f1216;
    --surface: #151920;
    --surface-2: #1c2129;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .15);
    --ink: #eef1f4;
    --muted: #949ca8;
    --lime: #d4ff5a;
    --lime-hi: #e4ff94;
    --lime-ink: #0b0d10;
    --lime-soft: rgba(212, 255, 90, .1);
    --lime-line: rgba(212, 255, 90, .32);
    --sans: 'Geologica', 'Noto Sans Georgian', system-ui, -apple-system, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

    --bk-accent: var(--lime);
    --bk-on-accent: var(--lime-ink);
    --bk-radius: 12px;
    --bk-font: var(--sans);
    --bk-ink: var(--ink);
    --bk-muted: var(--muted);
    --bk-line: rgba(255, 255, 255, .13);
    --bk-soft: rgba(255, 255, 255, .06);
    --bk-surface: var(--surface);

    --m-bg: var(--surface);
    --m-accent: var(--lime);
    --m-on-accent: var(--lime-ink);
    --m-line: var(--line);
    --m-chip: rgba(255, 255, 255, .06);
    --m-chip-hover: rgba(255, 255, 255, .11);
    --m-radius: 16px;
    --m-btn-radius: 10px;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
:lang(ka) body, :lang(ka) .bk-overlay { font-family: 'Noto Sans Georgian', var(--sans); }
img { max-width: 100%; display: block; }
a { color: inherit; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
:where(a, button, input, iframe, [tabindex]):focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* ---- Кнопки ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; padding: 0 24px;
    border: 0; border-radius: 12px; background: var(--lime); color: var(--lime-ink); cursor: pointer;
    font: 600 16px/1.2 var(--sans); text-decoration: none; text-align: center; transition: background .15s, color .15s, box-shadow .15s;
}
.btn:hover { background: var(--lime-hi); }
.btn.ghost, .btn-ghost, .svc-book { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover, .btn-ghost:hover, .svc-book:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--lime-line); }
.shine::after { background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, .7) 50%, transparent 100%) !important; }

/* ---- Шапка ---- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(11, 13, 16, .84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 21px/1 var(--sans); letter-spacing: -.03em; text-decoration: none; color: var(--ink); flex: none; }
.nav { display: flex; gap: 2px; margin-left: 12px; }
.nav a { padding: 8px 12px; border-radius: 9px; color: var(--muted); text-decoration: none; font-size: 15px; white-space: nowrap; transition: color .15s, background .15s; }
.nav a:hover { color: var(--ink); }
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(--ink); background: var(--surface-2); }
.langs { display: flex; margin-left: auto; padding: 3px; border-radius: 11px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.langs button { min-width: 38px; height: 32px; padding: 0 8px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; font: 500 13px/1 var(--sans); }
.langs button:hover { color: var(--ink); }
.langs button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); }
.top-book { min-height: 40px; padding: 0 18px; font-size: 15px; flex: none; }

/* ---- Первый экран и табло ---- */
.hero { position: relative; padding: 64px 0 88px; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(42% 52% at 78% 42%, rgba(212, 255, 90, .075), transparent 70%),
        linear-gradient(transparent calc(100% - 1px), rgba(255, 255, 255, .035) 0) 0 0 / 100% 64px;
    mask-image: linear-gradient(180deg, #000 40%, transparent);
    -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 64px; align-items: center; }
.hero h1 { margin: 0 0 22px; font: 600 clamp(40px, 4.3vw, 62px)/1.04 var(--sans); letter-spacing: -.037em; text-wrap: balance; }
:lang(ka) .hero h1 { font: 700 clamp(30px, 3.3vw, 46px)/1.25 'Noto Sans Georgian', var(--sans); letter-spacing: 0; }
.lead { margin: 0 0 32px; max-width: 46ch; color: var(--muted); font-size: 19px; line-height: 1.55; }
:lang(ka) .lead { font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 28px 0 0; color: var(--muted); font-size: 14px; }
.hero-meta span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--lime); vertical-align: 2px; }
.hero-meta span + span::before { background: var(--line-2); }

.board {
    position: relative; border-radius: 24px; background: linear-gradient(180deg, #161b22, #11151b);
    box-shadow: inset 0 0 0 1px var(--line), 0 50px 120px -50px rgba(0, 0, 0, .9);
}
.board-head { display: flex; align-items: center; gap: 12px; padding: 20px 24px 16px; border-bottom: 1px solid var(--line); }
.board-head h2 { flex: 1; margin: 0; font: 600 19px/1.25 var(--sans); letter-spacing: -.01em; }
.clock { margin: 0; color: var(--muted); font-size: 13px; white-space: nowrap; }
.clock time { color: var(--ink); font-size: 15px; font-weight: 500; }
.pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); flex: none; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--lime); opacity: 0; }

.slot-row {
    display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "ava who next" "rib rib next" "more more more";
    gap: 12px 16px; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line);
}
.ava { grid-area: ava; width: 52px; height: 52px; border-radius: 15px; object-fit: cover; object-position: 50% 18%; background: var(--surface-2); }
.who { grid-area: who; min-width: 0; }
.who h3 { margin: 0; font: 600 17px/1.25 var(--sans); }
.who p { margin: 3px 0 0; color: var(--muted); font-size: 14px; line-height: 1.3; }
.next {
    grid-area: next; align-self: stretch; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 2px;
    min-width: 152px; max-width: 190px; padding: 12px 16px; border: 1px solid var(--lime-line); border-radius: 16px;
    background: var(--lime-soft); color: var(--ink); cursor: pointer; text-align: right; font: inherit;
    transition: background .18s, color .18s, border-color .18s;
}
.next-day { color: var(--lime); font-size: 13px; font-weight: 600; line-height: 1.2; }
.next-time { display: flex; font-size: 36px; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.next-time .dg { display: inline-block; overflow: hidden; height: 1.08em; }
.next-time i { display: inline-block; font-style: normal; }
.next-time .colon { opacity: .55; margin: 0 1px; }
.next-rel { display: block; color: var(--muted); font-size: 13px; line-height: 1.3; }
.next:hover { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.next:hover .next-day, .next:hover .next-rel { color: var(--lime-ink); }

.ribbon { grid-area: rib; position: relative; padding-top: 2px; }
.cells { display: grid; grid-template-columns: repeat(18, minmax(0, 1fr)); gap: 3px; height: 16px; }
.cells i { border-radius: 3px; }
.cells .c-past { background: rgba(255, 255, 255, .035); }
.cells .c-busy { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .13) 0 2px, rgba(255, 255, 255, .03) 2px 5px); }
.cells .c-free { box-shadow: inset 0 0 0 1px rgba(212, 255, 90, .45); background: rgba(212, 255, 90, .07); }
.cells .c-next { background: var(--lime); box-shadow: 0 0 14px rgba(212, 255, 90, .55); }
.ribbon .now { position: absolute; top: -3px; height: 24px; width: 2px; margin-left: -1px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 3px rgba(11, 13, 16, .7); transition: left .6s ease; }
.ribbon .now::before { content: ""; position: absolute; top: -3px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.scale { display: flex; justify-content: space-between; margin-top: 6px; color: rgba(148, 156, 168, .75); font: 500 11px/1 var(--mono); }
.scale b { font-weight: 500; }

.more { grid-area: more; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.chip {
    min-height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: transparent; color: var(--ink);
    cursor: pointer; font: 500 14px/1 var(--mono); transition: border-color .15s, color .15s, background .15s;
}
.chip:hover { border-color: var(--lime); color: var(--lime); }
.all { margin-left: auto; min-height: 36px; padding: 0 2px; border: 0; background: none; color: var(--muted); cursor: pointer; font: 500 14px/1.2 var(--sans); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 5px; }
.all:hover { color: var(--ink); text-decoration-color: var(--lime); }
.board-foot { margin: 0; padding: 16px 24px 20px; color: var(--muted); font-size: 13px; }

/* ---- Разделы ---- */
.sec { padding: 96px 0; border-top: 1px solid var(--line); }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 36px; }
.h2 { margin: 0; font: 600 clamp(30px, 3.2vw, 44px)/1.1 var(--sans); letter-spacing: -.03em; }
:lang(ka) .h2 { font: 700 clamp(25px, 2.6vw, 34px)/1.3 'Noto Sans Georgian', var(--sans); letter-spacing: 0; }
.more-link { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 5px; }
.more-link:hover { color: var(--ink); text-decoration-color: var(--lime); }

/* Направления: строка — что лечим, справа — ближайшее время к этому врачу */
.svc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
.svc li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--line); }
.svc h3 { margin: 0 0 6px; font: 600 18px/1.3 var(--sans); }
.svc p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.faces { display: flex; }
.faces img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; box-shadow: 0 0 0 2px var(--bg); }
.faces img + img { margin-left: -6px; }
.svc-time {
    display: grid; justify-items: end; gap: 2px; min-width: 128px; padding: 9px 13px; border: 1px solid var(--line-2); border-radius: 12px;
    background: transparent; color: var(--ink); cursor: pointer; font: inherit; text-align: right; transition: border-color .15s, background .15s;
}
.svc-time small { color: var(--muted); font-size: 12px; line-height: 1.2; }
.svc-time b { font-size: 15px; font-weight: 600; white-space: nowrap; }
.svc-time:hover { border-color: var(--lime); background: var(--lime-soft); }

/* Врачи */
.docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.doc { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.doc-ph { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--surface-2); }
.doc-ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; filter: saturate(.85) contrast(1.03); }
.doc-ph::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, var(--surface)); }
.doc-body { flex: 1; display: flex; flex-direction: column; padding: 4px 22px 22px; }
.doc h3, .doc h2 { margin: 0; font: 600 20px/1.25 var(--sans); letter-spacing: -.01em; }
.doc .role { margin: 4px 0 8px; color: var(--lime); font-size: 14px; font-weight: 500; }
.doc .meta { margin: 0; color: var(--muted); font-size: 13px; }
.doc .bio { margin: 12px 0 0; color: #c3c9d1; font-size: 15px; }
.doc-next { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 16px 0 0; color: var(--muted); font-size: 13px; }
.doc-next:empty { display: none; }
.next-chip {
    min-height: 34px; padding: 0 12px; border: 1px solid var(--lime-line); border-radius: 10px; background: var(--lime-soft); color: var(--lime);
    cursor: pointer; font: 500 14px/1 var(--sans); transition: background .15s, color .15s;
}
.next-chip:hover { background: var(--lime); color: var(--lime-ink); }
.doc .row { margin-top: auto; padding-top: 16px; }
.doc .bk-book { width: 100%; }
.doc-inline { padding: 0 22px 22px; }
.doc-inline .bk-inline { margin-top: 0; }

/* О клинике */
.about { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.about-ph { margin: 0; overflow: hidden; border-radius: 22px; background: var(--surface); }
.about-ph img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.8) brightness(.92); }
.about-copy > p { margin: 18px 0 0; color: #c3c9d1; font-size: 17px; max-width: 48ch; }
.facts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 32px 0; padding: 0; }
.facts li { padding-top: 12px; border-top: 1px solid var(--line-2); }
.facts b { display: block; color: var(--lime); font-size: 38px; font-weight: 700; line-height: 1.1; }
.facts span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.35; }

/* Контакты */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.addr { margin: 20px 0 6px; font: 600 26px/1.3 var(--sans); letter-spacing: -.02em; }
:lang(ka) .addr { font-size: 21px; letter-spacing: 0; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.map iframe, .ct-map {
    display: block; width: 100%; height: 380px; border: 0; border-radius: 20px; background: var(--surface);
    filter: invert(.92) hue-rotate(180deg) saturate(.6) brightness(.95);
}

.foot { border-top: 1px solid var(--line); padding: 32px 0; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.foot .brand { font-size: 18px; }
.foot-note { color: var(--muted); font-size: 13px; flex: 1; }
.foot-links { display: flex; gap: 18px; font-size: 14px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }

/* ---- Панель на телефоне: самое раннее окно ---- */
.mbar { display: none; }

/* ---- Внутренние страницы (общие блоки shared/pages) ---- */
.page { max-width: 1240px; margin: 0 auto; padding: 56px 32px 96px; }
.page-title { margin: 0 0 40px; font: 600 clamp(36px, 4.4vw, 60px)/1.05 var(--sans); letter-spacing: -.035em; }
:lang(ka) .page-title { font: 700 clamp(28px, 3.2vw, 42px)/1.3 'Noto Sans Georgian', var(--sans); letter-spacing: 0; }
.svc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.svc-card { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.svc-title { margin: 0 0 8px; font: 600 19px/1.3 var(--sans); }
.svc-text { margin: 0 0 12px; color: #c3c9d1; font-size: 15px; }
.svc-docs { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.svc-docs b { color: var(--ink); font-weight: 500; }
.svc-book { margin-top: auto; min-height: 44px; font-size: 15px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: start; }
.about-text p { margin: 0 0 20px; color: #c3c9d1; font-size: 18px; max-width: 54ch; }
.about-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; filter: saturate(.8) brightness(.92); }
.about-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 24px 64px; margin: 56px 0 0; padding: 28px 0 0; border-top: 1px solid var(--line-2); }
.about-facts strong { display: block; margin-bottom: 6px; color: var(--lime); font: 700 46px/1 var(--mono); }
.about-facts span { display: block; max-width: 20ch; color: var(--muted); font-size: 15px; }
.ct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; align-items: start; }
.ct-list { margin: 0; }
.ct-list dt { margin: 22px 0 4px; color: var(--muted); font-size: 13px; }
.ct-list dt:first-child { margin-top: 0; }
.ct-list dd { margin: 0; font: 600 22px/1.35 var(--sans); }
:lang(ka) .ct-list dd { font-size: 19px; }
.ct-list a { text-underline-offset: 5px; text-decoration-color: var(--lime-line); }
.ct-msgs { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.ct-actions { display: flex; flex-wrap: wrap; gap: 12px; align-content: start; }
.ct-map { grid-column: 1 / -1; height: 400px; }

/* ---- Окно записи и блоки записи: тёмная тема ---- */
.bk-overlay { background: rgba(3, 4, 6, .72); }
.bk-dialog { box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 100px rgba(0, 0, 0, .6); }
.bk-time { font-family: var(--mono); }
.bk-time:disabled { color: rgba(238, 241, 244, .26); }
.bk-pick:hover { box-shadow: none; }
.bk-error { color: #ff9b8a; }
.bk-field input::placeholder { color: rgba(238, 241, 244, .3); }
.bk-row { background: var(--surface); }
.bk-chip { font-family: var(--mono); }

/* ---- Движение: только если не просили убрать ---- */
@media (prefers-reduced-motion: no-preference) {
    .pulse::after { animation: mn-pulse 2.2s ease-out infinite; }
    .slot-row { animation: mn-row .7s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--row) * .12s + .2s); }
    .next-time i { animation: mn-roll .75s cubic-bezier(.2, .9, .25, 1) backwards; animation-delay: calc(var(--k) * 45ms + .45s); }
    .cells i { animation: mn-cell .45s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--row) * .12s + var(--k) * 22ms + .35s); }
    .cells .c-next { animation: mn-cell .45s cubic-bezier(.2, .8, .2, 1) backwards, mn-beacon 2.4s ease-in-out 1.8s infinite; animation-delay: calc(var(--row) * .12s + var(--k) * 22ms + .35s), 1.8s; }
    .ribbon .now { animation: mn-fade .6s ease backwards 1.2s; }
    [data-rel-at] { display: inline-block; }
    .next-rel[data-rel-at] { display: block; }
    [data-rel-at].ticked { animation: mn-tick .5s cubic-bezier(.2, .9, .25, 1) backwards; }
    .doc-ph img { transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
    .doc:hover .doc-ph img { transform: scale(1.04); }
    .mbar { animation: mn-up .6s cubic-bezier(.2, 1.2, .4, 1) backwards .8s; }
}
@keyframes mn-pulse { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(2.8); } }
@keyframes mn-row { from { opacity: 0; transform: translateY(14px); } }
@keyframes mn-roll { from { transform: translateY(110%); } }
@keyframes mn-cell { from { opacity: 0; transform: scaleY(.15); } }
@keyframes mn-beacon { 50% { box-shadow: 0 0 22px rgba(212, 255, 90, .9); } }
@keyframes mn-fade { from { opacity: 0; } }
@keyframes mn-tick { from { opacity: 0; transform: translateY(.6em); } }
@keyframes mn-up { from { opacity: 0; transform: translateY(30px); } }

/* ---- Ширины ---- */
@media (max-width: 1100px) {
    .nav a { padding: 8px 9px; font-size: 14px; }
    .top .wrap { gap: 14px; }
}
@media (max-width: 980px) {
    .top .wrap { flex-wrap: wrap; row-gap: 0; padding-top: 10px; }
    .nav { order: 5; width: calc(100% + 32px); margin: 6px -16px 0; padding: 0 10px 8px; overflow-x: auto; scrollbar-width: none; }
    .nav::-webkit-scrollbar { display: none; }
    .hero { padding: 40px 0 64px; }
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .board { max-width: 680px; }
    .svc { grid-template-columns: minmax(0, 1fr); }
    .docs { grid-template-columns: minmax(0, 1fr); }
    .doc { flex-direction: row; }
    .doc-ph { flex: 0 0 240px; aspect-ratio: auto; min-height: 260px; }
    .doc-ph::after { inset: 0 0 0 55%; background: linear-gradient(90deg, transparent, var(--surface)); }
    .doc-body { padding: 22px; }
    [data-mode="inline"] .doc { flex-wrap: wrap; }
    [data-mode="inline"] .doc-inline { display: block; flex: 1 0 100%; padding-top: 0; }
    .about, .contact, .about-grid, .ct-grid, .svc-list { grid-template-columns: minmax(0, 1fr); }
    .about { gap: 32px; }
    .sec { padding: 72px 0; }
}
@media (max-width: 760px) {
    body { padding-bottom: 92px; }
    body.g-has-float { padding-bottom: 0; }
    .mbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45; }
    body.g-has-float .mbar { display: none; }
    .mbar-pick {
        flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 9px 9px 16px;
        border: 1px solid var(--line-2); border-radius: 18px; background: rgba(21, 25, 32, .94); color: var(--ink); cursor: pointer; text-align: left; font: inherit;
        backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
    }
    .mbar-info { min-width: 0; }
    .mbar-info small { display: block; overflow: hidden; color: var(--lime); font-size: 12px; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
    .mbar-info b { display: block; font-size: 16px; line-height: 1.3; }
    .mbar-info em { display: block; overflow: hidden; color: var(--muted); font-size: 12px; font-style: normal; white-space: nowrap; text-overflow: ellipsis; }
    .mbar-cta { flex: none; display: flex; align-items: center; min-height: 46px; padding: 0 16px; border-radius: 12px; background: var(--lime); color: var(--lime-ink); font-weight: 600; font-size: 15px; }
    .top-book { display: none; }
}
@media (max-width: 640px) {
    .wrap { padding: 0 16px; }
    .top .wrap { min-height: 60px; }
    .brand { font-size: 19px; }
    .lead { font-size: 17px; }
    .hero-actions .btn { flex: 1 1 auto; }
    /* Табло на телефоне сразу после заголовка и подводки: главное видно на первом экране */
    .hero { padding-top: 28px; }
    .hero-grid { gap: 0; }
    .hero-copy { display: contents; }
    .hero h1 { order: 1; font-size: 34px; margin-bottom: 14px; }
    :lang(ka) .hero h1 { font-size: 26px; }
    .lead { order: 2; margin-bottom: 22px; font-size: 16px; }
    .board { order: 3; }
    .hero-actions { order: 4; margin-top: 28px; }
    .hero-meta { order: 5; }
    .board { border-radius: 20px; margin: 0 -4px; }
    .board-head { padding: 16px 16px 14px; }
    .board-head h2 { font-size: 17px; }
    .slot-row { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "ava who next" "rib rib rib" "more more more"; padding: 16px; gap: 12px; }
    .ava { width: 44px; height: 44px; border-radius: 13px; }
    .who h3 { font-size: 16px; }
    .who p { font-size: 13px; }
    .next { min-width: 0; max-width: 136px; padding: 9px 12px; border-radius: 14px; }
    .next-time { font-size: 28px; }
    .next-rel { font-size: 12px; }
    .all { margin-left: 0; }
    .board-foot { padding: 14px 16px 18px; }
    .svc li { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .svc-time { justify-items: start; text-align: left; justify-self: start; }
    .doc { flex-direction: column; }
    .doc-ph { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
    .doc-ph::after { inset: 55% 0 0; background: linear-gradient(transparent, var(--surface)); }
    .doc-body { padding: 4px 18px 18px; }
    .doc-inline { padding: 0 18px 18px; }
    .facts { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .facts li { display: flex; align-items: baseline; gap: 14px; }
    .facts b { font-size: 30px; min-width: 2.2ch; }
    .page { padding: 40px 16px 72px; }
    .ct-list dd { font-size: 19px; overflow-wrap: anywhere; }
    .map iframe, .ct-map { height: 300px; }
    .btns .btn, .ct-actions .btn { flex: 1 1 100%; }
}

/* Форма обратной связи: тёмная панель, лаймовая кнопка, моно для служебных подписей. */
[data-contact-form] {
    --cf-accent: var(--lime);
    --cf-on-accent: var(--lime-ink);
    --cf-radius: 12px;
    --cf-btn-radius: 12px;
    --cf-ink: var(--ink);
    --cf-line: var(--line-2);
    --cf-field-bg: var(--surface-2);
    --cf-error: #ff8f7a;
    --cf-bg: var(--surface);
    --cf-pad: 40px;
    border-radius: 22px;
    box-shadow: inset 0 0 0 1px var(--line-2);
}
.cf-intro h2 { font: 600 clamp(28px, 3.2vw, 40px)/1.1 var(--sans); letter-spacing: -.03em; }
:lang(ka) .cf-intro h2 { font-weight: 700; letter-spacing: 0; line-height: 1.3; font-size: clamp(24px, 2.6vw, 32px); }
.cf-field > label, .cf-via legend { color: var(--muted); font: 500 13px/1.3 var(--mono); }
.cf-field input:hover, .cf-field textarea:hover { border-color: var(--lime-line); }
.cf-pill span { font-family: var(--mono); font-size: 13px; }
.cf-pill input:checked + span { background: var(--lime); color: var(--lime-ink); }
.cf-submit { font-weight: 700; }
.cf-submit:hover:not(:disabled) { filter: none; background: var(--lime-hi); }
.cf-done { background: var(--surface-2); }
.cf-done h2 { letter-spacing: -.02em; }
@media (max-width: 820px) { [data-contact-form] { --cf-pad: 24px 18px; border-radius: 18px; } }
