/* ============================================================
   SKINOLOGY CLINIC — clean medical theme
   White-forward with deep navy for header/footer/important
   headings and selected sections, medical teal for buttons,
   icons and links, and a muted gold accent reserved for the
   logo, thin divider lines, and the Gold Thread section.

     White ................. #FFFFFF
     Deep medical navy ..... #062D4F
     Medical teal ........... #009C9A
     Clean blue .............. #167A96
     Soft blue background ... #EAF4F6
     Dark text ............... #26343D
     Subtle premium gold ..... #C5A56A
   ============================================================ */

:root {
  --white:         #ffffff;
  --bg:            #ffffff;   /* primary background */
  --blue-soft:     #eaf4f6;   /* soft blue — alternating sections */
  --blue-soft-deep:#dcecef;   /* slightly deeper blue tint for gradients */

  --navy:          #062d4f;   /* deep medical navy — header, footer, headings */
  --navy-deep:     #041f38;   /* darker navy for hover states */

  --teal:          #009c9a;   /* medical teal — buttons, icons, links */
  --teal-deep:     #007b79;   /* darker teal for hover */
  --teal-soft:     #e2f4f3;   /* light teal tint for badges/icons */
  --blue:          #167a96;   /* clean blue — secondary accent */

  --text:          #26343d;   /* dark text — body copy */
  --muted:         #5c6a72;   /* secondary copy */

  --gold:          #c5a56a;   /* subtle premium gold — logo, dividers, Gold Thread only */
  --gold-deep:     #a3814a;   /* deeper gold for readable text-on-light */
  --gold-soft:     #f3ead9;   /* light gold tint */

  --line:          rgba(6, 45, 79, 0.13);   /* hairline border */
  --line-soft:     rgba(6, 45, 79, 0.08);

  --danger:        #b23b3b;
  --danger-deep:   #8c2c2c;

  --ink:           var(--navy);   /* headings */
  --body:          var(--text);   /* body copy alias */

  --radius-sm: 12px;
  --radius:    16px;
  --radius-lg: 22px;

  --shadow-sm: 0 4px 14px rgba(6, 45, 79, 0.07);
  --shadow:    0 16px 36px rgba(6, 45, 79, 0.10);
  --shadow-lg: 0 26px 54px rgba(6, 45, 79, 0.16);

  --container: 1200px;
  --font-head: "Manrope", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.22;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 104px 0; }

.section-head {
  max-width: 660px;
  margin: 0 auto 60px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: clamp(27px, 3.8vw, 42px);
  letter-spacing: -0.01em;
  color: var(--navy);
}
.section-head p { margin-top: 14px; color: var(--muted); font-size: 15.5px; }
/* thin muted-gold divider under every section intro — the site's one
   recurring "premium" signature, kept small and consistent throughout */
.section-head::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  margin: 22px auto 0;
  background: var(--gold);
  transform: skewX(-20deg);
}

/* ---------- Angled section divider — subtle geometric accent ---------- */
.angled-divider {
  height: 44px;
  background: linear-gradient(100deg, var(--navy) 0%, var(--navy) 46%, var(--teal) 46%, var(--teal) 100%);
  clip-path: polygon(0 0, 100% 40%, 100% 100%, 0% 60%);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Primary "Цаг захиалах" — medical teal, white text. */
.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 156, 154, 0.26);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--teal-deep);
  box-shadow: 0 16px 30px rgba(0, 156, 154, 0.32);
}

/* Secondary — transparent with a navy border, navy text.
   Hover — soft blue fill. */
.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover {
  background: var(--blue-soft);
  border-color: var(--navy);
  color: var(--navy);
  transform: translateY(-2px);
}

/* Muted-gold outline — used sparingly, for a small premium CTA */
.btn-burgundy {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold-deep);
}
.btn-burgundy:hover {
  transform: translateY(-2px);
  background: var(--gold-soft);
  border-color: var(--gold-deep);
  color: var(--navy);
}

