:root {
  --navy: #06275a;
  --navy-deep: #041c42;
  --blue: #0879cc;
  --blue-bright: #0d96e8;
  --sky: #8bd5f3;
  --sky-soft: #dff3fc;
  --red: #e42b26;
  --ink: #10213d;
  --muted: #66758a;
  --paper: #ffffff;
  --soft: #f4f9fd;
  --line: #dce7f0;
  --line-green: #06c755;
  --shadow-sm: 0 10px 30px rgba(6, 39, 90, 0.07);
  --shadow: 0 20px 55px rgba(6, 39, 90, 0.13);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body.dialog-open {
  overflow: hidden;
}

main,
section,
article,
header,
footer,
nav {
  display: block;
}

section[id] {
  scroll-margin-top: 88px;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--paper);
}

::selection {
  color: #ffffff;
  background: var(--blue);
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--navy);
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

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

.button-line {
  color: var(--navy);
  background: var(--line-green);
  box-shadow: 0 10px 24px rgba(6, 199, 85, 0.22);
}

.button-line:hover {
  color: var(--navy);
  background: #05b84e;
  box-shadow: 0 13px 28px rgba(6, 199, 85, 0.28);
}

.button-primary {
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(8, 121, 204, 0.2);
}

.button-primary:hover {
  background: #066fb9;
}

.button-light {
  color: var(--navy);
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(3, 21, 50, 0.14);
}

.text-link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  padding: 10px max(24px, calc((100% - var(--content)) / 2));
  border-bottom: 1px solid rgba(220, 231, 240, 0.92);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 24px rgba(6, 39, 90, 0.04);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 238px;
  color: var(--navy);
  text-decoration: none;
}

.brand img {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.28;
}

