:root {
  --ink: #0f2742;
  --muted: #607287;
  --line: #d9e7ee;
  --surface: #ffffff;
  --soft: #eef8fb;
  --soft-blue: #dff4fb;
  --teal: #0097a9;
  --teal-dark: #007585;
  --cyan: #3bc4d6;
  --blue: #1b6fb8;
  --shadow: 0 18px 45px rgba(15, 39, 66, 0.14);
  --max: 1160px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(20px, calc((100vw - var(--max)) / 2));
  color: #ffffff;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(15, 39, 66, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  line-height: 1.1;
}

.brand small {
  color: currentColor;
  opacity: 0.74;
  font-size: 0.76rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.94rem;
  font-weight: 650;
}

.site-nav a:not(.nav-cta) {
  opacity: 0.9;
}

.site-nav a:hover {
  opacity: 1;
}

.nav-cta {
  padding: 10px 16px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--teal);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: currentColor;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  color: #ffffff;
  background: url("assets/lab-hero.png") center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 31, 50, 0.86) 0%, rgba(7, 31, 50, 0.62) 42%, rgba(7, 31, 50, 0.12) 78%),
    linear-gradient(0deg, rgba(0, 117, 133, 0.22), rgba(0, 117, 133, 0.06));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: var(--header-height);
}

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

.hero .eyebrow {
  color: #7de8f5;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 6vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.4vw, 3.45rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 610px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.13rem;
}

.hero-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

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

.button-primary {
  color: #ffffff;
  background: var(--teal);
  box-shadow: 0 12px 26px rgba(0, 151, 169, 0.28);
}

.button-primary:hover {
  background: var(--teal-dark);
}

.button-secondary {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.button-light {
  color: var(--ink);
  background: #ffffff;
}

.button-outline-light {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.hero-proof span {
  padding: 9px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  font-weight: 700;
}

.quick-access {
  position: relative;
  z-index: 2;
  margin-top: -70px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.quick-item {
  min-height: 158px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 26px;
  border-right: 1px solid var(--line);
}

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

.quick-item:hover {
  background: var(--soft);
}

.quick-icon {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
}

.quick-item strong {
  font-size: 1.22rem;
}

.quick-item small {
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: 105px 0;
}

.section-split {
  background: linear-gradient(180deg, #ffffff 0%, var(--soft) 100%);
}

.split-grid,
.results-grid,
.contact-grid,
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 72px;
  align-items: start;
}

.text-stack p,
.contact-grid p,
.results-grid p {
  color: var(--muted);
  font-size: 1.06rem;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 42px;
}

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

.service-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.service-card p,
.process-step p,
.faq-list p {
  color: var(--muted);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 34px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--teal);
  font-weight: 900;
}

.results-band {
  padding: 84px 0;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(0, 117, 133, 0.96), rgba(27, 111, 184, 0.94)),
    var(--teal-dark);
}

.results-band .eyebrow {
  color: #a9f4fb;
}

.results-grid {
  align-items: center;
}

.results-grid p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.82);
}

.result-actions {
  justify-content: flex-end;
}

.process-section {
  background: #ffffff;
}

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

.process-step {
  position: relative;
  padding-top: 26px;
  border-top: 2px solid var(--line);
}

.process-step span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--blue);
  font-weight: 900;
}

.contact-panel {
  display: grid;
  gap: 22px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 39, 66, 0.08);
}

.contact-row {
  display: grid;
  gap: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.contact-row strong {
  font-size: 0.94rem;
}

.contact-row span,
.contact-row a {
  color: var(--muted);
}

.contact-row a {
  color: var(--teal-dark);
  font-weight: 800;
}

.faq-section {
  background: #ffffff;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

summary {
  cursor: pointer;
  padding: 20px 22px;
  font-weight: 800;
}

details p {
  padding: 0 22px 22px;
}

.site-footer {
  padding: 42px 0;
  color: #dceff6;
  background: #0f2742;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 28px;
  align-items: center;
}

.site-footer p,
.site-footer span {
  display: block;
  margin: 4px 0 0;
  color: rgba(220, 239, 246, 0.78);
}

.site-footer a {
  color: #7de8f5;
  font-weight: 800;
}

.legal-id {
  margin-top: 14px;
}

.footer-links {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(220, 239, 246, 0.18);
  color: rgba(220, 239, 246, 0.72);
  font-size: 0.9rem;
}

.legal-page {
  background: var(--soft);
}

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

.legal-main {
  max-width: 880px;
  padding: 72px 0 96px;
}

.legal-main h1 {
  max-width: 760px;
  color: var(--ink);
}

.legal-main h2 {
  margin-top: 34px;
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
}

.legal-main p {
  color: var(--muted);
  font-size: 1.05rem;
}

@media (max-width: 980px) {
  .site-nav {
    position: absolute;
    inset: var(--header-height) 20px auto 20px;
    display: none;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
    gap: 14px;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    min-height: 720px;
    background-position: 58% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(7, 31, 50, 0.9) 0%, rgba(7, 31, 50, 0.72) 58%, rgba(7, 31, 50, 0.22) 100%),
      linear-gradient(0deg, rgba(0, 117, 133, 0.22), rgba(0, 117, 133, 0.06));
  }

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

  .quick-item:nth-child(2) {
    border-right: 0;
  }

  .quick-item:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }

  .split-grid,
  .results-grid,
  .contact-grid,
  .faq-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .result-actions {
    justify-content: flex-start;
  }

  .footer-links {
    justify-items: start;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 68px;
  }

  .section-wrap {
    width: min(100% - 28px, var(--max));
  }

  .site-header {
    padding-inline: 14px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    max-width: 190px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    min-height: 680px;
  }

  h1 {
    font-size: clamp(2.35rem, 15vw, 3.5rem);
  }

  h2 {
    font-size: clamp(1.85rem, 10vw, 2.45rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions,
  .result-actions {
    display: grid;
  }

  .quick-access {
    margin-top: 0;
  }

  .quick-grid,
  .service-grid,
  .process-grid {
    grid-template-columns: 1fr;
    border-radius: 0;
    box-shadow: none;
  }

  .quick-item,
  .quick-item:nth-child(2),
  .quick-item:last-child {
    min-height: auto;
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .quick-item:first-child {
    border-top: 0;
  }

  .section {
    padding: 72px 0;
  }

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

  .contact-panel {
    padding: 24px;
  }

  .legal-header {
    width: min(100% - 28px, var(--max));
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .legal-header .button {
    width: 100%;
  }

  .footer-bottom {
    display: grid;
  }
}