.btn-gold {
  background: linear-gradient(135deg, #d8c191, var(--gold));
  color: var(--navy-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.40);
}
.btn-gold:hover {
  transform: translateY(-2px);
  background: var(--navy);
  color: #fff;
  box-shadow: 0 16px 30px rgba(6, 45, 79, 0.26);
}

.btn .play {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.btn-outline .play { background: var(--navy); color: #fff; }

/* Header booking button — uppercase, compact, teal against the navy bar */
.nav-book {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 12.5px;
  padding: 12px 22px;
}

/* ---------- Media placeholders ---------- */

.media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, var(--blue-soft), var(--blue-soft-deep));
  box-shadow: var(--shadow);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media .tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* ============================================================
   Header / Navigation — deep navy bar, sticky
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(197, 165, 106, 0.22);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 800;
  color: #fff;
}
.brand .mark {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
}
.brand .brand-name {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}
.brand small {
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}
.nav-links a {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 2px;
  background: var(--teal);
  transition: right 0.25s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { right: 0; }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  margin: 0 auto;
  position: relative;
  transition: 0.2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }

/* ============================================================
   Hero — white/soft-blue ground, real photo with a navy overlay
   ============================================================ */

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 104px;
  background:
    radial-gradient(55% 55% at 94% 0%, rgba(0, 156, 154, 0.08), transparent 60%),
    linear-gradient(160deg, var(--blue-soft) 0%, var(--white) 62%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 20px; color: var(--teal-deep); }
.hero-title {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.28;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--navy);
  font-weight: 800;
}
.hero-title span { color: var(--teal-deep); }
.hero-lead {
  margin: 20px 0 0;
  font-family: var(--font-head);
  font-size: clamp(16px, 1.9vw, 19px);
  color: var(--navy);
  font-weight: 600;
}
.hero-lead::before {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--gold);
  transform: skewX(-20deg);
  margin: 0 0 16px;
}
.hero-sub {
  margin: 14px 0 32px;
  font-size: 16px;
  max-width: 480px;
  color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-stats > div + div {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}
.hero-stats .num {
  font-family: var(--font-head);
  font-size: 30px;
  color: var(--navy);
  font-weight: 800;
}
.hero-stats .lbl { font-size: 12.5px; letter-spacing: 0.03em; color: var(--muted); }

.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 26px 54px rgba(6, 45, 79, 0.20);
}
.hero-media img { object-position: center; }
/* Vertical clinic intro video — the source clip is a portrait phone
   recording pillarboxed onto a 1920x1080 canvas, so we frame it in a
   true 9:16 box and let object-fit: cover trim only the dead white
   bars on the sides, never the footage itself. */
.hero-video {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-width: 360px;
  margin: 0 auto;
  background: #000;
}
.hero-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* soft navy overlay so text/badges stay readable over a real photo */
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--radius);
  background: linear-gradient(200deg, rgba(6, 45, 79, 0.28) 0%, rgba(6, 45, 79, 0) 45%, rgba(6, 45, 79, 0.14) 100%);
  pointer-events: none;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  box-shadow: inset 0 0 0 1px rgba(197, 165, 106, 0.5);
  border-radius: var(--radius);
  pointer-events: none;
}
.hero-float {
  position: absolute;
  right: -18px;
  bottom: 36px;
  z-index: 3;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 15px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.hero-float .dot { width: 32px; height: 32px; border-radius: 50%; background: var(--teal-soft); display: grid; place-items: center; color: var(--teal-deep); }

/* ============================================================
   Манай клиник — real interior photo gallery
   All 6 source photos are native 3:4 portraits, so every tile
   keeps that exact ratio (object-fit: cover, zero cropping) —
   only their on-screen size differs. The featured photo (huleelgiin)
   sits in its own column at a larger size; the other 5 form an
   independent grid beside it (align-items: start keeps the two
   columns from stretching one another).
   ============================================================ */
#clinic-gallery { background: var(--white); }
/* "Our Clinic" section heading — enlarged, centered, medical-blue */
#clinic-gallery .clinic-heading {
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.01em;
  color: #167a96;
}
.clinic-gallery {
  display: grid;
  grid-template-columns: 4fr 5fr;
  gap: 24px;
  align-items: start;
}
.clinic-featured,
.clinic-grid figure {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--blue-soft), var(--blue-soft-deep));
}
.clinic-featured {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.clinic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.clinic-grid figure {
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.clinic-featured img,
.clinic-grid figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* fills the frame, never stretches or distorts */
  display: block;
  transition: transform 0.5s ease;
}
.clinic-featured:hover img,
.clinic-grid figure:hover img { transform: scale(1.05); }
.clinic-cap {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 1px 8px rgba(6, 45, 79, 0.55);
}

/* ============================================================
   Trust strip — four calm, scannable facts
   ============================================================ */
.trust { padding: 56px 0; background: var(--blue-soft); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust-item {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.trust-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal-soft);
  font-size: 19px;
  margin-bottom: 12px;
}
.trust-item p { font-size: 14px; font-weight: 600; color: var(--navy); }

/* ============================================================
   Why Skinology Clinic
   ============================================================ */
.why { background: var(--white); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-item {
  background: var(--blue-soft);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.why-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--white);
  font-size: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.why-item h3 { font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.why-item p { font-size: 14px; color: var(--muted); }

/* ============================================================
   About
   ============================================================ */
#about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 56px;
  align-items: center;
}
/* Exact native ratio of the SKINOLOGY poster (1625x968) — object-fit:
   cover then performs zero cropping, so the model, logo and tagline
   all stay fully visible. */
.about-media { aspect-ratio: 1625 / 968; }
.about-copy h2 { font-size: clamp(27px, 3.8vw, 38px); letter-spacing: -0.01em; }
.about-copy p { margin-top: 18px; color: var(--text); }
.about-list {
  list-style: none;
  margin-top: 24px;
  display: grid;
  gap: 13px;
}
.about-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 500;
  color: var(--navy);
}
.about-list li::before {
  content: "✓";
  color: var(--teal-deep);
  font-weight: 800;
  font-size: 14px;
  margin-top: 3px;
}

/* ============================================================
   Services — clean white cards, image on top, content below
   ============================================================ */
#services { background: var(--white); }
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
/* Each card carries its own real photo (set via --card-img on the
   card--* modifier below), shown as a fixed-ratio thumbnail at the
   top of the card; a soft-blue gradient stands in for cards that
   don't yet have a dedicated photo. The copy sits in a plain white
   body beneath it. */
.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
  background: var(--card-img, linear-gradient(135deg, var(--blue-soft), var(--blue-soft-deep))) 75% 35% / cover no-repeat;
  transition: transform 0.6s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--teal);
}
.card:hover::before { transform: scale(1.06); }
.card-body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 24px;
}
.card .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--teal);
  background: var(--teal-soft);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--teal-deep);
  margin-bottom: 14px;
}
.card h3 {
  font-size: 16.5px;
  margin-bottom: 8px;
  color: var(--navy);
  letter-spacing: 0.005em;
}
.card p {
  font-size: 13.5px;
  color: var(--muted);
  flex: 1;
}
.card .more {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--teal-deep);
  transition: color 0.15s;
}
.card:hover .more { color: var(--navy); }

