/* American Captain (display, headings) + Manrope (text), self-hosted */
@font-face {
  font-family: 'American Captain';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/american-captain.woff2) format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/manrope-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --green: #00963f;
  --green-dark: #007a33;
  --green-light: #e8f7ee;
  --green-border: #bde8ce;
  --blue: #1d68bd;
  --blue-dark: #0f4c92;
  --blue-light: #edf4fc;
  --blue-border: #cbe0fa;
  --navy: #091c33;
  --navy-soft: #0f2746;
  --text: #1e293b;
  --muted: #5b6b7f;
  --tint: #f6f9fc;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --white: #ffffff;
  --wa: #1fa855;
  --wa-dark: #198844;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(9, 28, 51, 0.03);
  --shadow: 0 8px 24px rgba(9, 28, 51, 0.05);
  --shadow-hover: 0 14px 32px rgba(9, 28, 51, 0.08);
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'American Captain', 'Manrope', Impact, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font: 16px/1.65 var(--font);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1, h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .03em; line-height: 1.05; }
a { color: var(--blue); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--blue-dark); }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); font-size: .95rem; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: middle; }
.ico--sm { width: 1em; height: 1em; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--white); padding: 8px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .85em 1.5em; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--primary { background: var(--navy); color: var(--white); box-shadow: 0 4px 14px rgba(9, 28, 51, .25); }
.btn--primary:hover { background: var(--navy-soft); color: var(--white); box-shadow: 0 6px 20px rgba(9, 28, 51, .3); }
.btn--white { background: var(--white); color: var(--navy); box-shadow: 0 6px 20px rgba(0,0,0,.15); font-weight: 700; }
.btn--white:hover { background: #f8fafc; color: var(--blue); }
.btn--wa { background: var(--wa); color: var(--white); box-shadow: 0 4px 16px rgba(31, 168, 85, .35); }
.btn--wa:hover { background: var(--wa-dark); color: var(--white); box-shadow: 0 6px 22px rgba(31, 168, 85, .45); }
.btn--phone { background: var(--green); color: var(--white); box-shadow: 0 4px 14px rgba(0, 150, 63, .3); }
.btn--phone:hover { background: var(--green-dark); color: var(--white); }
.btn--outline { background: rgba(255,255,255,.12); color: var(--white); border-color: rgba(255,255,255,.35); backdrop-filter: blur(8px); }
.btn--outline:hover { background: rgba(255,255,255,.24); border-color: var(--white); color: var(--white); }
.btn--sm { padding: .5em 1.1em; font-size: .88rem; }
:focus-visible { outline: 3px solid #60a5fa; outline-offset: 2px; }

/* Status Pill */
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; border-radius: 999px; font-size: .84rem; font-weight: 600;
}
.status-pill--header {
  background: var(--green-light); color: var(--green-dark); border: 1px solid var(--green-border);
  display: none;
}
.status-pill--hero {
  background: rgba(255, 255, 255, 0.14); color: #e2fbd7; border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .7);
  animation: pulse-dot 2s infinite;
  flex: none;
}
.status-dot--closed { background: #94a3b8; box-shadow: none; animation: none; }
@keyframes pulse-dot {
  0% { transform: scale(.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, .7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Header */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  transition: all .2s ease;
}
.header__row {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 16px;
}
.logo { display: flex; align-items: center; text-decoration: none; flex: none; }
.logo__img { height: 42px; width: auto; object-fit: contain; transition: transform .2s ease; }
.logo:hover .logo__img { transform: scale(1.02); }

.nav {
  display: flex; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--line);
  padding: 16px 20px; flex-direction: column; gap: 4px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .25s ease, transform .35s cubic-bezier(.2,.7,.2,1), visibility 0s linear .35s;
}
.nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav__link {
  padding: 10px 14px; color: var(--navy); text-decoration: none;
  font-weight: 600; border-radius: var(--radius-sm); transition: all .15s ease;
}
.nav__link:hover { color: var(--navy); background: transparent; }

.header__actions { display: flex; align-items: center; gap: 12px; }
.header__call { display: none; }

.burger {
  width: 44px; height: 44px; border: 0; background: var(--tint);
  border-radius: var(--radius-sm); display: grid; place-content: center;
  gap: 5px; cursor: pointer; transition: background .15s ease;
}
.burger:hover { background: #e8eef7; }
.burger span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .25s; }
.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); }

/* Hero Section */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 120% at 85% 15%, rgba(0, 150, 63, 0.16) 0%, transparent 50%),
    radial-gradient(100% 100% at 15% 85%, rgba(29, 104, 189, 0.22) 0%, transparent 60%),
    linear-gradient(150deg, #07192f 0%, #0b2547 60%, #0a3461 100%);
  color: var(--white);
  padding: 56px 0 64px;
}
/* Photo slot: set --hero-photo (url) once real photography is available; overlay keeps text readable */
.hero__photo {
  position: absolute; inset: -8% 0; pointer-events: none;
  background: var(--hero-photo, none) center / cover no-repeat;
  opacity: 0; transform: translate3d(0, var(--py, 0px), 0) scale(1.06);
  transition: opacity 1.2s ease; will-change: transform;
}
.hero__photo.is-set { opacity: .28; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Soft glows via radial gradients — no filter: blur(), which is expensive on phones */
.hero__glow { position: absolute; border-radius: 50%; pointer-events: none; will-change: transform; }
.hero__glow--1 {
  width: 560px; height: 560px; top: -220px; right: -200px;
  background: radial-gradient(circle, rgba(0, 150, 63, .30) 0%, transparent 65%);
  animation: float-a 14s ease-in-out infinite alternate;
}
.hero__glow--2 {
  width: 480px; height: 480px; bottom: -220px; left: -80px;
  background: radial-gradient(circle, rgba(29, 104, 189, .40) 0%, transparent 65%);
  animation: float-b 18s ease-in-out infinite alternate;
}
.hero__inner { position: relative; z-index: 2; }
.hero__content { max-width: 860px; }

.hero__eyebrow-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; font-size: .84rem; font-weight: 600;
}
.badge--hero {
  background: rgba(255, 255, 255, 0.14); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22); backdrop-filter: blur(6px);
}

