:root {
  --ink: #1d2427;
  --muted: #667276;
  --white: #ffffff;
  --paper: #f6f3ef;
  --line: #ddd7cf;
  --magenta: #d6006f;
  --magenta-dark: #8e044e;
  --teal: #0e6f72;
  --teal-dark: #093f44;
  --sage: #c8d8c8;
  --amber: #d9a441;
  --shadow: 0 20px 58px rgba(29, 36, 39, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 14px clamp(18px, 4vw, 68px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(221, 215, 207, 0.88);
  backdrop-filter: blur(16px);
}

.brand img {
  width: 178px;
  height: auto;
}

.main-nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-weight: 850;
}

.main-nav a:hover {
  color: var(--magenta);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang {
  min-width: 42px;
  min-height: 40px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 950;
}

.lang.is-active {
  color: var(--white);
  background: var(--magenta);
  border-color: var(--magenta);
}

.call-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  color: var(--white);
  background: var(--teal-dark);
  border-radius: 8px;
  font-weight: 950;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: var(--teal-dark);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 63, 68, 0.94), rgba(9, 63, 68, 0.62) 48%, rgba(9, 63, 68, 0.16)),
    linear-gradient(0deg, rgba(29, 36, 39, 0.72), rgba(29, 36, 39, 0.03) 54%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-copy {
  position: relative;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 118px 0 136px;
  color: var(--white);
}

.kicker {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: 5rem;
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy p:not(.kicker) {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
  line-height: 1.7;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 950;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--magenta);
}

.button.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.44);
}

.button.dark {
  color: var(--white);
  background: var(--teal-dark);
}

.button.light {
  color: var(--teal-dark);
  background: var(--sage);
}

.button.full {
  width: 100%;
  margin-top: 18px;
}

.hero-proof {
  position: absolute;
  right: clamp(20px, 6vw, 86px);
  bottom: 46px;
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  width: min(740px, calc(100% - 40px));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero-proof div {
  padding: 18px;
  color: var(--white);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-proof div:last-child {
  border-right: 0;
}

.hero-proof strong,
.hero-proof span {
  display: block;
}

.hero-proof strong {
  font-size: 1.58rem;
}

.hero-proof span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.35;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.quick-grid a {
  min-height: 98px;
  padding: 22px clamp(18px, 3vw, 42px);
  border-right: 1px solid var(--line);
}

.quick-grid a:last-child {
  border-right: 0;
}

.quick-grid span,
.quick-grid strong {
  display: block;
}

.quick-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.quick-grid strong {
  margin-top: 8px;
  font-size: 1rem;
}

.section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0;
}

.split {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(34px, 6vw, 84px);
  align-items: start;
}

h2 {
  margin: 0;
  font-size: 3.18rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.lead,
.media-copy p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.planner-shell {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 16px;
}

.service-tabs {
  display: grid;
  gap: 10px;
}

.service {
  min-height: 58px;
  padding: 0 18px;
  text-align: left;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.service.is-active {
  color: var(--white);
  background: var(--magenta);
  border-color: var(--magenta);
}

.planner-card {
  min-height: 544px;
  padding: 28px;
  color: var(--white);
  background: var(--teal-dark);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.planner-card h3 {
  margin: 0;
  font-size: 2rem;
}

.planner-card p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.65;
}

.planner-card ul {
  margin: 20px 0;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

.planner-card label {
  display: block;
  margin: 20px 0 8px;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 850;
}

.planner-card textarea {
  width: 100%;
  padding: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  resize: vertical;
}

.media-band {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 32px;
  align-items: center;
  padding: 72px clamp(20px, 5vw, 70px);
  background: var(--paper);
}

.media-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  grid-template-rows: 238px 238px;
  gap: 12px;
}

.media-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.media-grid img:first-child {
  grid-row: 1 / span 2;
}

.section-title {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 42px;
  margin-bottom: 34px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.proof-grid article {
  min-height: 240px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.proof-grid span {
  color: var(--magenta);
  font-weight: 950;
}

.proof-grid h3 {
  margin: 34px 0 0;
}

.proof-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.team-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.doctor {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.doctor img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.doctor h3 {
  margin: 0;
}

.doctor p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 92px;
}

.gallery-strip img {
  width: 100%;
  aspect-ratio: 1.26;
  object-fit: cover;
  border-radius: 8px;
}

.contact {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 40px;
  padding: 86px clamp(20px, 5vw, 70px) 124px;
  color: var(--white);
  background: var(--teal-dark);
}

.contact h2 {
  max-width: 780px;
}

.contact-copy p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.76);
}

.contact-card {
  padding: 28px;
  color: var(--ink);
  background: var(--white);
  border-radius: 8px;
}

.contact-card dl {
  margin: 0;
}

.contact-card div {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-card div:first-child {
  padding-top: 0;
}

.contact-card div:last-child {
  border-bottom: 0;
}

.contact-card dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.contact-card dd {
  margin: 6px 0 0;
  font-weight: 850;
  line-height: 1.5;
}

.sticky-mobile {
  display: none;
}

@media (max-width: 1040px) {
  .main-nav {
    display: none;
  }

  .hero {
    min-height: 690px;
  }

  .hero h1 {
    font-size: 3.55rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  .quick-grid,
  .split,
  .planner-shell,
  .media-band,
  .section-title,
  .proof-grid,
  .team-layout,
  .gallery-strip,
  .contact {
    grid-template-columns: 1fr;
  }

  .quick-grid a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-proof {
    position: relative;
    right: auto;
    bottom: auto;
    align-self: end;
    margin: -112px auto 34px;
  }
}

@media (max-width: 700px) {
  .topbar {
    min-height: 68px;
    padding: 10px 14px;
  }

  .brand img {
    width: 134px;
  }

  .call-pill {
    display: none;
  }

  .hero {
    min-height: 720px;
  }

  .hero-media img {
    object-position: 52% center;
  }

  .hero-media::after {
    background:
      linear-gradient(0deg, rgba(9, 63, 68, 0.94), rgba(9, 63, 68, 0.46)),
      linear-gradient(90deg, rgba(9, 63, 68, 0.66), rgba(9, 63, 68, 0.16));
  }

  .hero-copy {
    width: calc(100% - 32px);
    padding: 84px 0 142px;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .hero-copy p:not(.kicker) {
    font-size: 1rem;
  }

  .hero-proof {
    grid-template-columns: 1fr;
    width: calc(100% - 32px);
    margin-top: -120px;
  }

  .hero-proof div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .hero-proof div:last-child {
    border-bottom: 0;
  }

  .section {
    width: calc(100% - 32px);
    padding: 68px 0;
  }

  h2 {
    font-size: 2.08rem;
  }

  .media-band,
  .contact {
    padding-right: 16px;
    padding-left: 16px;
  }

  .media-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 210px);
  }

  .media-grid img:first-child {
    grid-row: auto;
  }

  .planner-card {
    min-height: auto;
    padding: 22px;
  }

  .doctor {
    grid-template-columns: 1fr;
  }

  .sticky-mobile {
    position: fixed;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .sticky-mobile.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .sticky-mobile a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    color: var(--white);
    background: var(--magenta);
    border-radius: 8px;
    font-weight: 900;
  }

  .sticky-mobile a:nth-child(2) {
    color: var(--teal-dark);
    background: var(--sage);
  }
}
