:root {
  color-scheme: light;
  --surface: #f8f9ff;
  --surface-plain: #ffffff;
  --surface-soft: #edf4ff;
  --surface-green: #edf8f3;
  --surface-gold: #fff7dc;
  --ink: #0b1c30;
  --muted: #4f5d6f;
  --primary: #003c90;
  --primary-strong: #002b67;
  --green: #16745f;
  --gold: #b18a00;
  --line: #cbd8ec;
  --shadow: 0 18px 48px rgba(23, 59, 103, 0.12);
  --radius: 8px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family:
    Manrope,
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(20px, 5vw, 64px);
  background: rgba(248, 249, 255, 0.92);
  border-bottom: 1px solid rgba(203, 216, 236, 0.7);
  backdrop-filter: blur(16px);
}

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

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--surface-plain);
  box-shadow: 0 8px 20px rgba(0, 60, 144, 0.18);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.top-nav a,
.site-footer a {
  border-bottom: 1px solid transparent;
}

.top-nav a:hover,
.site-footer a:hover {
  color: var(--primary);
  border-color: currentColor;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  grid-template-areas: "content media";
  align-items: center;
  min-height: min(680px, calc(100svh - 96px));
  padding: clamp(64px, 9vw, 112px) clamp(20px, 7vw, 96px);
  gap: clamp(32px, 6vw, 80px);
  overflow: hidden;
  background:
    linear-gradient(140deg, #ffffff 0%, #eef5ff 46%, #fff8df 100%);
}

.hero-media {
  grid-area: media;
  display: flex;
  justify-content: center;
  align-items: center;
  width: clamp(320px, 31vw, 380px);
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f6dc78 0%, #ffe99d 52%, #d7a500 100%);
  box-shadow:
    0 26px 58px rgba(23, 59, 103, 0.14),
    0 0 0 10px rgba(255, 255, 255, 0.74);
}

.hero-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  border: 5px solid #fff;
  border-radius: 50%;
  background: #fff;
  filter: saturate(1.08) contrast(1.03);
}

.hero-content {
  grid-area: content;
  width: min(690px, 100%);
}

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

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

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.24rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.32rem);
}

.hero-actions,
.final-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 900;
}

.button.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 60, 144, 0.18);
}

.button.primary:hover,
.header-cta:hover {
  background: var(--primary-strong);
}

.button.secondary {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255, 255, 255, 0.68);
}

.button.secondary:hover {
  background: #fff;
}

.positioning,
.responsibility {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 64px);
  background: var(--surface-plain);
}

.section-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.section-inner p:not(.eyebrow) {
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.benefits,
.workflow {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) clamp(20px, 4vw, 32px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

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

.feature-card {
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-plain);
  box-shadow: var(--shadow);
}

.feature-card:nth-child(1),
.feature-card:nth-child(4) {
  background: var(--surface-soft);
}

.feature-card p {
  margin: 16px 0 0;
  color: var(--muted);
}

.icon {
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  border-radius: 50%;
  background:
    linear-gradient(currentColor 0 0) center / 18px 3px no-repeat,
    linear-gradient(currentColor 0 0) center / 3px 18px no-repeat;
}

.icon.history,
.icon.exams {
  color: var(--primary);
  background-color: #dce9ff;
}

.icon.medication,
.icon.analysis {
  color: var(--green);
  background-color: #d9f0e8;
}

.workflow {
  max-width: none;
  background: var(--surface-green);
}

.workflow .section-heading,
.steps {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(22, 116, 95, 0.18);
}

.steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.steps p {
  margin: 14px 0 0;
  color: var(--muted);
}

.name-band {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 40px;
  align-items: end;
  padding: clamp(64px, 9vw, 112px) clamp(20px, 7vw, 96px);
  background: var(--primary-strong);
  color: #fff;
}

.name-band .eyebrow {
  color: #ffe088;
}

.name-band p:not(.eyebrow) {
  margin: 0;
  color: #dce9ff;
  font-size: 1.2rem;
}

.responsibility {
  background: var(--surface-gold);
}

.responsibility .eyebrow {
  color: #745c00;
}

.final-cta {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: 360px;
  padding: clamp(64px, 10vw, 112px) 20px;
  text-align: center;
  background: var(--surface-plain);
}

.final-cta h2 {
  max-width: 720px;
}

.privacy-intro {
  background: var(--surface-plain);
}

.privacy-intro h1 {
  margin: 0 auto;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
}

.privacy-summary {
  max-width: 780px;
}

.privacy-date {
  margin: 14px auto 0;
  color: var(--green);
  font-size: 0.92rem;
  font-weight: 800;
}

.privacy-grid {
  align-items: start;
}

.privacy-card {
  min-height: auto;
}

.privacy-card p + p {
  margin-top: 12px;
}

.privacy-card a {
  color: var(--primary);
  font-weight: 800;
  border-bottom: 1px solid currentColor;
}

.privacy-contact {
  background: var(--surface-green);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 42px clamp(20px, 5vw, 64px);
  background: #f0f5ff;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  display: block;
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.site-footer p {
  max-width: 560px;
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-content: flex-start;
  font-weight: 700;
}

@media (max-width: 780px) {
  .site-header {
    min-height: 64px;
  }

  .top-nav {
    display: none;
  }

  .header-cta {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "content";
    min-height: min(640px, calc(100svh - 88px));
    padding-top: 52px;
    padding-bottom: 64px;
    gap: 28px;
  }

  .hero-media img {
    border-width: 4px;
  }

  .hero-media {
    width: min(70vw, 300px);
    padding: 7px;
    box-shadow:
      0 18px 42px rgba(23, 59, 103, 0.13),
      0 0 0 7px rgba(255, 255, 255, 0.74);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .card-grid,
  .steps,
  .name-band {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}
