/* =========================================================
   DentTrip Tbilisi — лендинг стоматологических поездок
   Mobile-first. Логические CSS-свойства (inline/block),
   чтобы версия на иврите (dir="rtl") заработала без переделок.
   ========================================================= */

:root {
  --ink: #0c2f3a;          /* основной тёмный (глубокий морской) */
  --ink-2: #3d5a63;        /* вторичный текст */
  --muted: #6b8188;
  --bg: #f5f8f8;
  --surface: #ffffff;
  --tint: #e8f3f1;         /* мятный фон секций */
  --line: #dde8e7;
  --primary: #0f8b8d;      /* бирюзовый */
  --primary-d: #0b6f71;
  --accent: #ff6a3d;       /* коралловый — CTA, как красная кнопка в референсе */
  --accent-d: #e8542a;
  --wa: #25d366;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(12,47,58,.06), 0 8px 24px rgba(12,47,58,.07);
  --shadow-lg: 0 2px 6px rgba(12,47,58,.06), 0 24px 48px rgba(12,47,58,.12);
  --header-h: 64px;
  --font: "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  padding-block-end: 76px; /* место под мобильную панель */
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 6.4vw, 2.75rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 .8em; }
p:last-child { margin-block-end: 0; }
svg:not(.leaflet-zoom-animated) { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.muted { color: var(--muted); }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.35em; border-radius: 999px; border: 0;
  font: 600 1rem/1.1 var(--font); cursor: pointer; white-space: nowrap;
  transition: transform .2s, background-color .2s, box-shadow .2s, color .2s;
}
.btn svg { font-size: 1.15em; }
.btn:active { transform: scale(.97); }
.btn--sm { padding: .6em 1.05em; font-size: .9rem; }
.btn--lg { padding: 1.05em 1.6em; font-size: 1.02rem; }
.btn--block { width: 100%; white-space: normal; text-align: center; }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(255,106,61,.32); }
.btn--accent:hover { background: var(--accent-d); }
.btn--ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--primary); color: var(--primary-d); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #1ebe5b; }
.btn .wa { stroke: none; }
.btn--ghost .wa { color: var(--wa); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 3px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary-d); background: var(--tint);
  padding: .45em .9em; border-radius: 999px; margin-block-end: 14px;
}
.eyebrow--light { color: #bff0ea; background: rgba(255,255,255,.1); }
.link { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--accent); margin-block-start: 6px; }
.link:hover svg { transform: translateX(3px); }
.link svg { transition: transform .2s; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,248,248,.82);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-block-end: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(12,47,58,.06); }
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; }
.logo__mark { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 20px; }
.logo__text b { color: var(--primary); font-weight: 700; margin-inline-start: 2px; }
.logo--light { color: #fff; }
.logo--light .logo__mark { background: var(--primary); }
.logo--light .logo__text b { color: #8fe3da; }
.nav { display: none; }
.header__actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.header__cta { display: none; }
.lang { display: flex; background: var(--surface); border-radius: 999px; padding: 3px; box-shadow: inset 0 0 0 1px var(--line); }
.lang__btn { border: 0; background: none; font: 600 .82rem var(--font); color: var(--muted); padding: .4em .75em; border-radius: 999px; cursor: pointer; }
.lang__btn.is-active { background: var(--ink); color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: 20px 36px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -30% auto auto; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(15,139,141,.16), transparent 65%); pointer-events: none;
}
.hero__grid { position: relative; display: grid; gap: 28px; }
.hero__title { font-size: clamp(2.15rem, 9.6vw, 4.1rem); font-weight: 800; letter-spacing: -.035em; margin-block-end: 18px; }
.hl { color: var(--primary); }
.hero__lead { font-size: 1.06rem; color: var(--ink-2); max-width: 36em; margin-block-end: 24px; }
.hero__ctas { display: flex; flex-direction: column; gap: 10px; margin-block-end: 20px; }
.hero__ctas .btn { width: 100%; white-space: normal; text-align: center; }
.hero__trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .92rem; color: var(--ink-2); }
.hero__trust li { display: flex; align-items: center; gap: 6px; }
.hero__trust svg { color: var(--primary); }

