/* ============================================================
   MedHome (мультигород) - лэндинг выездной медицины по Казахстану
   Палитра: тил #0E7C7B / #12908C, петроль #0B3B44, золото #C6A15B,
   яркий тил #39C6BE, айвори #F7FAFA, текст #143A40 / #5A7278
   ============================================================ */

:root {
  --teal: #0E7C7B;
  --teal-2: #12908C;
  --teal-bright: #39C6BE;
  --petrol: #0B3B44;
  --petrol-deep: #082B33;
  --gold: #C6A15B;
  --gold-light: #E3C68C;
  --ivory: #F7FAFA;
  --white: #FFFFFF;
  --ink: #143A40;
  --muted: #5A7278;
  --wa: #25D366;

  --font-display: 'Unbounded', 'Manrope', sans-serif;
  --font-body: 'Manrope', -apple-system, 'Segoe UI', sans-serif;

  --radius: 20px;
  --radius-lg: 28px;
  --shadow-soft: 0 10px 40px rgba(11, 59, 68, .10);
  --shadow-card: 0 6px 24px rgba(11, 59, 68, .08);
  --ease: cubic-bezier(.22, .8, .3, 1);
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul, ol { list-style: none; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- Типографика ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal-2);
  margin-bottom: 14px;
}
.eyebrow-gold { color: var(--gold); }

.section-title {
  font-weight: 800;
  font-size: clamp(1.7rem, 5.4vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section-sub {
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 36px;
}
.section { padding: 76px 0; }
@media (min-width: 1000px) { .section { padding: 110px 0; } }

.section-light { background: var(--white); }
.section-ivory { background: var(--ivory); }
.section-dark {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(18, 144, 140, .35), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(57, 198, 190, .12), transparent 55%),
    linear-gradient(160deg, var(--petrol) 0%, var(--petrol-deep) 100%);
  color: var(--white);
}
.section-dark .section-sub { color: rgba(247, 250, 250, .72); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  border-radius: 999px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-sm { padding: 10px 20px; font-size: .88rem; }
.btn-block { width: 100%; }

.btn-gold {
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-light) 55%, var(--gold) 100%);
  background-size: 200% 100%;
  color: var(--petrol-deep);
  box-shadow: 0 8px 26px rgba(198, 161, 91, .38);
}
.btn-gold:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(198, 161, 91, .5);
}

.btn-outline {
  border: 1.5px solid rgba(247, 250, 250, .45);
  color: var(--white);
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  border-color: var(--teal-bright);
  color: var(--teal-bright);
  transform: translateY(-2px);
}

.btn-wa {
  background: linear-gradient(135deg, #2BD96E, var(--wa));
  color: var(--white);
  box-shadow: 0 6px 18px rgba(37, 211, 102, .35);
}
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(37, 211, 102, .5); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
  color: var(--white);
}
.header.scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(11, 59, 68, .08);
  color: var(--ink);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-icon { width: 44px; height: 44px; flex: none; }
.logo-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
}
.logo-word em { font-style: normal; color: var(--teal-bright); }
.header.scrolled .logo-word em { color: var(--teal-2); }

.nav {
  display: none;
  align-items: center;
  gap: 26px;
}
.nav-link {
  font-weight: 600;
  font-size: .92rem;
  opacity: .88;
  position: relative;
  padding: 4px 0;
  transition: opacity .25s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-link:hover { opacity: 1; }
.nav-link:hover::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 18px; margin-left: 8px; }
.nav-phone { font-weight: 800; font-size: .95rem; }
.nav-phone:hover { color: var(--gold); }