/* Gold Thread — the one deliberate premium-gold accent in Services */
.card--gold {
  border-color: rgba(197, 165, 106, 0.5);
}
.card--gold:hover { border-color: var(--gold); }
.card--gold .ico {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold-deep);
}
.card--gold .more { color: var(--gold-deep); }
.card--gold:hover .more { color: var(--navy); }

/* Real photo per service — --card-img is set inline in home.html via media_url() (S3). */

/* ============================================================
   Алтан утас эмчилгээ — Gold Thread showcase
   ============================================================ */
.gold-thread { background: var(--white); }
.thread-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.thread-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 420px;
}
.thread-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thread-caption {
  margin-top: 26px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* ============================================================
   Technology / equipment
   ============================================================ */
.technology { background: var(--blue-soft); }
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.tech-item {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.tech-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tech-item figcaption {
  padding: 14px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
}

/* ============================================================
   Video
   ============================================================ */
#video { background: var(--white); }
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(6, 45, 79, 0.10), rgba(6, 45, 79, 0.02)),
    linear-gradient(135deg, var(--blue-soft), var(--blue-soft-deep));
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line);
  display: grid;
  place-items: center;
}
.video-frame iframe,
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.video-play {
  position: relative;
  z-index: 2;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--white);
  color: var(--teal-deep);
  display: grid;
  place-items: center;
  font-size: 24px;
  box-shadow: 0 18px 36px rgba(6, 45, 79, 0.22);
}
.video-note {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}

/* ============================================================
   Gallery / Before & After
   ============================================================ */
#gallery { background: var(--blue-soft); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 18px;
}
.gallery-grid .media:nth-child(1),
.gallery-grid .media:nth-child(6) { grid-row: span 2; }

.ba-title {
  text-align: center;
  margin: 64px 0 28px;
  font-size: 21px;
  color: var(--navy);
}
.ba-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ba-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ba-pair .media { aspect-ratio: 3 / 4; }
.ba-pair .media .tag { left: 10px; bottom: 10px; }
.ba-card .cap { text-align: center; font-size: 14px; font-weight: 600; color: var(--navy); margin-top: 14px; }

/* ============================================================
   Pricing — clear, easy-to-scan cards; the featured plan is the
   one place a full navy card is used, so it reads as the pick
   ============================================================ */
