:root {
  --font-sans: Onest, Arial, sans-serif;
  --accent: #c3d82e;
  --accent-soft: #f4f8d3;
  --charcoal: #111315;
  --charcoal-soft: #2c3033;
  --near-white: #fbfbf8;
  --teal: var(--accent);
  --teal-dark: var(--charcoal);
  --teal-soft: var(--accent-soft);
  --sand: var(--near-white);
  --paper: #ffffff;
  --ink: #16181a;
  --muted: #5f6468;
  --line: #e2e3dd;
  --warning: #8a3f1f;
  --shadow: 0 24px 70px rgba(17, 19, 21, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
}

body.flow-open {
  overflow: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 58px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(17, 19, 21, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--charcoal);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--charcoal);
  background: var(--accent);
  border-radius: 8px;
  font-size: 0.88rem;
}

.main-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--charcoal-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.main-menu a {
  text-decoration: none;
}

.language-switch {
  position: relative;
  flex-shrink: 0;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 38px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--charcoal);
  background: var(--accent);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  flex-shrink: 0;
  min-width: 150px;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.language-menu[hidden],
.language-option.is-active {
  display: none;
}

.language-option {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0;
  text-align: left;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-cta,
.button.primary {
  color: var(--charcoal);
  background: var(--teal);
  box-shadow: 0 12px 28px rgba(195, 216, 46, 0.28);
}

.button.secondary {
  color: var(--charcoal);
  background: transparent;
  border: 1px solid var(--charcoal);
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--charcoal);
}

.section {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) clamp(18px, 5vw, 72px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(460px, 0.9fr);
  align-items: center;
  gap: clamp(28px, 6vw, 96px);
  overflow: hidden;
  min-height: auto;
  padding-top: clamp(36px, 5vw, 72px);
  padding-bottom: clamp(40px, 6vw, 76px);
  background: var(--paper);
}

.hero::after {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 3;
  grid-column: 1;
  max-width: none;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--charcoal);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(2.15rem, 4vw, 3.45rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1::first-letter {
  color: var(--charcoal);
  font-size: 1.42em;
  line-height: 0.78;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 4.05rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.02em;
}

html[lang="de"] .hero h1 {
  max-width: 700px;
}

.hero h1::first-letter {
  font-size: 1.34em;
  line-height: 0.74;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.hero-text,
.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

.hero-text {
  font-style: normal;
  font-weight: 400;
  line-height: 1.45;
}

html[lang="de"] .hero-text {
  max-width: 620px;
}

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

.hero-panel {
  position: absolute;
  top: 50%;
  right: clamp(18px, 5vw, 72px);
  z-index: 0;
  display: block;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 85%;
  max-height: 85%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  pointer-events: none;
  transform: translateY(-50%);
}

.hero-visual {
  position: relative;
  overflow: visible;
  width: 100%;
  height: 100%;
  background: transparent;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
}

.hero-note {
  max-width: 620px;
  margin-top: clamp(28px, 5vw, 52px);
  padding-left: 18px;
  border-left: 2px solid var(--accent);
}

.hero-note strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.25;
}

.clinical-card,
.test-shell,
.booking-form {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(17, 19, 21, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.clinical-card {
  min-height: 300px;
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.94)),
    repeating-linear-gradient(90deg, rgba(17, 19, 21, 0.05), rgba(17, 19, 21, 0.05) 1px, transparent 1px, transparent 26px),
    var(--paper);
}

.clinical-card strong {
  display: block;
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1.14;
}

.card-label {
  width: max-content;
  margin-bottom: 16px;
  padding: 6px 10px;
  color: var(--charcoal);
  background: var(--accent);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
}

.hero-note .card-label {
  display: block;
  width: auto;
  margin-bottom: 10px;
  padding: 0;
  color: var(--accent);
  background: transparent;
  border-radius: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  font-weight: 600;
  line-height: 1.1;
}

.mini-stats {
  position: absolute;
  right: 3%;
  bottom: 12%;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
}

.mini-stats div,
.symptom-card {
  padding: 22px;
  background: var(--paper);
  border: 1px solid rgba(17, 19, 21, 0.12);
  border-radius: 8px;
}

.mini-stats strong {
  display: block;
  color: var(--charcoal);
  font-size: 2rem;
  line-height: 1;
}

.mini-stats span,
.symptom-card p,
.text-column,
.section-heading p,
.doctor-copy p,
.storage-note {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(30px, 5vw, 82px);
  background: var(--paper);
}

.text-column {
  font-size: 1.03rem;
}

.section-heading {
  max-width: 850px;
}

.section-heading.compact {
  margin-bottom: 30px;
}

.symptoms {
  background: var(--near-white);
}

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

.results {
  background: var(--paper);
}

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

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

.result-placeholder {
  display: grid;
  min-height: 280px;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: var(--muted);
  background: #ecece8;
  border: 1px solid #d9dbd5;
  border-radius: 8px;
}

.result-number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--charcoal);
  background: var(--paper);
  border-radius: 50%;
  font-weight: 600;
}