.header-call {
  display: inline-flex;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: .9;
  margin-left: auto;
}
.burger {
  width: 42px; height: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger span {
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1000px) {
  .nav { display: flex; }
  .header-call, .burger { display: none; }
}

/* Мобильное меню */
@media (max-width: 999px) {
  .nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding: 90px 32px 40px;
    background:
      radial-gradient(600px 400px at 90% 0%, rgba(18, 144, 140, .4), transparent 60%),
      linear-gradient(160deg, var(--petrol) 0%, var(--petrol-deep) 100%);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s var(--ease), visibility .35s;
  }
  .nav.open { opacity: 1; visibility: visible; z-index: 99; }
  .nav .nav-link {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    padding: 8px 0;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .4s var(--ease), transform .4s var(--ease);
  }
  .nav.open .nav-link { opacity: 1; transform: none; }
  .nav.open .nav-link:nth-child(1) { transition-delay: .05s; }
  .nav.open .nav-link:nth-child(2) { transition-delay: .1s; }
  .nav.open .nav-link:nth-child(3) { transition-delay: .15s; }
  .nav.open .nav-link:nth-child(4) { transition-delay: .2s; }
  .nav-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin: 24px 0 0;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .4s var(--ease) .25s, transform .4s var(--ease) .25s;
  }
  .nav.open .nav-cta { opacity: 1; transform: none; }
  .nav-phone { color: var(--gold); font-size: 1.15rem; }
  .header.menu-open { color: var(--white) !important; background: transparent; box-shadow: none; backdrop-filter: none; }
  .header.menu-open .logo-word em { color: var(--teal-bright); }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 40px) 0 90px;
  background: linear-gradient(155deg, var(--petrol) 0%, #0C4A50 45%, var(--teal) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.glow-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(57, 198, 190, .5), transparent 65%);
  top: -140px; right: -120px;
  animation: drift 14s ease-in-out infinite alternate;
}
.glow-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(198, 161, 91, .28), transparent 65%);
  bottom: -100px; left: -120px;
  animation: drift 18s ease-in-out infinite alternate-reverse;
}
.glow-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(18, 144, 140, .45), transparent 65%);
  top: 40%; left: 55%;
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, -30px) scale(1.12); }
}
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(247, 250, 250, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 250, 250, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 75%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 46px;
  align-items: center;
}
@media (min-width: 1000px) {
  .hero-inner { grid-template-columns: 1.15fr .85fr; gap: 60px; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(247, 250, 250, .85);
  border: 1px solid rgba(247, 250, 250, .22);
  border-radius: 999px;
  padding: 9px 18px;
  margin-bottom: 26px;
  backdrop-filter: blur(6px);
}
.pulse-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--teal-bright);
  position: relative;
  flex: none;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--teal-bright);
  animation: pulse-ring 1.8s var(--ease) infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(.5); opacity: .9; }
  100% { transform: scale(1.6); opacity: 0; }
}

.hero-title {
  font-weight: 800;
  font-size: clamp(2.35rem, 8.5vw, 4.1rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}
.hero-title .line { display: block; }
.accent-word {
  position: relative;
  color: var(--teal-bright);
  white-space: nowrap;
}
.accent-word::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .04em;
  height: .12em;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline-in 1s var(--ease) .9s forwards;
}
@keyframes underline-in { to { transform: scaleX(1); } }

.hero-sub {
  font-size: clamp(1rem, 2.6vw, 1.14rem);
  color: rgba(247, 250, 250, .82);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 42px; }

.hero-facts {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.fact { display: flex; align-items: center; gap: 12px; }
.fact strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--gold-light);
  line-height: 1;
}
.fact strong sup { font-size: .5em; }
.fact span {
  font-size: .78rem;
  line-height: 1.35;
  color: rgba(247, 250, 250, .7);
  max-width: 120px;
}
.fact-sep { width: 1px; height: 34px; background: rgba(247, 250, 250, .18); }
@media (max-width: 480px) { .fact-sep { display: none; } .hero-facts { gap: 16px 24px; } }

/* Hero-карточка */
.hero-visual { position: relative; }
.hero-card {
  background: rgba(247, 250, 250, .08);
  border: 1px solid rgba(247, 250, 250, .16);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(8, 43, 51, .45);
  max-width: 460px;
}
.hero-card-top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.hero-map-icon {
  flex: none;
  width: 54px; height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(57, 198, 190, .16);
  border: 1px solid rgba(57, 198, 190, .35);
  color: var(--teal-bright);
}
.hero-card-note { font-size: .86rem; color: rgba(247, 250, 250, .8); line-height: 1.45; }

