:root {
  --ink: #1b1f23;
  --muted: #5b636b;
  --line: #e3e6e8;
  --bg: #f6f7f8;
  --card: #ffffff;
  --accent: #1f5f4a;
  --accent-ink: #ffffff;
  --accent-soft: #e6f0ec;
  --error: #b3261e;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.wrap { max-width: 680px; margin: 0 auto; padding: 0 16px; }
.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding-top: 14px; padding-bottom: 14px; }
.brand { font-weight: 700; font-size: 18px; }
.tagline { color: var(--muted); font-size: 15px; }
main.wrap { padding-top: 24px; padding-bottom: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
h1 { font-size: 28px; line-height: 1.25; margin: 0 0 16px; }
h2 { font-size: 22px; line-height: 1.3; margin: 0 0 16px; }
h3 { font-size: 18px; margin: 0 0 8px; }
h1:focus, h2:focus { outline: none; }
p { margin: 0 0 14px; }
.note { color: var(--muted); font-size: 15px; }
.step { color: var(--muted); font-size: 15px; margin-bottom: 6px; }
a { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 12px 20px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); width: 100%; }
.btn.primary:hover { background: #174a39; }
.btn.secondary { background: var(--card); color: var(--accent); border-color: var(--accent); }
.btn.link { background: none; color: var(--muted); padding-left: 0; padding-right: 0; font-weight: 500; }
.btn:focus-visible, .option:focus-visible, input:focus-visible { outline: 3px solid #8fb8a8; outline-offset: 2px; }
.btn[disabled] { opacity: .6; cursor: default; }

.progress { height: 6px; background: var(--line); border-radius: 3px; margin-bottom: 16px; overflow: hidden; }
.bar { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.options { display: grid; gap: 10px; margin-bottom: 8px; }
.option {
  width: 100%; min-height: 52px; padding: 12px 16px; text-align: left;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 10px;
  font: inherit; cursor: pointer;
}
.option:hover { border-color: var(--accent); background: var(--accent-soft); }
.option[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }

.meter { height: 10px; background: var(--line); border-radius: 5px; overflow: hidden; margin: -4px 0 16px; }
.meter .fill { height: 100%; width: 0; background: var(--accent); }
.path { font-size: 18px; }
.guide { background: var(--accent-soft); border-radius: 10px; padding: 16px; margin: 20px 0; }
.guide p { font-size: 16px; }
.actions { display: grid; gap: 8px; }

form { display: grid; gap: 6px; }
label { font-weight: 600; font-size: 16px; margin-top: 8px; }
.opt { color: var(--muted); font-weight: 400; }
input[type=text], input:not([type]) {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit;
  border: 1px solid #b9c0c6; border-radius: 8px; background: #fff; color: var(--ink);
}
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.consent label { font-weight: 400; margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.error { color: var(--error); font-weight: 600; min-height: 0; margin: 6px 0 0; }
.error:empty { display: none; }
#send { margin-top: 8px; }

.foot { color: var(--muted); font-size: 14px; padding-bottom: 32px; }
.foot p { margin: 0 0 6px; }

@media (max-width: 480px) {
  .card { padding: 18px; border-radius: 10px; }
  h1 { font-size: 24px; }
}
