:root {
  --bg: #f4f1ea;
  --card: #fffdf8;
  --ink: #1f1d1a;
  --muted: #6b665d;
  --line: #ddd6c8;
  --accent: #2f6f4f;
  --accent-soft: #e2efe7;
  --error: #b23a2a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171a18;
    --card: #20241f;
    --ink: #ece8df;
    --muted: #a39e93;
    --line: #353a33;
    --accent: #6fbf8e;
    --accent-soft: #24362b;
    --error: #ef8a78;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 680px; margin: 0 auto; padding: 40px 16px 64px; }
header h1 { font-size: clamp(1.7rem, 5vw, 2.3rem); line-height: 1.15; margin: 0 0 8px; letter-spacing: -0.02em; }
header p { color: var(--muted); margin: 0 0 28px; }
.kicker { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); font-weight: 600; margin-bottom: 6px; }

fieldset {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 14px;
  padding: 20px;
  margin: 0 0 18px;
}
legend { font-weight: 650; padding: 0 6px; margin-left: -6px; }
.hint { color: var(--muted); font-size: .9rem; margin: -2px 0 12px; }

.row { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
@media (max-width: 480px) { .row { grid-template-columns: 1fr; } }
.row-contact { grid-template-columns: 1fr 1fr; margin-top: 12px; }
.contact-hint { margin: 8px 0 0; }
.opt { font-style: normal; font-size: .85em; }
@media (max-width: 480px) { .row-contact { grid-template-columns: 1fr; } }
label.field > span { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 4px; }
input[type=text], input[type=email], input[type=tel], textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}
input[type=text]:focus, input[type=email]:focus, input[type=tel]:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 80px; resize: vertical; }

.choice {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.choice:last-child { margin-bottom: 0; }
.choice:hover { border-color: var(--accent); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { margin-top: 4px; accent-color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; }
.choice strong { display: block; }
.choice small { color: var(--muted); font-size: .88rem; }
#other-wrap { margin-top: 10px; }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.slots .choice { margin: 0; align-items: center; }
.slots .choice input { margin-top: 0; }

button {
  font: inherit; font-weight: 650;
  background: var(--accent); color: var(--card);
  border: 0; border-radius: 10px;
  padding: 13px 26px; cursor: pointer;
  width: 100%;
}
button:hover { filter: brightness(1.08); }

.errors { border: 1px solid var(--error); color: var(--error); border-radius: 10px; padding: 10px 16px; margin-bottom: 18px; }
.errors ul { margin: 0; padding-left: 18px; }
.done { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 36px 20px; }
.done .big { font-size: 2.5rem; }
a { color: var(--accent); }

/* wyniki */
.bar { display: grid; grid-template-columns: 11rem 1fr 2.5rem; gap: 10px; align-items: center; margin: 6px 0; }
@media (max-width: 480px) { .bar { grid-template-columns: 7rem 1fr 2rem; font-size: .9rem; } }
.bar .track { background: var(--bg); border-radius: 6px; height: 14px; overflow: hidden; }
.bar .fill { background: var(--accent); height: 100%; border-radius: 6px; }
.bar .n { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
td.ip { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.req { display: inline; color: #c0392b; font-weight: 700; margin: 0; }