.hero-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.hero-cities li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(247, 250, 250, .08);
  border: 1px solid rgba(247, 250, 250, .18);
  border-radius: 999px;
  padding: 7px 13px;
}
.hero-cities-more {
  color: var(--petrol-deep) !important;
  background: linear-gradient(120deg, var(--gold), var(--gold-light)) !important;
  border-color: transparent !important;
  font-weight: 800 !important;
}
.city-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal-bright);
  position: relative;
  flex: none;
}
.city-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--teal-bright);
  animation: pulse-ring 2.2s var(--ease) infinite;
}

.ecg-wrap {
  position: relative;
  background: rgba(8, 43, 51, .5);
  border-radius: 16px;
  padding: 10px 12px 6px;
  margin-bottom: 18px;
  overflow: hidden;
}
.ecg { width: 100%; height: 74px; }
.ecg path { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ecg-base { stroke: rgba(57, 198, 190, .18); }
.ecg-trace {
  stroke: var(--teal-bright);
  filter: drop-shadow(0 0 6px rgba(57, 198, 190, .9));
  stroke-dasharray: 140 1200;
  stroke-dashoffset: 140;
  animation: ecg-run 3.4s linear infinite;
}
@keyframes ecg-run {
  to { stroke-dashoffset: -1200; }
}
.ecg-label {
  display: block;
  text-align: center;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(247, 250, 250, .55);
  padding-bottom: 6px;
}
.hero-card-row { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(57, 198, 190, .14);
  border: 1px solid rgba(57, 198, 190, .3);
  border-radius: 999px;
  padding: 8px 14px;
}
.hero-chip svg { color: var(--teal-bright); flex: none; }

.hero-ecg-bottom {
  position: absolute;
  left: 0; right: 0;
  top: calc(var(--header-h) + 4px); bottom: auto;
  z-index: 1;
  pointer-events: none;
  opacity: .6;
}
.hero-ecg-bottom svg { display: block; width: 100%; height: 190px; }
.ecg-line-big {
  fill: none;
  stroke: rgba(57, 198, 190, .5);
  stroke-width: 2.6;
  filter: drop-shadow(0 0 8px rgba(57, 198, 190, .35));
  stroke-dasharray: 300 2600;
  animation: ecg-run-big 9s linear infinite;
}
@media (max-width: 700px) {
  .hero-ecg-bottom svg { height: 130px; }
}
@keyframes ecg-run-big {
  from { stroke-dashoffset: 2900; }
  to { stroke-dashoffset: -2900; }
}

/* ---------- Города ---------- */
.city-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 720px) { .city-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .city-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .city-card-regions { grid-column: span 3; }
}
@media (min-width: 720px) and (max-width: 999px) { .city-card-regions { grid-column: span 2; } }

.city-card {
  display: flex;
  flex-direction: column;
  background: rgba(247, 250, 250, .06);
  border: 1px solid rgba(247, 250, 250, .13);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .45s var(--ease), border-color .45s, box-shadow .45s var(--ease);
}
.city-card:hover {
  transform: translateY(-7px);
  border-color: rgba(198, 161, 91, .55);
  box-shadow: 0 22px 48px rgba(8, 43, 51, .5);
}
.city-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.city-head h3 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.city-badge {
  flex: none;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--teal-bright);
  border: 1px solid rgba(57, 198, 190, .4);
  border-radius: 999px;
  padding: 4px 11px;
}
.city-badge-gold {
  color: var(--petrol-deep);
  background: linear-gradient(120deg, var(--gold), var(--gold-light));
  border-color: transparent;
}
.city-services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.city-services li {
  font-size: .8rem;
  font-weight: 600;
  color: rgba(247, 250, 250, .88);
  background: rgba(57, 198, 190, .1);
  border: 1px solid rgba(57, 198, 190, .28);
  border-radius: 999px;
  padding: 6px 13px;
  transition: background .25s, color .25s, border-color .25s;
}
.city-services li:hover {
  background: var(--teal-bright);
  color: var(--petrol-deep);
  border-color: var(--teal-bright);
}
.city-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}
.btn-city { padding: 10px 18px; font-size: .85rem; }
.city-link {
  font-size: .85rem;
  font-weight: 700;
  color: var(--gold-light);
  transition: color .25s;
}
.city-link:hover { color: var(--teal-bright); }