.hero__title {
  color: var(--white); font-size: clamp(2.7rem, 7vw, 5rem);
  font-weight: 400; line-height: 1.02; margin-bottom: 22px; letter-spacing: .03em; max-width: 14ch;
}
.highlight-blue {
  color: #6fe0a4;
}
.hero__lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem); line-height: 1.6;
  opacity: .92; max-width: 680px; margin: 0 0 32px;
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px;
}
.hero__actions .btn { flex: 1 1 200px; }

.hero__facts {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: .92rem; opacity: .85;
}
.hero__facts li { display: flex; gap: 10px; align-items: center; }
.hero__facts .ico { color: #55d688; }

/* Section Structure */
.section { padding: 72px 0; }
.section--tint { background: var(--tint); }
.section__header { margin-bottom: 48px; text-align: left; }
.section__tag {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--green-dark); font-size: .78rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 14px;
}
.section__tag::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.section__tag--light { color: #8fe6b6; }
.section__title { font-size: clamp(2.2rem, 4.6vw, 3.1rem); margin-bottom: 14px; }
.section__sub { color: var(--muted); max-width: 600px; font-size: 1.05rem; margin: 0; }
.subhead { font-size: 1.4rem; margin: 0 0 10px; }

/* Grids */
.grid { display: grid; gap: 24px; }
.grid--cards { grid-template-columns: 1fr; }
.grid--packages { grid-template-columns: 1fr; margin-top: 24px; }
.grid--doctors { grid-template-columns: repeat(2, 1fr); }

/* Service Cards */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow-sm); position: relative;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--line-strong);
}
.card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--tint);
  color: var(--navy); display: grid; place-items: center; margin-bottom: 20px;
  border: 1px solid var(--line); flex: none;
}
.card__icon .ico { width: 28px; height: 28px; }
.card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.6; }
.card__tag {
  display: inline-block; margin-top: auto; padding-top: 14px;
  font-size: .82rem; font-weight: 700; color: var(--green); text-transform: uppercase;
}

