/* ==========================================================
   КОЛЬОРИ ТА ШРИФТИ. Щоб перефарбувати сайт, змініть цей блок.
   Інші відтінки рахуються від --accent автоматично.
   ========================================================== */
:root {
  --bg: #ffffff;
  --surface: #f4f6f9;
  --text: #14243a;
  --muted: #55657a;
  --line: #e3e8ef;
  --accent: #2563d9;

  /* похідні від --accent (не чіпати) */
  --accent-hover: color-mix(in srgb, var(--accent) 84%, #000);
  --accent-soft: color-mix(in srgb, var(--accent) 8%, var(--bg));
  --accent-tint: color-mix(in srgb, var(--accent) 16%, var(--bg));
  --accent-line: color-mix(in srgb, var(--accent) 35%, var(--bg));
  --accent-ring: color-mix(in srgb, var(--accent) 40%, transparent);
  --on-accent: #ffffff;
  --section-blue: color-mix(in srgb, var(--accent) 7%, #fff);   /* світло-блакитні секції */
  --navy: color-mix(in srgb, var(--accent) 35%, #081426);       /* темно-синя секція */
  --container: 1280px;
  --shadow: 0 1px 2px color-mix(in srgb, var(--text) 6%, transparent),
            0 8px 28px color-mix(in srgb, var(--text) 8%, transparent);
  --shadow-lg: 0 2px 4px color-mix(in srgb, var(--text) 5%, transparent),
               0 20px 50px color-mix(in srgb, var(--accent) 14%, transparent);
  --danger: #c0262d;

  /* декор по боках (теж від --accent) */
  --d-white: color-mix(in srgb, var(--accent) 5%, #fff);
  --d-hi: color-mix(in srgb, var(--accent) 15%, #fff);
  --d-tint: color-mix(in srgb, var(--accent) 32%, #fff);
  --d-light: color-mix(in srgb, var(--accent) 58%, #fff);
  --d-base: var(--accent);
  --d-deep: color-mix(in srgb, var(--accent) 68%, #000);
  --d-steel: color-mix(in srgb, var(--accent) 12%, #bdbdbd);
  --d-steel-dk: color-mix(in srgb, var(--accent) 18%, #6e6e6e);
  --d-shadow: color-mix(in srgb, var(--accent) 28%, transparent);

  --font-head: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --radius: 20px;
  --radius-lg: 32px;
  --header-h: 72px;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 28px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  overflow-x: hidden;
  padding-bottom: 76px; /* місце для нижньої панелі на телефоні */
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 7vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4.6vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
ul, ol { margin: 0; padding: 0; }
button, input, select { font: inherit; color: inherit; }
.hl { color: var(--accent); }
.i { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 3px; border-radius: 10px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 12px 16px; border-radius: 12px; }
.skip:focus { top: 12px; }
.lead { font-size: 1.125rem; color: var(--muted); }
.eyebrow { font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.demo-note { font-size: 1rem; color: var(--muted); margin: 20px 0 0; }
.demo-ribbon { background: var(--text); color: #fff; text-align: center; font-size: 15px; padding: 8px 16px; }
.hp { position: absolute; left: -9999px; opacity: 0; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 14px;
  font-family: var(--font-head); font-weight: 700; font-size: 16px; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn .i { width: 20px; height: 20px; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--outline { background: var(--bg); color: var(--accent); border-color: var(--accent-line); }
.btn--outline:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 17px; }
.btn--white { background: #fff; color: var(--accent); }
.btn--white:hover { background: color-mix(in srgb, #fff 88%, var(--accent)); }
.btn:active { transform: translateY(1px); }
.icon-btn {
  width: 48px; height: 48px; border-radius: 14px; border: 2px solid var(--accent-line);
  background: var(--bg); color: var(--accent); display: inline-grid; place-items: center; cursor: pointer;
}
.icon-btn:hover { background: var(--accent-soft); border-color: var(--accent); }

/* ---------- 1. Шапка ---------- */
.header { position: sticky; top: 0; z-index: 50; padding: 10px 0; }
.header__bar {
  display: flex; align-items: center; gap: 12px; min-height: 64px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 8px 8px 8px 16px; max-width: var(--container); width: calc(100% - 20px);
}
.logo { flex: none; margin-right: auto; }
.logo img { width: 132px; height: auto; }
.header__phone, .header__cta { display: none; }
.burger {
  width: 48px; height: 48px; border-radius: 14px; border: 2px solid var(--line); background: var(--bg);
  display: grid; place-items: center; cursor: pointer; color: var(--text);
}
.nav {
  position: fixed; inset: 92px 10px auto 10px; z-index: 49;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 12px; max-height: calc(100vh - 110px); overflow: auto;
  opacity: 0; transform: translateY(-8px); visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
}
.nav.is-open { opacity: 1; transform: none; visibility: visible; }
.nav__list { list-style: none; display: grid; gap: 4px; }
.nav__link, .nav__phone {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border-radius: 14px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 17px;
}
.nav__link .i, .nav__phone .i { color: var(--accent); }
.nav__link:hover { background: var(--surface); }
.nav__link.is-active { background: var(--accent-soft); color: var(--accent); }
.nav__phone { border-top: 1px solid var(--line); margin-top: 8px; border-radius: 0 0 14px 14px; padding-top: 16px; }

@media (min-width: 480px) {
  .header__cta { display: inline-flex; }
}
@media (min-width: 768px) {
  .logo img { width: 152px; }
  .header__phone { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 600; padding: 0 8px; min-height: 48px; }
  .header__phone .i { color: var(--accent); }
  .nav__phone { display: none; }
}
@media (min-width: 1180px) {
  .burger { display: none; }
  .nav { position: static; opacity: 1; transform: none; visibility: visible; background: none; border: 0; box-shadow: none; padding: 0; max-height: none; overflow: visible; }
  .nav__list { display: flex; gap: 2px; }
  .nav__link { min-height: 48px; padding: 8px 12px; font-size: 15px; gap: 7px; }
  .nav__link .i { width: 20px; height: 20px; }
  .header__phone { font-size: 15px; }
}

/* ---------- 2. Перший екран ---------- */
.hero {
  padding: 24px 0 40px; margin-top: -84px; padding-top: 108px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--section-blue) 0%, var(--section-blue) 60%, var(--bg) 100%);
}
.hero__grid { display: grid; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 9vw, 5.6rem); line-height: 1.04; letter-spacing: -.035em; }
.hero__text .lead { max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero__actions .btn { flex: 1 1 220px; }
.hero__points { list-style: none; display: grid; gap: 10px; font-weight: 500; }
.hero__points li { display: flex; gap: 10px; align-items: center; }
.hero__points .i { color: var(--accent); width: 22px; height: 22px; padding: 3px; background: var(--accent-soft); border-radius: 50%; stroke-width: 2.4; }
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 5 / 5.2; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius-lg); background: var(--surface); }
.hero__badge {
  position: absolute; left: 14px; bottom: 14px; display: flex; gap: 12px; align-items: center;
  background: var(--bg); border-radius: 16px; padding: 12px 16px 12px 12px; box-shadow: var(--shadow-lg); font-size: 15px; line-height: 1.35;
}
.hero__badge-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
@media (min-width: 900px) {
  .hero { padding: 116px 0 56px; }
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  /* фото майже на висоту екрана (мінус шапка і відступи) */
  .hero__media img { aspect-ratio: auto; height: clamp(540px, calc(100svh - 176px), 940px); }
  .hero__points { display: flex; flex-wrap: wrap; gap: 10px 22px; }
  .hero__points li { white-space: nowrap; }
  .hero__actions .btn { flex: 0 0 auto; }
  .hero__badge { left: -28px; bottom: 36px; }
}

/* ---------- 3. Цифри ---------- */
.stats { padding: 0 0 24px; }
.stats__list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat { background: var(--surface); border-radius: var(--radius); padding: 22px 18px; }
.stat__value { font: 800 clamp(1.9rem, 6vw, 2.8rem)/1 var(--font-head); color: var(--accent); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.stat__label { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.4; }
@media (min-width: 900px) { .stats__list { grid-template-columns: repeat(4, 1fr); gap: 20px; } .stat { padding: 28px; } }

/* ---------- Секції ---------- */
.section { padding: 64px 0; }
.section--surface { background: var(--section-blue); }
.section--dark { background: var(--navy); color: #fff; }
.section--dark .hl { color: color-mix(in srgb, var(--accent) 45%, #fff); }
.section--dark .section__head p { color: #c9d6ea; }

/* Дві колонки: пояснення з кнопкою + віджет (до/після, ціни) */
.split { display: grid; gap: 8px 56px; grid-template-columns: minmax(0, 1fr); }
.split > * { min-width: 0; }
.split__aside .section__head { margin-bottom: 20px; }
.split__list { margin: 0 0 24px; }
.split__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.split__cta { margin-top: 4px; }
@media (max-width: 1023px) {
  /* на телефоні: заголовок → віджет → пояснення й кнопка → примітка */
  .split__aside, .split__main { display: contents; }
  .split__aside .section__head { order: 0; }
  .split__main > :not(.demo-note) { order: 1; }
  .split__aside .ba__note, .split__list, .split__actions, .split__cta { order: 2; }
  .split__main > .demo-note { order: 3; }
  .split__cta { justify-self: start; margin-top: 20px; }
  .split__list { margin-top: 24px; }
}
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
  .split__aside .ba__note { margin: 0 0 24px; }
}
.section__head { max-width: 680px; margin-bottom: 32px; }
.section__head p { color: var(--muted); font-size: 1.0625rem; }
.section__head--row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; max-width: none; }
@media (min-width: 900px) { .section { padding: 96px 0; } .section__head { margin-bottom: 44px; } }

/* ---------- Вкладки й чипи ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 18px;
  border-radius: 999px; border: 2px solid var(--line); background: var(--bg); cursor: pointer;
  font-weight: 600; font-size: 16px; color: var(--text); transition: border-color .2s, background-color .2s;
}
.chip .i { color: var(--accent); }
.chip:hover { border-color: var(--accent-line); }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 20px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; min-height: 48px; padding: 10px 18px; border-radius: 13px; border: 0; background: none; cursor: pointer;
  font-weight: 600; font-size: 16px; color: var(--muted); white-space: nowrap;
}
.tab:hover { color: var(--text); background: var(--surface); }
.tab[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }

/* ---------- 4. Що вас турбує ---------- */
.concerns__box { background: var(--surface); border-radius: var(--radius-lg); padding: 20px; }
.concerns__result:empty { display: none; }
.concern-card { margin-top: 18px; background: var(--bg); border-radius: var(--radius); padding: 22px; display: grid; gap: 18px; box-shadow: var(--shadow); }
.concern-card h3 { margin-bottom: 6px; }
.concern-card p { margin: 0; color: var(--muted); }
.concern-card__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px !important; color: var(--text) !important; font-weight: 600; }
.concern-card__meta span { display: inline-flex; gap: 6px; align-items: center; }
.concern-card__meta .i { width: 20px; height: 20px; color: var(--accent); }
.concern-card .btn { width: 100%; }
@media (min-width: 768px) {
  .concerns__box { padding: 32px; }
  .concern-card { grid-template-columns: 1fr auto; align-items: center; padding: 28px; }
  .concern-card .btn { width: auto; }
}

/* ---------- 5. Послуги ---------- */
.cards { display: grid; gap: 16px; }
.card {
  background: var(--bg); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.card__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.card p { color: var(--muted); }
.card__meta { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.card__time { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-size: 15px; }
.card__time .i { width: 18px; height: 18px; }
.card__price { font: 800 1.15rem var(--font-head); }
.card__price small { font: 500 15px var(--font-body); color: var(--muted); }
.card__link { margin-top: 14px; align-self: flex-start; padding-left: 0; padding-right: 0; border: 0; background: none; color: var(--accent); min-height: 44px; }
.card__link:hover { background: none; text-decoration: underline; }
@media (hover: hover) { .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); } }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } .card { padding: 28px; } }

/* ---------- 5а. Дітям ---------- */
.kids { display: grid; gap: 32px; align-items: center; }
.kids__media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.kids__steps { list-style: none; counter-reset: k; display: grid; gap: 14px; margin: 24px 0; }
.kids__steps li { counter-increment: k; position: relative; padding-left: 52px; }
.kids__steps li::before {
  content: counter(k); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font: 800 16px/36px var(--font-head); text-align: center;
}
.tip-card { background: var(--surface); border-radius: var(--radius); padding: 22px; margin-bottom: 24px; }
.checklist { list-style: none; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 7px; width: 12px; height: 7px;
  border-left: 2.4px solid var(--accent); border-bottom: 2.4px solid var(--accent); transform: rotate(-45deg);
}
@media (min-width: 960px) { .kids { grid-template-columns: 1fr 1fr; gap: 64px; } .kids__media img { aspect-ratio: 4 / 4.6; } }

/* ---------- 6. За що ви платите ---------- */
.features { list-style: none; display: grid; gap: 16px; }
.feature { background: var(--bg); border-radius: var(--radius); padding: 24px; }
.feature__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; margin-bottom: 16px; }
.feature p { color: var(--muted); margin: 0; }
.section--dark .feature { background: color-mix(in srgb, #fff 7%, transparent); border: 1px solid color-mix(in srgb, #fff 12%, transparent); }
.section--dark .feature p { color: #c9d6ea; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .features { grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .feature { grid-column: span 2; padding: 28px; }
  .feature:nth-child(4), .feature:nth-child(5) { grid-column: span 3; }
}

/* ---------- 7. Перший візит ---------- */
.timeline { list-style: none; display: grid; gap: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 28px 64px; }
.timeline li::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--accent-line); }
.timeline li:last-child::before { display: none; }
.timeline__num {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font: 800 18px/44px var(--font-head); text-align: center;
}
.timeline h3 { margin-bottom: 4px; padding-top: 8px; }
.timeline p { color: var(--muted); margin: 0; }
@media (min-width: 1024px) {
  .timeline { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .timeline li { padding: 64px 0 0; }
  .timeline li::before { left: 52px; right: -20px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .timeline h3 { padding-top: 0; }
}

/* ---------- 8. До / після ---------- */
.ba { min-width: 0; }
.ba__frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 2; background: var(--line); user-select: none; touch-action: pan-y; --pos: 50%; }
.ba__frame img { width: 100%; height: 100%; object-fit: cover; }
.ba__after { position: absolute; inset: 0; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__frame::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; }
.ba__handle {
  position: absolute; top: 50%; left: var(--pos); z-index: 2; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border-radius: 50%; background: #fff; color: var(--accent); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); pointer-events: none;
}
.ba__handle .i { width: 18px; height: 18px; stroke-width: 2.4; margin: 0 -2px; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
.ba__range:focus-visible ~ .ba__handle, .ba__frame:has(.ba__range:focus-visible) .ba__handle { outline: 3px solid var(--accent); outline-offset: 3px; }
.ba__tag { position: absolute; top: 14px; z-index: 2; background: color-mix(in srgb, var(--text) 78%, transparent); color: #fff; font-weight: 600; font-size: 15px; padding: 6px 12px; border-radius: 10px; pointer-events: none; }
.ba__tag--before { left: 14px; }
.ba__tag--after { right: 14px; }
.ba__note { margin: 16px 0 0; font-weight: 600; }

/* ---------- 9. Лікарі ---------- */
.doctors { display: grid; gap: 20px; }
.doctor { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.doctor img { width: 100%; aspect-ratio: 56 / 60; object-fit: cover; object-position: 50% 20%; background: var(--surface); }
.doctor__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.doctor__role { color: var(--muted); margin-bottom: 12px; }
.doctor__exp { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 18px; }
.doctor__exp .i { color: var(--accent); width: 20px; height: 20px; }
.doctor .btn { margin-top: auto; }
@media (hover: hover) { .doctor:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); } }
@media (min-width: 640px) { .doctors { grid-template-columns: repeat(2, 1fr); } }

/* Телефон: послуги й лікарі гортаються пальцем убік */
@media (max-width: 639px) {
  .cards, .doctors {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 -20px; padding: 4px 20px 16px; scroll-padding: 0 20px; scrollbar-width: none;
  }
  .cards::-webkit-scrollbar, .doctors::-webkit-scrollbar { display: none; }
  .cards > .card { flex: 0 0 82%; scroll-snap-align: start; }
  .doctors > .doctor { flex: 0 0 78%; scroll-snap-align: start; }
  .js .cards .reveal, .js .doctors .reveal { opacity: 1; transform: none; }
  .card:hover, .doctor:hover { transform: none; }
}
@media (min-width: 1024px) { .doctors { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* ---------- 10. Ціни ---------- */
.prices { background: var(--bg); border-radius: var(--radius-lg); padding: 14px; box-shadow: var(--shadow); }
.prices .tabs { border: 0; background: var(--surface); }
.price-table { width: 100%; border-collapse: collapse; }
.price-table caption { position: absolute; left: -9999px; }
.price-table th, .price-table td { text-align: left; padding: 16px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 0; }
.price-table th { font-weight: 500; }
.price-table td { text-align: right; white-space: nowrap; font: 700 1.05rem var(--font-head); }
.price-table td small { font: 500 15px var(--font-body); color: var(--muted); }
@media (min-width: 768px) { .prices { padding: 24px 28px; } .price-table th, .price-table td { padding: 18px 12px; } }

/* ---------- 11. Гігієна ---------- */
.hygiene { display: grid; gap: 28px; }
.hsteps { list-style: none; display: grid; gap: 14px; }
.hsteps li { display: flex; gap: 16px; background: var(--surface); border-radius: var(--radius); padding: 20px; }
.hsteps__num { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font: 800 18px/44px var(--font-head); text-align: center; }
.hsteps h3 { margin-bottom: 4px; }
.hsteps p { margin: 0; color: var(--muted); }
.hygiene__side { display: grid; gap: 16px; align-content: start; }
.timer { background: var(--text); color: #fff; border-radius: var(--radius-lg); padding: 24px; }
.timer__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.timer__label { margin: 0; font-weight: 600; color: #d5dde8; }
.timer__time { margin: 0; font: 800 3rem/1 var(--font-head); font-variant-numeric: tabular-nums; }
.timer__bar { height: 8px; border-radius: 8px; background: color-mix(in srgb, #fff 18%, transparent); overflow: hidden; margin: 18px 0; }
.timer__bar span { display: block; height: 100%; background: color-mix(in srgb, var(--accent) 55%, #fff); transform: scaleX(0); transform-origin: left; transition: transform 1s linear; }
.timer__zones { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.timer__zones li { padding: 10px 12px; border-radius: 12px; border: 1.5px solid color-mix(in srgb, #fff 22%, transparent); font-size: 15px; font-weight: 500; color: #d5dde8; }
.timer__zones li.is-active { background: #fff; color: var(--text); border-color: #fff; }
.timer__zones li.is-done { color: #fff; border-color: color-mix(in srgb, var(--accent) 60%, #fff); }
.timer__hint { margin: 16px 0; color: #e8edf3; min-height: 3.2em; }
.timer__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.timer__actions .btn { flex: 1; }
.timer .btn--outline { background: transparent; color: #fff; border-color: color-mix(in srgb, #fff 40%, transparent); }
.timer .btn--outline:hover { border-color: #fff; background: color-mix(in srgb, #fff 8%, transparent); }
.video { border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.video__poster { width: 100%; display: flex; align-items: center; gap: 16px; padding: 18px; border: 0; background: var(--accent-soft); cursor: pointer; text-align: left; font-size: 16px; line-height: 1.4; border-radius: var(--radius); }
.video__poster:hover { background: var(--accent-tint); }
.video__play { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.video__play .i { fill: currentColor; margin-left: 3px; }
.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.hygiene__extra { list-style: none; display: grid; gap: 10px; }
.hygiene__extra li { display: flex; gap: 12px; align-items: flex-start; }
.hygiene__extra .i { color: var(--accent); margin-top: 1px; }
@media (min-width: 960px) { .hygiene { grid-template-columns: 1.1fr .9fr; gap: 40px; } }

/* ---------- 12. Нагадування ---------- */
.reminder { background: var(--bg); border-radius: var(--radius-lg); padding: 24px; display: grid; gap: 24px; box-shadow: var(--shadow); }
.reminder__text p { color: var(--muted); margin: 0; }
.reminder__form { display: grid; gap: 12px; align-content: start; }
.reminder__result { background: var(--accent-soft); border-radius: var(--radius); padding: 22px; }
.reminder__date-label { margin: 0 0 4px; color: var(--muted); font-weight: 600; }
.reminder__date { font: 800 1.8rem/1.2 var(--font-head); color: var(--accent); margin-bottom: 8px; }
.reminder__hint { color: var(--text); }
.reminder__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 900px) {
  .reminder { grid-template-columns: 1.1fr 1fr; padding: 40px; gap: 32px 48px; }
  .reminder__form { grid-template-columns: 1fr auto; align-items: end; }
  .reminder__form .field__error { grid-column: 1 / -1; }
  .reminder__result { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 24px; }
  .reminder__result[hidden] { display: none; }
  .reminder__result > p { grid-column: 1; }
  .reminder__actions { grid-column: 2; grid-row: 1 / 4; }
}

/* ---------- Поля форми ---------- */
.field { display: grid; gap: 6px; }
.field__label { font-weight: 600; }
.input {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line);
  background: var(--bg); font-size: 16px; transition: border-color .2s;
}
.input:hover { border-color: var(--accent-line); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: 15px; margin: 0; min-height: 0; }
.field__error:empty { display: none; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; margin-top: 18px; }
.check input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--accent); }

/* ---------- 13. Відгуки ---------- */
.reviews {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px max(20px, calc((100vw - var(--container)) / 2 + 20px)) 16px; scroll-padding: 0 max(20px, calc((100vw - var(--container)) / 2 + 20px));
  scrollbar-width: none;
}
.reviews::-webkit-scrollbar { display: none; }
.review { margin: 0; flex: 0 0 86%; scroll-snap-align: start; background: var(--surface); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.review__stars { display: flex; gap: 2px; color: #e0a100; margin-bottom: 12px; }
.review__stars .i { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.review__text { flex: 1; margin: 0 0 16px; }
.review__text p { margin: 0; }
.review__who { margin: 0; font-weight: 700; }
.review__who span { font-weight: 500; color: var(--muted); }
.slider-nav { display: none; gap: 8px; }
@media (min-width: 640px) { .review { flex-basis: 46%; } }
@media (min-width: 1024px) {
  .reviews { padding-inline: max(32px, calc((100vw - var(--container)) / 2 + 32px)); scroll-padding: 0 max(32px, calc((100vw - var(--container)) / 2 + 32px)); }
  .review { flex-basis: calc((min(100vw, var(--container)) - 64px - 32px) / 3); padding: 28px; }
  .slider-nav { display: flex; }
}

/* ---------- 14. FAQ ---------- */
.faq { display: grid; gap: 8px; }
.faq__list { display: grid; gap: 12px; }
.faq__item { background: var(--bg); border-radius: var(--radius); border: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font: 700 1.08rem/1.35 var(--font-head); position: relative; min-height: 48px; border-radius: var(--radius);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font: 600 22px/30px var(--font-body); text-align: center; transition: transform .2s;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 22px 20px; margin: 0; color: var(--muted); }
@media (min-width: 960px) { .faq { grid-template-columns: .8fr 1.2fr; gap: 56px; } }

/* ---------- 15. Філії ---------- */
.branches { display: grid; gap: 20px; }
.branches__list { display: grid; gap: 12px; align-content: start; }
.branch {
  width: 100%; text-align: left; cursor: pointer; display: flex; gap: 14px; align-items: flex-start;
  padding: 18px; border-radius: var(--radius); border: 2px solid var(--line); background: var(--bg); transition: border-color .2s, background-color .2s;
}
.branch:hover { border-color: var(--accent-line); }
.branch[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.branch__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.branch[aria-pressed="true"] .branch__icon { background: var(--accent); color: var(--on-accent); }
.branch strong { display: block; font: 700 1.1rem var(--font-head); margin-bottom: 2px; }
.branch span span { color: var(--muted); }
.branches__map { display: grid; gap: 14px; }
.map { border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); aspect-ratio: 4 / 3; position: relative; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__placeholder {
  position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; text-align: center; padding: 20px; font-size: 16px; line-height: 1.45; color: var(--text);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--surface);
}
.map__placeholder .i { width: 52px; height: 52px; padding: 12px; border-radius: 50%; background: var(--accent); color: var(--on-accent); box-sizing: content-box; }
.map__placeholder:hover strong { color: var(--accent); }
.branch-info { background: var(--surface); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; }
.branch-info h3 { margin: 0; }
.branch-info p, .branch-info ul { margin: 0; }
.branch-info ul { list-style: none; color: var(--muted); }
.branch-info__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 960px) {
  .branches { grid-template-columns: .8fr 1.2fr; gap: 28px; }
  .map { aspect-ratio: 16 / 10; }
}
@media (min-width: 640px) {
  .branch-info { grid-template-columns: 1.3fr 1fr; gap: 14px 24px; }
  .branch-info__actions { grid-column: 1 / -1; }
}

/* ---------- 16. Запис ---------- */
.booking { background: var(--bg); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); }
.booking__progress { list-style: none; display: flex; gap: 6px; margin-bottom: 24px; counter-reset: s; }
.booking__progress li { flex: 1; counter-increment: s; }
.booking__progress button {
  width: 100%; border: 0; background: none; padding: 0; cursor: pointer; text-align: left; font-size: 15px; font-weight: 600; color: var(--muted);
  display: grid; gap: 8px;
}
.booking__progress button::before { content: ""; height: 5px; border-radius: 5px; background: var(--line); }
.booking__progress button span { display: none; }
.booking__progress .is-done button::before, .booking__progress .is-current button::before { background: var(--accent); }
.booking__progress .is-current button { color: var(--accent); }
.booking__progress button:disabled { cursor: default; }
.booking__body { display: grid; gap: 24px; }
.bstep { border: 0; margin: 0; padding: 0; min-width: 0; }
.bstep[hidden] { display: none; }
.bstep legend { font: 800 1.4rem var(--font-head); margin-bottom: 16px; padding: 0; }
.options { display: grid; gap: 10px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.option__box {
  display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 12px 16px; border-radius: 16px; border: 2px solid var(--line); background: var(--bg); transition: border-color .2s, background-color .2s;
}
.option__box img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; object-position: 50% 20%; flex: none; }
.option__box .i { color: var(--accent); }
.option__main { flex: 1; min-width: 0; }
.option__main strong { display: block; font-weight: 700; }
.option__main small { display: block; color: var(--muted); font-size: 15px; }
.option__price { font-weight: 700; white-space: nowrap; }
.option input:hover + .option__box { border-color: var(--accent-line); }
.option input:checked + .option__box { border-color: var(--accent); background: var(--accent-soft); }
.option input:focus-visible + .option__box { outline: 3px solid var(--accent-ring); outline-offset: 2px; }
.options-empty { background: var(--surface); padding: 18px; border-radius: 16px; margin: 0; grid-column: 1 / -1; }
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.days .option__box, .times .option__box { flex-direction: column; justify-content: center; gap: 0; text-align: center; padding: 10px 6px; min-height: 64px; line-height: 1.25; }
.times .option__box { min-height: 52px; font-weight: 700; }
.days small { color: var(--muted); font-size: 15px; }
.days .option input:disabled + .option__box { opacity: .5; background: var(--surface); }
.contacts-grid { display: grid; gap: 14px; }
.booking__nav { display: flex; gap: 10px; margin-top: 24px; }
.booking__nav .btn { flex: 1; }
.booking__error { color: var(--danger); margin: 16px 0 0; font-weight: 500; }
.booking__error:empty { display: none; }
.booking__summary { background: var(--surface); border-radius: var(--radius); padding: 20px; align-self: start; }
.booking__summary h3 { margin-bottom: 12px; }
.booking__summary dl { margin: 0; display: grid; gap: 10px; }
.booking__summary dt { font-size: 15px; color: var(--muted); }
.booking__summary dd { margin: 0; font-weight: 600; }
.booking__demo { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 600; color: var(--accent); }
.booking__done { text-align: center; padding: 20px 0; }
.booking__done:focus { outline: none; }
.booking__done-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: inline-grid; place-items: center; margin-bottom: 16px; }
.booking__done-icon .i { width: 32px; height: 32px; stroke-width: 2.6; }
.booking__done p { color: var(--muted); }
@media (min-width: 768px) {
  .booking { padding: 32px; }
  .booking__progress button span { display: block; }
  .contacts-grid { grid-template-columns: 1fr 1fr; }
  .options--cards { grid-template-columns: repeat(2, 1fr); }
  .booking__nav .btn { flex: 0 0 auto; min-width: 160px; }
  .booking__nav #booking-next { margin-left: auto; }
}
@media (min-width: 1024px) {
  .booking { padding: 40px; }
  .booking__body { grid-template-columns: 1fr 300px; gap: 40px; }
}

/* ---------- 16а. Синій банер запису ---------- */
.cta-banner-wrap { padding: 0 0 56px; }
.cta-banner {
  background: var(--accent); color: var(--on-accent); border-radius: var(--radius-lg);
  padding: 28px 24px; display: grid; gap: 20px; align-items: center;
  background-image: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, #fff 16%, transparent) 0%, transparent 55%);
}
.cta-banner h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 6px; }
.cta-banner p { margin: 0; color: color-mix(in srgb, #fff 86%, var(--accent)); }
.cta-banner__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.cta-banner__actions .btn { flex: 1 1 200px; }
.cta-banner__phone { display: inline-flex; align-items: center; gap: 10px; color: #fff; font: 700 1.1rem var(--font-head); text-decoration: none; min-height: 48px; }
.cta-banner__phone:hover { text-decoration: underline; }
.cta-banner :focus-visible { outline-color: #fff; }
@media (min-width: 900px) {
  .cta-banner-wrap { padding: 0 0 96px; }
  .cta-banner { grid-template-columns: 1fr auto; padding: 40px 48px; gap: 32px; }
  .cta-banner__actions .btn { flex: 0 0 auto; }
}

/* ---------- 16б. Вікно запису ---------- */
.modal {
  padding: 0; border: 0; background: none; color: var(--text);
  width: min(1080px, calc(100% - 40px)); max-width: none; max-height: calc(100dvh - 48px);
}
.modal::backdrop { background: color-mix(in srgb, var(--navy) 62%, transparent); backdrop-filter: blur(3px); }
.modal__inner {
  background: var(--bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain;
}
.modal__head {
  position: sticky; top: 0; z-index: 2; display: flex; gap: 16px; justify-content: space-between; align-items: flex-start;
  background: color-mix(in srgb, var(--bg) 95%, transparent); padding: 24px 24px 12px;
}
.modal__head h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 4px; }
.modal__head p { margin: 0; color: var(--muted); }
.modal__close { flex: none; }
.modal .booking { box-shadow: none; border-radius: 0; padding-top: 12px; }
html.modal-open { overflow: hidden; }
.js .modal[open] { animation: modal-in .25s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px); } }
@media (max-width: 767px) {
  .modal { width: 100%; height: 100%; max-height: none; margin: 0; }
  .modal__inner { border-radius: 0; height: 100%; max-height: none; }
  .modal__head { padding: 16px 20px 10px; border-bottom: 1px solid var(--line); }
  .modal .booking { padding: 16px 20px calc(24px + env(safe-area-inset-bottom)); }
}
@media (min-width: 768px) { .modal__head { padding: 32px 32px 8px; } .modal .booking { padding-top: 16px; } }
@media (min-width: 1024px) { .modal__head { padding: 40px 40px 8px; } }

/* ---------- 17. Підвал ---------- */
.footer { background: var(--text); color: #d5dde8; padding: 56px 0 24px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.footer__grid { display: grid; gap: 32px; }
.footer__logo { width: 152px; background: #fff; border-radius: 12px; padding: 8px 12px; box-sizing: content-box; margin-bottom: 14px; }
.footer__links, .footer__social { list-style: none; display: grid; gap: 4px; }
.footer__links a, .footer__social a { display: inline-flex; align-items: center; min-height: 44px; }
.footer__social { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; }
.footer__demo { margin-top: 12px; font-size: 15px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid color-mix(in srgb, #fff 15%, transparent); margin-top: 40px; padding-top: 20px; font-size: 15px; }
.footer__bottom p { margin: 0; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1.2fr 1fr; } }

/* ---------- Нижня панель на телефоні ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
@media (min-width: 1024px) {
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
}

/* «Записатись» у нижній панелі: м'який градієнт і відблиск раз на ~4.6 с */
.mobile-bar .btn--primary {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 93%, #fff) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 84%, #000) 100%);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 28%, transparent), inset 0 1px 0 color-mix(in srgb, #fff 30%, transparent);
}
.mobile-bar .btn--primary:hover { background: linear-gradient(135deg, var(--accent), var(--accent-hover)); }
.mobile-bar .btn--primary::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 0; width: 45%;
  background: linear-gradient(105deg, transparent 0%, color-mix(in srgb, #fff 32%, transparent) 50%, transparent 100%);
  transform: translateX(-130%);
  animation: btn-shine 4.6s ease-in-out 1.2s infinite;
}
/* відблиск проходить за ~1.4 с, далі чекає за межею кнопки: стрибок назад не видно */
@keyframes btn-shine { 0% { transform: translateX(-130%); } 30%, 100% { transform: translateX(330%); } }

/* ---------- Декор по боках ----------
   Шар .decor — перший у секції, під вмістом. Предмет стоїть у полі між краєм екрана
   і контейнером (--g); якщо поле вузьке, предмет дрібний і частково за краєм. */
.section { position: relative; }
.decor {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  --g: max(20px, (100% - var(--container)) / 2 + 20px);
}
.decor ~ * { position: relative; z-index: 1; }
.decor__item {
  position: absolute; top: var(--y, 20%); display: none;
  --size: clamp(44px, calc(var(--g) * .72 * var(--k, 1)), calc(136px * var(--k, 1)));
  width: var(--size); aspect-ratio: var(--ar, 1);
  will-change: transform;
}
.decor__item--l { left: min(calc(var(--g) / 2 - var(--size) / 2), calc(var(--g) - 10px - var(--size))); }
.decor__item--r { right: min(calc(var(--g) / 2 - var(--size) / 2), calc(var(--g) - 10px - var(--size))); }
.decor__item svg {
  display: block; width: 100%; height: 100%; overflow: visible;
  filter: drop-shadow(0 14px 12px var(--d-shadow));
  animation: decor-float var(--dur, 10s) ease-in-out var(--delay, 0s) infinite;
}
.section--dark .decor__item svg { filter: drop-shadow(0 14px 14px color-mix(in srgb, #000 35%, transparent)); }
@keyframes decor-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -12px, 0) rotate(var(--tilt, 3deg)); }
}
.d-brush   { --ar: 124 / 182; --k: .9; }
.d-paste   { --ar: 108 / 162; --k: .85; }
.d-crown   { --ar: 78 / 90; --k: .9; }
.d-aligner { --ar: 128 / 80; --k: 1.05; }
.d-mirror  { --ar: 108 / 171; --k: .85; }
.d-implant { --ar: 77 / 161; --k: .7; }
.d-floss   { --ar: 102 / 104; --k: .9; }
.decor__item:nth-child(2n) svg { --tilt: -3deg; }

/* Телефон і планшет: 2 дрібні предмети в першому екрані — праворуч від короткого
   рядка над заголовком і від коротких пунктів під кнопками (шар усередині .hero__text) */
.hero__text { position: relative; }
.decor--m { overflow: visible; }
@media (max-width: 1023px) {
  .decor--m .decor__item { display: block; }
  .decor__item--m1 { top: -12px; right: -10px; width: 38px; }
  .decor__item--m2 { top: auto; bottom: -6px; right: 8px; width: 52px; }
}
@media (max-width: 379px) { .decor--m .decor__item--m1 { display: none; } } /* рядок над заголовком переноситься */
@media (min-width: 1024px) {
  .decor { --g: max(32px, (100% - var(--container)) / 2 + 32px); }
  .decor--m { display: none; }
  .decor__item:not(.decor__item--m) { display: block; }
}

/* ---------- ПК: більший текст ---------- */
@media (min-width: 1024px) {
  body { font-size: 17px; }
  .lead { font-size: 1.25rem; }
  .container { padding: 0 32px; }
}
@media (min-width: 1440px) { body { font-size: 18px; } }

/* ---------- Анімації (лише transform і opacity) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .card:hover, .doctor:hover { transform: none; }
  .reviews { scroll-behavior: auto; }
  .decor__item svg, .mobile-bar .btn--primary::before { animation: none !important; }
  .mobile-bar .btn--primary::before { display: none; }
  .decor__item { transform: none !important; }
}
