:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #0f172a;
  --notice-bg: #ffffff;
  --notice-border: #e2e8f0;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
}

html.dark {
  color-scheme: dark;
  --bg: #020617;
  --surface: #0f172a;
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: #1e293b;
  --accent: #f8fafc;
  --notice-bg: #0f172a;
  --notice-border: #1e293b;
  --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 10px 28px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.68 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: var(--text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--muted) 55%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--text); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
}
.header-inner {
  max-width: 880px;
  min-height: 68px;
  margin: auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { color: var(--text); text-decoration: none; font-weight: 850; font-size: 22px; letter-spacing: -.04em; }
.controls { display: flex; align-items: center; gap: 8px; }
.controls button {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}
.controls button[aria-pressed="true"] { background: var(--accent); color: var(--bg); border-color: var(--accent); }
main {
  width: min(880px, calc(100% - 28px));
  margin: 34px auto;
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
h1 { margin: 0 0 8px; font-size: clamp(30px, 5vw, 46px); line-height: 1.12; letter-spacing: -.04em; }
h2 { margin: 34px 0 10px; font-size: 21px; line-height: 1.3; letter-spacing: -.015em; }
h3 { margin: 24px 0 8px; font-size: 17px; }
p, li { color: var(--muted); }
strong { color: var(--text); }
ul, ol { padding-left: 24px; }
li + li { margin-top: 8px; }
.date { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.notice {
  margin: 22px 0;
  padding: 16px 18px;
  border: 1px solid var(--notice-border);
  border-radius: 16px;
  background: var(--notice-bg);
  color: var(--muted);
  box-shadow: var(--shadow);
}
.notice strong { color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--bg) !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  border: none;
  cursor: pointer;
}
.button.secondary { background: transparent; color: var(--text) !important; border: 1px solid var(--line); }
.legal-nav { margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; }
.legal-nav a { color: var(--muted); text-decoration: none; font-weight: 650; }
.legal-nav a:hover { color: var(--text); }
.lang-panel[hidden] { display: none; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--text); background: var(--bg); }
td { color: var(--muted); }
.small { font-size: 13px; }

.provider-card {
  margin: 22px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
}
.provider-card dl {
  margin: 0;
  display: grid;
  gap: 10px;
}
.provider-card dt {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.provider-card dd {
  margin: 0;
  color: var(--text);
  font-weight: 650;
}

.claim-form { display: grid; gap: 18px; margin-top: 24px; }
.field { display: grid; gap: 6px; }
.field label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--text) 35%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 8%, transparent);
}
.field-grid { display: grid; gap: 14px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
}
.radio-pill input { accent-color: var(--accent); }
.consent-box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--muted);
  font-size: 14px;
}
.consent-box input { margin-top: 3px; accent-color: var(--accent); }
.form-status {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
}
.form-status.error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
html.dark .form-status.error { border-color: #7f1d1d; background: #450a0a; color: #fecaca; }
.form-status.success { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
html.dark .form-status.success { border-color: #14532d; background: #052e16; color: #bbf7d0; }

.receipt {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
}
.receipt h2 { margin-top: 0; }
.receipt-grid {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}
.receipt-grid div {
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}
.receipt-grid span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.receipt-grid strong { display: block; margin-top: 4px; color: var(--text); }

@media (min-width: 640px) {
  .field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  main { margin: 18px auto; padding: 24px 20px; border-radius: 18px; }
  .header-inner { padding-inline: 14px; }
  .controls button { padding-inline: 10px; }
}

@media print {
  .site-header,
  .legal-nav,
  .claim-form,
  .no-print,
  .controls,
  .form-status { display: none !important; }
  body { background: #fff; color: #000; }
  main {
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    width: 100%;
  }
  .receipt {
    border: 1px solid #ccc;
    background: #fff;
    color: #000;
  }
  .receipt-grid strong { color: #000; }
}