/* Dark band */
.section--dark {
  position: relative; background: linear-gradient(160deg, #07192f 0%, #0b2547 100%); color: #cbd5e1;
}
.section--dark::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.section--dark .container { position: relative; z-index: 1; }
.section--dark .section__title { color: var(--white); }
.section--dark .section__sub { color: rgba(255,255,255,.72); }

/* Prices */
.prices-wrapper { margin-bottom: 48px; }
.price-group {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: 14px; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: border-color .15s ease;
}
.price-group[open] { border-color: var(--line-strong); }
.price-group summary {
  cursor: pointer; padding: 18px 24px; font-weight: 700; font-size: 1.15rem;
  color: var(--navy); list-style: none; display: flex; justify-content: space-between;
  align-items: center; user-select: none; background: var(--white);
}
.price-group summary::-webkit-details-marker { display: none; }
.price-group summary::after {
  content: "+"; font-size: 1.6rem; color: var(--blue); line-height: 1; font-weight: 500;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), color .2s ease;
}
.price-group[open] summary::after { transform: rotate(45deg); color: var(--green); }
.price-group.is-closing summary::after { transform: none; color: var(--navy); }
.price-group summary:hover { background: #fafcff; }

.price-list { list-style: none; margin: 0; padding: 0 24px 12px; }
.price-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.price-list .name { font-weight: 600; color: var(--navy); font-size: 1rem; }
.price-list .name small { display: block; color: var(--muted); font-weight: 400; font-size: .88rem; margin-top: 3px; }
.price-list .price {
  font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; letter-spacing: .03em; color: var(--navy);
  white-space: nowrap; flex: none;
}
.price-list li.is-off { opacity: .6; }
.price-list .badge--off {
  display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 999px;
  background: #fef3c7; color: #92400e; font-size: .78rem; font-weight: 600;
}

/* Package Check-up Cards */
.packages-header { margin-top: 24px; }
.package-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; position: relative;
  transition: transform .2s ease;
}
.package-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-hover); }
.package-card h3 { font-size: 1.3rem; margin-bottom: 8px; color: var(--navy); }
.package__price {
  font-family: var(--font-display); font-size: 2.3rem; font-weight: 400; letter-spacing: .03em; color: var(--navy); margin: 0 0 18px;
  display: flex; align-items: baseline; gap: 4px;
}
.package-card ul {
  list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px;
  color: var(--text); font-size: .95rem;
}
.package-card li { display: flex; gap: 10px; align-items: flex-start; }
.package-card li::before {
  content: "✓"; color: var(--green); font-weight: 800; flex: none;
}

/* Doctors */
.doctor-card {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 12px 20px; box-shadow: var(--shadow-sm);
  text-align: center; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
/* Brand accent line that sweeps in on hover */
.doctor-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 2;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.doctor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--blue-border); }
.doctor-card:hover::before { transform: scaleX(1); }
/* Photos are cut-outs (transparent PNG): a soft branded stage behind the person, feet fading into the card */
.doctor-card__img-wrap {
  position: relative; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; isolation: isolate;
  border-radius: calc(var(--radius) - 5px); margin-bottom: 16px;
  background:
    radial-gradient(80% 60% at 50% 100%, rgba(0, 150, 63, .16) 0%, transparent 70%),
    radial-gradient(70% 70% at 50% 30%, rgba(29, 104, 189, .16) 0%, transparent 70%),
    linear-gradient(180deg, #f2f7fc 0%, #e4edf7 100%);
}
/* ring behind the shoulders + soft floor shadow */
.doctor-card__img-wrap::before {
  content: ""; position: absolute; left: 50%; top: 22%; width: 78%; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 20px 40px rgba(9, 28, 51, .08);
  transition: transform .8s var(--ease-out);
}
.doctor-card__img-wrap::after {
  content: ""; position: absolute; inset: auto 0 0; height: 26%; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--white) 92%);
  transition: opacity .4s ease;
}
.doctor-card img {
  position: relative; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(0 14px 22px rgba(9, 28, 51, .22));
  opacity: 0; transform: translateY(6px); transition: opacity .6s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.doctor-card img.is-loaded { opacity: 1; transform: none; }
.doctor-card h3 { font-size: 1.1rem; margin-bottom: 4px; padding: 0 4px; }
.doctor-card p { margin: 0; padding: 0 4px; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.doctor-card__badge {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 10px;
  padding: 3px 10px; border-radius: 999px; line-height: 1.3;
  background: var(--green-light); color: var(--green-dark); border: 1px solid var(--green-border);
  font-size: .76rem; font-weight: 700;
}
.doctor-card__badge::before { content: "✓"; font-weight: 800; }

@media (max-width: 639px) {
  .grid--doctors { gap: 12px; }
  .doctor-card { padding: 8px 8px 16px; }
  .doctor-card__img-wrap { margin-bottom: 12px; }
  .doctor-card h3 { font-size: .98rem; }
  .doctor-card p { font-size: .8rem; }
  .doctor-card__badge { font-size: .68rem; padding: 2px 8px; }
}

/* Contacts */
.contacts { display: grid; gap: 24px; }
.contacts__card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow);
}
.contacts__block { display: grid; gap: 24px; margin-top: 24px; }
.contacts__item { display: flex; gap: 16px; align-items: flex-start; }
.contacts__icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--tint); color: var(--blue);
  display: grid; place-items: center; flex: none;
}
.contacts__addr-text { margin: 4px 0 6px; font-weight: 600; font-size: 1.05rem; }
.link--gis {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; color: var(--green); font-size: .92rem;
}
.link--gis:hover { color: var(--green-dark); }

