:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #5a6878;
  --line: #d9e0e7;
  --paper: #f8fafc;
  --white: #ffffff;
  --accent: #0f766e;
  --accent-dark: #0b4f4a;
  --gold: #b7791f;
  --rose: #b4235a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: var(--accent-dark);
  font-weight: 700;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 56px);
  background: rgba(248, 250, 252, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  color: var(--ink);
  text-decoration: none;
}

nav {
  display: flex;
  flex: 1;
  gap: 16px;
  overflow-x: auto;
}

nav a,
.language {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.hero,
.section,
.content-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  gap: 28px;
  align-items: center;
  min-height: 72vh;
  padding: 64px 0 36px;
}

.hero h1,
.content-page h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p,
.content-page header p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.1rem;
}

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

.hero-actions,
.final {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  text-decoration: none;
  cursor: pointer;
}

.primary {
  background: var(--accent);
  color: var(--white);
}

.secondary {
  background: var(--white);
  color: var(--accent-dark);
}

.status-panel,
.card,
.result,
.source-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 22px;
}

.status-panel strong {
  display: block;
  margin-bottom: 12px;
}

.section {
  padding: 56px 0;
}

.band {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100% - 1120px) / 2));
  background: #edf7f5;
}

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

.section-heading h2,
.content-page h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.1;
}

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

.card a {
  display: inline-block;
  margin-top: 10px;
}

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

.question {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 18px;
}

.question legend {
  font-weight: 800;
}

.question label,
.check-item {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.diagnostic button {
  align-self: end;
}

.result {
  margin-top: 18px;
}

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

.progress {
  margin-top: 20px;
  color: var(--muted);
  font-weight: 700;
}

.progress div {
  height: 10px;
  margin-top: 8px;
  overflow: hidden;
  background: #d1e7e3;
  border-radius: 999px;
}

.progress span span,
.progress div span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
}

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

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

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

td span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.ad-slot {
  width: min(1120px, calc(100% - 32px));
  min-height: 92px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  border: 1px dashed #9aa8b6;
  border-radius: 8px;
  color: var(--muted);
  background: var(--white);
}

.content-page {
  padding: 56px 0;
}

.content-page section {
  margin: 30px 0;
}

.content-page ul {
  padding-left: 22px;
}

.notice,
footer,
.source-box {
  color: var(--muted);
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 28px clamp(16px, 4vw, 56px);
  border-top: 1px solid var(--line);
}

.consent {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: min(420px, calc(100% - 32px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(23, 33, 43, 0.18);
}

@media (max-width: 850px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .hero,
  .diagnostic,
  .grid-section,
  .checklist {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

