:root {
  color-scheme: light;
  --ink: #17201c;
  --muted: #52615a;
  --line: #d9e0dc;
  --surface: #f7f8f6;
  --panel: #ffffff;
  --green: #176b53;
  --blue: #285c89;
  --gold: #b78225;
  --red: #9d3f3f;
}

* {
  box-sizing: border-box;
}

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

a {
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  padding: 16px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  color: var(--ink);
  font-size: 18px;
  white-space: nowrap;
}

nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 14px;
}

.language {
  border: 1px solid var(--line);
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--panel);
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 32px;
  align-items: center;
  padding: clamp(44px, 8vw, 88px) clamp(18px, 5vw, 72px) 46px;
  background:
    linear-gradient(115deg, rgba(23, 107, 83, 0.92), rgba(40, 92, 137, 0.86)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='700' viewBox='0 0 1200 700'%3E%3Crect width='1200' height='700' fill='%23eef3ef'/%3E%3Cg fill='none' stroke='%2399aaa2' stroke-width='2' opacity='.55'%3E%3Cpath d='M80 120h250v90H80zM430 100h260v120H430zM790 130h290v80H790zM150 330h360v120H150zM620 315h430v125H620zM220 560h760'/%3E%3Cpath d='M330 165h100M690 160h100M510 390h110M1050 380h70M420 620h360'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  color: #ffffff;
}

.hero h1 {
  margin: 10px 0 18px;
  max-width: 920px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

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

.primary,
.secondary,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 7px;
  border: 1px solid transparent;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
  font-size: 15px;
}

.primary {
  background: var(--green);
  color: #ffffff;
}

.secondary {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line);
}

.status-panel,
.card,
.result,
.source-box,
.lead-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(26, 43, 36, 0.08);
}

.status-panel {
  color: var(--ink);
  padding: 24px;
}

.status-panel strong {
  display: block;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 20px;
}

.section,
.content-page {
  max-width: 1160px;
  margin: 0 auto;
  padding: 54px clamp(18px, 4vw, 36px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 26px;
}

.section-heading h2,
.content-page h1 {
  margin: 6px 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.ad-slot {
  max-width: 1160px;
  margin: 26px auto 0;
  padding: 16px 20px;
  border: 1px dashed #9db2aa;
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
}

.diagnostic {
  display: grid;
  gap: 16px;
}

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

.question legend {
  padding: 0 6px;
  font-weight: 850;
}

.question label,
.check-item,
.lead-form label {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.question label,
.check-item {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.result {
  margin-top: 20px;
  padding: 22px;
}

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

.card {
  padding: 22px;
}

.card h3 {
  margin: 8px 0;
  font-size: 22px;
  line-height: 1.2;
}

.band {
  max-width: none;
  background: #edf4f1;
}

.band > * {
  max-width: 1088px;
  margin-left: auto;
  margin-right: auto;
}

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

.check-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.progress {
  margin-top: 20px;
  display: grid;
  gap: 10px;
  font-weight: 800;
}

.progress div {
  height: 12px;
  border-radius: 999px;
  background: #d6e3df;
  overflow: hidden;
}

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

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

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

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

.notice {
  color: var(--muted);
  font-size: 14px;
}

.lead-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: start;
}

.lead-form {
  padding: 22px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 12px;
  font: inherit;
}

.form-status {
  color: var(--blue);
  font-weight: 800;
}

.content-page {
  display: grid;
  gap: 24px;
}

.content-page header,
.content-page section,
.source-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.content-page h2 {
  margin-top: 0;
}

.consent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(460px, calc(100vw - 36px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(20, 30, 26, 0.18);
  z-index: 20;
}

.consent p {
  margin-top: 0;
}

.consent button {
  margin-right: 8px;
}

footer {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 28px;
  border-top: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  font-size: 14px;
}

footer p {
  width: 100%;
  text-align: center;
  margin: 0 0 6px;
}

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

  nav {
    justify-content: flex-start;
  }

  .hero,
  .lead-panel {
    grid-template-columns: 1fr;
  }

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