.phones { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.phones a {
  display: inline-flex; font-size: 1.15rem; font-weight: 800;
  color: var(--navy); text-decoration: none; padding: 4px 0;
}
.phones a:hover { color: var(--blue); }

.contacts__schedule-box { width: 100%; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin: 8px 0 12px; }
.hours dt { font-weight: 600; color: var(--navy); }
.hours dd { margin: 0; color: var(--text); }
.hours dt.is-today, .hours dd.is-today { color: var(--green); font-weight: 800; }

.queue-badge {
  display: flex; gap: 8px; align-items: center;
  padding: 8px 12px; border-radius: var(--radius-sm);
  background: var(--green-light); color: var(--green-dark); font-size: .88rem; font-weight: 600;
}

.socials-wrap { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.socials-label { font-size: .9rem; font-weight: 600; color: var(--muted); display: block; margin-bottom: 12px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tint); color: var(--blue); transition: all .18s ease;
}
.socials a:hover { background: var(--blue); color: var(--white); transform: translateY(-2px); }

.map-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; min-height: 420px;
}
.map-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; background: var(--white); border-bottom: 1px solid var(--line);
}
.map-header__title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; }
.map { flex: 1; min-height: 360px; background: var(--tint); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* Footer */
.footer {
  background: var(--navy); color: #cbd5e1; padding: 56px 0 96px;
}
.footer__inner { display: grid; gap: 40px; }
.footer__main { display: grid; gap: 32px; }
.logo--footer {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  width: fit-content;
}
.logo--footer .logo__img {
  height: 36px;
  width: auto;
  object-fit: contain;
}
.footer__desc { color: var(--white); font-weight: 600; margin: 16px 0 6px; font-size: 1.05rem; }
.footer__subnote { color: #94a3b8; font-size: .9rem; margin: 0; max-width: 380px; }
.footer strong { color: var(--white); display: block; margin-bottom: 14px; font-size: 1.05rem; }
.footer__nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__nav a { color: #94a3b8; text-decoration: none; font-size: .95rem; }
.footer__nav a:hover { color: var(--white); }
.footer__contacts { display: grid; gap: 8px; font-size: .95rem; }
.footer__contacts a { color: #94a3b8; text-decoration: none; }
.footer__contacts a:hover { color: var(--white); }
.footer__bottom {
  padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer__copy { font-size: .84rem; color: #64748b; margin: 0; line-height: 1.6; }

/* Floating WhatsApp Button (FAB) */
.fab {
  position: fixed; right: 20px; bottom: 20px; width: 60px; height: 60px;
  border-radius: 50%; background: var(--wa); color: var(--white);
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(31, 168, 85, .45);
  z-index: 50; transition: transform .2s ease;
}
.fab:hover { transform: scale(1.08); }
.fab .ico { width: 32px; height: 32px; position: relative; z-index: 2; }
.fab__pulse {
  position: absolute; width: 100%; height: 100%; border-radius: 50%;
  background: var(--wa); opacity: .6; animation: fab-ripple 2s infinite ease-out;
  pointer-events: none; z-index: 1;
}
@keyframes fab-ripple {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.6); opacity: 0; }
}
.fab__tooltip {
  position: absolute; right: 70px; background: var(--navy); color: var(--white);
  padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  white-space: nowrap; opacity: 0; pointer-events: none; transform: translateX(8px);
  transition: all .2s ease; box-shadow: var(--shadow);
}
.fab:hover .fab__tooltip { opacity: 1; transform: translateX(0); }

/* Responsive Media Queries */
@media (min-width: 640px) {
  .hero__metrics { grid-template-columns: repeat(4, 1fr); }
  .grid--cards { grid-template-columns: repeat(2, 1fr); }
  .grid--packages { grid-template-columns: repeat(2, 1fr); }
  .grid--doctors { grid-template-columns: repeat(4, 1fr); }
  .hero__actions .btn { flex: 0 0 auto; }
}

@media (min-width: 992px) {
  .burger { display: none; }
  .nav {
    display: flex; position: static; flex-direction: row;
    gap: 8px; padding: 0; border: 0; background: none; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .nav__link { padding: 8px 14px; }
  .header__call { display: inline-flex; }
  .hero { padding: 96px 0 104px; }
  /* Desktop: centred, plain composition instead of a left column */
  .hero__content { max-width: 960px; margin: 0 auto; text-align: center; }
  .hero__eyebrow-row { justify-content: center; }
  .hero__title { max-width: none; margin-left: auto; margin-right: auto; font-size: clamp(3rem, 5.6vw, 4.6rem); }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__actions .btn { flex: 0 0 auto; min-width: 240px; }
  .hero__facts { justify-content: center; }
  .section { padding: 112px 0; }
  .grid { gap: 28px; }
  .section__header { margin-bottom: 60px; }
  body { font-size: 17px; }
  .grid--cards { grid-template-columns: repeat(3, 1fr); }
  .grid--packages { grid-template-columns: repeat(3, 1fr); }
  .contacts { grid-template-columns: 1.1fr 1.2fr; align-items: stretch; }
  .footer { padding-bottom: 56px; }
  .footer__main { grid-template-columns: 1.5fr 1fr 1fr; }
}

@media (min-width: 1200px) {
  .status-pill--header { display: inline-flex; }
}

[hidden] { display: none !important; }

.btn--ghost { background: var(--blue-light); color: var(--blue); border-color: var(--blue-border); }
.btn--ghost:hover { background: var(--blue); color: var(--white); }

/* ============ Motion ============ */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-spring: cubic-bezier(.3, 1.5, .5, 1); }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes float-a { to { transform: translate(-70px, 60px) scale(1.12); } }
@keyframes float-b { to { transform: translate(80px, -50px) scale(1.08); } }
@keyframes shine { to { background-position: 200% center; } }

/* Scroll progress bar */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 80; pointer-events: none;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transform: scaleX(0); transform-origin: 0 50%;
}

/* Header: slides in, gains shadow on scroll */
.header { animation: drop-in .6s var(--ease-out) backwards; }
.header.is-scrolled { background: rgba(255, 255, 255, .98); box-shadow: 0 8px 30px rgba(9, 28, 51, .08); }
.header.is-scrolled .logo__img { transform: scale(.92); }
.nav__link.is-active { color: var(--navy); background: transparent; }

@media (max-width: 991px) {
  .nav.is-open .nav__link { animation: rise .4s var(--ease-out) backwards; }
  .nav.is-open .nav__link:nth-child(2) { animation-delay: .04s; }
  .nav.is-open .nav__link:nth-child(3) { animation-delay: .08s; }
  .nav.is-open .nav__link:nth-child(4) { animation-delay: .12s; }
  .nav.is-open .nav__link:nth-child(5) { animation-delay: .16s; }
}

/* Hero entrance, staggered */
.hero__content > * { animation: rise .8s var(--ease-out) backwards; }
.hero__content > :nth-child(1) { animation-delay: .15s; }
.hero__content > :nth-child(2) { animation-delay: .25s; }
.hero__content > :nth-child(3) { animation-delay: .35s; }
.hero__content > :nth-child(4) { animation-delay: .45s; }
.hero__content > :nth-child(5) { animation-delay: .55s; }
.hero__content > :nth-child(6) { animation-delay: .65s; }
/* Accent word: solid colour with a soft breathing glow (no gradient text — it boxed on some browsers) */
@keyframes glow { 0%, 100% { text-shadow: 0 0 18px rgba(111, 224, 164, .25); } 50% { text-shadow: 0 0 30px rgba(111, 224, 164, .55); } }
.highlight-blue { text-shadow: 0 0 24px rgba(111, 224, 164, .4); }

/* Nav links: underline sweeps in on hover */
.nav__link { position: relative; }
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--green); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

/* Buttons: soft sheen sweep on hover */
.btn { position: relative; overflow: hidden; }
.btn::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s ease;
}
.btn:hover::before { transform: translateX(120%); }

/* Section titles: short accent rule draws in on reveal */
.section__title::after {
  content: ""; display: block; width: 44px; height: 3px; margin-top: 14px;
  border-radius: 2px; background: var(--green);
  transform-origin: left; transition: transform .8s var(--ease-out) .15s;
}
.reveal .section__title::after { transform: scaleX(0); }
.reveal.is-visible .section__title::after, .section__title::after { transform: scaleX(1); }

/* Cards: icon tint lifts smoothly */
.card, .package-card, .doctor-card { transition-duration: .35s; transition-timing-function: var(--ease-out); }

/* Hero headline reveal (classes added by JS): each word rises, sharpens and fades in, staggered */
@keyframes word-in {
  from { opacity: 0; transform: translate3d(0, .55em, 0) scale(.96); filter: blur(10px); }
  60% { filter: blur(0); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
.hero__title.hw-ready { animation: none; }
.hw {
  display: inline-block; opacity: 0;
  animation: word-in .95s var(--ease-out) forwards;
  animation-delay: calc(.3s + var(--i) * .085s);
}
.hero__lead.hw-lead { animation: rise .9s var(--ease-out) backwards; animation-delay: calc(.55s + var(--hw-n, 6) * .085s); }

/* Scroll reveal (class added by JS, so content stays visible without JS) */
.reveal {
  opacity: 0; transform: translateY(36px) scale(.975);
  transition: opacity 1s var(--ease-out) var(--d, 0s), transform 1.2s var(--ease-out) var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Micro-interactions */
.card__icon { transition: transform .4s var(--ease-spring); }
.price-list { overflow: hidden; }
.fab { animation: pop-in .6s var(--ease-spring) 1.2s backwards; }

@media (hover: hover) {
  .card:hover .card__icon{ transform: rotate(-8deg) scale(1.08); }
  .doctor-card:hover img.is-loaded { transform: translateY(-4px) scale(1.03); }
  .doctor-card:hover .doctor-card__img-wrap::before { transform: translateX(-50%) scale(1.06); }
}

/* Touch screens: no sticky hover lifts, give press feedback instead */
@media (hover: none) {
  .btn:hover, .card:hover, .package-card:hover,
  .doctor-card:hover, .socials a:hover, .fab:hover { transform: none; }
  .card:active, .package-card:active, .doctor-card:active { transform: scale(.985); }
  .btn:active, .fab:active { transform: scale(.96); }
}

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

/* Doctor cards: pin the certificate badge to the bottom so badges line up across a row */
.doctor-card { display: flex; flex-direction: column; align-items: center; }
.doctor-card__img-wrap { flex: none; }
.doctor-card__badge { margin-top: auto; }
.doctor-card > :has(+ .doctor-card__badge) { margin-bottom: 10px; }

/* ---------- Scroll-linked motion (values set by JS; without JS everything is simply static) ---------- */
/* Hero recedes as you scroll past it (transform/opacity written directly by JS) */
/* Section headlines light up word by word */
.section__title.is-split .sw {
  display: inline-block;
  --w: clamp(0, calc(var(--tp, 1) * (var(--n) + 1.5) - var(--i)), 1);
  opacity: calc(.18 + var(--w) * .82);
  transform: translate3d(0, calc((1 - var(--w)) * .3em), 0);
}
/* Growing media: starts as a rounded card, expands to full width on scroll (used once photos arrive) */
.grow-media {
  overflow: hidden; transform-origin: 50% 50%;
  transform: scale(calc(.84 + var(--gp, 1) * .16));
  border-radius: calc((1 - var(--gp, 1)) * 32px);
  will-change: transform;
}
.grow-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.12 - var(--gp, 1) * .12)); }
@media (prefers-reduced-motion: reduce) {
  .grow-media, .grow-media img { transform: none; }
}

/* Links inside the dark band */
.section--dark .link-more { color: var(--white); }
.section--dark .link-more:hover { color: #8fe6b6; }

/* Five team members: one row of five on wide screens instead of four plus an orphan */
@media (min-width: 992px) {
  .grid--doctors:has(> :nth-child(5)) { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .grid--doctors:has(> :nth-child(5)) .doctor-card h3 { font-size: 1rem; }
  .grid--doctors:has(> :nth-child(5)) .doctor-card p { font-size: .84rem; }
  .grid--doctors:has(> :nth-child(5)) .doctor-card__badge { font-size: .7rem; padding: 3px 8px; }
}

/* Phones: hero centred like desktop, headline sized so two words fit per line, accent never splits */
@media (max-width: 991px) {
  .hero__content { text-align: center; } .hero__eyebrow-row, .hero__facts { justify-content: center; }
  .hero__title { font-size: clamp(2.1rem, 9.6vw, 3.2rem); line-height: 1.04; max-width: none; margin-left: auto; margin-right: auto; }
  .highlight-blue { display: inline; }
  .hero__lead { margin-left: auto; margin-right: auto; }
}

/* Hero headline: the green words lead, the rest of the sentence sits under them, smaller */
.hero__title .highlight-blue { display: block; white-space: normal; overflow-wrap: anywhere; }
.hero__title-rest { display: block; font-size: .72em; letter-spacing: .05em; margin-top: .22em; opacity: .96; }
.hero__title-rest + .highlight-blue { margin-top: .1em; }

/* Real clinic photo under the hero: waiting room with the MEDXPERT sign (tall crop on phones, wide on desktop) */
.hero { --hero-photo: url(/images/clinic/hero-tall.jpg); }
@media (min-width: 768px) { .hero { --hero-photo: url(/images/clinic/hero-wide.jpg?v=2); } }
.hero__photo { background-position: 50% 38%; }
.hero__photo.is-set { opacity: .32; }
/* deepen the navy at the edges so the headline area stays calm and the photo reads as atmosphere */
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 25, 47, .55) 0%, rgba(7, 25, 47, .15) 40%, rgba(7, 25, 47, .7) 100%),
    radial-gradient(70% 60% at 50% 45%, transparent 0%, rgba(7, 25, 47, .55) 100%);
}

