:root {
  --ink: #181818;
  --muted: #555555;
  --soft: #f3f7f0;
  --line: #e8e8e8;
  --white: #ffffff;
  --green: #95dc60;
  --blue: #517bd5;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Poppins, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  transition: background-color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(17, 17, 17, 0.96);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.header-inner {
  width: min(var(--max), calc(100% - 40px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  width: min(141px, 52vw);
  height: auto;
  transition: opacity 180ms ease;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 10px 12px;
  font: inherit;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
}

.nav a[aria-current="page"],
.nav a:hover {
  color: var(--ink);
}

.site-header.is-scrolled .nav a {
  color: #cfcfcf;
}

.site-header.is-scrolled .nav a[aria-current="page"],
.site-header.is-scrolled .nav a:hover {
  color: var(--white);
}

.site-header.is-scrolled .nav-toggle {
  border-color: #444;
  background: #222;
  color: var(--white);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.hero {
  min-height: 540px;
  display: grid;
  align-items: end;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18)),
    var(--hero-image) center / cover no-repeat;
}

.hero.compact {
  min-height: 360px;
}

.hero-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
blockquote {
  font-family: Spectral, Georgia, serif;
  line-height: 1.16;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 600;
}

h2 {
  margin: 0 0 22px;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 500;
}

h3 {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 500;
}

h4 {
  margin: 0 0 8px;
  font-size: 21px;
}

p {
  margin: 0 0 18px;
  color: var(--muted);
}

.hero p {
  max-width: 680px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
}

.hero h1 {
  max-width: none;
  white-space: nowrap;
}

.hero p:not(.eyebrow) {
  max-width: none;
  white-space: nowrap;
}

.section {
  padding: 88px 0;
}

.section.soft {
  background: var(--soft);
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 56px;
  align-items: center;
}

.appointment-layout {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 42px;
}

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

.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 30px;
  border-radius: 6px;
}

.grid > .card:not(.icon-item) {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.grid > .card:not(.icon-item) .button {
  align-self: flex-start;
  margin-top: auto !important;
}

.grid > article.card h3 {
  font-size: 24px;
  white-space: nowrap;
}

.grid > .card:not(.icon-item) > img {
  display: block;
  width: calc(100% + 60px);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  margin: -30px -30px 24px;
  max-width: none;
}

.quote-card {
  margin: 0 0 52px;
  padding: 30px 34px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  background: var(--soft);
}

.quote-card h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 48px);
}

.quote-card p:last-child,
.testimonial-author {
  margin-bottom: 0;
  color: var(--ink);
  font-family: Spectral, Georgia, serif;
  font-size: 18px;
}

.testimonial-card {
  margin-top: 34px;
  border-left: 4px solid var(--blue);
}

.testimonial-quote {
  margin-bottom: 16px;
  color: var(--ink);
  font-family: Spectral, Georgia, serif;
  font-size: 25px;
  line-height: 1.35;
}

.portrait {
  border-radius: 6px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
}

.about-portrait {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

.icon-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.icon-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
}

.icon-item img {
  width: 48px;
  height: 48px;
  margin-top: 4px;
}

.section.soft + .section.soft {
  padding-top: 32px;
}

.list {
  padding-left: 22px;
  color: var(--muted);
}

.list li {
  margin: 8px 0;
}

.number-list {
  display: grid;
  gap: 18px;
  counter-reset: steps;
}

.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: start;
}

.step::before {
  counter-increment: steps;
  content: counter(steps);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-family: Spectral, Georgia, serif;
  font-size: 24px;
}

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

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfcfcf;
  background: var(--white);
  color: var(--ink);
  padding: 13px 14px;
  font: inherit;
  border-radius: 4px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.notice {
  border-left: 4px solid var(--blue);
  background: #f6f8fc;
  padding: 18px 20px;
  color: var(--muted);
}

.form-success {
  grid-column: 1 / -1;
  border-left: 5px solid #5b9c69;
  background: #eff8f1;
  padding: 24px 26px;
  color: #244c2c;
}

.form-success h2 {
  margin: 0 0 10px;
  font-size: 30px;
}

.form-success p {
  margin: 8px 0 0;
}

.form-success a {
  color: inherit;
  font-weight: 700;
}

.form-success .button {
  margin-top: 18px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  width: max-content;
  color: var(--white);
  font-weight: 700;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  background: #111111;
  color: var(--white);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 42px;
}

.site-footer p,
.site-footer a {
  color: #cfcfcf;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.copyright {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #b0b0b0;
  font-size: 13px;
}

@media (max-width: 900px) {
  .header-inner {
    min-height: 72px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    inset: 72px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 22px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 0;
  }

  .site-header.is-scrolled .nav {
    background: #111;
    border-bottom-color: #333;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
  }

  .site-header.is-scrolled .nav a,
  .site-header.is-scrolled .nav a[aria-current="page"],
  .site-header.is-scrolled .nav a:hover {
    color: #fff;
  }

  .split,
  .grid,
  .two,
  .footer-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 480px;
  }

  .hero h1,
  .hero p:not(.eyebrow) {
    max-width: 680px;
    white-space: normal;
  }

  .section {
    padding: 62px 0;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .container,
  .hero-inner {
    width: min(100% - 28px, var(--max));
  }

  .logo img {
    width: 117px;
  }

  .grid > article.card h3 {
    white-space: normal;
  }

  .hero-inner {
    padding: 72px 0;
  }

  .icon-row {
    grid-template-columns: 1fr;
  }
}
