/* ============================================================
   Медсонар Плюс — стили сайта
   Premium medical UI · 2026
   ============================================================ */

:root {
  --navy: #0b1729;
  --navy-soft: #122036;
  --blue: #0e6f6d;
  --blue-deep: #0a5957;
  --accent: #0abab5;
  --accent-soft: #5fd9d4;
  --gold: #d9b56d;
  --rose: #ef6f8f;
  --white: #ffffff;
  --ink: #0f172a;
  --ink-soft: #1f2a3d;
  --muted: #64748b;
  --muted-soft: #94a3b8;
  --line: #e2e8f0;
  --line-soft: #eef2f7;
  --bg: #f6fbfb;
  --soft: #cff6f3;
  --mint: #e7fbf9;
  --glass: rgba(255, 255, 255, .78);
  --glass-strong: rgba(255, 255, 255, .92);
  --shadow-sm: 0 8px 22px rgba(15, 23, 42, .06);
  --shadow: 0 24px 64px rgba(15, 23, 42, .12);
  --shadow-lg: 0 36px 96px rgba(10, 80, 110, .18);
  --shadow-color: 0 18px 42px rgba(10, 186, 181, .22);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --container: min(1200px, calc(100vw - 32px));
  --gradient-hero: linear-gradient(135deg, #0b1729 0%, #0e6f6d 55%, #0abab5 100%);
  --gradient-soft: linear-gradient(180deg, #ffffff 0%, #ecfbf9 100%);
  --gradient-accent: linear-gradient(135deg, var(--blue), var(--accent));
  --gradient-gold: linear-gradient(135deg, #d9b56d, #f1d9a3);
  --transition: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Manrope", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  animation: pageFade .5s var(--transition) both;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

img, video, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { border: 0; background: transparent; cursor: pointer; }
::selection { background: rgba(10, 186, 181, .25); color: var(--navy); }

p { margin: 0 0 14px; }
h1, h2, h3, h4 { margin: 0; color: var(--navy); letter-spacing: -.01em; font-weight: 800; }

/* ====== Skip-to-content ====== */
.skip-link {
  position: fixed;
  top: -200px;
  left: 16px;
  z-index: 999;
  padding: 12px 18px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

/* ====== Header ====== */
.site-header {
  position: fixed;
  inset: 14px 14px auto;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 18px;
  align-items: center;
  width: min(1280px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 14px 38px rgba(15, 23, 42, .08);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  transition: padding .3s var(--transition), background .3s ease, box-shadow .3s ease, transform .3s ease;
}
.site-header.is-scrolled {
  padding: 6px 14px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 50px rgba(15, 23, 42, .14);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-width: 200px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #fff;
  background: var(--gradient-accent);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -.02em;
  box-shadow: 0 10px 24px rgba(10, 186, 181, .35);
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .4), transparent 60%);
  animation: brandPulse 4s ease-in-out infinite;
}
.brand strong, .brand small { display: block; line-height: 1.2; }
.brand strong { color: var(--navy); font-size: 15px; }
.brand small { color: var(--muted); font-size: 12px; margin-top: 2px; }

.site-nav {
  display: flex;
  gap: 4px;
  justify-content: center;
}
.site-nav a {
  position: relative;
  padding: 9px 13px;
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  transition: background .25s ease, color .25s ease;
}
.site-nav a:hover { color: var(--blue); background: rgba(10, 186, 181, .1); }
.site-nav a.is-active { color: #fff; background: var(--gradient-accent); box-shadow: 0 8px 18px rgba(10, 186, 181, .3); }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: var(--radius-pill);
  color: #fff;
  background: var(--gradient-accent);
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 0 14px 28px rgba(10, 186, 181, .32);
  transition: transform .2s ease, box-shadow .2s ease;
}
.header-phone:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(10, 186, 181, .42); }
.header-phone svg { width: 16px; height: 16px; }

.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--blue);
  background: rgba(207, 246, 243, .55);
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, background .25s ease, color .25s ease;
}
.search-trigger:hover { color: #fff; background: var(--gradient-accent); transform: translateY(-2px); }
.search-trigger svg { width: 16px; height: 16px; }
.search-trigger kbd {
  padding: 3px 6px;
  border: 1px solid rgba(14, 111, 109, .2);
  border-radius: 6px;
  color: var(--muted);
  background: #fff;
  font-size: 11px;
  font-family: inherit;
  font-weight: 700;
}

.mobile-search-trigger {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--blue);
  background: rgba(207, 246, 243, .55);
  font-weight: 700;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(10, 186, 181, .12);
  cursor: pointer;
  transition: background .2s ease;
}
.nav-toggle:hover { background: rgba(10, 186, 181, .22); }
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .3s ease, opacity .25s ease;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ====== Hero ====== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 150px max(24px, calc((100vw - 1180px) / 2)) 110px;
  color: #fff;
  background: var(--gradient-hero);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 80% 20%, rgba(10, 186, 181, .42), transparent 70%),
    radial-gradient(70% 80% at 0% 100%, rgba(217, 181, 109, .18), transparent 70%),
    url("../assets/images/hero-medical.svg") center / cover no-repeat;
  opacity: .85;
  z-index: 1;
}
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .9;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 78% 26%, rgba(10, 186, 181, .35), transparent 55%),
    linear-gradient(90deg, rgba(11, 23, 41, .92) 0%, rgba(14, 111, 109, .56) 55%, rgba(11, 23, 41, .26) 100%);
}
.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.04'/></svg>");
  opacity: .8;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 880px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 9px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, .94);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  animation: floatIn .7s var(--transition) both;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5fff9b;
  box-shadow: 0 0 0 4px rgba(95, 255, 155, .25);
  animation: pulse 2s ease-in-out infinite;
}

