/*
 * Bubu — «Яркий детский». Для родителей, о детях: игриво, но аккуратно. Солнечно-жёлтый первый экран с волной,
 * тёмно-виноградные текст и обводка, яркие «наклейки» (мандарин, мята, небо, розовый, лаванда) с тёмным текстом —
 * контраст везде не ниже AA. Крупные скругления, толстая обводка и «твёрдая» тень снизу, как у наклейки.
 * Заголовки — Nunito 900 (круглые концы, кириллица), грузинский — Noto Sans Georgian 800.
 * Главное движение: свои SVG-фигурки плавают, «живое» пятно с портретом дышит, кнопки пружинят при наведении
 * и сжимаются при нажатии, на экране «Запись создана» — конфетти (bubu.js).
 * Всё движение — под prefers-reduced-motion: no-preference (html.motion); при «уменьшить» всё стоит.
 * @author Maksym Mariukhnik <max@absoluteweb.com>
 */
:root {
    --sun: #ffcf33;
    --tang: #ff7a35;
    --tang-2: #ff9157;
    --mint: #34c9a8;
    --sky: #8fd0ff;
    --pink: #ff9ec0;
    --lav: #c9b8ff;
    --grape: #4a2bb0;
    --grape-2: #3a1f95;
    --ink: #22174d;
    --ink-2: #463f6b;
    --muted: #5c5580;
    --paper: #fff;
    --sky-soft: #e6f4ff;
    --lav-soft: #f1edff;
    --pink-soft: #ffe6ef;
    --sun-soft: #fff1b8;
    --line: rgba(34, 23, 77, .14);
    --spring: cubic-bezier(.3, 1.9, .45, 1);
    --round: 'Nunito', 'Noto Sans Georgian', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --bk-accent: var(--grape);
    --bk-on-accent: #fff;
    --bk-radius: 16px;
    --bk-font: var(--round);
    --bk-ink: var(--ink);
    --bk-muted: var(--muted);
    --bk-line: var(--line);
    --bk-soft: rgba(74, 43, 176, .07);

    --m-accent: var(--grape);
    --m-on-accent: #fff;
    --m-bg: var(--paper);
    --m-line: var(--ink);
    --m-chip: var(--lav-soft);
    --m-chip-hover: var(--lav);
    --m-radius: 28px;
}

/* ---------- База ---------- */
*, *::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: 500 17px/1.6 var(--round); -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(--grape); outline-offset: 3px; border-radius: 8px; }
.foot :focus-visible, .facts-band :focus-visible { outline-color: var(--sun); }

.h2 { font: 900 clamp(36px, 4.2vw, 60px)/1.04 var(--round); letter-spacing: -.015em; }
html[lang="ka"] .h2 { font-weight: 800; font-size: clamp(27px, 2.8vw, 40px); line-height: 1.28; letter-spacing: 0; }
.lead { margin-top: 16px; max-width: 56ch; color: var(--ink-2); font-size: 19px; }
html[lang="ka"] .lead { font-size: 17px; }

/* Кнопка-наклейка: толстая обводка и «твёрдая» тень; пружинит (см. «Движение»). */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px;
    border: 2.5px solid var(--ink); border-radius: 999px; cursor: pointer; text-decoration: none; white-space: nowrap;
    background: var(--tang); color: var(--ink); font: 800 17px/1.1 var(--round); box-shadow: 0 5px 0 var(--ink);
    transition: background .2s, box-shadow .2s;
}
html[lang="ka"] .btn { font-size: 15.5px; }
.btn:hover { background: var(--tang-2); }
.btn:active { box-shadow: 0 1px 0 var(--ink); transform: translateY(4px); }
.btn.ghost, .btn.btn-ghost { background: var(--paper); }
.btn.ghost:hover, .btn.btn-ghost:hover { background: var(--lav-soft); }
.btn svg { flex: none; }