#pricing { background: var(--white); }
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal); }
.price-card.featured {
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: var(--shadow);
  position: relative;
}
.price-card.featured::before {
  content: "Түгээмэл сонголт";
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 999px;
}
.price-card.featured h3,
.price-card.featured .amount { color: #fff; }
.price-card.featured .amount span { color: rgba(255, 255, 255, 0.66); }
.price-card.featured li { color: rgba(255, 255, 255, 0.90); }
.price-card.featured li::before { color: var(--gold); }
.price-card h3 { font-size: 19px; color: var(--navy); }
.price-card .amount {
  font-family: var(--font-head);
  font-size: 30px;
  color: var(--navy);
  margin: 12px 0 4px;
  font-weight: 800;
}
.price-card .amount span { font-size: 14px; color: var(--muted); font-family: var(--font-body); font-weight: 500; }
.price-card ul { list-style: none; margin: 20px 0 26px; display: grid; gap: 10px; }
.price-card li { font-size: 14px; display: flex; gap: 10px; color: var(--text); }
.price-card li::before { content: "✓"; color: var(--teal-deep); font-weight: 700; }
.price-card.featured .btn-primary { background: var(--gold); color: var(--navy-deep); box-shadow: none; }
.price-card.featured .btn-primary:hover { background: #d8c191; }
.price-note { text-align: center; margin-top: 26px; font-size: 13px; color: var(--muted); }

/* ============================================================
   Our Team — consistent portrait cards with hours
   ============================================================ */
#team { background: var(--blue-soft); }
.people {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.person {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.person:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--teal);
}
.person-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--blue-soft), var(--blue-soft-deep));
}
.person-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;          /* never distorts faces — crops, doesn't stretch */
  object-position: center 22%; /* consistent headshot framing across all cards */
  background: linear-gradient(160deg, var(--blue-soft), var(--blue-soft-deep));
}
.person-monogram {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--teal-deep);
  opacity: 0.55;
}
/* Hide the initials the moment a real photo has loaded — otherwise they
   sit on top of the face. Only shown as a placeholder when the photo
   is missing (onerror adds .no-img to .person-photo). */
.person-photo:not(.no-img) .person-monogram { display: none; }
.person-name {
  margin-top: 18px;
  font-size: 17px;
  letter-spacing: 0.005em;
  color: var(--navy);
}
/* thin muted-gold decorative line above the position — the other
   deliberate small gold accent, used consistently across the site */
.person-role {
  margin-top: 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.person-role::before {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: var(--gold);
  transform: skewX(-20deg);
  margin: 10px auto 8px;
}
.person-hours {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--teal-deep);
  font-weight: 600;
}
/* Founder / chief — subtly elevated, same footprint */
.person.is-lead {
  border-color: var(--teal);
  box-shadow: 0 12px 28px rgba(0, 156, 154, 0.16);
}
.person.is-lead .person-role { color: var(--teal-deep); font-weight: 700; }
.team-note {
  margin-top: 30px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.team-note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--blue-soft);
  padding: 2px 6px;
  border-radius: 6px;
}

/* Generic wordmark shown inside any .media placeholder that has
   no real photo yet (hero, about) — never a broken icon, never a
   visible file path. */
.media-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: clamp(15px, 2.6vw, 26px);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--teal-deep);
  opacity: 0.4;
}
.media:not(.no-img) .media-mark { display: none; }

/* ============================================================
   News
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--teal); }
.news-card .media { border-radius: 0; box-shadow: none; aspect-ratio: 16 / 10; }
.news-card .body { padding: 20px 22px 24px; }
.news-card .date { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-deep); font-weight: 700; }
.news-card h3 { font-size: 17px; margin: 10px 0; color: var(--navy); }
.news-card p { font-size: 14px; color: var(--text); }
.news-card .more { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 14px; color: var(--navy); transition: color 0.15s; }
.news-card:hover .more { color: var(--teal-deep); }

/* ============================================================
   Contact & location — soft medical blue, navy text, map
   ============================================================ */
#contact { background: var(--blue-soft); }
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: stretch;
}
.contact-info,
.contact-cta {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px;
  box-shadow: var(--shadow-sm);
}
.contact-list { list-style: none; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ci {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--teal-soft); color: var(--teal-deep);
  display: grid; place-items: center; font-size: 18px; flex-shrink: 0;
}
.contact-list .k { font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.contact-list .v { font-weight: 600; color: var(--navy); }
.contact-list .v a { border-bottom: 1px solid var(--teal); }
.contact-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.contact-cta h3 { font-size: 21px; color: var(--navy); }
.contact-cta p { margin: 12px 0 22px; font-size: 14.5px; color: var(--text); }
.contact-alt { margin-top: 16px; font-size: 13px; color: var(--teal-deep); font-weight: 600; transition: color 0.15s; }
.contact-alt:hover { color: var(--navy); }

.contact-map {
  margin-top: 26px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  height: 360px;
}
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ============================================================
   Footer — deep medical navy, teal accents, white text
   ============================================================ */
.site-footer {
  background: var(--navy);
  border-top: 1px solid var(--gold);
  color: rgba(255, 255, 255, 0.78);
  padding: 70px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 13.5px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand .brand-name { color: #fff; }
.site-footer .brand small { color: var(--gold); }
.site-footer p { font-size: 14px; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a { font-size: 14px; transition: color 0.15s; }
.footer-links a:hover { color: var(--teal); }
.footer-tag {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
  color: rgba(230, 240, 240, 0.75);
  margin-bottom: 10px;
}
.socials { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.socials a:not(.social-handle) {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  display: grid; place-items: center;
  transition: background 0.15s, transform 0.15s;
}
.socials a:not(.social-handle):hover { background: var(--teal); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; fill: #fff; }
.social-handle { font-size: 13px; font-weight: 600; color: #fff; transition: color 0.15s; }
.social-handle:hover { color: var(--teal); }
.footer-bottom a { border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
.footer-bottom a:hover { color: #fff; }
.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}

/* ============================================================
   Registration / Booking page
   ============================================================ */
.book-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.book-aside {
  background:
    radial-gradient(70% 50% at 30% 20%, rgba(0, 156, 154, 0.10), transparent 70%),
    linear-gradient(160deg, var(--blue-soft), var(--blue-soft-deep));
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.book-aside .brand { font-size: 23px; color: var(--navy); }
.book-aside .brand .brand-name { color: var(--navy); }
.book-aside h2 { font-size: clamp(25px, 3.1vw, 36px); margin-top: 40px; color: var(--navy); }
.book-aside p { margin-top: 16px; max-width: 420px; color: var(--text); }
.book-aside ul { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.book-aside li { display: flex; gap: 10px; font-weight: 500; color: var(--navy); }
.book-aside li::before { content: "✓"; color: var(--teal-deep); font-weight: 800; }
.book-aside .back { font-size: 14px; font-weight: 600; color: var(--navy); }

.book-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  background: var(--bg);
}
.book-card { width: 100%; max-width: 440px; }
.book-card h1 { font-size: 25px; color: var(--navy); }
.book-card .sub { color: var(--muted); margin: 8px 0 26px; font-size: 14.5px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input {
  width: 100%;
  padding: 13px 14px;
  font-size: 14.5px;
  font-family: var(--font-body);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 156, 154, 0.16);
}
.field input.invalid { border-color: var(--danger); }
.field .error-text { margin-top: 6px; font-size: 12px; color: var(--danger-deep); }

.book-card .btn { width: 100%; justify-content: center; margin-top: 6px; }

.alert {
  padding: 15px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 22px;
}
.alert.success { background: #edf3ea; border: 1px solid #c9dcbe; color: #33502a; }
.alert.error   { background: #f5e6e6; border: 1px solid #e2c2c8; color: var(--danger-deep); }

.book-foot { margin-top: 22px; text-align: center; font-size: 12px; color: var(--muted); }

/* ============================================================
   Subtle scroll reveal
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  section { padding: 84px 0; }
  .price-grid, .news-grid, .ba-grid { grid-template-columns: repeat(2, 1fr); }
  .people, .why-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  section { padding: 72px 0; }
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--navy-deep);
    border-bottom: 1px solid rgba(197, 165, 106, 0.22);
    padding: 14px 24px 22px;
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.10); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-toggle { display: block; }

  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 460px; }
  .hero-video { max-width: 300px; }
  .about-media { max-width: 460px; order: -1; }
  .book-wrap { grid-template-columns: 1fr; }
  .book-aside { display: none; }

  .clinic-gallery { grid-template-columns: 1fr; }
  .clinic-featured { max-width: 460px; margin: 0 auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .people { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  section { padding: 60px 0; }
  .container { padding: 0 18px; }
  .section-head { margin-bottom: 40px; }
  .cards, .price-grid, .news-grid, .ba-grid, .gallery-grid, .tech-grid, .thread-grid { grid-template-columns: 1fr; }
  .thread-photo { height: 260px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 20px 24px; }
  .hero-stats > div + div { padding-left: 0; border-left: 0; }
  .ba-title { font-size: 19px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .trust-grid { grid-template-columns: 1fr; }
  .contact-map { height: 280px; }

  .clinic-grid { grid-template-columns: repeat(2, 1fr); }
  .clinic-featured { max-width: 100%; }
}

@media (max-width: 430px) {
  .people { grid-template-columns: 1fr; }
  .person { max-width: 320px; margin: 0 auto; }
}