.hero h1, .page-hero h1 {
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 1;
  letter-spacing: -.02em;
  font-weight: 900;
  margin: 0;
}
.hero h1 .accent {
  background: linear-gradient(135deg, #ffffff 0%, #cff6f3 60%, #5fd9d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.hero-lead, .page-hero p {
  max-width: 720px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-stat strong {
  color: #fff;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1;
}
.hero-stat span {
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.hero-stat strong sup { font-size: .55em; opacity: .8; }

.hero-panel {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 64px;
  z-index: 3;
  display: grid;
  gap: 12px;
  width: min(340px, calc(100vw - 48px));
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  color: #fff;
  box-shadow: 0 24px 60px rgba(11, 23, 41, .35);
  animation: floatUp 1s .25s var(--transition) both;
}
.hero-panel-title { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; opacity: .8; }
.hero-panel-list { display: grid; gap: 8px; }
.hero-panel-list li {
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
}
.hero-panel-list li::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  box-shadow: 0 4px 14px rgba(10, 186, 181, .5);
}
.hero-panel ul { padding: 0; margin: 0; }

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .7);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 38px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .8), transparent);
  animation: scrollHint 2s ease-in-out infinite;
}

/* ====== Buttons ====== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 14.5px;
  letter-spacing: .005em;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  transition: transform .25s var(--transition), box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn-primary {
  color: #fff;
  background: var(--gradient-accent);
  box-shadow: 0 18px 38px rgba(10, 186, 181, .32);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, .25), transparent);
  transform: translateX(-100%);
  transition: transform .65s ease;
}
.btn-primary:hover { box-shadow: 0 26px 54px rgba(10, 186, 181, .45); }
.btn-primary:hover::before { transform: translateX(100%); }

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .7); }

.btn-ghost-dark {
  color: var(--blue);
  border-color: rgba(14, 111, 109, .25);
  background: rgba(255, 255, 255, .82);
}
.btn-ghost-dark:hover { background: #fff; border-color: var(--accent); color: var(--blue-deep); }

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  min-height: 0;
  color: var(--blue);
  font-weight: 800;
  background: transparent;
}
.btn-text::after {
  content: "→";
  transition: transform .2s ease;
}
.btn-text:hover { color: var(--blue-deep); }
.btn-text:hover::after { transform: translateX(4px); }

/* ====== Section base ====== */
.section, .cta-section {
  width: var(--container);
  margin: 0 auto;
  padding: 96px 0;
}
.alt {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100vw - 1200px) / 2));
  background:
    linear-gradient(180deg, rgba(207, 246, 243, .55), rgba(255, 255, 255, .98)),
    radial-gradient(60% 60% at 8% 0%, rgba(207, 246, 243, .8), transparent 50%);
}
.section-head {
  max-width: 760px;
  margin-bottom: 42px;
}
.section-head.center {
  max-width: 720px;
  margin: 0 auto 50px;
  text-align: center;
}
.section h2, .cta-section h2, .page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -.02em;
}
.section p, .cta-section p { color: var(--muted); font-size: 17px; line-height: 1.65; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(10, 186, 181, .12);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(10, 186, 181, .25);
}