.regions-note {
  font-size: .9rem;
  color: rgba(247, 250, 250, .72);
  margin-bottom: 14px;
}
.regions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.regions-list li {
  font-size: .82rem;
  font-weight: 700;
  color: var(--gold-light);
  border: 1px solid rgba(198, 161, 91, .45);
  border-radius: 999px;
  padding: 6px 14px;
  transition: background .25s, color .25s;
}
.regions-list li:hover {
  background: linear-gradient(120deg, var(--gold), var(--gold-light));
  color: var(--petrol-deep);
}

/* ---------- Услуги ---------- */
.services-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 720px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .service-card-wide { grid-column: span 3; }
}
@media (min-width: 720px) and (max-width: 999px) { .service-card-wide { grid-column: span 2; } }

.service-card {
  position: relative;
  background: var(--ivory);
  border: 1px solid rgba(14, 124, 123, .1);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-2), var(--teal-bright), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(14, 124, 123, .22);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(18, 144, 140, .14), rgba(57, 198, 190, .18));
  color: var(--teal);
  margin-bottom: 18px;
  transition: transform .4s var(--ease);
}
.service-card:hover .service-icon { transform: scale(1.08) rotate(-4deg); }
.service-card h3 {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.service-card p { font-size: .9rem; color: var(--muted); margin-bottom: 16px; }
.service-tag {
  position: absolute;
  top: 18px; right: 18px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--petrol-deep);
  background: linear-gradient(120deg, var(--gold), var(--gold-light));
  padding: 5px 12px;
  border-radius: 999px;
}
.service-link {
  display: inline-flex;
  font-size: .88rem;
  font-weight: 700;
  color: var(--teal-2);
  transition: color .25s;
}
.service-link:hover { color: var(--gold); }

.service-card-wide { display: flex; gap: 22px; align-items: flex-start; }
.service-card-wide .service-icon { flex: none; margin-bottom: 0; }
.service-wide-body h3 { margin-bottom: 8px; }
.spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 16px;
}
.spec-chips li {
  font-size: .8rem;
  font-weight: 600;
  color: var(--teal);
  background: var(--white);
  border: 1px solid rgba(14, 124, 123, .2);
  border-radius: 999px;
  padding: 6px 13px;
  transition: background .25s, color .25s, border-color .25s;
}
.spec-chips li:hover {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
@media (max-width: 719px) {
  .service-card-wide { flex-direction: column; gap: 16px; }
}

/* ---------- Глоссарий ---------- */
.section-glossary { padding: 64px 0; }
@media (min-width: 1000px) { .section-glossary { padding: 84px 0; } }
.glossary-grid {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}
@media (min-width: 720px) { .glossary-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.glossary-card {
  background: var(--white);
  border: 1px solid rgba(14, 124, 123, .1);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.glossary-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.glossary-abbr {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 700;
  color: var(--teal);
  background: linear-gradient(135deg, rgba(18, 144, 140, .12), rgba(57, 198, 190, .16));
  border-radius: 12px;
  padding: 8px 16px;
  margin-bottom: 14px;
}
.glossary-card p { font-size: .9rem; color: var(--muted); }
.glossary-card p strong { color: var(--ink); }

/* ---------- Как это работает ---------- */
.steps {
  display: grid;
  gap: 22px;
  margin-top: 44px;
  counter-reset: step;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 26px; } }

.step {
  position: relative;
  background: var(--ivory);
  border: 1px solid rgba(14, 124, 123, .1);
  border-radius: var(--radius);
  padding: 30px 24px 26px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.step-num {
  position: absolute;
  top: 20px; right: 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: rgba(14, 124, 123, .14);
}
.step-icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--teal), var(--teal-2));
  color: var(--white);
  box-shadow: 0 8px 20px rgba(14, 124, 123, .35);
  margin-bottom: 18px;
}
.step h3 { font-size: 1.02rem; font-weight: 800; margin-bottom: 8px; }
.step p { font-size: .88rem; color: var(--muted); }