/* Бенто-плитки */
.hero__bento { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  position: relative; border-radius: var(--radius); padding: 16px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  min-height: 132px; overflow: hidden; box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
  font-size: .9rem;
}
a.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tile b { font-size: 1.05rem; line-height: 1.2; }
.tile__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; margin-block-end: auto; }
.tile--big { grid-column: 1 / -1; min-height: 260px; color: #fff; padding: 18px; }
.tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
a.tile--photo:hover img { transform: scale(1.04); }
.tile--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,47,58,0) 35%, rgba(12,47,58,.85)); }
.tile__badge, .tile__caption { position: relative; z-index: 1; }
.tile__badge { position: absolute; inset-block-start: 14px; inset-inline-start: 14px; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.92); color: var(--ink); font-weight: 600; font-size: .82rem; padding: .45em .8em; border-radius: 999px; }
.tile__caption { display: flex; flex-direction: column; font-size: .9rem; opacity: .92; }
.tile__caption b { font-size: 1.2rem; opacity: 1; margin-block-end: 2px; }
.tile--soft { background: var(--surface); }
.tile--soft .tile__icon { background: var(--tint); color: var(--primary-d); }
.tile--soft span:not(.tile__icon), .tile--stat span:not(.stat__num) { color: var(--muted); }
.tile--dark { background: var(--ink); color: #fff; }
.tile--dark .tile__icon { background: rgba(255,255,255,.12); color: #8fe3da; }
.tile--dark span:not(.tile__icon) { color: #b9cdd1; }
.tile--accent { background: var(--accent); color: #fff; }
.tile--accent .tile__icon { background: rgba(255,255,255,.2); }
.tile--accent span:not(.tile__icon) { color: #ffe3d9; }
.tile--stat { background: var(--tint); justify-content: center; }
.stat__num { font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; color: var(--primary-d); line-height: 1; margin-block-end: 6px; }

/* ---------- Полоса фактов ---------- */
.facts { padding-block: 8px 8px; }
.facts__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fact { background: var(--surface); border-radius: var(--radius-sm); padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.fact__num { font-size: 1.85rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.fact__txt { font-size: .84rem; color: var(--ink-2); line-height: 1.35; }

/* ---------- Секции ---------- */
.section { padding-block: 64px; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--ink); color: #fff; }
.section__head { max-width: 760px; margin-block-end: 28px; }
.section__lead { color: var(--ink-2); font-size: 1.04rem; margin-block-start: 14px; }

/* ---------- Врач ---------- */
.doctor { display: grid; gap: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.doctor__photo { position: relative; aspect-ratio: 4 / 4.2; background: #eef3f3; }
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.doctor__since { position: absolute; inset-block-end: 14px; inset-inline-start: 14px; background: rgba(12,47,58,.85); color: #fff; font-size: .82rem; font-weight: 500; padding: .5em .9em; border-radius: 999px; backdrop-filter: blur(6px); }
.doctor__body { padding: 22px 18px 24px; }
.doctor__name { font-size: 1.9rem; font-weight: 800; }
.doctor__role { color: var(--primary-d); font-weight: 600; margin: 6px 0 14px; }
.chips { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: .82rem; font-weight: 500; background: var(--tint); color: var(--primary-d); padding: .4em .8em; border-radius: 999px; }
.doctor__body > p { color: var(--ink-2); }

.more { margin-block-start: 16px; border-block-start: 1px solid var(--line); padding-block-start: 12px; }
.more summary, .faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; }
.more summary { color: var(--primary-d); padding-block: 6px; }
.more summary::-webkit-details-marker, .faq__item summary::-webkit-details-marker { display: none; }
.more summary svg, .faq__item summary svg { transition: transform .3s; font-size: 1.2em; }
.more[open] summary svg, .faq__item[open] summary svg { transform: rotate(180deg); }
.timeline { list-style: none; margin: 12px 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; inset-block: 6px; inset-inline-start: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-inline-start: 26px; padding-block-end: 12px; font-size: .94rem; color: var(--ink-2); }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 1px; inset-block-start: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--primary); }
.timeline b { display: block; color: var(--ink); }

.team { display: grid; gap: 12px; margin-block-start: 12px; }
.team-card { display: flex; gap: 14px; align-items: center; background: var(--surface); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.team-card img { width: 92px; height: 92px; border-radius: 16px; object-fit: cover; object-position: 50% 20%; flex-shrink: 0; }
.team-card h4 { font-size: 1.05rem; margin-block-end: 4px; }
.team-card p { font-size: .9rem; margin-block-end: 4px; color: var(--ink-2); }
.team-card .muted { color: var(--primary-d); font-weight: 500; font-size: .84rem; }
.team-card--wide { flex-direction: column; align-items: stretch; padding: 0; overflow: hidden; }
.team-card--wide img { width: 100%; height: 190px; border-radius: 0; object-position: 50% 35%; }
.team-card--wide div { padding: 4px 16px 16px; }

/* ---------- Услуги ---------- */
.services { display: grid; gap: 12px; }
.service { background: var(--surface); border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service h3 { margin-block-end: 8px; }
.service p { color: var(--ink-2); font-size: .95rem; }
.service__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--tint); color: var(--primary-d); margin-block-end: 16px; }
.service--feature { padding: 0; overflow: hidden; }
.service--feature img { width: 100%; height: 210px; object-fit: cover; }
.service--feature .service__body { padding: 20px; position: relative; }
.service--feature .service__icon { margin-block-start: -44px; background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(15,139,141,.35); }
.service--dark { background: var(--ink); color: #fff; }
.service--dark p { color: #b9cdd1; }
.service--dark .service__icon { background: rgba(255,255,255,.1); color: #8fe3da; }

/* ---------- Клиника ---------- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.g { position: relative; margin: 0; border-radius: var(--radius-sm); overflow: hidden; min-height: 150px; background: #e5eeee; }
.g img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .8s; }
.g:hover img { transform: scale(1.05); }
.g figcaption { position: absolute; inset-inline: 8px; inset-block-end: 8px; background: rgba(255,255,255,.92); color: var(--ink); font-size: .78rem; font-weight: 500; padding: .4em .7em; border-radius: 10px; width: fit-content; max-width: calc(100% - 16px); }
.g--a { grid-column: 1 / -1; min-height: 220px; }

.clinic-extra { display: grid; gap: 12px; margin-block-start: 12px; }
.tech { list-style: none; margin: 0; padding: 20px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 12px; }
.tech li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.tech svg { color: var(--primary); font-size: 1.15em; margin-block-start: .15em; }

.tour { border-radius: var(--radius); overflow: hidden; position: relative; min-height: 260px; background: var(--ink); box-shadow: var(--shadow); }
.tour__facade, .tour iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tour__facade img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.tour__facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(12,47,58,.85)); }
.tour__btn { position: absolute; inset-inline: 16px; inset-block-end: 16px; z-index: 1; display: flex; align-items: center; gap: 14px; text-align: start; background: rgba(255,255,255,.95); border: 0; border-radius: 18px; padding: 12px 16px 12px 12px; cursor: pointer; font: inherit; color: var(--ink); font-size: .88rem; transition: transform .25s; }
.tour__btn:hover { transform: translateY(-3px); }
.tour__btn b { display: block; font-size: 1rem; }
.tour__btn span:last-child { color: var(--muted); }
.tour__btn span:last-child b { color: var(--ink); }
.tour__play { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 26px; flex-shrink: 0; animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,106,61,.5); } 50% { box-shadow: 0 0 0 10px rgba(255,106,61,0); } }

/* ---------- Ваке / карта ---------- */
.location { display: grid; gap: 24px; }
.location h2 { margin-block-end: 14px; }
.location__text > p { color: #c4d6da; font-size: 1.04rem; }
.loc-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.loc-list li { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .92rem; color: #c4d6da; }
.loc-list b { display: block; color: #fff; font-size: 1rem; }
.loc-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(143,227,218,.15); color: #8fe3da; font-size: 20px; flex-shrink: 0; }
.map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.map { height: 360px; background: #dfe9ea; }
.map-card { position: absolute; z-index: 500; inset-block-start: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--ink); font-weight: 600; font-size: .85rem; padding: .55em .9em; border-radius: 999px; box-shadow: var(--shadow); }
.map-card svg { color: var(--accent); }
.vake-label { background: none; border: 0; }
.vake-label span { display: inline-block; transform: translate(-50%, -50%); background: var(--ink); color: #fff; font: 700 13px/1 var(--font); padding: 8px 12px; border-radius: 999px; white-space: nowrap; box-shadow: 0 6px 16px rgba(12,47,58,.35); }
.poi-label span { display: inline-block; transform: translate(-50%, -50%); background: #fff; color: var(--ink); font: 500 11.5px/1 var(--font); padding: 6px 9px; border-radius: 999px; white-space: nowrap; box-shadow: 0 3px 10px rgba(12,47,58,.18); }
.leaflet-container { font-family: var(--font); }
.leaflet-control-attribution { font-size: 9px !important; }

/* ---------- Проживание ---------- */
.stay { display: grid; gap: 14px; }
.carousel { position: relative; }
.carousel__track {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  border-radius: var(--radius); scrollbar-width: none; outline: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 88%; aspect-ratio: 4 / 3; margin: 0; scroll-snap-align: center; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, #dff0ed, #c9e4e0); }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.slide.is-empty img { display: none; }
.slide__ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--primary-d);
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,.7), transparent 45%),
    repeating-linear-gradient(135deg, rgba(15,139,141,.05) 0 14px, transparent 14px 28px);
}
.slide__ph svg { font-size: 54px; stroke-width: 1.5; margin-block-end: 6px; }
.slide__ph span { font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.slide__ph small { font-size: .82rem; color: var(--muted); border: 1.5px dashed rgba(15,139,141,.4); padding: .35em .8em; border-radius: 999px; }
.slide figcaption { position: absolute; z-index: 2; inset-block-end: 12px; inset-inline-start: 12px; background: rgba(12,47,58,.82); color: #fff; font-size: .82rem; font-weight: 500; padding: .45em .85em; border-radius: 999px; backdrop-filter: blur(6px); }
.slide.is-empty figcaption { display: none; }
.carousel__ui { display: flex; align-items: center; justify-content: center; gap: 14px; margin-block-start: 14px; }
.carousel__btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); display: grid; place-items: center; font-size: 20px; cursor: pointer; box-shadow: var(--shadow); transition: background .2s, color .2s; }
.carousel__btn:hover { background: var(--ink); color: #fff; }
.carousel__dots { display: flex; gap: 6px; }
.carousel__dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: #c3d4d3; cursor: pointer; transition: width .3s, background .3s; }
.carousel__dots button.is-active { width: 26px; background: var(--primary); }

.stay__features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feat { background: var(--surface); border-radius: var(--radius-sm); padding: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.feat b { font-size: 1rem; }
.feat p { font-size: .84rem; color: var(--ink-2); margin: 2px 0 0; line-height: 1.4; }
.feat__ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--primary-d); font-size: 20px; }

/* ---------- Трансфер ---------- */
.care { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.care__card { position: relative; background: var(--surface); border-radius: var(--radius); padding: 18px 16px; box-shadow: var(--shadow); overflow: hidden; }
.care__card h3 { font-size: 1.02rem; margin: 14px 0 6px; }
.care__card p { font-size: .86rem; color: var(--ink-2); line-height: 1.45; }
.care__ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--ink); color: #8fe3da; font-size: 22px; }
.care__step { position: absolute; inset-block-start: 10px; inset-inline-end: 14px; font-size: 2.2rem; font-weight: 800; color: var(--tint); letter-spacing: -.04em; line-height: 1; }
.care__card--accent { background: var(--accent); color: #fff; }
.care__card--accent p { color: #ffe3d9; }
.care__card--accent .care__ic { background: rgba(255,255,255,.2); color: #fff; }
.care__card--accent .care__step { color: rgba(255,255,255,.22); }

/* ---------- Как проходит поездка ---------- */
.journey { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.journey__step { position: relative; display: flex; gap: 16px; padding-block-end: 22px; }
.journey__step:not(:last-child)::before { content: ""; position: absolute; inset-inline-start: 23px; inset-block: 48px 0; width: 2px; background: linear-gradient(var(--primary), var(--line)); }
.journey__n { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0; background: var(--surface); color: var(--primary-d); font-weight: 800; font-size: 1.2rem; box-shadow: var(--shadow), inset 0 0 0 2px var(--tint); }
.journey__step:first-child .journey__n { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(255,106,61,.35); }
.journey__step:last-child .journey__n { background: var(--ink); color: #fff; }
.journey h3 { margin: 4px 0 4px; }
.journey p { color: var(--ink-2); font-size: .95rem; }

/* ---------- Форма оценки ---------- */
.estimate-sec { background: linear-gradient(160deg, var(--ink) 0%, #0f4a55 100%); color: #fff; position: relative; overflow: hidden; }
.estimate-sec::before { content: ""; position: absolute; width: 560px; height: 560px; inset-block-start: -200px; inset-inline-end: -200px; background: radial-gradient(circle, rgba(143,227,218,.18), transparent 65%); }
.estimate { position: relative; display: grid; gap: 26px; }
.estimate > *, .hero__grid > *, .location > *, .stay > *, .clinic-extra > *, .faq-wrap > * { min-width: 0; }
.estimate__info h2 { margin-block-end: 14px; }
.estimate__info > p { color: #c4d6da; }
.estimate__list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.estimate__list li { display: flex; gap: 12px; align-items: flex-start; color: #dbe8ea; font-size: .95rem; }
.estimate__list svg { color: #8fe3da; font-size: 1.25em; margin-block-start: .1em; }

.form { position: relative; background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 20px 16px; box-shadow: 0 30px 60px rgba(0,0,0,.25); display: grid; gap: 14px; }
.form__row { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: .86rem; font-weight: 600; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; padding: .85em 1em;
  transition: border-color .2s, background .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(15,139,141,.12); }
.field__err { display: none; color: #d23f2a; font-size: .8rem; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #e2563f; }
.field.is-invalid .field__err, .consent__err.is-shown { display: block; }
.consent__err { margin-block-start: -8px; }

.drop__zone { display: flex; align-items: center; gap: 14px; padding: 16px; border: 2px dashed #b8d6d3; border-radius: 16px; background: var(--tint); cursor: pointer; font-size: .86rem; color: var(--ink-2); transition: border-color .2s, background .2s; }
.drop__zone b { display: block; color: var(--ink); font-size: 1rem; }
.drop.is-over .drop__zone, .drop__zone:hover { border-color: var(--primary); background: #dcefeb; }
.drop__ic { width: 46px; height: 46px; border-radius: 14px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.drop__list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.drop__list:empty { display: none; }
.drop__list li { display: flex; align-items: center; gap: 10px; background: var(--bg); border-radius: 12px; padding: 6px 8px; font-size: .85rem; }
.drop__thumb { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; background: var(--tint); display: grid; place-items: center; color: var(--primary-d); flex-shrink: 0; }
.drop__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop__size { color: var(--muted); font-size: .78rem; }
.drop__rm { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px; display: grid; place-items: center; border-radius: 8px; }
.drop__rm:hover { background: #fde5df; color: #d23f2a; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--ink-2); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--primary); flex-shrink: 0; }
.form__alt { text-align: center; font-size: .88rem; color: var(--muted); margin: -4px 0 0; }
.form__alt a { color: var(--primary-d); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.form__ok { position: absolute; inset: 0; background: var(--surface); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 8px; animation: fadeUp .5s both; }
.form__ok[hidden] { display: none; }
.form__ok-ic { width: 72px; height: 72px; border-radius: 50%; background: var(--tint); color: var(--primary); display: grid; place-items: center; font-size: 36px; margin-block-end: 8px; }
.form__ok h3 { font-size: 1.5rem; }
.form__ok p { color: var(--ink-2); max-width: 22em; }
.btn.is-loading { pointer-events: none; opacity: .75; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq__item { background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 4px 18px; }
.faq__item summary { padding-block: 14px; font-size: 1rem; }
.faq__item summary svg { color: var(--primary); }
.faq__item p { color: var(--ink-2); padding-block-end: 14px; font-size: .95rem; }

/* ---------- Финал ---------- */
.final { padding-block: 0 64px; }
.final__card { position: relative; overflow: hidden; border-radius: 28px; padding: 32px 20px; color: #fff; text-align: center; background: radial-gradient(120% 120% at 100% 0%, #13a3a5 0%, var(--primary) 35%, var(--ink) 100%); box-shadow: var(--shadow-lg); }
.final__card h2 { max-width: 16em; margin: 0 auto 20px; }
.final__list { list-style: none; padding: 0; margin: 0 auto 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 760px; }
.final__list li { display: flex; flex-direction: column; align-items: center; gap: 6px; background: rgba(255,255,255,.1); border-radius: 16px; padding: 14px 8px; font-size: .88rem; font-weight: 500; }
.final__list svg { font-size: 22px; color: #bff0ea; }
.final__ctas { display: flex; flex-direction: column; gap: 10px; align-items: stretch; max-width: 420px; margin-inline: auto; }
.final__ctas .btn { white-space: normal; }

/* ---------- Футер ---------- */
.footer { background: #08222a; color: #93abb1; padding-block: 36px; font-size: .85rem; }
.footer__inner { display: grid; gap: 14px; }
.footer__note { max-width: 60em; }

/* ---------- Плавающие ---------- */
.wa-float { display: none; }
.mobile-bar {
  position: fixed; z-index: 60; inset-inline: 0; inset-block-end: 0;
  display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-block-start: 1px solid var(--line);
  transform: translateY(110%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.mobile-bar.is-visible { transform: none; }
.mobile-bar .btn--accent { flex: 1; }
.mobile-bar .btn--wa { width: 52px; padding: 0; font-size: 1.4rem; }
.toast { position: fixed; z-index: 80; inset-inline: 16px; inset-block-end: 90px; margin-inline: auto; max-width: 380px; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px; font-size: .9rem; text-align: center; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .3s, transform .3s; }
.toast.is-shown { opacity: 1; transform: none; }

/* ---------- Анимации появления ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .tour__play { animation: none; }
}

/* =========================================================
   ПЛАНШЕТ
   ========================================================= */
@media (min-width: 640px) {
  .hero__ctas { flex-direction: row; flex-wrap: wrap; }
  .hero__ctas .btn { width: auto; }
  .facts__row { grid-template-columns: repeat(4, 1fr); }
  .form__row { grid-template-columns: 1fr 1fr; }
  .form { padding: 28px; }
  .team { grid-template-columns: 1fr 1.4fr; }
  .team-card { flex-direction: column; align-items: stretch; padding: 0; overflow: hidden; }
  .team-card img { width: 100%; height: 220px; border-radius: 0; }
  .team-card > div { padding: 4px 18px 18px; }
  .team-card--wide img { height: 220px; }
  .services { grid-template-columns: 1fr 1fr; }
  .service--feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; }
  .service--feature img { height: 100%; min-height: 260px; }
  .service--feature .service__body { padding: 28px; align-self: center; }
  .service--feature .service__icon { margin-block-start: 0; }
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; }
  .g { min-height: 0; }
  .g--a { grid-column: span 2; grid-row: span 2; }
  .stay__features { grid-template-columns: repeat(4, 1fr); }
  .care { grid-template-columns: repeat(4, 1fr); }
  .slide { flex-basis: 70%; }
  .final__list { grid-template-columns: repeat(4, 1fr); }
  .final__ctas { flex-direction: row; justify-content: center; max-width: none; }
  .final__card { padding: 56px 32px; }
}

/* =========================================================
   ДЕСКТОП
   ========================================================= */
@media (min-width: 1000px) {
  :root { --header-h: 76px; }
  body { padding-block-end: 0; font-size: 17px; }
  .nav { display: flex; gap: 26px; margin-inline-start: 36px; font-size: .94rem; font-weight: 500; color: var(--ink-2); }
  .nav a { position: relative; padding-block: 6px; }
  .nav a::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; height: 2px; background: var(--primary); transform: scaleX(0); transition: transform .25s; }
  .nav a:hover { color: var(--ink); }
  .nav a:hover::after { transform: scaleX(1); }
  .header__cta { display: inline-flex; }

  .hero { padding-block: 48px 64px; }
  .hero__grid { grid-template-columns: 1.02fr 1fr; align-items: center; gap: 48px; }
  .hero__bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 128px; gap: 12px; }
  .tile { min-height: 0; padding: 18px; }
  .tile--big { grid-column: 1 / 5; grid-row: 1 / 4; min-height: 0; padding: 22px; }
  .tile--soft { grid-column: 5 / 7; grid-row: 1 / 3; }
  .tile--dark { grid-column: 5 / 7; grid-row: 3 / 5; }
  .tile--stat { grid-column: 1 / 3; grid-row: 4 / 5; }
  .tile--accent { grid-column: 3 / 5; grid-row: 4 / 5; flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap; }
  .tile--accent .tile__icon { margin: 0; }
  .tile--accent b { flex: 1; }
  .tile--accent span:last-child { flex-basis: 100%; display: none; }

  .section { padding-block: 104px; }
  .section__head { margin-block-end: 44px; }

  .doctor { grid-template-columns: .9fr 1.1fr; }
  .doctor__photo { aspect-ratio: auto; min-height: 560px; }
  .doctor__body { padding: 48px 48px; align-self: center; }
  .doctor__name { font-size: 2.6rem; }
  .team { grid-template-columns: 1fr 2fr; gap: 16px; margin-block-start: 16px; }
  .team-card--wide { flex-direction: row; align-items: center; }
  .team-card--wide img { width: 55%; height: 100%; min-height: 240px; }
  .team-card--wide div { padding: 24px; }

  .services { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .service--feature { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
  .service--feature img { height: 0; min-height: 240px; flex: 1 1 auto; }
  .service--feature .service__body { padding: 28px; align-self: auto; }
  .service--feature .service__icon { margin-block-start: -52px; }

  .gallery { grid-auto-rows: 210px; gap: 14px; }
  .clinic-extra { grid-template-columns: 1fr 1.4fr; gap: 16px; margin-block-start: 16px; }
  .tech { padding: 28px; align-content: center; }
  .tour { min-height: 340px; }

  .location { grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
  .map { height: 500px; }

  .stay { grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
  .slide { flex-basis: 100%; }
  .stay__features { grid-template-columns: 1fr 1fr; gap: 12px; }
  .feat { padding: 18px; }

  .care { gap: 16px; }
  .care__card { padding: 26px 22px; }

  .journey { grid-template-columns: repeat(6, 1fr); gap: 14px; }
  .journey__step { flex-direction: column; gap: 14px; padding: 0; }
  .journey__step:not(:last-child)::before { inset-inline-start: 56px; inset-inline-end: -14px; inset-block: 23px auto; width: auto; height: 2px; }
  .journey__step h3 { font-size: 1.05rem; }
  .journey p { font-size: .9rem; }

  .estimate { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
  .form { padding: 32px; }

  .faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }

  .final { padding-block-end: 104px; }
  .final__card { padding: 72px 48px; }

  .footer__inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }

  .mobile-bar { display: none; }
  .wa-float {
    display: grid; place-items: center; position: fixed; z-index: 60; inset-inline-end: 24px; inset-block-end: 24px;
    width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; font-size: 30px;
    box-shadow: 0 12px 28px rgba(37,211,102,.45); transition: transform .25s;
  }
  .wa-float:hover { transform: scale(1.08); }
  .wa-float svg { stroke: none; }
  .toast { inset-block-end: 100px; }
}