/* ====== Glass / cards base ====== */
.glass, .form-card {
  border: 1px solid rgba(255, 255, 255, .55);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius);
}

/* ====== Grids ====== */
.metric-grid, .card-grid, .doctor-grid, .blog-grid, .feature-grid {
  display: grid;
  gap: 18px;
}
.metric-grid { grid-template-columns: repeat(4, 1fr); }
.card-grid, .doctor-grid, .blog-grid { grid-template-columns: repeat(3, 1fr); }
.feature-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ====== Cards ====== */
.metric-card {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(207, 246, 243, .35));
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .3s var(--transition), box-shadow .3s ease;
}
.metric-card::before {
  content: "";
  position: absolute;
  inset: auto -30% -50% auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 186, 181, .25), transparent 70%);
  z-index: 0;
}
.metric-card > * { position: relative; z-index: 1; }
.metric-card:hover { transform: translateY(-5px); box-shadow: 0 24px 60px rgba(10, 186, 181, .18); }
.metric-card strong {
  display: block;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
}
.metric-card span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; font-weight: 600; }
.metric-card .icon-box { margin-bottom: 14px; }

/* Content (direction) cards */
.content-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .3s var(--transition), box-shadow .3s ease, border-color .3s ease;
}
.content-card::after {
  content: "";
  position: absolute;
  inset: auto -40% -60% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 186, 181, .14), transparent 70%);
  transition: transform .5s ease;
  z-index: 0;
}
.content-card > * { position: relative; z-index: 1; }
.content-card:hover { transform: translateY(-6px); border-color: rgba(10, 186, 181, .35); box-shadow: 0 28px 70px rgba(10, 186, 181, .15); }
.content-card:hover::after { transform: scale(1.4); }
.content-card h2, .content-card h3 { margin: 0 0 12px; font-size: 22px; line-height: 1.2; }
.content-card p { margin: 0 0 18px; color: var(--muted); }
.content-card .icon-box { margin-bottom: 18px; }

/* Service cards */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .94) 0%, rgba(231, 251, 249, .45) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--transition), box-shadow .3s ease, border-color .3s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(10, 186, 181, .4); box-shadow: 0 28px 64px rgba(10, 186, 181, .14); }
.service-card .icon-box { margin-bottom: 16px; }
.service-card h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.2; }
.service-card p { color: var(--muted); margin: 0 0 18px; flex: 1; }
.service-card .btn { align-self: flex-start; }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(10, 186, 181, .1);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

/* Filter row */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}
.filter-row-scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 6px 4px 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 186, 181, .35) transparent;
}
.filter-row-scroll::-webkit-scrollbar { height: 6px; }
.filter-row-scroll::-webkit-scrollbar-thumb { background: rgba(10, 186, 181, .35); border-radius: 3px; }
.filter-btn {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: all .2s ease;
}
.filter-btn:hover { border-color: var(--accent); color: var(--blue); }
.filter-btn.is-active {
  color: #fff;
  background: var(--gradient-accent);
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(10, 186, 181, .3);
}

/* Doctor cards */
.doctor-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .35s var(--transition), box-shadow .35s ease, border-color .35s ease;
}
.doctor-card:hover { transform: translateY(-6px); border-color: rgba(10, 186, 181, .35); box-shadow: 0 32px 72px rgba(10, 186, 181, .15); }
.doctor-photo {
  position: relative;
  aspect-ratio: 4 / 3.65;
  overflow: hidden;
  background: linear-gradient(135deg, var(--mint), var(--soft));
}
.doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .65s var(--transition);
}
.doctor-card:hover .doctor-photo img { transform: scale(1.07); }
.doctor-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 50%, rgba(11, 23, 41, .82) 100%),
    radial-gradient(circle at 22% 14%, rgba(10, 186, 181, .25), transparent 32%);
}
.doctor-photo-overlay {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.doctor-photo-overlay span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--radius-pill);
  background: rgba(11, 23, 41, .35);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
}
.doctor-rating-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .9);
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(11, 23, 41, .25);
}
.doctor-rating-pill svg { width: 13px; height: 13px; color: var(--gold); fill: currentColor; }
.doctor-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 22px 22px;
}
.doctor-body h3 { margin: 0 0 6px; font-size: 19px; line-height: 1.25; }
.doctor-specialty {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  min-height: 38px;
}
.doctor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.doctor-meta span {
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, .05);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
}
.rating-ui {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0 0 16px;
  font-size: 13px;
}
.rating-ui .stars { color: var(--gold); letter-spacing: 1px; font-size: 16px; }
.rating-ui strong { color: var(--navy); font-size: 14px; }
.rating-ui small { color: var(--muted); font-weight: 700; }
.doctor-cta {
  width: 100%;
  margin-top: auto;
}

