/* ==========================================================================
   Пульс — клиника нового поколения. Общие стили.
   ========================================================================== */

:root {
  --bg: #f5f8fa;
  --bg-2: #eef3f6;
  --white: #ffffff;
  --ink: #0e2a33;
  --ink-2: #244552;
  --muted: #5b7280;
  --line: #dfe8ed;
  --accent: #1fb8a6;
  --accent-2: #17a08f;
  --accent-soft: #e2f6f2;
  --accent-tint: #f0fbf9;
  --coral: #ff6b57;
  --coral-2: #f25a45;
  --coral-soft: #ffe9e5;
  --gold: #f4b740;
  --sky: #dfeaf1;

  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Onest", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-xs: 12px;
  --r-sm: 16px;
  --r-md: 24px;
  --r-lg: 32px;
  --r-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(14, 42, 51, 0.05), 0 1px 2px rgba(14, 42, 51, 0.04);
  --shadow-md: 0 12px 32px -8px rgba(14, 42, 51, 0.12), 0 2px 6px rgba(14, 42, 51, 0.04);
  --shadow-lg: 0 32px 64px -24px rgba(14, 42, 51, 0.22), 0 8px 16px -8px rgba(14, 42, 51, 0.06);
  --shadow-accent: 0 16px 32px -12px rgba(31, 184, 166, 0.45);
  --shadow-coral: 0 16px 32px -12px rgba(255, 107, 87, 0.5);

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 128px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.5s;
}

/* -------- Reset -------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.25rem, 1.2rem + 4.2vw, 4.25rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 1rem + 2.6vw, 3rem); }
h3 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
:focus-visible { outline: 3px solid rgba(31, 184, 166, 0.55); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(31, 184, 166, 0.25); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-xs);
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(40px, 6vw, 80px); }
.section--alt { background: var(--white); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head--split > div { max-width: 640px; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); color: var(--muted); line-height: 1.6; }
.muted { color: var(--muted); }
.accent { color: var(--accent-2); }
.coral { color: var(--coral); }
.text-center { text-align: center; }

/* -------- Buttons -------- */
.btn {
  --btn-bg: var(--white); --btn-fg: var(--ink); --btn-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em; white-space: nowrap;
  box-shadow: var(--btn-shadow); border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--coral); --btn-fg: #fff; --btn-shadow: var(--shadow-coral); }
.btn--primary:hover { background: var(--coral-2); }
.btn--accent { --btn-bg: var(--accent); --btn-fg: #fff; --btn-shadow: var(--shadow-accent); }
.btn--accent:hover { background: var(--accent-2); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: #fff; --btn-shadow: 0 16px 32px -12px rgba(14, 42, 51, 0.5); }
.btn--dark:hover { background: #163b47; }
.btn--outline { --btn-bg: transparent; --btn-shadow: none; border-color: var(--line); }
.btn--outline:hover { border-color: var(--ink); background: var(--white); }
.btn--ghost { --btn-bg: transparent; --btn-shadow: none; padding-inline: 12px; }
.btn--ghost:hover { background: var(--accent-soft); color: var(--accent-2); }
.btn--sm { min-height: 42px; padding-inline: 18px; font-size: 0.875rem; }
.btn--lg { min-height: 60px; padding-inline: 34px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; color: var(--accent-2); }
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* -------- Badges -------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--r-pill);
  font-family: var(--font-head); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.01em; line-height: 1.3;
  background: var(--bg-2); color: var(--ink-2);
}
.badge svg { width: 14px; height: 14px; }
.badge--online { background: var(--accent-soft); color: var(--accent-2); }
.badge--online::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(31, 184, 166, 0.5); animation: ping 2s infinite;
}
.badge--coral { background: var(--coral-soft); color: var(--coral-2); }
.badge--white { background: var(--white); box-shadow: var(--shadow-sm); }
.badge--gold { background: #fff5dc; color: #8a5f00; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(31, 184, 166, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(31, 184, 166, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 184, 166, 0); } }

/* -------- Cards -------- */
.card {
  background: var(--white); border-radius: var(--r-md); padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow-sm); border: 1px solid rgba(223, 232, 237, 0.7);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
}
.card--hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card--soft { background: var(--accent-tint); border-color: transparent; box-shadow: none; }
.icon-box {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-2); flex: none;
}
.icon-box svg { width: 26px; height: 26px; }
.icon-box--coral { background: var(--coral-soft); color: var(--coral-2); }
.icon-box--sky { background: var(--sky); color: var(--ink-2); }
.icon-box--sm { width: 44px; height: 44px; border-radius: 14px; }
.icon-box--sm svg { width: 20px; height: 20px; }