.brand strong {
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.site-navigation {
  display: flex;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

.site-navigation a {
  padding: 9px 10px;
  border-radius: 10px;
  color: #3f536c;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease;
}

.site-navigation a:hover {
  color: var(--blue);
  background: var(--soft);
}

.menu-toggle {
  display: none;
  min-width: 46px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
}

.header-line {
  min-height: 44px;
  padding-inline: 17px;
  white-space: nowrap;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  min-height: 650px;
  align-items: center;
  gap: clamp(32px, 7vw, 100px);
  overflow: hidden;
  padding: clamp(88px, 10vw, 142px) max(24px, calc((100% - var(--content)) / 2));
  color: #ffffff;
  background:
    radial-gradient(circle at 83% 11%, rgba(139, 213, 243, 0.52), transparent 22%),
    radial-gradient(circle at 68% 85%, rgba(13, 150, 232, 0.22), transparent 26%),
    linear-gradient(145deg, var(--navy) 0 67%, var(--blue) 67% 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent 72%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero .eyebrow {
  color: var(--sky);
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(3.2rem, 6.2vw, 5.7rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 590px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}

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

.hero-visual {
  position: relative;
  min-height: 410px;
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

.orbit-one {
  right: -75px;
  bottom: -50px;
  width: 420px;
  height: 420px;
  box-shadow:
    inset 0 0 0 65px rgba(255, 255, 255, 0.025),
    inset 0 0 0 130px rgba(255, 255, 255, 0.02);
}

.orbit-two {
  top: 28px;
  right: 75px;
  width: 215px;
  height: 215px;
  background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02) 65%);
  box-shadow: 0 35px 70px rgba(3, 22, 52, 0.2);
}

.hero-lab-card {
  position: absolute;
  right: 20px;
  bottom: 40px;
  z-index: 2;
  width: min(290px, 78%);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 25px 60px rgba(3, 22, 52, 0.2);
  backdrop-filter: blur(18px);
}

.hero-lab-card span,
.hero-lab-card strong,
.hero-lab-card small {
  display: block;
}

.hero-lab-card span {
  color: var(--sky);
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-lab-card strong {
  margin: 6px 0;
  color: #ffffff;
  font-size: 2rem;
}

.hero-lab-card small {
  color: rgba(255, 255, 255, 0.72);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-card {
  min-width: 0;
  min-height: 132px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px clamp(18px, 2.5vw, 34px);
  color: var(--navy);
  background: #ffffff;
  text-decoration: none;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.trust-card--interactive:hover,
.trust-card--interactive:focus-visible {
  color: var(--blue);
  background: var(--soft);
}

.trust-card--interactive:hover {
  transform: translateY(-3px);
}

.trust-card--line:hover,
.trust-card--line:focus-visible {
  color: #04712d;
  background: #effcf4;
}

.trust-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(13, 139, 216, 0.18);
  border-radius: 18px;
  color: var(--blue);
  background: linear-gradient(145deg, #ffffff, #eaf7ff);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  box-shadow: 0 12px 30px rgba(6, 39, 90, 0.08);
}

.trust-copy {
  min-width: 0;
}

.trust-copy strong,
.trust-copy small {
  display: block;
}

.trust-copy strong {
  font-size: clamp(0.98rem, 1.5vw, 1.2rem);
  line-height: 1.35;
}

.trust-copy small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.section {
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
  padding-block: clamp(72px, 8vw, 112px);
}

.section-soft {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100% - var(--content)) / 2));
  background: var(--soft);
}

.section-heading {
  max-width: 740px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.section-heading > p:not(.eyebrow) {
  margin: 15px 0 0;
  color: var(--muted);
}

.split-heading {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
}

.split-heading > div {
  max-width: 760px;
}

.catalog-note {
  max-width: 320px;
  padding: 12px 15px;
  border-left: 3px solid var(--blue);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.86rem;
}

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

.need-grid a {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.need-grid a:hover {
  transform: translateY(-5px);
  border-color: rgba(8, 121, 204, 0.36);
  box-shadow: var(--shadow);
}

.need-icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
  border-radius: 14px;
  color: var(--blue);
  background: var(--sky-soft);
  font-weight: 800;
}

.need-grid strong {
  color: var(--navy);
  font-size: 1.06rem;
}

.need-grid strong + span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.9rem;
}

.catalog-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 32px;
}

.catalog-controls label,
.single-tests-section > label {
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 700;
}

.search-field {
  position: relative;
}

.search-field > span {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 1;
  color: var(--blue);
  font-size: 1.2rem;
  transform: translateY(-52%);
  pointer-events: none;
}

.search-field input {
  width: 100%;
  min-height: 52px;
  padding: 11px 16px 11px 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(6, 39, 90, 0.04);
}

.search-field input::placeholder {
  color: #8b98a8;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-group button {
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #4f6075;
  background: #ffffff;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.filter-group button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.filter-group button[aria-pressed="true"] {
  color: #ffffff;
  border-color: var(--navy);
  background: var(--navy);
}

.result-status {
  min-height: 28px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.package-card {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.package-card:hover {
  transform: translateY(-4px);
  border-color: rgba(8, 121, 204, 0.3);
  box-shadow: var(--shadow);
}

@keyframes package-target-pulse {
  from { transform: translateY(4px); }
  to { transform: translateY(0); }
}

.package-card.featured {
  border-color: rgba(8, 121, 204, 0.28);
  box-shadow: 0 18px 42px rgba(6, 39, 90, 0.1);
}

.package-card.package-card--target {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(8, 120, 201, 0.2), var(--shadow);
  animation: package-target-pulse 700ms ease-out;
}

.package-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.package-topline span:first-child {
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.package-topline span:last-child {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--sky-soft);
  font-size: 0.75rem;
  font-weight: 700;
}

.package-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.38rem;
  line-height: 1.3;
}

.package-card > p {
  min-height: 55px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.package-card details {
  margin-top: 20px;
}

.package-card summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
}

.package-card summary::after {
  content: "＋";
  color: var(--blue);
  font-size: 1.2rem;
}

.package-card details[open] summary::after {
  content: "－";
}

.package-card details ul {
  margin: 13px 0 6px;
  padding-left: 20px;
  color: #53647a;
  font-size: 0.88rem;
}

.package-card details li + li {
  margin-top: 5px;
}

.package-line {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 8px 13px;
  border: 1px solid rgba(6, 199, 85, 0.28);
  border-radius: 12px;
  color: #04863a;
  background: rgba(6, 199, 85, 0.08);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.package-line:hover {
  color: var(--navy);
  background: var(--line-green);
}

.variant-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.variant-grid > div {
  padding: 13px;
  border-radius: 12px;
  background: var(--soft);
}

.variant-grid h4 {
  margin: 0;
  color: var(--navy);
}

.variant-grid p {
  margin: 8px 0 0;
  color: #53647a;
  font-size: 0.86rem;
}

.single-tests-section .search-field {
  margin-top: 8px;
}

.single-tests-section .result-status {
  margin: 12px 0 20px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  color: var(--navy);
  background: var(--soft);
  font-size: 0.85rem;
}

tbody th {
  color: var(--ink);
  font-weight: 600;
}

tbody tr:last-child > * {
  border-bottom: 0;
}

tbody tr:hover {
  background: #f9fcfe;
}

td:first-child {
  color: var(--muted);
  font-size: 0.85rem;
}

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

.education-grid article {
  min-height: 215px;
  padding: 26px;
  border: 1px solid rgba(8, 121, 204, 0.13);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.education-grid article > span {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.education-grid h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.15rem;
}

.education-grid p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.education-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

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

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.faq-list summary {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
}

.faq-list summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: var(--sky-soft);
  font-size: 1.05rem;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
}

.gallery-count {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--sky-soft);
  font-size: 0.85rem;
  font-weight: 700;
}

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

.dm-grid button {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.dm-grid button:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.dm-grid img {
  width: 100%;
  aspect-ratio: 0.706;
  object-fit: cover;
  object-position: top;
  background: var(--soft);
}

.dm-grid button > span {
  display: block;
  padding: 14px;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: left;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: stretch;
  padding: clamp(72px, 9vw, 120px) max(24px, calc((100% - var(--content)) / 2));
  color: #ffffff;
  background:
    radial-gradient(circle at 86% 12%, rgba(139, 213, 243, 0.2), transparent 25%),
    radial-gradient(circle at 18% 88%, rgba(13, 150, 232, 0.14), transparent 28%),
    var(--navy);
}

.contact-section .eyebrow {
  color: var(--sky);
}

.contact-section h2 {
  max-width: 620px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.15rem, 4.2vw, 3.7rem);
  line-height: 1.12;
}

.contact-intro {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.03rem;
}

.contact-details {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.contact-detail {
  display: grid;
  grid-template-columns: 54px 1fr;
  column-gap: 15px;
  align-items: center;
  min-height: 76px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.contact-detail > span {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 14px;
  color: var(--sky);
  background: rgba(139, 213, 243, 0.12);
  font-size: 0.74rem;
  font-weight: 900;
}

.contact-detail strong,
.contact-detail small {
  display: block;
}

.contact-detail small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.62);
}

a.contact-detail:hover,
a.contact-detail:focus-visible {
  border-color: rgba(139, 213, 243, 0.65);
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(4px);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

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

.button-outline-light:hover,
.button-outline-light:focus-visible {
  border-color: #ffffff;
  color: var(--navy);
  background: #ffffff;
}

.map-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 32px 80px rgba(0, 12, 36, 0.28);
}

.map-embed {
  position: relative;
  min-height: 450px;
  background:
    linear-gradient(135deg, rgba(139, 213, 243, 0.28), rgba(13, 139, 216, 0.1)),
    #eaf7ff;
}

.map-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-fallback {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 20px;
  color: var(--navy);
  background: #ffffff;
  text-decoration: none;
}

.map-fallback span {
  color: var(--muted);
  font-size: 0.86rem;
}

.map-fallback strong {
  color: var(--blue);
}

.map-fallback:hover,
.map-fallback:focus-visible {
  background: var(--soft);
}

.related-clinic {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.5fr);
  gap: 24px 34px;
  align-items: center;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(139, 213, 243, 0.28);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.related-clinic-heading h3 {
  margin: 7px 0 10px;
  color: #ffffff;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.related-clinic-heading > p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.related-clinic-label {
  margin: 0;
  color: var(--sky);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

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

.related-clinic-details > * {
  display: grid;
  align-content: center;
  min-height: 116px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  text-decoration: none;
}

.related-clinic-details span,
.related-clinic-details strong,
.related-clinic-details small {
  display: block;
}

.related-clinic-details span {
  color: var(--sky);
  font-size: 0.74rem;
  font-weight: 900;
}

.related-clinic-details strong {
  margin-top: 7px;
}

.related-clinic-details small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.62);
}

.related-clinic-details a {
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}

.related-clinic-details a:hover,
.related-clinic-details a:focus-visible {
  border-color: rgba(139, 213, 243, 0.65);
  background: rgba(255, 255, 255, 0.12);
}

.related-clinic-actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-card--interactive:focus-visible,
a.contact-detail:focus-visible,
.map-fallback:focus-visible,
.related-clinic-details a:focus-visible {
  outline: none;
  box-shadow:
    inset 0 0 0 3px #ffffff,
    inset 0 0 0 6px var(--navy);
}

.final-cta {
  padding: clamp(76px, 10vw, 130px) 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 15%, rgba(139, 213, 243, 0.24), transparent 22%),
    linear-gradient(135deg, var(--blue), var(--navy));
  text-align: center;
}

.final-cta .eyebrow {
  color: var(--sky);
}

.final-cta h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.15;
}

.final-cta p:not(.eyebrow) {
  margin: 16px auto 26px;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 30px max(24px, calc((100% - var(--content)) / 2));
  color: #65748a;
  background: #f4f7fa;
  font-size: 0.84rem;
}

.site-footer > div {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
}

.site-footer img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.site-footer p {
  margin: 0;
}

.site-footer > p {
  max-width: 680px;
  text-align: right;
}

.site-footer span {
  color: var(--muted);
}

.mobile-action-bar {
  display: none;
}

dialog {
  width: min(920px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 18px;
  border: 0;
  border-radius: 20px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 30px 100px rgba(2, 16, 38, 0.45);
}

dialog::backdrop {
  background: rgba(3, 17, 39, 0.8);
  backdrop-filter: blur(6px);
}

.dialog-close {
  position: sticky;
  top: 0;
  z-index: 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: var(--navy);
  font-size: 1.6rem;
  cursor: pointer;
}

#dialog-image {
  max-height: 76vh;
  margin: 0 auto;
  object-fit: contain;
}

#dialog-caption {
  margin: 12px 0 0;
  color: var(--navy);
  font-weight: 700;
  text-align: center;
}