/* Promotion cards */
.promo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--gradient-hero);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s var(--transition);
}
.promo-card::before {
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 181, 109, .35), transparent 70%);
}
.promo-card > * { position: relative; z-index: 1; }
.promo-card:hover { transform: translateY(-6px); }
.promo-card .eyebrow { background: rgba(255, 255, 255, .15); color: #fff; }
.promo-card h3 { color: #fff; margin: 0 0 10px; font-size: 22px; }
.promo-card p { color: rgba(255, 255, 255, .85); flex: 1; }
.promo-card .btn-ghost { margin-top: auto; align-self: flex-start; }

/* Price rows */
.price-list { display: grid; gap: 12px; }
.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 92px;
  padding: 18px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff, rgba(207, 246, 243, .25));
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--transition), border-color .25s ease, box-shadow .25s ease;
}
.price-row:hover { transform: translateY(-3px); border-color: rgba(10, 186, 181, .45); box-shadow: 0 22px 50px rgba(10, 186, 181, .14); }
.price-row h3 { margin: 6px 0 4px; font-size: 17px; line-height: 1.3; }
.price-row p, .price-row small { color: var(--muted); margin: 0; font-size: 13px; }
.price-row strong {
  color: var(--blue);
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}
.price-category {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Section actions */
.section-actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ====== Split section ====== */
.split-section {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}

/* ====== Check list ====== */
.check-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding-left: 36px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  box-shadow: 0 4px 10px rgba(10, 186, 181, .3);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* ====== Process / steps ====== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 36px;
  counter-reset: step;
}
.process-step {
  position: relative;
  padding: 28px 22px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  counter-increment: step;
  transition: transform .3s var(--transition), border-color .3s ease;
}
.process-step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 16px;
  font-size: 28px;
  font-weight: 900;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.process-step:hover { transform: translateY(-4px); border-color: rgba(10, 186, 181, .4); }
.process-step h3 { margin: 0 0 8px; font-size: 18px; }
.process-step p { margin: 0; color: var(--muted); font-size: 14px; }

/* ====== Features (with icons) ====== */
.feature-card {
  padding: 26px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--transition), border-color .3s ease, box-shadow .3s ease;
}
.feature-card:hover { transform: translateY(-5px); border-color: rgba(10, 186, 181, .4); box-shadow: 0 24px 60px rgba(10, 186, 181, .12); }
.feature-card .icon-box { margin-bottom: 16px; }
.feature-card h3 { margin: 0 0 8px; font-size: 18px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ====== Icon boxes ====== */
.icon-box {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(10, 186, 181, .14), rgba(207, 246, 243, .55));
  color: var(--blue);
}
.icon-box svg { width: 26px; height: 26px; }
.icon-box.gold { background: linear-gradient(135deg, rgba(217, 181, 109, .18), rgba(241, 217, 163, .35)); color: #b58f4a; }
.icon-box.rose { background: linear-gradient(135deg, rgba(239, 111, 143, .16), rgba(255, 200, 215, .35)); color: #c63a64; }
.icon-box.navy { background: linear-gradient(135deg, rgba(11, 23, 41, .12), rgba(18, 32, 54, .25)); color: var(--navy); }

/* ====== Reviews ====== */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.review-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--transition), box-shadow .3s ease;
}
.review-card:hover { transform: translateY(-5px); box-shadow: 0 24px 60px rgba(10, 186, 181, .14); }
.review-card::before {
  content: "“";
  position: absolute;
  top: 12px;
  right: 22px;
  font-family: Georgia, serif;
  font-size: 90px;
  line-height: 1;
  color: rgba(10, 186, 181, .2);
}
.review-stars { color: var(--gold); font-size: 16px; letter-spacing: 2px; }
.review-text { margin: 14px 0 18px; font-size: 15.5px; line-height: 1.65; color: var(--ink-soft); }
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
}
.review-author-name { font-weight: 700; color: var(--navy); font-size: 14.5px; }
.review-author-meta { color: var(--muted); font-size: 12.5px; }

/* ====== FAQ ====== */
.faq-list { display: grid; gap: 10px; max-width: 880px; margin: 30px auto 0; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.faq-item[open] { border-color: rgba(10, 186, 181, .4); box-shadow: 0 16px 40px rgba(10, 186, 181, .1); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  font-size: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 12px;
  height: 12px;
  border-right: 2.5px solid var(--blue);
  border-bottom: 2.5px solid var(--blue);
  transform: rotate(45deg);
  transition: transform .3s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item .faq-body {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ====== CTA section ====== */
.cta-section {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
  padding: 56px;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(11, 23, 41, .96), rgba(14, 111, 109, .9)),
    url("../assets/images/hero-medical.svg") center / cover no-repeat;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: -50% -20% auto auto;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 186, 181, .35), transparent 70%);
  pointer-events: none;
}
.cta-section > * { position: relative; z-index: 1; }
.cta-section.compact { padding: 42px; }
.cta-section h2 { color: #fff; }
.cta-section p { color: rgba(255, 255, 255, .82); font-size: 17px; }
.cta-section .eyebrow { background: rgba(255, 255, 255, .15); color: #fff; }

/* ====== Forms ====== */
.form-card {
  display: grid;
  gap: 14px;
  padding: 28px;
  color: var(--ink);
  background: rgba(255, 255, 255, .96);
}
.form-card.dark-aware { background: rgba(255, 255, 255, .98); }
.form-card label {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}
.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-card textarea {
  min-height: 110px;
  padding: 14px 16px;
  resize: vertical;
  font-family: inherit;
}
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(10, 186, 181, .14);
}
.form-card input.is-invalid,
.form-card select.is-invalid,
.form-card textarea.is-invalid {
  border-color: #ef4467;
  box-shadow: 0 0 0 4px rgba(239, 68, 103, .12);
}
.form-card .field-error {
  color: #c41e3a;
  font-size: 12px;
  font-weight: 600;
  margin: -2px 0 0;
}
.form-card small { color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.form-card .checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}
.form-card .checkbox-row input { width: 18px; min-height: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.form-card .checkbox-row a { color: var(--blue); font-weight: 700; }

/* ====== Page hero ====== */
.page-hero {
  position: relative;
  min-height: 480px;
  display: grid;
  align-items: end;
  padding: 150px max(24px, calc((100vw - 1180px) / 2)) 80px;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(11, 23, 41, .94) 0%, rgba(14, 111, 109, .76) 50%, rgba(10, 186, 181, .25) 100%),
    url("../assets/images/hero-medical.svg") center / cover no-repeat;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 80% at 80% 20%, rgba(10, 186, 181, .35), transparent 70%);
  pointer-events: none;
}
.page-hero-soft {
  background:
    linear-gradient(110deg, rgba(11, 23, 41, .9) 0%, rgba(14, 111, 109, .65) 50%, rgba(217, 181, 109, .2) 100%),
    url("../assets/images/hero-medical.svg") center / cover no-repeat;
}
.page-hero-inner { position: relative; z-index: 2; max-width: 880px; }
.page-hero p { color: rgba(255, 255, 255, .88); font-size: clamp(16px, 1.5vw, 19px); }
.page-hero .breadcrumbs { margin-bottom: 18px; }

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, .8);
}
.breadcrumbs a { color: rgba(255, 255, 255, .9); font-weight: 600; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs .sep { opacity: .5; }
.breadcrumbs .current { color: #fff; font-weight: 700; }

/* ====== Doctor detail ====== */
.doctor-detail-hero {
  display: grid;
  grid-template-columns: minmax(320px, 470px) 1fr;
  gap: 56px;
  align-items: center;
  min-height: 720px;
  padding: 140px max(24px, calc((100vw - 1180px) / 2)) 80px;
  background:
    radial-gradient(circle at 18% 18%, rgba(207, 246, 243, .85), transparent 35%),
    linear-gradient(135deg, #fff, rgba(207, 246, 243, .35));
}
.doctor-detail-photo {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--soft);
}
.doctor-detail-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11, 23, 41, .35));
  pointer-events: none;
}
.doctor-detail-photo img {
  width: 100%;
  height: min(68svh, 620px);
  min-height: 520px;
  object-fit: contain;
  animation: heroImageZoom .9s var(--transition) both;
}
.doctor-detail-copy h1 {
  max-width: 820px;
  font-size: clamp(38px, 5.6vw, 72px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--navy);
}
.doctor-detail-specialty {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--blue);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.3;
}
.doctor-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.doctor-service-list { display: grid; gap: 12px; }
.doctor-service-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--transition), border-color .25s ease;
}
.doctor-service-card:hover { transform: translateY(-3px); border-color: rgba(10, 186, 181, .35); }
.doctor-service-card h3 { margin: 0 0 4px; color: var(--navy); font-size: 16px; }
.doctor-service-card p { margin: 0; color: var(--muted); font-size: 13.5px; }
.doctor-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 36px 0;
}

