:root {
  --bg: #f3f6f5;
  --surface: #ffffff;
  --fg: #1c2a29;
  --muted: #566967;
  --line: #d3dedc;
  --accent: #2b6b64;
  --accent-fg: #ffffff;
  --accent-soft: #e0eeec;
  --warn-bg: #fbefe0;
  --warn-fg: #7a4310;
  --ok-bg: #e2f1e6;
  --ok-fg: #1f5a33;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101b1a; --surface: #172625; --fg: #e4eeec; --muted: #9db3b0; --line: #2b413f;
    --accent: #6fc2b8; --accent-fg: #0c1a19; --accent-soft: #1d3634;
    --warn-bg: #3a2a17; --warn-fg: #f0c48e; --ok-bg: #1b3524; --ok-fg: #9ad6ae;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.55; padding-inline: 16px; padding-block: 24px 48px; }
.wrap { max-width: 720px; margin-inline: auto; display: flex; flex-direction: column; gap: 20px; }
header { display: flex; flex-direction: column; gap: 4px; }
.brand { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 5vw, 34px); line-height: 1.15; margin: 0; text-wrap: balance; }
.lead { color: var(--muted); margin: 0; max-width: 60ch; }
.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.steps li { flex: 1 1 120px; min-width: 0; font-size: 13px; font-weight: 600; color: var(--muted); border-top: 3px solid var(--line); padding-top: 8px; }
.steps li.on { color: var(--fg); border-top-color: var(--accent); }
.steps li.done { color: var(--accent); border-top-color: var(--accent); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
h2 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin: 0; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
.opt { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.opt input { margin-top: 4px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.opt small { display: block; color: var(--muted); font-size: 14px; }
.notice { border-radius: 8px; padding: 12px 14px; font-size: 15px; }
.notice.warn { background: var(--warn-bg); color: var(--warn-fg); }
.notice.ok { background: var(--ok-bg); color: var(--ok-fg); }
.row { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
button { font: inherit; cursor: pointer; }
.btn { background: var(--accent); color: var(--accent-fg); border: 0; border-radius: 8px; padding: 12px 20px; font-weight: 600; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.weeks { display: flex; flex-direction: column; gap: 14px; }
.week h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 8px; font-weight: 600; }
.days { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.day { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.day b { font-variant-numeric: tabular-nums; }
.slots { display: flex; flex-direction: column; gap: 6px; }
.slot { border: 1px solid var(--accent); background: transparent; color: var(--accent); border-radius: 6px; padding: 8px 10px; font-weight: 600; font-variant-numeric: tabular-nums; }
.slot:hover { background: var(--accent-soft); }
.slot[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); }
label.f { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
label.f span small { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], textarea { font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); min-width: 0; font-weight: 400; }
textarea { resize: vertical; line-height: 1.5; }
.hint { font-weight: 400; color: var(--muted); font-size: 13px; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 400; }
.chk input { margin-top: 4px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.chk a { color: var(--accent); }
.sum { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.sum dt { color: var(--muted); }
.sum dd { margin: 0; font-weight: 600; }
.plain { border: 0; padding: 0; background: transparent; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.foot { font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) { .panel { animation: in .25s ease-out; } @keyframes in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } } }
