:root {
  --bg: #f6fbfa;
  --paper: #ffffff;
  --ink: #102524;
  --muted: #627372;
  --teal: #0f766e;
  --teal-dark: #084c48;
  --mint: #d9f5ef;
  --sand: #f5eadb;
  --line: rgba(16, 37, 36, 0.12);
  --shadow: 0 24px 70px rgba(7, 56, 53, 0.14);
  --radius: 28px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(15, 118, 110, 0.14), transparent 28rem),
    linear-gradient(180deg, #f8fffd 0%, var(--bg) 46%, #fff 100%);
  overflow-x: hidden;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 14px 48px rgba(6, 61, 58, 0.12);
  backdrop-filter: blur(18px);
}

.brand { display: flex; align-items: center; gap: 12px; min-width: max-content; }
.brand img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 10px 28px rgba(15, 118, 110, 0.2); }
.brand strong { display: block; font-size: 18px; line-height: 1; }
.brand small { color: var(--muted); font-size: 12px; }

.nav { display: flex; gap: 6px; align-items: center; }
.nav a { padding: 12px 14px; color: #36504e; font-weight: 700; font-size: 14px; border-radius: 999px; }
.nav a:hover { background: var(--mint); color: var(--teal-dark); }

.top-phone { padding: 14px 20px; color: #fff; background: var(--teal); border-radius: 999px; font-weight: 800; box-shadow: 0 14px 26px rgba(15, 118, 110, 0.28); }
.menu-button { display: none; border: 0; padding: 12px 16px; border-radius: 999px; background: var(--teal-dark); color: #fff; font-weight: 800; }
.mobile-menu { width: min(1180px, calc(100% - 32px)); margin: 10px auto 0; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.mobile-menu a { display: block; padding: 14px; border-radius: 16px; font-weight: 800; }
.mobile-menu a:hover { background: var(--mint); }

.section-pad { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 88px 0; }

.hero { display: grid; grid-template-columns: minmax(0, 1.07fr) minmax(320px, 0.73fr); gap: 34px; align-items: stretch; padding-top: 72px; }
.hero-copy { padding: clamp(28px, 5vw, 64px); border-radius: 42px; background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(217,245,239,0.74)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.eyebrow { margin: 0 0 14px; color: var(--teal); font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; font-size: 12px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { max-width: 780px; margin: 0; font-size: clamp(42px, 7vw, 82px); line-height: 0.95; letter-spacing: -0.065em; }
h2 { margin: 0; font-size: clamp(30px, 4.4vw, 54px); line-height: 1; letter-spacing: -0.045em; }
h3 { margin: 0; font-size: 22px; line-height: 1.08; letter-spacing: -0.02em; }
.lead { max-width: 680px; margin: 24px 0 0; color: #486160; font-size: clamp(18px, 2.2vw, 23px); line-height: 1.52; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 800; cursor: pointer; }
.button.primary { background: var(--teal); color: #fff; box-shadow: 0 16px 34px rgba(15, 118, 110, 0.28); }
.button.ghost { background: #fff; border-color: var(--line); color: var(--teal-dark); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; }
.stats div { padding: 18px; background: rgba(255,255,255,0.68); border: 1px solid var(--line); border-radius: 22px; }
.stats dt { font-size: 24px; font-weight: 900; color: var(--teal-dark); }
.stats dd { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.hero-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 580px; padding: 34px; border-radius: 42px; overflow: hidden; color: #fff; background:
  linear-gradient(180deg, rgba(8, 76, 72, 0.18), rgba(8, 76, 72, 0.96)),
  radial-gradient(circle at 70% 20%, rgba(217, 245, 239, 0.54), transparent 18rem),
  var(--teal-dark);
  box-shadow: var(--shadow);
}
.hero-card::before { content: ""; position: absolute; inset: 22px; border: 1px solid rgba(255,255,255,0.22); border-radius: 30px; pointer-events: none; }
.smile-mark { position: absolute; top: 34px; right: 34px; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: #fff; color: var(--teal); font-weight: 900; font-size: 26px; }
.hero-card p { margin: 0 0 10px; color: rgba(255,255,255,0.78); font-weight: 800; }
.hero-card h2 { font-size: clamp(32px, 4vw, 48px); }
.hero-card ul { margin: 24px 0; padding-left: 20px; color: rgba(255,255,255,0.82); line-height: 1.7; }
.hero-card a { width: fit-content; padding: 14px 18px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22); border-radius: 999px; font-weight: 800; }

.trust-strip { display: grid; grid-template-columns: 1.1fr 0.8fr 1fr 1.4fr; gap: 1px; width: min(1180px, calc(100% - 32px)); margin: -36px auto 0; position: relative; z-index: 2; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 18px 40px rgba(6, 61, 58, 0.1); }
.trust-strip div { padding: 22px; background: #fff; }
.trust-strip span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.trust-strip strong { display: block; line-height: 1.35; }

.section-head { display: grid; grid-template-columns: 0.8fr 1.3fr 1fr; gap: 24px; align-items: end; margin-bottom: 30px; }
.section-head .eyebrow { align-self: start; }
.section-head p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.7; }
.section-head.compact { grid-template-columns: 0.7fr 1.5fr; align-items: start; }

.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.service-card { min-height: 250px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 16px 42px rgba(6, 61, 58, 0.07); }
.service-card span { display: inline-flex; margin-bottom: 42px; color: var(--teal); font-weight: 900; }
.service-card p { color: var(--muted); line-height: 1.65; }
.service-card.featured { grid-row: span 2; background: var(--teal); color: #fff; }
.service-card.featured p, .service-card.featured span { color: rgba(255,255,255,0.78); }
.service-card.dark { background: #102524; color: #fff; }
.service-card.dark p, .service-card.dark span { color: rgba(255,255,255,0.72); }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: center; }
.split-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 38px; box-shadow: var(--shadow); }
.split-copy { padding: clamp(26px, 4vw, 54px); background: var(--sand); border-radius: 38px; }
.split-copy p:not(.eyebrow) { color: #5b5148; line-height: 1.8; }
.check-list { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.check-list li { padding: 14px 16px; background: rgba(255,255,255,0.65); border-radius: 18px; }
.check-list li::before { content: "✓"; margin-right: 10px; color: var(--teal); font-weight: 900; }

.doctors { background: #fff; width: 100%; max-width: none; padding-left: max(16px, calc((100vw - 1180px) / 2)); padding-right: max(16px, calc((100vw - 1180px) / 2)); }
.doctor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.doctor-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, #fff, #f5fbfa); }
.avatar { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 28px; border-radius: 24px; background: var(--mint); color: var(--teal-dark); font-weight: 900; font-size: 22px; }
.doctor-card p { color: var(--muted); line-height: 1.65; min-height: 78px; }
.doctor-card span { display: inline-flex; padding: 9px 12px; border-radius: 999px; background: #e9f7f4; color: var(--teal-dark); font-size: 13px; font-weight: 800; }

.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.case-card { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 42px rgba(6, 61, 58, 0.07); }
.case-card.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.7fr 0.8fr; gap: 24px; align-items: center; }
.case-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; background: #eef5f4; }
.case-card p { color: var(--muted); line-height: 1.6; }
.before-after { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
figure { margin: 0; position: relative; }
figcaption { position: absolute; left: 12px; top: 12px; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,0.92); color: var(--teal-dark); font-size: 12px; font-weight: 900; }

.appointment { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: start; padding: 54px; border-radius: 42px; background: var(--teal-dark); color: #fff; }
.appointment p:not(.eyebrow) { color: rgba(255,255,255,0.78); line-height: 1.75; }
.appointment .eyebrow { color: #8ee4d5; }
.lead-form { display: grid; gap: 12px; padding: 18px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.16); border-radius: 28px; }
label { display: grid; gap: 8px; font-weight: 800; }
input, textarea { width: 100%; border: 1px solid rgba(255,255,255,0.18); border-radius: 16px; padding: 15px 16px; background: rgba(255,255,255,0.95); color: var(--ink); font: inherit; outline: none; }
textarea { resize: vertical; }
.lead-form small { color: rgba(255,255,255,0.62); line-height: 1.5; }

.contacts { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 16px; }
.contact-card { padding: 34px; border-radius: 34px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-card address { margin: 22px 0; font-style: normal; font-size: 20px; font-weight: 800; }
.contact-card p { color: var(--muted); line-height: 1.7; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.socials a { padding: 12px 16px; background: var(--mint); border-radius: 999px; color: var(--teal-dark); font-weight: 900; }
iframe { width: 100%; min-height: 430px; border: 0; border-radius: 34px; box-shadow: var(--shadow); }

.footer { display: flex; justify-content: space-between; gap: 16px; width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 110px; color: var(--muted); }
.footer a { font-weight: 900; color: var(--teal-dark); }
.mobile-cta { display: none; }

@media (max-width: 980px) {
  .topbar { border-radius: 28px; }
  .nav, .top-phone { display: none; }
  .menu-button { display: inline-flex; }
  .hero, .split, .appointment, .contacts { grid-template-columns: 1fr; }
  .hero-card { min-height: 460px; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); margin-top: 16px; }
  .section-head, .section-head.compact { grid-template-columns: 1fr; align-items: start; }
  .services-grid, .doctor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card.featured { grid-row: span 1; }
  .case-card.wide { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar { width: calc(100% - 20px); margin-top: 10px; padding: 10px; gap: 10px; }
  .brand img { width: 48px; height: 48px; }
  .brand strong { font-size: 16px; }
  .brand small { font-size: 11px; }
  .menu-button { padding: 11px 13px; font-size: 13px; }
  .section-pad { width: calc(100% - 20px); padding: 54px 0; }
  .hero { padding-top: 38px; gap: 14px; }
  .hero-copy, .hero-card { border-radius: 28px; padding: 24px; }
  h1 { font-size: clamp(40px, 13vw, 56px); }
  h2 { font-size: clamp(30px, 10vw, 42px); }
  .lead { font-size: 17px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .stats, .trust-strip, .services-grid, .doctor-grid, .case-grid, .before-after { grid-template-columns: 1fr; }
  .hero-card { min-height: auto; padding-top: 112px; }
  .trust-strip { width: calc(100% - 20px); }
  .trust-strip div { padding: 18px; }
  .service-card { min-height: auto; padding: 24px; }
  .service-card span { margin-bottom: 28px; }
  .split-copy, .appointment, .contact-card { padding: 24px; border-radius: 28px; }
  .doctor-card p { min-height: auto; }
  iframe { min-height: 330px; border-radius: 28px; }
  .footer { width: calc(100% - 20px); flex-direction: column; padding-bottom: 96px; }
  .mobile-cta { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 30; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; background: rgba(255,255,255,0.92); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 12px 40px rgba(6, 61, 58, 0.2); backdrop-filter: blur(16px); }
  .mobile-cta a { display: grid; place-items: center; min-height: 48px; border-radius: 16px; background: var(--teal); color: #fff; font-weight: 900; }
  .mobile-cta a:last-child { background: var(--teal-dark); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