/* ====== Map / contacts ====== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 26px;
  align-items: stretch;
}
.contact-card {
  display: grid;
  gap: 18px;
  padding: 32px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.contact-card h2 { margin: 0; color: var(--navy); }
.contact-list { display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
.contact-list li {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.contact-list .icon-box { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }
.contact-list .icon-box svg { width: 20px; height: 20px; }
.contact-list strong { display: block; color: var(--navy); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; }
.contact-list a { color: var(--ink); font-weight: 600; }
.contact-list a:hover { color: var(--blue); }
.map-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  min-height: 420px;
  background: var(--soft);
}
.map-card iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ====== Footer ====== */
.site-footer {
  position: relative;
  padding: 70px max(24px, calc((100vw - 1200px) / 2)) 28px;
  color: rgba(255, 255, 255, .8);
  background: var(--navy);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 12% 0%, rgba(10, 186, 181, .18), transparent 70%);
  pointer-events: none;
}
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 36px;
  z-index: 1;
}
.footer-col h4 {
  color: #fff;
  font-size: 14px;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 800;
}
.footer-col a, .footer-col p {
  display: block;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}
.footer-col a:hover { color: var(--accent-soft); }
.footer-col .footer-brand-block strong {
  display: block;
  color: #fff;
  font-size: 18px;
  margin-bottom: 6px;
}
.footer-col .footer-brand-block p { color: rgba(255, 255, 255, .72); margin-bottom: 16px; }
.footer-socials { display: flex; gap: 10px; margin-top: 16px; }
.footer-socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  transition: background .2s ease, transform .2s ease;
}
.footer-socials a:hover { background: var(--gradient-accent); transform: translateY(-3px); }
.footer-socials svg { width: 18px; height: 18px; }
.footer-bottom {
  position: relative;
  z-index: 1;
  margin-top: 50px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
}
.footer-bottom a { color: rgba(255, 255, 255, .8); }
.footer-bottom a:hover { color: #fff; }

/* ====== Mobile floating CTA ====== */
.mobile-cta {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 40;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 38px rgba(11, 23, 41, .18);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .6);
}
.mobile-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 14px;
  transition: transform .2s ease;
}
.mobile-cta a:nth-child(1) { color: var(--blue); background: rgba(10, 186, 181, .12); }
.mobile-cta a:nth-child(2) { color: #fff; background: var(--gradient-accent); box-shadow: 0 10px 22px rgba(10, 186, 181, .35); }
.mobile-cta a:active { transform: scale(.97); }
.mobile-cta svg { width: 16px; height: 16px; }

/* ====== Scroll-to-top ====== */
.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 88px;
  z-index: 39;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 14px 32px rgba(10, 186, 181, .35);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px) scale(.8);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, box-shadow .25s ease;
}
.scroll-top.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.scroll-top:hover { box-shadow: 0 20px 40px rgba(10, 186, 181, .5); }
.scroll-top svg { width: 18px; height: 18px; }

