:root {
  --ink: #18212f;
  --muted: #5d6878;
  --line: #dbe6e3;
  --soft: #f3f8f6;
  --panel: #ffffff;
  --brand: #087c73;
  --brand-dark: #075f59;
  --accent: #b46a3c;
  --wash: #e8f4f1;
  --shadow: 0 18px 45px rgba(18, 38, 63, .10);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

a { color: var(--brand-dark); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--accent); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--brand), #4aa69e);
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: .95rem;
}

.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links a:hover { color: var(--brand); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  border-radius: 8px;
  color: white;
  background: var(--brand);
  text-decoration: none;
  font-weight: 750;
  border: 1px solid var(--brand);
}

.button:hover { color: white; background: var(--brand-dark); }
.button.secondary { color: var(--brand-dark); background: white; }
.button.secondary:hover { color: white; background: var(--brand-dark); }

.hero {
  min-height: 620px;
  color: white;
  background:
    linear-gradient(90deg, rgba(9, 44, 47, .90) 0%, rgba(9, 44, 47, .74) 44%, rgba(9, 44, 47, .22) 100%),
    url("https://images.unsplash.com/photo-1579154341098-e4e158cc7f55?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 92px 22px 86px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #bce6df;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
}

h1, h2, h3 {
  line-height: 1.12;
  margin: 0 0 16px;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.35rem, 5vw, 5.2rem);
  letter-spacing: 0;
}

.hero p {
  max-width: 680px;
  margin: 0 0 26px;
  color: rgba(255,255,255,.88);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 38px;
}

.hero .button.secondary {
  background: rgba(255,255,255,.08);
  color: white;
  border-color: rgba(255,255,255,.42);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 830px;
}

.trust-item {
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 16px;
}

.trust-item strong { display: block; font-size: 1rem; }
.trust-item span { color: rgba(255,255,255,.78); font-size: .92rem; }

.section {
  padding: 70px 22px;
}

.section.alt {
  background: var(--soft);
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
}

.section-head {
  max-width: 780px;
  margin-bottom: 30px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 3rem);
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

.grid {
  display: grid;
  gap: 20px;
}

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

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(18, 38, 63, .06);
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card-body {
  padding: 22px;
}

.tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--wash);
  font-size: .78rem;
  font-weight: 800;
}

.card h3 {
  font-size: 1.22rem;
}

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

.feature-band {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 34px;
  align-items: center;
}

.feature-band img {
  border-radius: 8px;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.checklist {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  padding: 14px 16px;
  border-left: 4px solid var(--brand);
  background: white;
  border-radius: 8px;
}

.tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.hub-grid {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 96px;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.filters label,
.field label {
  display: block;
  margin: 13px 0 7px;
  color: var(--ink);
  font-weight: 750;
}

.filters select,
.field select,
.field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  color: var(--ink);
  background: white;
}

.article-list {
  display: grid;
  gap: 16px;
}

.list-item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.list-item img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
}

.list-item h2,
.list-item h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.list-item p {
  margin: 0 0 10px;
  color: var(--muted);
}

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

.product-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.score {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
  color: var(--brand-dark);
  font-weight: 850;
}

.bar {
  width: 110px;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  background: var(--brand);
}

.diagnosis-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.diagnosis-form .full { grid-column: 1 / -1; }

.risk-output {
  padding: 20px;
  border-radius: 8px;
  background: #eef8f5;
  border: 1px solid #cce7e1;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.pill {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--wash);
  font-size: .82rem;
  font-weight: 800;
}

.tool {
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tool h3 { font-size: 1.35rem; }

.quiz-options {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.quiz-options label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.result {
  min-height: 84px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 8px;
  background: var(--wash);
  color: var(--ink);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 46px;
  align-items: start;
}

.article {
  max-width: 790px;
}

.article h1 {
  color: var(--ink);
  font-size: clamp(2.1rem, 4vw, 4rem);
}

.article-hero {
  padding: 58px 22px;
  background: linear-gradient(180deg, #edf7f4, #fbfdfc);
}

.article-meta {
  color: var(--muted);
  margin: 0 0 24px;
}

.article img.hero-img {
  width: 100%;
  border-radius: 8px;
  margin: 26px 0;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.article p, .article li {
  color: #354052;
  font-size: 1.06rem;
}

.article h2 {
  margin-top: 42px;
  font-size: 1.85rem;
}

.article h3 { margin-top: 30px; }

.note {
  padding: 18px;
  border-left: 4px solid var(--accent);
  background: #fff7f1;
  border-radius: 8px;
}

.toc {
  position: sticky;
  top: 96px;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.toc strong { display: block; margin-bottom: 12px; }
.toc a { display: block; margin: 9px 0; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--brand); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

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

th { background: var(--soft); }

.faq details {
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 16px 18px;
  margin: 12px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

.footer {
  padding: 44px 22px;
  color: #dce7e5;
  background: #11272b;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
}

.footer a { color: #bce6df; }
.footer p { margin: 8px 0; color: #bdd0ce; }

@media (max-width: 880px) {
  .nav { align-items: flex-start; flex-direction: column; padding: 14px 18px; gap: 12px; }
  .nav-links { flex-wrap: wrap; gap: 12px; }
  .hero { min-height: auto; }
  .trust-row, .grid.cards, .feature-band, .tools, .article-layout, .footer-inner, .hub-grid, .compare-grid, .diagnosis-form {
    grid-template-columns: 1fr;
  }
  .filters { position: static; }
  .list-item { grid-template-columns: 1fr; }
  .toc { position: static; }
  .section { padding: 52px 18px; }
}