/* ---------- Почему MedHome ---------- */
.counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 44px 0 46px;
  text-align: center;
}
.counter {
  background: var(--white);
  border: 1px solid rgba(14, 124, 123, .1);
  border-radius: var(--radius);
  padding: 26px 12px;
  box-shadow: var(--shadow-card);
}
.counter strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  line-height: 1.1;
  color: var(--teal);
  margin-bottom: 6px;
}
.counter span { font-size: .82rem; color: var(--muted); line-height: 1.4; display: inline-block; }
.counter strong .count { font: inherit; color: inherit; display: inline; }
@media (max-width: 640px) {
  .counters { grid-template-columns: 1fr; }
  .counter { padding: 20px 12px; }
}

.why-grid {
  display: grid;
  gap: 18px;
}
@media (min-width: 720px) { .why-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
.why-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 6px 16px;
  background: var(--white);
  border: 1px solid rgba(14, 124, 123, .1);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.why-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.why-icon {
  grid-row: span 2;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(198, 161, 91, .14);
  color: var(--gold);
}
.why-item h3 { font-size: 1rem; font-weight: 800; align-self: center; }
.why-item p { grid-column: 2; font-size: .88rem; color: var(--muted); }

/* ---------- Форма ---------- */
.section-form {
  background:
    radial-gradient(800px 500px at 100% 0%, rgba(57, 198, 190, .14), transparent 55%),
    linear-gradient(150deg, var(--petrol) 0%, var(--petrol-deep) 100%);
}
.form-card {
  max-width: 760px;
  margin: 0 auto;
  background: rgba(247, 250, 250, .07);
  border: 1px solid rgba(247, 250, 250, .15);
  border-radius: var(--radius-lg);
  padding: 34px 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--white);
}
@media (min-width: 720px) { .form-card { padding: 48px 54px; } }
.form-head { text-align: center; margin-bottom: 30px; }
.form-note { color: rgba(247, 250, 250, .72); font-size: .94rem; }

.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: block; margin-bottom: 16px; }
.form-row .field { margin-bottom: 16px; }
.field span {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(247, 250, 250, .75);
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: 13px 16px;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none'%3E%3Cpath d='M1 1.5 7 7l6-5.5' stroke='%230E7C7B' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal-bright);
  box-shadow: 0 0 0 4px rgba(57, 198, 190, .22);
}
.field input.invalid,
.field select.invalid { border-color: #E08A6D; box-shadow: 0 0 0 4px rgba(224, 138, 109, .2); }
.form-card .btn-block { margin-top: 8px; }
.form-privacy {
  margin-top: 14px;
  text-align: center;
  font-size: .74rem;
  color: rgba(247, 250, 250, .5);
}

.form-success { text-align: center; padding: 30px 10px 10px; }
.success-icon {
  width: 72px; height: 72px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--teal-bright);
  border: 2px solid rgba(57, 198, 190, .5);
  animation: success-pop .6s var(--ease);
}
@keyframes success-pop {
  0% { transform: scale(.4); opacity: 0; }
  70% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}
.form-success h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 10px; }
.form-success p { color: rgba(247, 250, 250, .78); font-size: .94rem; max-width: 440px; margin: 0 auto; }
.form-success a { color: var(--gold-light); font-weight: 700; text-decoration: underline; }