/* Clinic photos as navy duotone: the photo lends only its light and shapes, the brand colour stays.
   Hero = waiting room, inner-page heroes = reception desk, dark band = scanner room. */
.hero__photo { filter: grayscale(1) contrast(1.15) brightness(.95); mix-blend-mode: luminosity; background-position: 50% 40%; }
.hero__photo.is-set { opacity: .55; }
.hero__photo::after {
  background:
    linear-gradient(180deg, rgba(7, 25, 47, .6) 0%, rgba(7, 25, 47, .1) 45%, rgba(7, 25, 47, .75) 100%),
    radial-gradient(60% 55% at 50% 42%, rgba(7, 25, 47, .35) 0%, transparent 100%);
}
.page-hero, .section--dark {
  background-color: #0b2547;
  background-size: auto, cover; background-position: center, 50% 45%; background-repeat: no-repeat;
  background-blend-mode: normal, luminosity;
}
.page-hero {
  background-image: linear-gradient(150deg, rgba(7, 25, 47, .82) 0%, rgba(12, 43, 82, .78) 60%, rgba(10, 61, 111, .84) 100%), url(/images/clinic/desk-wide.jpg?v=2);
}
.section--dark {
  background-image: linear-gradient(160deg, rgba(7, 25, 47, .86) 0%, rgba(11, 37, 71, .84) 100%), url(/images/clinic/scanner-wide.jpg);
  background-attachment: scroll, fixed;
}
@media (max-width: 991px) { .section--dark { background-attachment: scroll; } }