/* ====== Toasts ====== */
.toast-host {
  position: fixed;
  top: 90px;
  right: 16px;
  z-index: 100;
  display: grid;
  gap: 10px;
  pointer-events: none;
  max-width: calc(100vw - 32px);
}
.toast {
  pointer-events: auto;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 280px;
  max-width: 380px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: toastIn .3s var(--transition) both;
}
.toast.is-leaving { animation: toastOut .25s ease forwards; }
.toast.success { border-left: 4px solid #16a34a; }
.toast.error { border-left: 4px solid #ef4467; }
.toast.info { border-left: 4px solid var(--accent); }
.toast .icon-box { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; }
.toast .icon-box svg { width: 18px; height: 18px; }
.toast strong { display: block; color: var(--navy); font-size: 14.5px; }
.toast span { color: var(--muted); font-size: 13px; }

/* ====== Cookie banner ====== */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: rgba(11, 23, 41, .96);
  color: #fff;
  box-shadow: 0 24px 60px rgba(11, 23, 41, .35);
  backdrop-filter: blur(14px);
  transform: translateY(150%);
  transition: transform .35s var(--transition);
  max-width: 720px;
  margin: 0 auto;
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner p { margin: 0; font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, .82); flex: 1; min-width: 240px; }
.cookie-banner a { color: var(--accent-soft); font-weight: 700; text-decoration: underline; }
.cookie-banner button {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--gradient-accent);
  color: #fff;
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cookie-banner button:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(10, 186, 181, .4); }