/* ---------- Шапка ---------- */
.top { position: relative; z-index: 5; background: var(--sun); }
.top-row { display: flex; align-items: center; gap: 24px; min-height: 92px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 900 32px/1 var(--round); letter-spacing: -.02em; }
.brand img { flex: none; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 9px 15px; border-radius: 999px; text-decoration: none; font-size: 16px; font-weight: 800; white-space: nowrap; }
html[lang="ka"] .nav a { font-size: 15px; font-weight: 700; }
.nav a:hover { background: rgba(255, 255, 255, .55); }
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"] { background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); }
.langs { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .6); }
.langs button { min-width: 40px; min-height: 36px; padding: 0 8px; border: 0; border-radius: 999px; cursor: pointer; background: transparent; color: var(--ink); font: 800 14px var(--round); }
.langs button:hover { background: var(--paper); }
.langs button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.top-book { min-height: 46px; padding: 0 20px; font-size: 15.5px; box-shadow: 0 4px 0 var(--ink); }
.top-wave { position: absolute; top: calc(100% - 1px); left: 0; display: block; width: 100%; height: 34px; fill: var(--sun); pointer-events: none; }
body[data-page="home"] .top-wave { display: none; }

/* ---------- Плавающие фигурки ---------- */
.fl { position: absolute; display: block; pointer-events: none; z-index: 1; }
.fl svg { display: block; width: 100%; height: auto; overflow: visible; }
.fl-star { width: 66px; left: 45%; top: 9%; fill: var(--tang); --t: 7.5s; --dr: 18deg; }
.fl-cloud { width: 130px; left: 1.5%; bottom: 13%; fill: #fff; --t: 9s; --dx: 18px; --dy: -6px; --dr: 0deg; }
.fl-squig { width: 110px; right: 45%; bottom: 10%; fill: none; stroke: var(--pink); stroke-width: 9; stroke-linecap: round; --t: 6.5s; --dr: -10deg; }
.fl-dots { width: 58px; left: 41%; bottom: 20%; fill: #fff; --t: 8s; --d: -2s; }
.fl-ring { width: 92px; right: -3%; top: 0; fill: none; stroke: var(--grape); stroke-width: 12; --t: 8.5s; --d: -3s; --dx: -8px; }
.fl-plus { width: 74px; left: -2%; top: 8%; fill: var(--mint); stroke: var(--ink); stroke-width: 0; --t: 7s; --d: -1s; --dr: 24deg; }
.fl-half { width: 96px; left: 34%; bottom: -3%; fill: var(--sky); --t: 6s; --d: -4s; --dy: -10px; --dr: -6deg; }
.fl-star2 { width: 76px; right: -14px; top: -22px; fill: var(--sun); stroke: var(--ink); stroke-width: 5; stroke-linejoin: round; --t: 8s; --dr: 20deg; }
.fl-ring2 { width: 170px; right: -40px; top: -48px; fill: none; stroke: var(--tang); stroke-width: 11; --t: 10s; --dx: -12px; --dy: 12px; z-index: 0; }
.fl-squig2 { width: 130px; right: 26%; bottom: 14px; fill: none; stroke: var(--mint); stroke-width: 9; stroke-linecap: round; --t: 7s; --d: -2s; z-index: 0; }

/* ---------- Первый экран ---------- */
.hero { position: relative; overflow: hidden; background: var(--sun); padding: 12px 0 132px; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 40px; align-items: center; }
.hero-tag {
    display: inline-block; padding: 8px 18px; border-radius: 999px; background: var(--paper);
    border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); font-size: 15px; font-weight: 800; line-height: 1.35;
}
.hero-title { margin-top: 24px; font: 900 clamp(44px, 5.5vw, 82px)/1 var(--round); letter-spacing: -.025em; }
html[lang="ka"] .hero-title { font-weight: 800; font-size: clamp(31px, 3.6vw, 52px); line-height: 1.24; letter-spacing: 0; }
.hero-lead { margin-top: 22px; max-width: 44ch; font-size: 20px; line-height: 1.5; font-weight: 600; color: var(--ink-2); }
html[lang="ka"] .hero-lead { font-size: 17.5px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 16px; margin-top: 32px; }
.hero-hours { display: flex; align-items: center; gap: 9px; margin-top: 24px; font-weight: 700; }

.hero-art { position: relative; justify-self: end; width: 100%; max-width: 560px; aspect-ratio: 1 / 1.02; margin: 8px 0 0; }
.hero-back {
    position: absolute; inset: 7% 0 2% 10%; background: var(--tang);
    border-radius: 46% 54% 42% 58% / 55% 45% 55% 45%; transform: rotate(-8deg);
}
.hero-blob {
    position: absolute; inset: 3% 9% 9% 5%; overflow: hidden; background: var(--sky);
    border: 4px solid var(--ink); border-radius: 58% 42% 50% 50% / 48% 56% 44% 52%;
}
.hero-blob img { width: 100%; height: 100%; object-fit: cover; }
.sticker {
    position: absolute; left: -3%; bottom: 13%; z-index: 3; display: grid; place-content: center; width: 136px; height: 136px;
    border-radius: 50%; background: var(--grape); color: #fff; text-align: center; transform: rotate(-12deg);
    border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink);
}
.sticker b { display: block; font: 900 36px/1 var(--round); color: var(--sun); }
.sticker span { display: block; margin-top: 2px; font-size: 16px; font-weight: 800; line-height: 1.2; }
.hero-cap {
    position: absolute; right: 2%; bottom: 3%; z-index: 3; padding: 10px 18px 11px; border-radius: 20px; background: var(--paper);
    border: 2.5px solid var(--ink); box-shadow: 0 4px 0 var(--ink); line-height: 1.3;
}
.hero-cap b { display: block; font-weight: 900; font-size: 16.5px; }
.hero-cap span { display: block; font-size: 14px; font-weight: 700; color: var(--muted); }
.hero-wave { position: absolute; left: 0; bottom: -1px; z-index: 2; display: block; width: 100%; height: 84px; fill: var(--paper); }