/* Hero photo, restrained: a dark hint at the edges and bottom; the centre stays navy so the headline owns it */
.hero__photo { background-position: 50% 62%; filter: grayscale(1) contrast(1.2) brightness(.8); }
.hero__photo.is-set { opacity: .38; }
.hero__photo::after {
  background:
    linear-gradient(180deg, rgba(7, 25, 47, .92) 0%, rgba(7, 25, 47, .55) 30%, rgba(7, 25, 47, .25) 55%, rgba(7, 25, 47, .8) 100%),
    radial-gradient(55% 60% at 50% 40%, rgba(7, 25, 47, .55) 0%, transparent 100%);
}
@media (max-width: 767px) { .hero__photo { background-position: 50% 45%; } .hero__photo.is-set { opacity: .3; } }

/* Phones: photos framed for tall screens instead of being blown up */
@media (max-width: 767px) {
  .hero__photo { background-position: 50% 0%; }
  .hero__photo.is-set { opacity: .34; }
  .hero__photo::after {
    background:
      linear-gradient(180deg, rgba(7, 25, 47, .9) 0%, rgba(7, 25, 47, .5) 22%, rgba(7, 25, 47, .35) 55%, rgba(7, 25, 47, .85) 100%);
  }
  .page-hero { background-image: linear-gradient(150deg, rgba(7, 25, 47, .82) 0%, rgba(12, 43, 82, .8) 60%, rgba(10, 61, 111, .84) 100%), url(/images/clinic/hero-tall.jpg); background-position: center, 50% 18%; }
  /* dark band: a photo strip at the top that melts into plain navy, so nine cards never sit on a zoomed photo */
  .section--dark {
    background-image: linear-gradient(180deg, rgba(11, 37, 71, .62) 0%, rgba(11, 37, 71, .8) 55%, #0b2547 100%), url(/images/clinic/scanner-tall.jpg);
    background-size: 100% 125vw, 100% auto;
    background-position: top center, top center;
    background-repeat: no-repeat;
  }
}

/* ============ Home page: one featured service, founder statement, reasons as a list, gallery mosaic ============ */
/* First service tile: wide, with a photo. One clear priority instead of seven equal boxes. */
.card--featured { grid-column: 1 / -1; padding: 0; overflow: hidden; }
.card--featured .card__media { order: -1; position: relative; aspect-ratio: 16 / 9; background: var(--navy); }
.card--featured .card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card--featured .card__body { display: flex; flex-direction: column; flex: 1; padding: 26px 24px; }
.card--featured h3 { font-size: 1.45rem; }
.card--featured p { font-size: 1rem; max-width: 46ch; }
@media (min-width: 768px) {
  .card--featured { display: grid; grid-template-columns: 1.1fr 1fr; }
  .card--featured .card__media { order: 1; aspect-ratio: auto; min-height: 320px; }
  .card--featured .card__body { padding: 40px 36px; justify-content: center; }
  .card--featured h3 { font-size: 1.8rem; }
}

/* Founder statement: the clinic's text beside the director's portrait, not a grey subtitle */
.why__top { display: grid; gap: 28px; margin-bottom: 40px; }
.why__top .section__header { margin-bottom: 0; }
.founder { margin: 0; display: grid; grid-template-columns: 76px 1fr; column-gap: 18px; row-gap: 12px; align-items: start; }
.founder__photo {
  grid-row: 1 / 3; width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: top;
  background: radial-gradient(circle at 50% 30%, rgba(143, 230, 182, .35), rgba(255,255,255,.06) 70%);
  border: 2px solid rgba(255,255,255,.18);
}
.founder__text { margin: 0; color: var(--white); font-size: 1.12rem; line-height: 1.55; }
.founder__name { display: flex; flex-direction: column; gap: 2px; font-size: .88rem; color: rgba(255,255,255,.6); line-height: 1.4; }
.founder__name strong { color: #8fe6b6; font-weight: 700; }
@media (min-width: 992px) {
  .why__top { grid-template-columns: 1fr 1.15fr; column-gap: 56px; align-items: end; margin-bottom: 56px; }
  .founder { grid-template-columns: 96px 1fr; column-gap: 22px; }
  .founder__photo { width: 96px; height: 96px; }
  .founder__text { font-size: 1.32rem; }
}

/* Nine reasons as a numbered editorial list: dividers instead of boxes, so unequal text lengths read naturally */
.reasons { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid rgba(255,255,255,.12); }
.reason { position: relative; padding: 24px 0 24px 58px; border-bottom: 1px solid rgba(255,255,255,.12); }
.reason__num {
  position: absolute; left: 0; top: 22px; font-family: var(--font-display); font-size: 1.9rem;
  line-height: 1; letter-spacing: .03em; color: #8fe6b6;
}
.reason h3 { color: var(--white); font-size: 1.12rem; margin-bottom: 8px; }
.reason p { margin: 0; color: rgba(255,255,255,.7); font-size: .97rem; line-height: 1.6; }
@media (min-width: 768px) {
  .reasons { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(var(--reason-rows, 5), auto); grid-auto-flow: column; column-gap: 56px; }
  .reason { padding: 30px 0 30px 72px; }
  .reason__num { top: 28px; font-size: 2.4rem; }
  .reason h3 { font-size: 1.2rem; }
}