/* ====== Search modal ====== */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  min-height: 100svh;
  padding: 11svh 18px 24px;
}
.search-modal.is-open { display: block; }
.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 23, 41, .55);
  backdrop-filter: blur(16px);
}
.search-is-open { overflow: hidden; }
.search-dialog {
  position: relative;
  width: min(1000px, 100%);
  max-height: min(820px, calc(100svh - 96px));
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-lg);
  animation: floatUp .3s var(--transition) both;
}
.search-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}
.search-bar svg { width: 24px; height: 24px; color: var(--accent); }
.search-bar input {
  width: 100%;
  min-height: 60px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: clamp(20px, 3.5vw, 32px);
  font-weight: 700;
  outline: 0;
}
.search-bar button.search-close {
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}
.search-suggestions {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
}
.search-suggestions button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(207, 246, 243, .55);
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
}
.search-suggestions button:hover { background: var(--gradient-accent); color: #fff; }
.search-results {
  max-height: calc(100svh - 320px);
  overflow: auto;
  padding: 8px 22px 22px;
}
.search-group { padding: 14px 0 4px; }
.search-group h3 {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
}
.search-result {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.search-result:hover {
  border-color: rgba(10, 186, 181, .35);
  background: rgba(207, 246, 243, .35);
  transform: translateX(3px);
}
.search-result.is-active {
  border-color: rgba(10, 186, 181, .55);
  background: rgba(207, 246, 243, .55);
  box-shadow: 0 12px 28px rgba(10, 186, 181, .14);
}
.search-result strong { color: var(--navy); font-size: 15px; }
.search-result span { color: var(--muted); font-size: 13px; }
mark { padding: 0 2px; border-radius: 4px; color: var(--navy); background: rgba(10, 186, 181, .25); }

/* ====== Skeleton ====== */
.skeleton {
  background: linear-gradient(90deg, #eef2f7 25%, #f8fafc 50%, #eef2f7 75%);
  background-size: 200% 100%;
  animation: skeletonShine 1.2s linear infinite;
  border-radius: var(--radius);
}
.skeleton-card {
  height: 200px;
  border-radius: var(--radius);
}
.skeleton-doctor {
  height: 460px;
  border-radius: var(--radius);
}

/* ====== Empty state ====== */
.empty-state {
  grid-column: 1 / -1;
  padding: 32px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .6);
  color: var(--muted);
  text-align: center;
  font-size: 14.5px;
}

/* ====== Reveal animations ====== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--transition), transform .8s var(--transition);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--transition), transform .7s var(--transition); }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }

/* ====== Animations ====== */
@keyframes pageFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes floatIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floatUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroImageZoom { from { transform: scale(1.05); } to { transform: scale(1); } }
@keyframes brandPulse { 0%, 100% { opacity: .35; transform: rotate(0deg); } 50% { opacity: .8; transform: rotate(180deg); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(95, 255, 155, .25); } 50% { box-shadow: 0 0 0 8px rgba(95, 255, 155, .15); } }
@keyframes scrollHint { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes skeletonShine { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ====== Top gap utility ====== */
.top-gap { margin-top: 18px; }

/* ====== Ratings grid utility ====== */
.metric-card .icon-row { display: flex; align-items: center; gap: 10px; }

/* ====== Trust badges ====== */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .92);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.trust-badge svg { width: 18px; height: 18px; color: var(--accent-soft); }

/* ====== Two-column hero variant ====== */
.split-hero-content { display: flex; flex-direction: column; }

/* ====== Responsive ====== */
@media (max-width: 1100px) {
  .feature-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

@media (max-width: 1040px) {
  .site-header { grid-template-columns: auto 1fr auto auto; }
  .nav-toggle { display: block; justify-self: end; }
  .site-nav {
    position: fixed;
    top: 78px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .98);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    animation: floatUp .3s var(--transition);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 14px; }
  .mobile-search-trigger { display: inline-flex; }
  .header-phone { justify-self: end; padding: 9px 14px; font-size: 13px; }
  .search-trigger.desktop-only { display: none; }
  .metric-grid, .card-grid, .doctor-grid, .blog-grid, .review-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .split-section, .doctor-detail-hero, .doctor-detail-grid, .contact-grid, .cta-section {
    grid-template-columns: 1fr;
  }
  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 38px;
  }
  .doctor-detail-hero { min-height: auto; padding-top: 130px; }
  .doctor-detail-photo img { height: 480px; min-height: 380px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  :root { --container: min(100vw - 24px, 1200px); }

  .site-header {
    inset: 8px 8px auto;
    width: calc(100vw - 16px);
    grid-template-columns: 1fr auto auto;
    padding: 8px 10px;
  }
  .brand { min-width: 0; }
  .brand small, .header-phone span.label { display: none; }
  .header-phone { padding: 9px 12px; }
  .header-phone svg { width: 16px; height: 16px; }
  .search-trigger { width: 42px; padding: 0; justify-content: center; }
  .search-trigger strong, .search-trigger kbd { display: none; }

  .hero, .page-hero {
    min-height: auto;
    padding: 130px 18px 70px;
  }
  .hero { min-height: 92svh; }
  .hero h1, .page-hero h1 { font-size: 38px; }
  .hero-stats { gap: 22px; margin-top: 32px; }
  .hero-stat strong { font-size: 26px; }

  .section, .cta-section { padding: 64px 0; }
  .section-head { margin-bottom: 28px; }
  .alt { padding-inline: 12px; }

  .metric-grid, .card-grid, .doctor-grid, .blog-grid, .review-grid, .feature-grid, .process-grid {
    grid-template-columns: 1fr;
  }
  .doctor-card { min-height: auto; }
  .doctor-photo { aspect-ratio: 1 / .8; }
  .price-row { grid-template-columns: 1fr; gap: 8px; }
  .price-row strong { font-size: 22px; }
  .doctor-detail-photo img { min-height: 360px; height: 420px; }
  .doctor-service-card, .doctor-nav { grid-template-columns: 1fr; }

  .cta-section { width: calc(100vw - 24px); padding: 32px 26px; margin-bottom: 96px; }
  .cta-section.compact { padding: 28px 22px; }

  .search-modal { padding: 70px 8px 16px; }
  .search-dialog { max-height: calc(100svh - 92px); }
  .search-bar { grid-template-columns: auto 1fr auto; padding: 14px 16px; }
  .search-bar input { font-size: 16px; min-height: 50px; }

  .footer-grid { grid-template-columns: 1fr; }
  .site-footer { padding: 50px 18px 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; padding-bottom: 90px; }

  .mobile-cta { display: grid; }
  .scroll-top { right: 14px; bottom: 84px; width: 42px; height: 42px; }
  .toast-host { top: 80px; right: 8px; left: 8px; max-width: none; }
  .cookie-banner { padding: 14px 16px; left: 8px; right: 8px; bottom: 8px; }

  .split-section, .doctor-detail-hero, .doctor-detail-grid, .contact-grid, .cta-section {
    gap: 28px;
  }
}

@media (max-width: 420px) {
  .hero h1, .page-hero h1 { font-size: 32px; }
  .section h2, .cta-section h2 { font-size: 26px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}
