:root {
  --bone: #faf7f2;
  --paper: #fffdf9;
  --ink: #1a1a1a;
  --forest: #1f3d33;
  --clay: #c97b5a;
  --grey: #8c8579;
  --line: rgba(31, 61, 51, 0.16);
  --shadow: 0 24px 70px rgba(26, 26, 26, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bone);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(250, 247, 242, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--forest);
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--paper);
  background: var(--forest);
  border-radius: 8px;
  font-family: Georgia, serif;
  font-size: 22px;
}

.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  color: var(--grey);
  font-size: 14px;
  font-weight: 700;
}

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

.nav-toggle {
  display: none;
}

.section-band {
  padding: clamp(70px, 9vw, 120px) clamp(18px, 5vw, 64px);
}

.muted {
  background: rgba(31, 61, 51, 0.055);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: clamp(36px, 7vw, 90px);
  min-height: calc(100vh - 72px);
  padding-top: clamp(46px, 7vw, 86px);
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.02;
}

h1 {
  max-width: 970px;
  font-size: clamp(48px, 7vw, 92px);
}

h2 {
  max-width: 920px;
  font-size: clamp(34px, 5vw, 62px);
}

h3 {
  margin: 0 0 10px;
  color: var(--forest);
  font-size: 20px;
  line-height: 1.2;
}

.hero-text,
.section-intro p,
.split p,
.difference p,
.final-cta p {
  color: #514d47;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-text {
  max-width: 760px;
  margin: 26px 0 0;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--paper);
  background: var(--clay);
  box-shadow: 0 12px 30px rgba(201, 123, 90, 0.28);
}

.button.secondary {
  color: var(--forest);
  border-color: rgba(31, 61, 51, 0.22);
  background: rgba(255, 253, 249, 0.7);
}

.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  min-height: 560px;
}

.phone {
  position: relative;
  z-index: 2;
  width: min(320px, 82vw);
  min-height: 550px;
  padding: 22px;
  background: #16233b;
  border: 10px solid #101624;
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.phone-top {
  width: 78px;
  height: 8px;
  margin: 0 auto 20px;
  background: rgba(250, 247, 242, 0.22);
  border-radius: 999px;
}

.post-card,
.metric-row,
.system-panel {
  background: var(--paper);
  border: 1px solid rgba(250, 247, 242, 0.28);
  border-radius: 8px;
}

.post-card {
  padding: 14px;
}

.doctor-frame {
  display: grid;
  min-height: 260px;
  padding: 16px;
  background: linear-gradient(140deg, #e7dfd4, #f8f3ea);
  border-radius: 8px;
}

.portrait {
  align-self: end;
  width: 112px;
  height: 144px;
  margin: 0 auto;
  background:
    radial-gradient(circle at 50% 22%, #c97b5a 0 23px, transparent 24px),
    linear-gradient(#1f3d33 0 0) 50% 100% / 118px 76px no-repeat;
  border-radius: 52px 52px 10px 10px;
}

.caption-lines {
  align-self: end;
  display: grid;
  gap: 8px;
}

.caption-lines span {
  height: 8px;
  background: rgba(31, 61, 51, 0.2);
  border-radius: 999px;
}

.caption-lines span:nth-child(2) {
  width: 74%;
}

.caption-lines span:nth-child(3) {
  width: 46%;
}

.post-card p {
  margin: 14px 0 0;
  color: var(--forest);
  font-weight: 900;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding: 14px;
  color: #514d47;
}

.metric-row strong {
  color: var(--forest);
}

.system-panel {
  position: absolute;
  right: 0;
  bottom: 38px;
  z-index: 3;
  width: min(220px, 48vw);
  padding: 16px;
  box-shadow: 0 18px 44px rgba(26, 26, 26, 0.16);
}

.panel-label {
  display: block;
  margin-bottom: 12px;
  color: var(--grey);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.system-step {
  padding: 10px 12px;
  color: var(--forest);
  border-top: 1px solid var(--line);
  font-weight: 800;
}

.system-step.active {
  color: var(--paper);
  background: var(--forest);
  border-radius: 8px;
  border-top: 0;
}

.section-intro {
  max-width: 1000px;
  margin-bottom: 36px;
}

.section-intro.narrow {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.fit-card {
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--forest);
  font-weight: 800;
}

.check-list li::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 10px;
  background: var(--clay);
  border-radius: 50%;
}

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

.service-card {
  min-height: 230px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 34px;
  color: var(--paper);
  background: var(--forest);
  border-radius: 8px;
  font-weight: 900;
}

.service-card p,
.timeline-item p {
  margin: 0;
  color: #5f5a52;
}

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

.timeline-item {
  position: relative;
  padding: 22px;
  border-top: 2px solid var(--clay);
}

.timeline-item span {
  display: block;
  margin-bottom: 24px;
  color: var(--clay);
  font-family: Georgia, serif;
  font-size: 42px;
  font-weight: 700;
}

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

.fit-card {
  min-height: 150px;
  display: flex;
  align-items: end;
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.55fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  color: var(--paper);
  background: var(--forest);
}

.final-cta h2,
.final-cta p {
  color: var(--paper);
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: rgba(255, 253, 249, 0.08);
  border: 1px solid rgba(255, 253, 249, 0.18);
  border-radius: 8px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 253, 249, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.contact-form input {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--paper);
  background: rgba(255, 253, 249, 0.1);
  border: 1px solid rgba(255, 253, 249, 0.28);
  border-radius: 8px;
  font: inherit;
}

.email-link {
  color: rgba(255, 253, 249, 0.82);
  font-weight: 800;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  align-items: center;
  padding: 28px clamp(18px, 5vw, 64px);
  color: #5f5a52;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  color: var(--forest);
  font-weight: 900;
}

.site-footer a {
  color: var(--forest);
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero,
  .split,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

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

@media (max-width: 720px) {
  .nav-toggle {
    display: grid;
    gap: 6px;
    width: 42px;
    height: 42px;
    padding: 11px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .nav-toggle span {
    height: 2px;
    background: var(--forest);
  }

  .site-nav {
    position: absolute;
    inset: 72px 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(26, 26, 26, 0.1);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 13px;
  }

  h1 {
    font-size: 43px;
  }

  .service-grid,
  .fit-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 520px;
  }

  .system-panel {
    right: 8px;
    bottom: 8px;
  }
}