.results-disclaimer {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.icon {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin-bottom: 18px;
  color: var(--charcoal);
  background: var(--teal);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.78rem;
}

.test-section {
  background: var(--near-white);
}

html[lang="de"] [data-ua-only] {
  display: none;
}

.care-info {
  display: grid;
  gap: 18px;
  background: var(--near-white);
}

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

.care-card {
  padding: clamp(22px, 3vw, 32px);
  background: var(--paper);
  border: 1px solid rgba(17, 19, 21, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(17, 19, 21, 0.06);
}

.treatment-card,
.insurance-card {
  width: 100%;
}

.care-card h3 {
  margin: 10px 0 16px;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.care-card h4 {
  margin-bottom: 8px;
  color: var(--teal-dark);
  font-size: 1.05rem;
}

.care-card p {
  color: var(--muted);
}

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

.care-methods > div {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.insurance-card {
  background: #fff;
}

.care-action {
  padding-top: clamp(22px, 4vw, 44px);
}

.care-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: clamp(20px, 3vw, 28px);
  color: var(--charcoal);
  background: var(--paper);
  border: 1px solid rgba(17, 19, 21, 0.12);
  border-radius: 8px;
}

.care-cta p {
  max-width: 620px;
  margin: 0;
  color: var(--teal-dark);
  font-weight: 600;
}

.formats {
  background: var(--paper);
}

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

.format-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(22px, 3vw, 30px);
  background: var(--paper);
  border: 1px solid rgba(17, 19, 21, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(17, 19, 21, 0.07);
}

.format-card.featured {
  background: var(--near-white);
  border-color: rgba(195, 216, 46, 0.9);
}

.format-kicker {
  color: var(--charcoal);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.format-card h3 {
  margin-top: 10px;
  font-size: 1.35rem;
}

.price {
  display: block;
  color: var(--teal-dark);
  font-size: 2.35rem;
  line-height: 1;
}

.vat,
.format-card p,
.price-disclaimer {
  color: var(--muted);
}

.format-note {
  font-weight: 600;
}

.format-card .button {
  margin-top: auto;
}

.bmi-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: clamp(20px, 4vw, 42px);
  align-items: center;
  margin-top: 24px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--near-white);
  border: 1px solid rgba(17, 19, 21, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(17, 19, 21, 0.06);
}

.bmi-copy {
  max-width: 680px;
}

.bmi-copy h3 {
  margin: 8px 0 10px;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.bmi-copy p:not(.eyebrow) {
  color: var(--muted);
}

.bmi-calculator {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 24px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.bmi-result {
  min-height: 74px;
  padding: 16px;
  color: var(--teal-dark);
  background: #f6f8f1;
  border: 1px solid rgba(89, 113, 98, 0.18);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}

.bmi-result strong {
  display: block;
  color: var(--charcoal);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.1;
}

.price-disclaimer {
  margin: 20px 0 0;
  font-size: 0.9rem;
}

.test-shell {
  max-width: 980px;
  margin-top: 30px;
  padding: clamp(20px, 4vw, 36px);
}

.test-progress {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
  color: var(--teal-dark);
  font-weight: 600;
}

.progress-track {
  overflow: hidden;
  height: 10px;
  background: #e9e9e3;
  border-radius: 8px;
}

.progress-track span {
  display: block;
  width: 5%;
  height: 100%;
  background: var(--teal);
  transition: width 0.25s ease;
}

.question-card {
  display: none;
}

.question-card.active {
  display: block;
}

.question-card h3 {
  margin-bottom: 22px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.answer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.answer-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 15px;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: border 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.answer-button.is-selected {
  color: var(--charcoal);
  border-color: var(--teal);
  background: var(--teal);
}

.test-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.result-box {
  margin-top: 28px;
  padding: 22px;
  color: var(--charcoal);
  background: var(--accent-soft);
  border: 1px solid rgba(195, 216, 46, 0.75);
  border-radius: 8px;
}

.result-box h3 {
  font-size: 1.45rem;
}

.flow-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  height: 100%;
  overflow: hidden;
  background: var(--paper);
}

.flow-overlay.is-open {
  display: block;
}

.flow-shell {
  display: grid;
  grid-template-rows: auto auto 1fr;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
}

@supports (height: 100dvh) {
  .flow-shell {
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
  }
}

.flow-header {
  min-height: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 52px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(17, 19, 21, 0.1);
}

.flow-header > div {
  min-width: 0;
}

.flow-header h2 {
  margin: 2px 0 0;
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  overflow-wrap: anywhere;
}

.flow-label {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--charcoal);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flow-back,
.flow-close {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--charcoal);
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.flow-back {
  padding: 10px 14px;
}

.flow-close {
  width: 42px;
  font-size: 1.5rem;
  line-height: 1;
}

.flow-progress {
  min-height: 8px;
  height: 8px;
  background: #e9e9e3;
}

.flow-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--teal);
  transition: width 0.25s ease;
}

.flow-content {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: clamp(22px, 5vw, 64px);
  padding-bottom: calc(clamp(28px, 6vw, 72px) + env(safe-area-inset-bottom, 0px));
}

.flow-card {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 38px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 19, 21, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.flow-card.narrow {
  max-width: 760px;
}

.flow-card h3 {
  margin-bottom: 18px;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.flow-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.flow-percent {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 18px;
  color: var(--teal-dark);
  font-weight: 600;
}

.flow-percent strong {
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1;
}

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

.package-flow-card {
  padding: 20px;
  background: var(--paper);
  border: 1px solid rgba(17, 19, 21, 0.12);
  border-radius: 8px;
}

.report-document {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 52px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.report-document header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--teal);
}

.report-logo {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--charcoal);
  background: var(--teal);
  border-radius: 8px;
  font-weight: 600;
}

.report-meta,
.report-footnote {
  color: var(--muted);
  font-size: 0.92rem;
}

.report-ai-disclosure {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.report-score {
  margin: 22px 0;
  padding: 18px;
  color: var(--charcoal);
  background: var(--accent-soft);
  border-radius: 8px;
  font-weight: 600;
}

.report-analysis {
  margin: 30px 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.report-analysis > h3 {
  margin-bottom: 10px;
}

.report-analysis > p {
  color: var(--muted);
  margin-bottom: 12px;
}

#report-action-message {
  margin-top: 16px;
}

.consultation {
  background: var(--paper);
}

.booking-form {
  max-width: 1040px;
  margin-top: 28px;
  padding: clamp(20px, 4vw, 36px);
}

.selected-package {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding: 16px;
  background: var(--accent-soft);
  border: 1px solid rgba(195, 216, 46, 0.75);
  border-radius: 8px;
}

.booking-steps {
  display: grid;
  gap: 18px;
}

.booking-step {
  padding: 22px;
  background: var(--paper);
  border: 1px solid rgba(17, 19, 21, 0.12);
  border-radius: 8px;
}

.booking-step h3 {
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.booking-step.is-muted {
  opacity: 0.62;
}

.slot-grid,
.language-grid,
.payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.slot-button,
.language-button,
.payment-option {
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 15px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  text-align: left;
}

.slot-button.is-selected,
.language-button.is-selected,
.payment-option.is-selected {
  color: var(--charcoal);
  border-color: var(--teal);
  background: var(--teal);
}

.slot-date-field {
  max-width: 280px;
  margin: 18px 0 14px;
}

.slot-days {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.slot-day {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.slot-day h4 {
  margin: 0;
  color: var(--teal-dark);
  font-size: 0.98rem;
}

.slot-status {
  margin: 12px 0;
  color: var(--muted);
  font-weight: 600;
}

.slot-status.error {
  color: var(--warning);
}

.hold-countdown {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(27, 92, 78, 0.18);
  border-radius: 8px;
  color: var(--teal-dark);
  background: #eef8f4;
  font-weight: 600;
}

.hold-countdown small {
  color: var(--muted);
  font-weight: 500;
}

.hold-countdown.is-warning {
  border-color: rgba(166, 123, 0, 0.28);
  color: #765600;
  background: #fff8e6;
}

.language-warning {
  margin-top: 18px;
  padding: 18px;
  background: #fff8e6;
  border: 1px solid rgba(166, 123, 0, 0.22);
  border-radius: 8px;
}

.language-warning p {
  margin-top: 6px;
}

.checkout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.order-summary {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.order-summary div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #eef1ed;
  padding-bottom: 8px;
}

.order-summary div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
  font-weight: 600;
}

.payment-form {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

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

.wallet-payment {
  min-height: 54px;
  border: 1px solid var(--charcoal);
  border-radius: 8px;
  padding: 13px 16px;
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
}

.wallet-payment.apple-pay {
  color: #fff;
  background: #000;
}

.wallet-payment.google-pay {
  color: var(--charcoal);
  background: #fff;
}

.wallet-payment:disabled {
  cursor: wait;
  opacity: 0.7;
}

.payment-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.payment-divider::before,
.payment-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.payment-form input {
  letter-spacing: 0.02em;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--teal-dark);
  font-size: 0.9rem;
  font-weight: 500;
}

.wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cdd6d2;
  border-radius: 8px;
  padding: 11px 13px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

input:focus,
select:focus,
.slot-button:focus,
.language-button:focus,
.payment-option:focus,
.answer-button:focus,
.button:focus {
  outline: 3px solid rgba(195, 216, 46, 0.42);
  outline-offset: 2px;
}

input.is-invalid {
  border-color: var(--warning);
}

.field-error {
  min-height: 1.2em;
  color: var(--warning);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 22px 0 12px;
  color: var(--ink);
  font-weight: 600;
}

.consent-row input {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  margin-top: 2px;
}

.storage-note {
  max-width: 760px;
  font-size: 0.92rem;
}

.booking-message {
  margin-top: 18px;
  font-weight: 600;
}

.booking-message.success {
  color: var(--teal-dark);
}

.booking-message.error {
  color: var(--warning);
}

.doctor {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: clamp(30px, 6vw, 86px);
  align-items: center;
  background: var(--near-white);
}

.doctor-photo {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  min-height: 440px;
  background: #f2f2ee;
  border: 1px solid rgba(17, 19, 21, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.doctor-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.doctor-copy {
  max-width: 760px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 28px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 44px clamp(18px, 5vw, 72px);
  color: #f6f6f0;
  background: var(--charcoal);
}

.footer-brand {
  color: #fff;
}

address {
  font-style: normal;
}

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

.legal-main {
  background: var(--paper);
}

.legal-page {
  display: grid;
  gap: 28px;
  align-items: start;
}

.legal-content {
  max-width: 920px;
  padding: clamp(22px, 4vw, 42px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.legal-content h1,
.legal-content h2,
.legal-content h3 {
  margin: 24px 0 10px;
}

.legal-content h1:first-child,
.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  margin-bottom: 12px;
  color: var(--muted);
}

.legal-content ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 18px 22px;
}

.legal-content li {
  color: var(--muted);
}

.legal-content a {
  color: var(--teal-dark);
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-panel.reveal,
.hero-panel.reveal.is-visible {
  transform: translateY(-50%);
}

@media (max-width: 1060px) {
  .hero,
  .split,
  .doctor,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    display: grid;
    gap: clamp(28px, 6vw, 96px);
    overflow: visible;
  }

  .hero::after {
    display: none;
  }

  .hero-panel {
    position: relative;
    inset: auto;
    width: min(100%, 680px);
    height: auto;
    max-height: none;
    aspect-ratio: 1 / 1;
    margin-left: auto;
    pointer-events: auto;
    transform: none;
  }

  .hero-panel.reveal,
  .hero-panel.reveal.is-visible {
    transform: none;
  }

  .hero-visual img {
    object-fit: contain;
    object-position: center bottom;
  }

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

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

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

  .care-methods {
    grid-template-columns: 1fr;
  }

  .bmi-section {
    grid-template-columns: 1fr;
  }

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

  .package-flow-grid {
    grid-template-columns: 1fr;
  }

  .doctor-photo {
    max-width: 520px;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: center;
    padding: 14px 18px;
  }

  .brand span:last-child {
    max-width: 130px;
    line-height: 1.1;
  }

  .menu-toggle {
    display: block;
  }

  .language-switch {
    margin-left: auto;
  }

  .main-menu {
    position: absolute;
    top: 72px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .main-menu.open {
    display: flex;
  }

  .hero {
    min-height: auto;
  }

  .hero-panel {
    width: 100%;
    aspect-ratio: auto;
  }

  .hero-visual {
    height: auto;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 0;
  }

  .hero-visual img {
    height: auto;
  }

  .mini-stats {
    right: 16px;
    bottom: 16px;
  }

  .doctor-photo {
    min-height: 360px;
  }

  .symptom-grid,
  .result-pair,
  .form-grid,
  .bmi-fields,
  .mini-stats,
  .slot-grid,
  .language-grid,
  .payment-grid {
    grid-template-columns: 1fr;
  }

  .test-controls,
  .hero-actions,
  .checkout-actions,
  .flow-actions,
  .result-actions,
  .selected-package,
  .care-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .nav-cta {
    width: 100%;
  }

  .flow-header {
    grid-template-columns: 1fr auto;
    gap: 10px 14px;
    padding: 12px 16px;
  }

  .flow-back {
    grid-column: 1 / -1;
    grid-row: 1;
    width: max-content;
    min-height: 38px;
    padding: 8px 12px;
  }

  .flow-header > div {
    grid-column: 1;
    grid-row: 2;
  }

  .flow-close {
    grid-column: 2;
    grid-row: 2;
    width: 38px;
    min-height: 38px;
  }

  .flow-content {
    padding: 18px 16px calc(34px + env(safe-area-inset-bottom, 0px));
  }

  .flow-card,
  .report-document {
    padding: 18px;
  }
}

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

  .reveal,
  .button,
  .nav-cta,
  .flow-progress span,
  .progress-track span {
    transition: none;
  }
}