/* -------- Header -------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 248, 250, 0.82);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -16px rgba(14, 42, 51, 0.15); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 80px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.logo-mark { width: 40px; height: 40px; border-radius: 13px; background: var(--ink); display: grid; place-items: center; color: var(--accent); flex: none; }
.logo-mark svg { width: 26px; height: 26px; }
.logo span small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.68rem; color: var(--muted); letter-spacing: 0.04em; line-height: 1; margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav a {
  position: relative; padding: 10px 14px; border-radius: var(--r-pill);
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--ink); background: rgba(14, 42, 51, 0.05); }
.nav a.is-active { color: var(--accent-2); background: var(--accent-soft); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone { display: inline-flex; flex-direction: column; align-items: flex-end; font-family: var(--font-head); font-weight: 700; line-height: 1.15; }
.header-phone small { font-family: var(--font-body); font-weight: 500; font-size: 0.7rem; color: var(--muted); }
.burger {
  display: none; width: 48px; height: 48px; border-radius: 14px; background: var(--white); box-shadow: var(--shadow-sm);
  place-items: center; position: relative; z-index: 120;
}
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; margin: 0 auto; transition: transform 0.3s var(--ease), opacity 0.2s; }
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 110; background: var(--bg);
  padding: 100px var(--gutter) 40px; overflow-y: auto;
  flex-direction: column; gap: 8px;
}
.mobile-menu.is-open { display: flex; animation: fadeIn 0.3s var(--ease); }
.mobile-menu a.mm-link { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem, 6vw, 2.2rem); padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.mobile-menu a.mm-link.is-active { color: var(--accent-2); }
.mobile-menu .mm-bottom { margin-top: auto; padding-top: 32px; display: grid; gap: 12px; }
.mobile-menu .mm-phone { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; }
body.menu-open { overflow: hidden; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* -------- Footer -------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.78); margin-top: var(--section); padding: clamp(48px, 6vw, 80px) 0 32px; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.site-footer .logo { color: #fff; }
.site-footer .logo-mark { background: var(--accent); color: var(--ink); }
.site-footer .logo span small { color: rgba(255, 255, 255, 0.55); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-grid h4 { color: #fff; margin-bottom: 18px; font-size: 0.95rem; }
.footer-grid ul li + li { margin-top: 10px; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { margin-top: 18px; max-width: 320px; font-size: 0.95rem; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--accent); }
.footer-contact strong { color: #fff; font-weight: 600; }
.footer-bottom { margin-top: clamp(32px, 5vw, 56px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); }
.footer-bottom a:hover { color: #fff; }
.portfolio-link { display: inline-flex; align-items: center; gap: 6px; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); display: grid; place-items: center; transition: background 0.2s; }
.footer-social a:hover { background: var(--accent); color: var(--ink); }
.footer-social svg { width: 18px; height: 18px; }

/* -------- Forms -------- */
.field { display: grid; gap: 8px; }
.field label { font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; }
.field label .req { color: var(--coral); }
.input, .select, .textarea {
  width: 100%; min-height: 54px; padding: 12px 18px; border-radius: var(--r-sm);
  background: var(--white); border: 1.5px solid var(--line);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.textarea { min-height: 120px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #98a9b3; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(31, 184, 166, 0.15); }
.field.is-error .input, .field.is-error .select { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(255, 107, 87, 0.15); }
.field .error { display: none; color: var(--coral-2); font-size: 0.8rem; font-weight: 500; }
.field.is-error .error { display: block; }
.select-wrap { position: relative; }
.select-wrap .select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select-wrap::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.checkbox { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 0.9rem; color: var(--muted); }
.checkbox input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.checkbox a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.field.is-error .checkbox { color: var(--coral-2); }
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search-wrap .input { padding-left: 48px; }

/* -------- Chips (filters) -------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: var(--r-pill);
  background: var(--white); border: 1.5px solid var(--line); font-family: var(--font-head); font-weight: 700; font-size: 0.875rem; color: var(--ink-2);
  transition: all 0.2s;
}
.chip:hover { border-color: var(--accent); color: var(--accent-2); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .count { font-size: 0.72rem; padding: 2px 7px; border-radius: 99px; background: rgba(14, 42, 51, 0.07); }
.chip[aria-pressed="true"] .count { background: rgba(255, 255, 255, 0.18); }

/* -------- Hero (index) -------- */
.hero { padding-top: clamp(32px, 5vw, 72px); padding-bottom: clamp(48px, 7vw, 96px); position: relative; overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: auto -20% -30% auto; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(31, 184, 166, 0.16), transparent 70%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.hero h1 { max-width: 12ch; }
.hero h1 .hl { position: relative; isolation: isolate; color: var(--accent-2); }
.hero h1 .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.05em; height: 0.28em; background: rgba(31, 184, 166, 0.18); border-radius: 4px; z-index: -1; }
.hero .lead { margin-top: 24px; max-width: 520px; }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-meta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 24px 36px; }
.hero-meta div { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; color: var(--muted); }
.hero-meta strong { display: block; font-family: var(--font-head); font-size: 1.15rem; color: var(--ink); line-height: 1.1; }
.hero-visual { position: relative; }
.hero-art { width: 100%; height: auto; border-radius: var(--r-lg); background: linear-gradient(160deg, #ffffff, #e8f5f2); box-shadow: var(--shadow-lg); }
.hero-float { position: absolute; background: var(--white); border-radius: 20px; padding: 14px 18px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 12px; animation: floatY 6s ease-in-out infinite; }
.hero-float strong { display: block; font-family: var(--font-head); font-size: 0.95rem; line-height: 1.2; }
.hero-float small { color: var(--muted); font-size: 0.78rem; }
.hero-float--1 { left: -24px; top: 12%; }
.hero-float--2 { right: -16px; bottom: 16%; animation-delay: -3s; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.pulse-path { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 3.2s var(--ease) forwards 0.3s; }
.pulse-path--loop { animation: drawLoop 4s linear infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes drawLoop { 0% { stroke-dashoffset: 1400; } 60% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1400; } }
.pulse-dot { animation: pulseDot 1.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulseDot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: 0.6; } }

/* Quick form */
.quick-form { margin-top: -36px; position: relative; z-index: 2; }
.quick-form-inner {
  background: var(--white); border-radius: var(--r-md); padding: 12px; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 10px; align-items: center;
}
.quick-form-inner .qf-title { padding: 8px 12px; }
.quick-form-inner .qf-title strong { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.quick-form-inner .qf-title small { color: var(--muted); font-size: 0.82rem; }
.quick-form-inner .input, .quick-form-inner .select { background: var(--bg); border-color: transparent; }
.quick-form-inner .input:focus, .quick-form-inner .select:focus { background: var(--white); border-color: var(--accent); }
.qf-note { text-align: center; margin-top: 12px; font-size: 0.82rem; color: var(--muted); }

/* -------- Directions grid -------- */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.dir-card { display: flex; flex-direction: column; gap: 16px; min-height: 240px; }
.dir-card h3 { margin-top: 8px; }
.dir-card p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.dir-card .dir-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dir-card .dir-foot .price { font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; color: var(--ink-2); }
.dir-card .arrow { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; transition: background 0.25s, color 0.25s, transform 0.25s var(--ease); }
.dir-card .arrow svg { width: 18px; height: 18px; }
.dir-card:hover .arrow { background: var(--ink); color: #fff; transform: rotate(-45deg); }

/* -------- Stats / Why us -------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat { background: var(--white); border-radius: var(--r-md); padding: 28px; box-shadow: var(--shadow-sm); }
.stat .num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 2rem + 1.5vw, 3.4rem); letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.stat .num sup { font-size: 0.5em; color: var(--accent); vertical-align: top; margin-left: 2px; }
.stat p { margin-top: 10px; color: var(--muted); font-size: 0.92rem; }
.stat--accent { background: var(--ink); color: #fff; }
.stat--accent .num { color: #fff; }
.stat--accent p { color: rgba(255, 255, 255, 0.7); }
.stat--accent .num sup { color: var(--accent); }
.feature-list { display: grid; gap: 20px; margin-top: 32px; }
.feature-list li { display: flex; gap: 16px; align-items: flex-start; }
.feature-list h4 { margin-bottom: 4px; }
.feature-list p { color: var(--muted); font-size: 0.95rem; }

/* -------- Doctors -------- */
.doc-card { display: flex; flex-direction: column; gap: 14px; padding: 16px 16px 24px; }
.doc-avatar { width: 100%; aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden; background: var(--bg-2); position: relative; }
.doc-avatar svg { width: 100%; height: 100%; }
.doc-avatar .badge { position: absolute; top: 12px; left: 12px; }
.doc-body { padding-inline: 8px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.doc-spec { color: var(--accent-2); font-family: var(--font-head); font-weight: 700; font-size: 0.82rem; }
.doc-name { font-size: 1.15rem; line-height: 1.2; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.doc-meta span { display: inline-flex; align-items: center; gap: 5px; }
.doc-meta svg { width: 14px; height: 14px; }
.doc-meta .rating { color: var(--ink); font-weight: 600; }
.doc-meta .rating svg { color: var(--gold); }
.doc-slot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.doc-slot small { font-size: 0.8rem; color: var(--muted); }
.doc-slot small b { display: block; color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; }
.doc-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* -------- Reviews -------- */
.review { display: flex; flex-direction: column; gap: 16px; height: 100%; }
.review .stars { display: flex; gap: 2px; color: var(--gold); }
.review .stars svg { width: 18px; height: 18px; }
.review blockquote { margin: 0; font-size: 1rem; line-height: 1.65; color: var(--ink-2); flex: 1; }
.review .author { display: flex; align-items: center; gap: 12px; }
.review .author .ava { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; color: #fff; }
.review .author strong { display: block; font-family: var(--font-head); font-size: 0.95rem; }
.review .author small { color: var(--muted); font-size: 0.8rem; }

/* -------- Telemed -------- */
.telemed { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; position: relative; overflow: clip; }
.telemed::after { content: ""; position: absolute; right: -10%; top: -30%; width: 50%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(31, 184, 166, 0.35), transparent 70%); pointer-events: none; }
.telemed .eyebrow { color: var(--accent); }
.telemed .lead { color: rgba(255, 255, 255, 0.72); margin-top: 20px; }
.telemed ul { margin-top: 28px; display: grid; gap: 14px; }
.telemed li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255, 255, 255, 0.85); }
.telemed li svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 2px; }
.telemed .btn-group { margin-top: 32px; }
.telemed-art { position: relative; z-index: 1; }
.telemed-art svg { width: 100%; height: auto; }

/* -------- CTA band -------- */
.cta-band { background: linear-gradient(135deg, var(--accent) 0%, #1a9f92 100%); color: #fff; border-radius: var(--r-lg); padding: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; position: relative; overflow: clip; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='400' viewBox='0 0 1200 400' fill='none'%3E%3Cpath d='M0 200h240l30-70 40 140 40-160 40 120 30-30h100l30-60 40 120 40-150 40 110 30-20h180l30-50 40 100 40-130 40 90 30-10h140' stroke='white' stroke-opacity='.18' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") center / cover no-repeat; pointer-events: none; }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { margin-top: 14px; color: rgba(255, 255, 255, 0.85); max-width: 520px; }
.cta-band .btn-group { justify-content: flex-end; }
.cta-band .btn--white { --btn-bg: #fff; --btn-fg: var(--ink); --btn-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.3); }
.cta-band .btn--outline { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.cta-band .btn--outline:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

/* -------- Page hero (inner pages) -------- */
.page-hero { padding: clamp(32px, 5vw, 64px) 0 clamp(32px, 4vw, 48px); }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { margin-top: 20px; max-width: 620px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.85rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumbs a:hover { color: var(--accent-2); }
.breadcrumbs span[aria-hidden] { opacity: 0.5; }

/* -------- Services page -------- */
.filter-bar { display: grid; gap: 16px; position: sticky; top: 80px; z-index: 5; background: var(--bg); padding: 12px 0; margin-bottom: 24px; }
.filter-bar__row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.filter-bar .search-wrap { flex: 1 1 280px; max-width: 420px; }
.svc-group { margin-bottom: 40px; }
.svc-group__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.svc-group__head h3 { font-size: 1.25rem; }
.svc-list { background: var(--white); border-radius: var(--r-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.svc-row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px 24px; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); transition: background 0.2s; }
.svc-row:last-child { border-bottom: 0; }
.svc-row:hover { background: var(--accent-tint); }
.svc-row__name { font-weight: 500; }
.svc-row__name small { display: block; color: var(--muted); font-size: 0.82rem; font-weight: 400; margin-top: 2px; }
.svc-row__price { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; white-space: nowrap; text-align: right; }
.svc-row__price small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.75rem; color: var(--muted); }
.svc-row__action .btn { min-height: 40px; }
.svc-empty { text-align: center; padding: 64px 24px; color: var(--muted); display: none; }
.svc-empty.is-visible { display: block; }
.svc-empty svg { width: 64px; height: 64px; margin: 0 auto 16px; color: var(--accent); }
.results-count { font-size: 0.9rem; color: var(--muted); }
mark.hl { background: rgba(244, 183, 64, 0.35); color: inherit; border-radius: 3px; padding: 0 1px; }

/* Programs */
.program { display: flex; flex-direction: column; gap: 18px; position: relative; overflow: clip; }
.program--featured { background: var(--ink); color: #fff; border-color: transparent; }
.program--featured .muted { color: rgba(255, 255, 255, 0.65); }
.program--featured .program-price { color: #fff; }
.program--featured .program-list li { color: rgba(255, 255, 255, 0.85); }
.program--featured .program-list svg { color: var(--accent); }
.program .badge { align-self: flex-start; }
.program-price { font-family: var(--font-head); font-weight: 800; font-size: 2rem; letter-spacing: -0.03em; }
.program-price small { font-family: var(--font-body); font-weight: 400; font-size: 0.85rem; color: var(--muted); letter-spacing: 0; }
.program-price .old { font-size: 1rem; color: var(--muted); text-decoration: line-through; font-weight: 500; margin-left: 8px; }
.program-list { display: grid; gap: 10px; flex: 1; }
.program-list li { display: flex; gap: 10px; font-size: 0.92rem; color: var(--ink-2); }
.program-list svg { width: 18px; height: 18px; flex: none; color: var(--accent-2); margin-top: 3px; }

/* Accordion */
.accordion { display: grid; gap: 10px; }
.acc-item { background: var(--white); border-radius: 20px; box-shadow: var(--shadow-sm); border: 1px solid rgba(223, 232, 237, 0.7); overflow: hidden; }
.acc-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; text-align: left; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.acc-trigger .acc-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; flex: none; transition: background 0.25s, transform 0.3s var(--ease); }
.acc-trigger .acc-icon svg { width: 16px; height: 16px; }
.acc-trigger[aria-expanded="true"] .acc-icon { background: var(--accent); color: #fff; transform: rotate(45deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.acc-panel > div { overflow: hidden; }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-content { padding: 0 24px 24px; color: var(--ink-2); }
.acc-content ul { display: grid; gap: 8px; }
.acc-content li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.acc-content li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 9px; }
.acc-content p + p { margin-top: 10px; }

/* -------- Doctors page -------- */
.doctors-toolbar { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: end; margin-bottom: 28px; }
.doctors-toolbar .field { min-width: 220px; }
.toolbar-chips { display: grid; gap: 8px; }
.toolbar-chips > span { font-family: var(--font-head); font-weight: 700; font-size: 0.8rem; color: var(--muted); }

/* -------- Appointment -------- */
.appt-layout { display: grid; grid-template-columns: 1fr 360px; gap: clamp(24px, 3vw, 40px); align-items: start; }
.wizard { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: clamp(20px, 3vw, 40px); }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 32px; }
.progress-step { display: grid; gap: 10px; }
.progress-step .bar { height: 6px; border-radius: 6px; background: var(--bg-2); overflow: hidden; }
.progress-step .bar::after { content: ""; display: block; height: 100%; width: 0; background: var(--accent); border-radius: 6px; transition: width 0.5s var(--ease); }
.progress-step.is-done .bar::after, .progress-step.is-current .bar::after { width: 100%; }
.progress-step.is-current .bar::after { background: var(--coral); }
.progress-step span { font-family: var(--font-head); font-weight: 700; font-size: 0.78rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.progress-step.is-current span { color: var(--ink); }
.progress-step.is-done span { color: var(--accent-2); }
.progress-step .n { width: 20px; height: 20px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; font-size: 0.68rem; }
.progress-step.is-done .n { background: var(--accent); color: #fff; }
.progress-step.is-current .n { background: var(--coral); color: #fff; }
.wstep { display: none; animation: fadeIn 0.4s var(--ease); }
.wstep.is-active { display: block; }
.wstep h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem); margin-bottom: 6px; }
.wstep > p.muted { margin-bottom: 24px; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.choice {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 20px;
  background: var(--bg); border: 2px solid transparent; cursor: pointer; text-align: left; width: 100%;
  transition: border-color 0.2s, background 0.2s, transform 0.25s var(--ease);
}
.choice:hover { background: var(--accent-tint); transform: translateY(-2px); }
.choice[aria-checked="true"] { border-color: var(--accent); background: var(--accent-tint); }
.choice[aria-checked="true"]::after {
  content: ""; position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); background-size: 14px; background-position: center; background-repeat: no-repeat;
}
.choice strong { font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.25; }
.choice small { color: var(--muted); font-size: 0.82rem; }
.choice .icon-box { width: 44px; height: 44px; border-radius: 14px; }
.choice .icon-box svg { width: 20px; height: 20px; }
.doctor-choice { flex-direction: row; align-items: center; gap: 14px; }
.doctor-choice .mini-ava { width: 56px; height: 56px; border-radius: 16px; overflow: hidden; flex: none; background: var(--bg-2); }
.doctor-choice .mini-ava svg { width: 100%; height: 100%; }
.doctor-choice .dc-body { display: grid; gap: 2px; flex: 1; min-width: 0; }
.doctor-choice .dc-body small { display: block; }
.doctor-choice .dc-meta { display: flex; gap: 10px; font-size: 0.78rem; color: var(--muted); }
.choice-grid--doctors { grid-template-columns: repeat(2, 1fr); }
.format-toggle { display: inline-flex; padding: 4px; background: var(--bg); border-radius: var(--r-pill); margin-bottom: 20px; }
.format-toggle button { min-height: 40px; padding: 0 18px; border-radius: var(--r-pill); font-family: var(--font-head); font-weight: 700; font-size: 0.875rem; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.format-toggle button svg { width: 16px; height: 16px; }
.format-toggle button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.branch-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.branch-pick .choice { padding: 14px 16px; }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 4px 12px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.day {
  flex: none; width: 74px; padding: 12px 8px; border-radius: 18px; background: var(--bg); text-align: center; border: 2px solid transparent;
  display: grid; gap: 2px; scroll-snap-align: start; transition: border-color 0.2s, background 0.2s;
}
.day small { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.day b { font-family: var(--font-head); font-size: 1.25rem; font-weight: 800; }
.day em { font-style: normal; font-size: 0.7rem; color: var(--accent-2); font-weight: 600; }
.day.is-weekend small { color: var(--coral); }
.day:hover { background: var(--accent-tint); }
.day[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-tint); }
.day:disabled { opacity: 0.35; pointer-events: none; }
.slots-title { font-family: var(--font-head); font-weight: 700; margin: 20px 0 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.slots-title small { font-weight: 500; color: var(--muted); font-family: var(--font-body); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slot { min-height: 44px; border-radius: 12px; background: var(--bg); font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; border: 2px solid transparent; transition: all 0.2s; }
.slot:hover { background: var(--accent-tint); border-color: var(--accent); }
.slot[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.slot:disabled { opacity: 0.3; text-decoration: line-through; pointer-events: none; }
.slots-legend { display: flex; gap: 16px; margin-top: 14px; font-size: 0.8rem; color: var(--muted); }
.slots-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; background: var(--bg-2); vertical-align: -1px; margin-right: 6px; }
.slots-legend i.busy { opacity: 0.3; }
.slots-legend i.sel { background: var(--ink); }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-msg { margin-top: 16px; padding: 12px 16px; border-radius: 14px; background: var(--coral-soft); color: var(--coral-2); font-size: 0.9rem; font-weight: 500; display: none; }
.form-msg.is-visible { display: block; }
.summary { position: sticky; top: 100px; }
.summary h3 { margin-bottom: 18px; }
.summary dl { display: grid; gap: 14px; margin: 0; }
.summary dl > div { display: grid; gap: 2px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.summary dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.summary dt { font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.summary dd { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 0.98rem; }
.summary dd.empty { color: #a7b6be; font-weight: 500; font-family: var(--font-body); font-size: 0.9rem; }
.summary .total { margin-top: 20px; padding: 16px; border-radius: 16px; background: var(--accent-tint); display: flex; justify-content: space-between; align-items: center; }
.summary .total strong { font-family: var(--font-head); font-size: 1.25rem; }
.summary-help { margin-top: 16px; font-size: 0.85rem; color: var(--muted); display: flex; gap: 10px; }
.summary-help svg { width: 18px; height: 18px; flex: none; color: var(--accent); }

/* Success ticket */
.success { text-align: center; padding: clamp(16px, 3vw, 32px) 0; }
.success .check { width: 88px; height: 88px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; margin: 0 auto 24px; animation: pop 0.6s var(--ease); }
.success .check svg { width: 42px; height: 42px; }
@keyframes pop { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ticket { margin: 32px auto 0; max-width: 460px; text-align: left; border-radius: 24px; background: var(--bg); position: relative; overflow: hidden; }
.ticket::before, .ticket::after { content: ""; position: absolute; width: 28px; height: 28px; border-radius: 50%; background: var(--white); top: 118px; }
.ticket::before { left: -14px; } .ticket::after { right: -14px; }
.ticket-head { padding: 22px 28px; background: var(--ink); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.ticket-head .logo { color: #fff; font-size: 1.1rem; }
.ticket-head .logo-mark { width: 32px; height: 32px; border-radius: 10px; background: var(--accent); color: var(--ink); }
.ticket-head .logo-mark svg { width: 20px; height: 20px; }
.ticket-head .num { text-align: right; }
.ticket-head .num small { display: block; font-size: 0.7rem; opacity: 0.6; }
.ticket-head .num b { font-family: var(--font-head); font-size: 1.15rem; letter-spacing: 0.04em; }
.ticket-body { padding: 24px 28px 28px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; border-top: 2px dashed var(--line); }
.ticket-body dl { margin: 0; display: grid; gap: 10px; }
.ticket-body dt { font-size: 0.72rem; color: var(--muted); }
.ticket-body dd { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; }
.ticket-qr { width: 96px; height: 96px; background: var(--white); border-radius: 14px; padding: 8px; }
.ticket-qr svg { width: 100%; height: 100%; }
.success .btn-group { justify-content: center; margin-top: 28px; }

/* -------- About page -------- */
.about-intro { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about-art { border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(160deg, #ffffff, #e8f5f2); box-shadow: var(--shadow-lg); }
.about-art svg { width: 100%; height: auto; }
.timeline { position: relative; display: grid; gap: 0; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), var(--line)); }
.tl-item { position: relative; padding: 0 0 32px 20px; }
.tl-item::before { content: ""; position: absolute; left: -28px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 3px solid var(--accent); }
.tl-item .year { font-family: var(--font-head); font-weight: 800; color: var(--accent-2); font-size: 0.9rem; letter-spacing: 0.05em; }
.tl-item h4 { margin: 4px 0 6px; font-size: 1.1rem; }
.tl-item p { color: var(--muted); font-size: 0.95rem; }
.principle { display: flex; flex-direction: column; gap: 14px; }
.principle p { color: var(--muted); font-size: 0.95rem; }
.license-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.license { display: flex; gap: 14px; align-items: center; padding: 18px 20px; background: var(--white); border-radius: 20px; box-shadow: var(--shadow-sm); }
.license strong { display: block; font-family: var(--font-head); font-size: 0.9rem; }
.license small { color: var(--muted); font-size: 0.8rem; }
.team-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.team-card .ava { width: 112px; height: 112px; border-radius: 36px; overflow: hidden; background: var(--bg-2); }
.team-card .ava svg { width: 100%; height: 100%; }
.team-card h3 { font-size: 1.1rem; margin-top: 8px; }
.team-card .role { color: var(--accent-2); font-family: var(--font-head); font-weight: 700; font-size: 0.82rem; }
.team-card p { color: var(--muted); font-size: 0.9rem; }
.branches { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: stretch; }
.branch-tabs { display: grid; gap: 12px; }
.branch-tab { text-align: left; padding: 22px 24px; border-radius: 24px; background: var(--white); border: 2px solid transparent; box-shadow: var(--shadow-sm); display: grid; gap: 8px; transition: border-color 0.2s, transform 0.25s var(--ease); }
.branch-tab:hover { transform: translateY(-2px); }
.branch-tab[aria-selected="true"] { border-color: var(--accent); }
.branch-tab .bt-title { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.branch-tab .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.branch-tab .bt-text { display: block; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.branch-tab .branch-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.branch-map { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 16px; display: grid; grid-template-rows: 1fr auto; gap: 16px; min-height: 420px; }
.map-canvas { border-radius: 20px; background: #eaf2f6; overflow: hidden; position: relative; min-height: 320px; }
.map-canvas svg { width: 100%; height: 100%; position: absolute; inset: 0; }
.map-scene { display: none; }
.map-scene.is-active { display: block; animation: fadeIn 0.5s var(--ease); }
.map-info { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 0 8px 4px; font-size: 0.9rem; }
.map-info div { display: flex; gap: 10px; align-items: flex-start; }
.map-info svg { width: 18px; height: 18px; color: var(--accent-2); flex: none; margin-top: 2px; }
.map-info strong { display: block; font-family: var(--font-head); font-size: 0.85rem; }
.map-info span { color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card { display: flex; flex-direction: column; gap: 12px; }
.contact-card a.big { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.contact-card a.big:hover { color: var(--accent-2); }
.contact-card p { color: var(--muted); font-size: 0.9rem; }

/* -------- Toast -------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 300;
  background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 16px; box-shadow: var(--shadow-lg);
  font-weight: 500; font-size: 0.92rem; opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s var(--ease); max-width: calc(100vw - 32px);
  display: flex; gap: 10px; align-items: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 20px; height: 20px; color: var(--accent); flex: none; }

/* -------- Reveal -------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }
.stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.stagger.is-visible > * { opacity: 1; transform: none; }
.stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger.is-visible > *:nth-child(3) { transition-delay: 0.19s; }
.stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.stagger.is-visible > *:nth-child(5) { transition-delay: 0.33s; }
.stagger.is-visible > *:nth-child(6) { transition-delay: 0.4s; }
.stagger.is-visible > *:nth-child(n+7) { transition-delay: 0.45s; }

/* -------- Responsive -------- */
@media (max-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .appt-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .branches { grid-template-columns: 1fr; }
  .branch-tabs { grid-template-columns: 1fr 1fr; }
  .hero-float--1 { left: 0; }
  .hero-float--2 { right: 0; }
}
@media (max-width: 960px) {
  .nav, .header-phone, .header-actions .btn { display: none; }
  .burger { display: grid; margin-left: auto; }
  .hero-grid, .why-grid, .about-intro, .telemed { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .hero h1 { max-width: none; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .btn-group { justify-content: flex-start; }
  .quick-form-inner { grid-template-columns: 1fr 1fr; }
  .quick-form-inner .qf-title { grid-column: 1 / -1; }
  .quick-form-inner .btn { grid-column: 1 / -1; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid, .license-strip { grid-template-columns: 1fr; }
  .doctors-toolbar { grid-template-columns: 1fr; }
  .filter-bar { position: static; }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .quick-form-inner { grid-template-columns: 1fr; }
  .quick-form { margin-top: 0; }
  .svc-row { grid-template-columns: 1fr auto; }
  .svc-row__action { grid-column: 1 / -1; }
  .svc-row__action .btn { width: 100%; }
  .choice-grid, .choice-grid--doctors, .branch-pick { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .progress-step span { font-size: 0; gap: 0; }
  .progress-step .n { font-size: 0.68rem; }
  .wizard-nav { flex-direction: column-reverse; }
  .wizard-nav .btn { width: 100%; }
  .hero-float { display: none; }
  .branch-tabs { grid-template-columns: 1fr; }
  .ticket-body { grid-template-columns: 1fr; }
  .ticket-qr { justify-self: center; }
  .section-head--split .btn { width: 100%; }
  .hero-meta { gap: 16px 24px; }
}
@media (max-width: 400px) {
  .stats { grid-template-columns: 1fr; }
  .header-inner { min-height: 68px; }
  .logo span small { display: none; }
}

/* -------- Reduced motion -------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal, .stagger > * { opacity: 1; transform: none; }
  .pulse-path { stroke-dashoffset: 0; }
  .hero-float { animation: none; }
}
