:root {
  --bg: #f4f8f8;
  --paper: #ffffff;
  --ink: #10202a;
  --muted: #5f7180;
  --line: #dbe8ea;
  --aqua: #66d2d0;
  --aqua-2: #dff7f5;
  --navy: #0d2a3a;
  --warm: #d6a86e;
  --green: #168c62;
  --shadow: 0 26px 70px rgba(23, 55, 68, 0.15);
  --page-width: 1260px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  padding: 18px max(18px, calc((100vw - var(--page-width)) / 2));
  color: #fff;
  background: rgba(13, 42, 58, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  gap: 3px;
}

.brand span,
.section-label {
  color: var(--aqua);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
  line-height: 1;
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

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

.header-call,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  font-weight: 850;
}

.header-call {
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background: var(--navy);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}

.hero::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 42, 58, 0.94), rgba(13, 42, 58, 0.66) 42%, rgba(13, 42, 58, 0.18) 74%),
    linear-gradient(180deg, rgba(13, 42, 58, 0.16), rgba(13, 42, 58, 0.52));
  content: "";
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  width: min(var(--page-width), calc(100% - 36px));
  min-height: 760px;
  margin: 0 auto;
  padding: 118px 0 84px;
}

.hero-copy {
  max-width: 620px;
  color: #fff;
}

.hero h1,
.section-intro h2,
.pathway h2,
.clinic h2,
.gallery h2,
.hours h2,
.contact h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0;
}

.hero h1 {
  margin-top: 16px;
  font-size: clamp(48px, 6vw, 82px);
  line-height: 0.96;
}

.hero p:not(.section-label) {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 19px;
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  padding: 0 22px;
}

.button.primary {
  color: #082430;
  background: linear-gradient(135deg, var(--aqua), #ffffff);
  box-shadow: 0 20px 44px rgba(102, 210, 208, 0.25);
}

.button.secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.quick-info {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(var(--page-width), calc(100% - 36px));
  margin: -46px auto 0;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.quick-info a,
.quick-info div {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 112px;
  min-width: 0;
  padding: 28px 34px;
  border-right: 1px solid var(--line);
  font-size: 19px;
  font-weight: 850;
  line-height: 1.22;
  text-align: center;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.quick-info > :last-child {
  border-right: 0;
}

.quick-info span {
  display: block;
  margin-bottom: 9px;
  color: #218b91;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

main > section:not(.hero):not(.quick-info) {
  padding: 94px max(18px, calc((100vw - var(--page-width)) / 2));
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 34px;
}

.section-intro h2,
.pathway h2,
.clinic h2,
.gallery h2,
.hours h2,
.contact h2 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
}

p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-grid article,
.hours article,
.location-grid article,
.clinic-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 46px rgba(23, 55, 68, 0.08);
}

.service-grid article {
  min-height: 240px;
  padding: 24px;
}

.service-grid span {
  color: #218b91;
  font-size: 13px;
  font-weight: 850;
}

.service-grid h3,
.hours h3 {
  margin: 18px 0 10px;
  font-size: 22px;
  line-height: 1.15;
}

.service-grid p {
  margin: 0;
  font-size: 15px;
}

.pathway {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(13, 42, 58, 0.96), rgba(18, 64, 78, 0.94)),
    var(--navy);
}

.pathway h2 {
  max-width: 520px;
}

.pathway-list {
  display: grid;
  gap: 14px;
}

.pathway-list article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.pathway-list span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #082430;
  background: var(--aqua);
  font-weight: 850;
}

.pathway-list h3 {
  margin: 0 0 6px;
  font-size: 21px;
}