/* ---------- Секции ---------- */
.sec { padding: 96px 0; }
.sec-head { max-width: 780px; margin-bottom: 48px; }
.sec-more { margin-top: 48px; }

/* Стена наклеек: услуги */
.wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 26px; }
.stk {
    --c: var(--sun); --r: -2deg;
    position: relative; padding: 24px 24px 28px; background: var(--c); border: 2.5px solid var(--ink); border-radius: 36px;
    box-shadow: 0 6px 0 var(--ink); rotate: var(--r);
}
.stk:nth-child(8n + 2) { --c: var(--sky); --r: 1.5deg; border-radius: 44px 44px 44px 12px; }
.stk:nth-child(8n + 3) { --c: var(--pink); --r: -1deg; border-radius: 28px; }
.stk:nth-child(8n + 4) { --c: var(--mint); --r: 2deg; border-radius: 48px 16px 48px 48px; }
.stk:nth-child(8n + 5) { --c: var(--tang); --r: 1deg; border-radius: 28px 48px 28px 48px; }
.stk:nth-child(8n + 6) { --c: var(--lav); --r: -1.5deg; }
.stk:nth-child(8n + 7) { --c: var(--sun); --r: 1.2deg; border-radius: 44px 12px 44px 44px; }
.stk:nth-child(8n + 8) { --c: var(--sky); --r: -2deg; border-radius: 28px; }
.stk-ico {
    display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 16px; border-radius: 50%;
    background: var(--paper); border: 2.5px solid var(--ink); color: var(--ink);
}
.stk h3 { font: 900 22px/1.15 var(--round); }
html[lang="ka"] .stk h3 { font-weight: 800; font-size: 18px; line-height: 1.35; }
.stk p { margin-top: 8px; font-size: 15.5px; line-height: 1.5; font-weight: 600; }
html[lang="ka"] .stk p { font-size: 14.5px; }