/* ---------- Контакты ---------- */
.contact-grid {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}
@media (min-width: 720px) { .contact-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.contact-card {
  background: var(--ivory);
  border: 1px solid rgba(14, 124, 123, .1);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
a.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(14, 124, 123, .3);
}
.contact-icon {
  width: 50px; height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: rgba(18, 144, 140, .12);
  color: var(--teal);
  margin-bottom: 10px;
}
.contact-icon-wa { background: rgba(37, 211, 102, .14); color: #1EA952; }
.contact-label { font-size: .8rem; font-weight: 600; color: var(--muted); }
.contact-card strong { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; }

/* ---------- Footer ---------- */
.footer {
  background: var(--petrol-deep);
  color: rgba(247, 250, 250, .8);
  padding: 50px 0 34px;
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
@media (min-width: 720px) {
  .footer-top { flex-direction: row; align-items: center; justify-content: space-between; }
}
.logo-footer .logo-word { color: var(--white); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-nav a { font-size: .88rem; font-weight: 600; opacity: .75; transition: opacity .25s, color .25s; }
.footer-nav a:hover { opacity: 1; color: var(--teal-bright); }
.footer-contacts { display: flex; align-items: center; gap: 18px; }
.footer-phone { font-weight: 800; color: var(--gold-light); }
.footer-contacts a:hover { color: var(--teal-bright); }
.footer-ecg { margin: 26px 0 18px; opacity: .8; }
.footer-ecg svg { display: block; width: 100%; height: 40px; }
.footer-disclaimer {
  font-size: .78rem;
  color: rgba(247, 250, 250, .5);
  border: 1px solid rgba(247, 250, 250, .12);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.footer-copy { font-size: .78rem; color: rgba(247, 250, 250, .42); }

/* ---------- Плавающая WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 90;
  width: 58px; height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #2BD96E, var(--wa));
  color: var(--white);
  box-shadow: 0 10px 28px rgba(37, 211, 102, .45);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 14px 34px rgba(37, 211, 102, .55); }
.wa-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, .7);
  animation: pulse-ring 2s var(--ease) infinite;
}

/* ---------- Reveal-анимации ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.d-1 { transition-delay: .1s; }
.d-2 { transition-delay: .2s; }
.d-3 { transition-delay: .3s; }
.d-4 { transition-delay: .4s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ecg-trace { stroke-dasharray: none; stroke-dashoffset: 0; }
  .ecg-line-big { stroke-dasharray: none; }
  .accent-word::after { transform: scaleX(1); animation: none; }
}

/* ================= МУЛЬТИСТРАНИЧНИК: города ================= */
/* City hero (без визуальной карточки, одна колонка) */
.hero-city { min-height: auto; padding: calc(var(--header-h) + 56px) 0 76px; }
.hero-inner-city { display: block; max-width: 860px; }
.hero-inner-city .hero-title { font-size: clamp(2rem, 6vw, 3.6rem); }
.hero-inner-city .hero-sub { max-width: 680px; }

/* Переключатель городов */
.city-switch {
  position: sticky; top: var(--header-h); z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(11,59,68,.08);
}
.city-switch-inner {
  display: flex; align-items: center; gap: 10px;
  padding-top: 12px; padding-bottom: 12px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.city-switch-inner::-webkit-scrollbar { display: none; }
.city-switch-label { color: var(--muted); font-size: .86rem; font-weight: 600; white-space: nowrap; flex: 0 0 auto; }
.city-switch-link {
  flex: 0 0 auto; white-space: nowrap;
  padding: 8px 16px; border-radius: 999px;
  font-size: .9rem; font-weight: 600; color: var(--teal-2);
  background: var(--ivory); border: 1px solid rgba(14,124,123,.16);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.city-switch-link:hover { background: rgba(14,124,123,.10); border-color: rgba(14,124,123,.32); }
.city-switch-link.active { background: var(--teal); color: #fff; border-color: var(--teal); }

/* Ссылки в карточках городов на главной */
.city-title-link { color: inherit; }
.city-title-link:hover { color: var(--teal-bright); }
.city-link-more { font-weight: 700; }

/* Баннер списка регионов (regiony.html) */
.regions-banner {
  margin: 8px 0 30px; padding: 26px 28px;
  background: var(--ivory); border: 1px solid rgba(14,124,123,.14);
  border-radius: var(--radius);
}
.regions-banner h3 { font-family: var(--font-body); font-size: 1.05rem; color: var(--ink); margin-bottom: 14px; }
.regions-list-wide {
  display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0 0 12px;
}
.regions-list-wide li {
  padding: 8px 15px; border-radius: 999px;
  background: #fff; border: 1px solid rgba(14,124,123,.18);
  font-weight: 600; font-size: .92rem; color: var(--teal-2);
}
.regions-banner .regions-note { color: var(--muted); font-size: .92rem; margin: 0; }