.pathway-list p {
  grid-column: 2;
  margin: -8px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.locations {
  background: linear-gradient(180deg, #fff 0%, #f4f8f8 100%);
}

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

.location-grid article {
  min-height: 280px;
  padding: 32px;
}

.location-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  color: #0d5260;
  background: var(--aqua-2);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.location-grid h3 {
  margin: 28px 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
}

.location-grid p {
  margin: 0 0 28px;
}

.location-grid a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: #082430;
  background: var(--aqua);
  font-weight: 850;
}

.location-grid strong {
  display: block;
  max-width: 420px;
  margin: -12px 0 24px;
  color: var(--green);
  font-size: 20px;
  line-height: 1.35;
}

.nfz-card {
  border-color: rgba(22, 140, 98, 0.36);
  background:
    linear-gradient(135deg, rgba(236, 255, 246, 0.96), rgba(255, 255, 255, 0.98)),
    var(--paper);
}

.clinic {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1fr);
  gap: 54px;
  align-items: center;
  background: var(--aqua-2);
}

.clinic-copy {
  max-width: 560px;
}

.photo-stack {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  grid-template-rows: 230px 230px;
  gap: 18px;
}

.photo-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.photo-wide {
  grid-row: span 2;
  object-position: 48% 50%;
}

.photo-detail {
  object-position: 50% 36%;
}

.photo-chair {
  object-position: 54% 52%;
}

.gallery {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(0, 0.8fr);
  gap: 54px;
  align-items: center;
  background: #fff;
}

.gallery img {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.gallery-large {
  height: 620px;
  object-position: 54% 52%;
}

.gallery div img {
  height: 270px;
  margin-top: 28px;
  object-position: 50% 44%;
}

.hours {
  background: var(--bg);
}

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

.hours article {
  padding: 28px;
}

.hours article p {
  margin-bottom: 22px;
}

.nfz-hours {
  border-color: rgba(22, 140, 98, 0.32);
}

dl {
  display: grid;
  gap: 0;
  margin: 0;
}

dl div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) 430px;
  gap: 42px;
  align-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 82% 22%, rgba(102, 210, 208, 0.22), transparent 34%),
    var(--navy);
}

.contact p:not(.section-label) {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.72);
}

.contact-addresses {
  display: grid;
  gap: 10px;
  max-width: 680px;
  margin-top: 28px;
}

.contact-addresses span {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 750;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 850;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: 650 16px/1.45 Inter, "Segoe UI", Arial, sans-serif;
  padding: 13px 14px;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(102, 210, 208, 0.82);
  box-shadow: 0 0 0 3px rgba(102, 210, 208, 0.18);
}

.form-note {
  display: none;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.form-note.is-visible {
  display: block;
}

.contact-phone {
  display: grid;
  place-items: center;
  min-height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 34px;
  font-weight: 850;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.contact-phone span {
  color: var(--aqua);
  font-size: 13px;
  text-transform: uppercase;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px max(18px, calc((100vw - var(--page-width)) / 2));
  color: rgba(255, 255, 255, 0.72);
  background: #071925;
}

.footer strong {
  color: #fff;
}

.footer a {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 850;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .quick-info,
  .section-intro,
  .pathway,
  .service-grid,
  .location-grid,
  .clinic,
  .gallery,
  .hours-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .clinic {
    padding-inline: 18px;
  }

  .gallery {
    padding-inline: 18px;
  }

  .photo-stack {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .photo-wide {
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .brand strong {
    font-size: 22px;
  }

  .header-call {
    min-height: 42px;
    padding: 0 13px;
    font-size: 13px;
  }

  .hero,
  .hero-inner {
    min-height: 720px;
  }

  .quick-info {
    margin-top: -28px;
  }

  .quick-info a,
  .quick-info div {
    justify-items: start;
    min-height: auto;
    padding: 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
  }

  .photo-stack img,
  .photo-stack img:last-child,
  .gallery-large,
  .gallery div img {
    height: 310px;
  }

  .pathway-list article {
    grid-template-columns: 38px 1fr;
    padding: 18px;
  }

  .pathway-list span {
    width: 38px;
    height: 38px;
  }

  .hero-image {
    object-position: 72% 50%;
  }

  .contact-phone {
    min-height: 150px;
    font-size: 28px;
  }

  .contact-form {
    padding: 18px;
  }

  .footer {
    flex-direction: column;
  }
}