@media (max-width: 1100px) {
  .site-header {
    gap: 14px;
  }

  .brand {
    min-width: 210px;
  }

  .site-navigation a {
    padding-inline: 7px;
    font-size: 0.82rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  }

  .need-grid,
  .education-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .dm-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 74px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 72px;
    padding-block: 8px;
  }

  .site-header > .header-line {
    display: none;
  }

  .brand img {
    width: 50px;
    height: 50px;
  }

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

  .site-navigation {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    padding: 8px 0 6px;
  }

  .site-navigation[data-open="true"] {
    display: flex;
  }

  .site-navigation a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 9px 12px;
    font-size: 0.92rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 690px;
    align-content: center;
  }

  .hero-copy {
    max-width: 650px;
  }

  .hero-visual {
    position: absolute;
    right: -80px;
    bottom: -140px;
    width: 440px;
    opacity: 0.6;
  }

  .hero-lab-card {
    display: none;
  }

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-heading {
    display: block;
  }

  .catalog-note {
    max-width: 580px;
    margin-top: 18px !important;
  }

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

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

  .related-clinic {
    grid-template-columns: 1fr;
  }

  .related-clinic-actions {
    grid-column: 1;
  }

  .map-embed {
    min-height: 380px;
  }

  .site-footer {
    display: grid;
  }

  .site-footer > p {
    text-align: left;
  }
}