/* Визит глазами ребёнка и родителя */
.views-sec { padding: 16px 0 24px; }
.views {
    display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center;
    padding: 64px; border-radius: 56px; background: var(--lav-soft);
}
.views-photo { position: relative; margin: 0; }
.views-frame { overflow: hidden; aspect-ratio: 4 / 3.7; border: 3px solid var(--ink); border-radius: 46% 54% 40% 60% / 42% 40% 60% 58%; background: var(--sky-soft); }
.views-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.views-photo figcaption { margin-top: 18px; max-width: 40ch; font-size: 15px; font-weight: 700; color: var(--muted); }
.tabs {
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 460px; margin: 28px 0 30px;
    padding: 6px; border-radius: 999px; background: var(--paper); border: 2.5px solid var(--ink); box-shadow: 0 4px 0 var(--ink);
}
.tabs::before { content: ""; position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc(50% - 6px); border-radius: 999px; background: var(--grape); }
.views[data-view="parent"] .tabs::before { translate: 100% 0; }
.tabs button {
    position: relative; z-index: 1; min-height: 50px; padding: 0 12px; border: 0; border-radius: 999px; cursor: pointer;
    background: transparent; color: var(--ink); font: 800 17px/1.15 var(--round);
}
html[lang="ka"] .tabs button { font-size: 15px; }
.tabs button[aria-selected="true"] { color: #fff; }
.pts-panel { border-radius: 24px; }
.pts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.pts li::before {
    content: ""; display: block; width: 30px; height: 30px; margin-bottom: 12px; background: var(--tang);
    border: 2.5px solid var(--ink); border-radius: 50% 50% 50% 10%;
}
.pts li:nth-child(2)::before { background: var(--mint); border-radius: 10px; rotate: 12deg; }
.pts li:nth-child(3)::before { background: var(--sky); border-radius: 50%; }
.pts li:nth-child(4)::before { background: var(--pink); border-radius: 50% 10% 50% 50%; }
.pts h3 { font: 900 21px/1.2 var(--round); }
html[lang="ka"] .pts h3 { font-weight: 800; font-size: 17.5px; line-height: 1.35; }
.pts p { margin-top: 6px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
html[lang="ka"] .pts p { font-size: 15px; }

/* Врачи */
.docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; align-items: start; }
.doc {
    --tone: var(--sky); --tone-soft: var(--sky-soft);
    display: grid; grid-template-columns: 156px minmax(0, 1fr); gap: 20px 28px; align-items: start;
    padding: 30px; border-radius: 44px; background: var(--paper); border: 2.5px solid var(--ink); box-shadow: 0 8px 0 var(--ink);
}
.doc-pink { --tone: var(--pink); --tone-soft: var(--pink-soft); }
.doc-ph { width: 156px; aspect-ratio: 1; margin: 4px 0 0; border-radius: 50%; overflow: hidden; border: 2.5px solid var(--ink); box-shadow: 9px 9px 0 var(--tone); background: var(--tone-soft); }
.doc-ph img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); transform-origin: 50% 22%; }
.doc-name { font: 900 26px/1.15 var(--round); }
html[lang="ka"] .doc-name { font-weight: 800; font-size: 22px; line-height: 1.3; }
.doc-role { margin-top: 4px; color: var(--grape); font-weight: 800; }
.doc-bio { margin-top: 12px; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
html[lang="ka"] .doc-bio { font-size: 15px; }
.doc-toy {
    display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 11px 14px; border-radius: 18px;
    background: var(--tone-soft); font-size: 15px; font-weight: 700; line-height: 1.4;
}
.doc-toy .ico { flex: none; width: 24px; height: 24px; margin-top: -1px; }
.doc-meta { margin-top: 12px; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.doc-act { margin-top: 20px; }
.doc-act .btn { min-height: 50px; padding: 0 24px; font-size: 16px; }
.doc-inline { grid-column: 1 / -1; padding: 20px; border-radius: 26px; background: var(--tone-soft); }
.docs[data-mode="inline"] { grid-template-columns: minmax(0, 1fr); }
.docs[data-mode="inline"] .doc { grid-template-columns: 156px minmax(0, 1fr); }

/* Цифры */
.facts-sec { padding: 0 0 96px; }
.facts-band { position: relative; overflow: hidden; padding: 64px; border-radius: 56px; background: var(--grape); color: #fff; }
.facts-band .h2 { position: relative; z-index: 1; }
.facts { position: relative; z-index: 1; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin: 44px 0 0; padding: 0; }
.facts strong { display: block; font: 900 clamp(54px, 6vw, 88px)/1 var(--round); color: var(--sun); letter-spacing: -.02em; white-space: nowrap; }
.facts span { display: block; margin-top: 10px; max-width: 24ch; font-size: 17px; font-weight: 700; line-height: 1.4; }
html[lang="ka"] .facts span { font-size: 15.5px; }

/* Как нас найти */
.visit { padding-top: 0; }
.visit-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 40px 64px; align-items: end; padding: 56px 64px; border-radius: 56px; background: var(--sky-soft); }
.visit-addr { margin-top: 18px; font: 900 clamp(24px, 2.4vw, 34px)/1.25 var(--round); }
html[lang="ka"] .visit-addr { font-weight: 800; font-size: clamp(21px, 2vw, 27px); line-height: 1.4; }
.visit-how { margin-top: 10px; color: var(--ink-2); max-width: 52ch; }
.visit-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 20px; margin: 22px 0 0; }
.visit-list dt { color: var(--muted); font-weight: 700; }
.visit-list dd { margin: 0; font-weight: 800; }
.visit-acts { display: grid; gap: 16px; }

/* ---------- Подвал ---------- */
.foot { margin-top: 48px; color: #fff; }
.foot-wave { display: block; width: 100%; height: 48px; fill: var(--ink); margin-bottom: -1px; }
.foot-in { background: var(--ink); padding: 36px 0 44px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px 40px; align-items: start; }
.brand-foot { font-size: 40px; }
.foot-col b { display: block; margin-bottom: 6px; color: var(--sun); font-weight: 800; }
.foot-col span, .foot-col > a { display: block; }
.foot-links { display: flex !important; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; }
.foot a { color: #fff; text-underline-offset: 4px; }
.foot a:hover { color: var(--sun); }
.foot-note { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .78); font-size: 14px; }

/* ---------- Внутренние страницы ---------- */
.page { max-width: 1320px; margin: 0 auto; padding: 80px 40px 56px; }
.page-title { margin-bottom: 48px; font: 900 clamp(44px, 5.4vw, 80px)/1 var(--round); letter-spacing: -.02em; }
.page-title::after {
    content: ""; display: block; width: 180px; height: 18px; margin-top: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 18'%3E%3Cpath d='M4 9c6-9 12-9 16 0s10 9 16 0 10-9 16 0 10 9 16 0 10-9 16 0 6 6 12 3' fill='none' stroke='%23ff7a35' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left center / contain;
}
html[lang="ka"] .page-title { font-weight: 800; font-size: clamp(34px, 4vw, 56px); line-height: 1.25; letter-spacing: 0; }
.docs-page { grid-template-columns: minmax(0, 1fr); max-width: 1000px; }
.docs-page .doc { grid-template-columns: 220px minmax(0, 1fr); padding: 36px; }
.docs-page .doc-ph { width: 220px; }

.svc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.svc-card {
    --c: var(--sun-soft);
    display: flex; flex-direction: column; align-items: flex-start; padding: 30px 30px 32px; border-radius: 40px;
    background: var(--c); border: 2.5px solid var(--ink); box-shadow: 0 6px 0 var(--ink);
}
.svc-card:nth-child(4n + 2) { --c: var(--sky-soft); }
.svc-card:nth-child(4n + 3) { --c: var(--pink-soft); }
.svc-card:nth-child(4n + 4) { --c: #dcf7ee; }
.svc-title { font: 900 26px/1.15 var(--round); }
html[lang="ka"] .svc-title { font-weight: 800; font-size: 21px; line-height: 1.35; }
.svc-text { margin-top: 10px; color: var(--ink-2); max-width: 52ch; }
.svc-docs { margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--muted); }
.svc-docs b { color: var(--ink); }
.svc-book { margin-top: auto; min-height: 48px; padding: 0 24px; font-size: 16px; background: var(--paper); }
.svc-book:hover { background: var(--lav-soft); }
.svc-docs + .svc-book { margin-top: 24px; }

.about-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; }
.about-text p { margin: 0 0 18px; max-width: 54ch; font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.about-text p:first-child { font: 800 clamp(22px, 2vw, 28px)/1.4 var(--round); 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.4; object-fit: cover; border: 3px solid var(--ink); border-radius: 46% 54% 40% 60% / 42% 40% 60% 58%; }
.about-facts { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 72px 0 0; padding: 0; }
.about-facts li { padding: 26px 24px; border-radius: 36px; background: var(--sun); border: 2.5px solid var(--ink); box-shadow: 0 6px 0 var(--ink); }
.about-facts li:nth-child(2) { background: var(--mint); }
.about-facts li:nth-child(3) { background: var(--sky); }
.about-facts li:nth-child(4) { background: var(--pink); }
.about-facts strong { display: block; font: 900 clamp(46px, 4.6vw, 66px)/1 var(--round); letter-spacing: -.02em; white-space: nowrap; }
.about-facts span { display: block; margin-top: 8px; font-size: 16px; font-weight: 700; line-height: 1.4; }
html[lang="ka"] .about-facts span { font-size: 15px; }

.ct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; align-items: start; }
.ct-list { display: grid; gap: 18px; margin: 0; padding: 32px; border-radius: 40px; background: var(--sky-soft); }
.ct-list dt { font-weight: 800; color: var(--grape); }
.ct-list dd { margin: 2px 0 0; font: 800 22px/1.35 var(--round); }
html[lang="ka"] .ct-list dd { font-size: 19px; }
.ct-list a { text-decoration-color: var(--tang); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.ct-msgs { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.ct-actions { display: flex; flex-wrap: wrap; gap: 16px; align-content: start; }
.ct-map { grid-column: 1 / -1; width: 100%; height: 400px; border: 2.5px solid var(--ink); border-radius: 40px; background: var(--sky-soft); }

/* Форма обратной связи: белая наклейка с обводкой */
[data-contact-form] {
    --cf-accent: var(--grape);
    --cf-on-accent: #fff;
    --cf-radius: 16px;
    --cf-btn-radius: 999px;
    --cf-error: #b42318;
    --cf-bg: var(--paper);
    --cf-pad: 48px;
    --cf-field-bg: var(--paper);
    --cf-line: var(--line);
    --cf-line-strong: rgba(34, 23, 77, .4);
    --cf-soft: var(--lav-soft);
    --cf-ink: var(--ink);
    --cf-muted: var(--muted);
    margin-top: 72px; border-radius: 44px; border: 2.5px solid var(--ink); box-shadow: 0 8px 0 var(--ink);
}
.cf-intro h2 { font: 900 clamp(34px, 3.6vw, 52px)/1.05 var(--round); letter-spacing: -.015em; }
html[lang="ka"] .cf-intro h2 { font-weight: 800; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.3; letter-spacing: 0; }
.cf-submit, .cf-again { border: 2.5px solid var(--ink) !important; box-shadow: 0 5px 0 var(--ink); font-weight: 800 !important; }
.cf-submit:active:not(:disabled) { box-shadow: 0 1px 0 var(--ink); transform: translateY(4px); }
.cf-done h2 { font-weight: 900; }

/* Переключатель способов записи и окно записи */
.g-modes { border: 0; box-shadow: 0 0 0 2.5px var(--ink), 0 6px 0 2.5px var(--ink); }
.g-modes-row button { font-weight: 800; }
.bk-dialog { border-radius: 32px; border: 3px solid var(--ink); }
.bk-head h2 { font-weight: 900; font-size: 24px; }
.bk-btn { border: 2.5px solid var(--ink) !important; box-shadow: 0 4px 0 var(--ink); font-weight: 800 !important; }
.bk-btn:active { box-shadow: 0 1px 0 var(--ink); transform: translateY(3px); }
.bk-check { width: 72px; height: 72px; border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); background: var(--mint) !important; color: var(--ink) !important; }
.bk-row-who h3 { font-weight: 900; }
.bk-pick img, .bk-sum img, .bk-row-who img { object-position: 52% 22%; }
.bb-confetti { position: fixed; inset: 0; z-index: 1001; width: 100vw; height: 100vh; pointer-events: none; }

/* ---------- Движение ---------- */
@media (prefers-reduced-motion: no-preference) {
    /* Пружина: при наведении кнопка подпрыгивает с перелётом, при нажатии сжимается и отскакивает обратно. */
    .btn, .bk-btn, .cf-submit, .cf-again, .bk-time:not(:disabled), .bk-day, .bk-chip, .g-modes-row button {
        transition: background .2s, color .2s, box-shadow .35s var(--spring), transform .45s var(--spring);
    }
    @media (hover: hover) {
        .btn:hover, .bk-btn:hover, .cf-submit:hover:not(:disabled), .cf-again:hover { transform: translateY(-3px) rotate(-1.2deg); }
        .btn:hover { box-shadow: 0 8px 0 var(--ink); }
        .bk-btn:hover, .cf-submit:hover:not(:disabled) { box-shadow: 0 7px 0 var(--ink); }
        .bk-time:hover:not(:disabled), .bk-day:hover, .bk-chip:hover, .g-modes-row button:hover { transform: translateY(-2px) scale(1.06); }
    }
    .btn:active, .bk-btn:active, .cf-submit:active:not(:disabled), .cf-again:active,
    .bk-time:active:not(:disabled), .bk-day:active, .bk-chip:active, .g-modes-row button:active {
        transform: translateY(4px) scale(.96); transition-duration: .08s;
    }
    .tabs::before { transition: translate .55s var(--spring); }

    /* Фигурки плавают: появление (scale) и плавание (transform) — разные свойства, не мешают друг другу. */
    html.motion .fl { animation: bb-in .8s var(--spring) backwards var(--d0, .5s), bb-float var(--t, 7s) ease-in-out var(--d, 0s) infinite; }
    html.motion .fl-cloud { --d0: .7s; }
    html.motion .fl-squig { --d0: .85s; }
    html.motion .fl-dots { --d0: 1s; }
    html.motion .fl-ring { --d0: .95s; }
    html.motion .fl-plus { --d0: 1.1s; }
    html.motion .fl-half { --d0: 1.2s; }
    html.motion .fl-star2, html.motion .fl-ring2, html.motion .fl-squig2 { animation: bb-float var(--t, 7s) ease-in-out var(--d, 0s) infinite; }

    /* Первый экран: пятно «дышит», портрет и наклейка выскакивают с перелётом. */
    html.motion .hero-back { animation: bb-in .9s var(--spring) .15s backwards, bb-morph2 13s ease-in-out 1s infinite; }
    html.motion .hero-blob { animation: bb-in .9s var(--spring) .3s backwards, bb-morph 11s ease-in-out 1.2s infinite; }
    html.motion .sticker { animation: bb-sticker 1s var(--spring) .9s backwards; }
    html.motion .hero-cap { animation: bb-in .8s var(--spring) 1.15s backwards; }

    /* Наклейки на стене выпрямляются и подпрыгивают при наведении. */
    .stk { transition: rotate .5s var(--spring), translate .5s var(--spring), box-shadow .3s; }
    @media (hover: hover) {
        .stk:hover { rotate: 0deg; translate: 0 -6px; box-shadow: 0 12px 0 var(--ink); }
        .stk:hover .stk-ico { animation: bb-wiggle .6s ease-in-out; }
    }

    /* Пункты вкладки выскакивают по очереди при переключении. */
    html.motion .pts-panel:not([hidden]) li { animation: bb-pop .6s var(--spring) backwards; }
    html.motion .pts-panel:not([hidden]) li:nth-child(2) { animation-delay: .07s; }
    html.motion .pts-panel:not([hidden]) li:nth-child(3) { animation-delay: .14s; }
    html.motion .pts-panel:not([hidden]) li:nth-child(4) { animation-delay: .21s; }

    .doc { transition: box-shadow .3s, translate .45s var(--spring); }
    @media (hover: hover) { .doc:hover { translate: 0 -4px; box-shadow: 0 12px 0 var(--ink); } }
}
@keyframes bb-in { from { scale: 0; opacity: 0; } }
@keyframes bb-pop { from { scale: .6; opacity: 0; } }
@keyframes bb-float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(var(--dx, 6px), var(--dy, -14px)) rotate(var(--dr, 8deg)); }
}
@keyframes bb-morph {
    0%, 100% { border-radius: 58% 42% 50% 50% / 48% 56% 44% 52%; }
    33% { border-radius: 48% 52% 42% 58% / 56% 46% 54% 44%; }
    66% { border-radius: 54% 46% 58% 42% / 44% 52% 48% 56%; }
}
@keyframes bb-morph2 {
    0%, 100% { border-radius: 46% 54% 42% 58% / 55% 45% 55% 45%; transform: rotate(-8deg); }
    50% { border-radius: 56% 44% 52% 48% / 45% 55% 45% 55%; transform: rotate(-3deg); }
}
@keyframes bb-sticker { from { opacity: 0; transform: rotate(-60deg) scale(.2); } }
@keyframes bb-wiggle { 25% { rotate: -12deg; } 60% { rotate: 9deg; } 85% { rotate: -3deg; } }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
    .top-row { gap: 16px; }
    .nav a { padding: 9px 11px; font-size: 15px; }
    .top-book { display: none; }
    .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .docs { grid-template-columns: minmax(0, 1fr); }
    .views { gap: 44px; padding: 52px; }
}
@media (max-width: 980px) {
    .wrap { padding: 0 28px; }
    .top-row { 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: 2px 24px 12px; overflow-x: auto; scrollbar-width: none; }
    .nav::-webkit-scrollbar { display: none; }
    .hero { padding-bottom: 110px; }
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .hero-art { justify-self: center; max-width: 480px; }
    .fl-star { left: auto; right: 6%; top: 4%; width: 52px; }
    .fl-dots { display: none; }
    .fl-cloud { bottom: 6%; width: 110px; }
    .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .views { grid-template-columns: minmax(0, 1fr); padding: 44px 36px; border-radius: 44px; }
    .views-photo { max-width: 520px; }
    .facts-band { padding: 52px 40px; border-radius: 44px; }
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
    .visit-grid { grid-template-columns: minmax(0, 1fr); padding: 44px 36px; border-radius: 44px; }
    .visit-acts { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
    .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .brand-foot { grid-column: 1 / -1; }
    .page { padding: 64px 28px 48px; }
    .svc-list { grid-template-columns: minmax(0, 1fr); }
    .about-grid, .ct-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .about-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    [data-contact-form] { --cf-pad: 32px; }
}
@media (max-width: 680px) {
    .doc, .docs[data-mode="inline"] .doc, .docs-page .doc { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; border-radius: 36px; }
    .doc-ph, .docs-page .doc-ph { width: 132px; }
    .pts { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    .wrap { padding: 0 16px; }
    .brand { font-size: 27px; gap: 8px; }
    .brand img { width: 40px; height: 40px; }
    .top-row { column-gap: 10px; padding-top: 10px; }
    .langs button { min-width: 34px; padding: 0 6px; }
    .top-book { display: none; }
    .nav { width: calc(100% + 32px); margin: 8px -16px 0; padding: 2px 12px 10px; }
    .top-wave { height: 22px; }
    .hero { padding-bottom: 88px; }
    .hero-tag { font-size: 14px; padding: 7px 14px; }
    .hero-title { margin-top: 18px; }
    .hero-lead { font-size: 17.5px; }
    .hero-actions .btn { flex: 1 1 100%; }
    .hero-art { max-width: 340px; margin-top: 0; }
    .sticker { width: 104px; height: 104px; left: -2%; bottom: 16%; }
    .sticker b { font-size: 28px; }
    .sticker span { font-size: 13.5px; }
    .hero-cap { right: 0; padding: 8px 13px 9px; }
    .hero-cap b { font-size: 15px; }
    .fl-ring { width: 66px; }
    .fl-plus { width: 54px; }
    .fl-half { width: 70px; }
    .fl-squig { width: 70px; right: auto; left: 4%; bottom: 3%; }
    .fl-star { display: none; }
    .fl-cloud { width: 88px; left: auto; right: 3%; bottom: 4%; }
    .hero-wave { height: 52px; }
    .sec { padding: 72px 0; }
    .sec-head { margin-bottom: 36px; }
    .wall { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .views-sec { padding-bottom: 8px; }
    .views { padding: 32px 20px; border-radius: 36px; gap: 32px; }
    .tabs button { font-size: 15.5px; }
    .facts-sec { padding-bottom: 72px; }
    .facts-band { padding: 40px 22px; border-radius: 36px; }
    .facts { gap: 32px 16px; }
    .facts span { font-size: 15px; }
    .visit-grid { padding: 32px 20px; border-radius: 36px; }
    .visit-list { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .visit-list dd { margin-bottom: 10px; }
    .foot-grid { grid-template-columns: minmax(0, 1fr); }
    .page { padding: 56px 16px 40px; }
    .page-title { margin-bottom: 36px; }
    .svc-card { padding: 26px 22px; border-radius: 34px; }
    .about-facts { grid-template-columns: minmax(0, 1fr); }
    .ct-list { padding: 24px 20px; border-radius: 32px; }
    .ct-map { height: 300px; border-radius: 32px; }
    [data-contact-form] { --cf-pad: 22px; border-radius: 34px; }
    .g-modes { padding: 14px; }
    .cf-submit { width: 100%; }
}