@media (max-width: 680px) {
  body {
    padding-bottom: 66px;
  }

  .section {
    width: min(100% - 32px, var(--content));
    padding-block: 68px;
  }

  .section-soft {
    width: 100%;
    padding-inline: 16px;
  }

  .hero {
    min-height: 620px;
    padding-inline: 20px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 13vw, 4.35rem);
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 1rem;
  }

  .need-grid,
  .package-grid,
  .education-grid {
    grid-template-columns: 1fr;
  }

  .need-grid a {
    min-height: 150px;
  }

  .need-icon {
    margin-bottom: 20px;
  }

  .package-card > p {
    min-height: 0;
  }

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

  .dm-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .dm-grid button > span {
    padding: 11px;
    font-size: 0.78rem;
  }

  .contact-section {
    padding-inline: 20px;
  }

  .map-embed {
    min-height: 320px;
  }

  .map-fallback {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .related-clinic-details {
    grid-template-columns: 1fr;
  }

  .related-clinic-details > * {
    min-height: 96px;
  }

  .related-clinic-actions .button {
    width: 100%;
  }

  .trust-card {
    min-height: 96px;
    padding: 18px 22px;
  }

  th,
  td {
    padding: 12px 10px;
  }

  td:first-child,
  thead th:first-child {
    display: none;
  }

  .mobile-action-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    min-height: 66px;
    padding: 8px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -12px 35px rgba(6, 39, 90, 0.12);
    backdrop-filter: blur(14px);
  }

  .mobile-action-bar a {
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--navy);
    font-weight: 800;
    text-decoration: none;
  }

  .mobile-action-bar a:last-child {
    color: var(--navy);
    background: var(--line-green);
  }
}

@media (max-width: 480px) {
  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 0.94rem;
  }

  .brand small {
    display: none;
  }

  .menu-label {
    display: none;
  }

  .hero {
    min-height: 580px;
  }

  .hero-actions {
    display: grid;
    max-width: 260px;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .trust-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .contact-detail {
    grid-template-columns: 48px 1fr;
    padding-inline: 12px;
  }

  .trust-strip span br {
    display: none;
  }

  .filter-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-group button {
    padding-inline: 8px;
    font-size: 0.84rem;
  }

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

  .dm-grid button {
    max-width: 360px;
    margin-inline: auto;
  }

}

@media (forced-colors: active) {
  .trust-card--interactive:focus-visible,
  a.contact-detail:focus-visible,
  .map-fallback:focus-visible,
  .related-clinic-details a:focus-visible {
    outline: 3px solid CanvasText;
    outline-offset: -3px;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .package-card--target { animation: none; }

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .trust-card--interactive:hover,
  a.contact-detail:hover,
  a.contact-detail:focus-visible {
    transform: none;
  }
}
