:root {
  --text: #1c1c1c;
  --text-2: rgba(28,28,28,.6);
  --line: rgba(28,28,28,.12);
  --bg: #ffffff;
  --bg-2: #f5f5f5;
  --accent: #1c1c1c;
  --ok: #00a980;
  --err: #f23030;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.wrap { max-width: 560px; margin: 0; padding: 2px 2px 4px; }
h1 { font-size: 21px; line-height: 1.15; margin: 0 0 10px; font-weight: 700; }
.lead { color: var(--text-2); margin: 0 0 20px; font-size: 15px; }
label.f { display: block; margin: 0 0 8px; }
.lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lbl i { color: var(--err); font-style: normal; }
input[type=text], input[type=tel], textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg-2);
  border: 1px solid transparent; border-radius: 6px; padding: 11px 14px; outline: none; height: 46px;
  transition: border-color .15s, background .15s; }
input:focus, textarea:focus { border-color: var(--text); background: var(--bg); }
textarea { resize: none; overflow-y: auto; line-height: 22px; display: block; }
::placeholder { color: rgba(28,28,28,.45); }
.bad input, .bad textarea { border-color: var(--err); }
.hint { display: none; color: var(--err); font-size: 13px; margin-top: 4px; }
.bad .hint { display: none; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 44px; padding: 4px 8px; border-radius: 12px; line-height: 1.15; background: var(--bg-2);
  border: 1px solid transparent; cursor: pointer; font-size: 15px; font-weight: 600; user-select: none; }
.seg input:checked + span { background: var(--accent); color: #fff; }
.seg input:focus-visible + span { border-color: var(--text); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.3; color: var(--text-2); margin: 10px 0 10px; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.consent a { color: var(--text); }
.bad.consent { color: var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button { width: 100%; min-height: 48px; border: 0; border-radius: 16px; background: var(--accent); color: #fff;
  font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
button[disabled] { opacity: .5; cursor: default; }
.msg { margin-top: 6px; font-size: 13px; color: var(--err); }
.msg:empty { display: none; }
button.err { background: var(--err); }
.done { display: none; text-align: center; padding: 48px 8px; }
.done .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--ok); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 30px; margin-bottom: 14px; }
.done h2 { margin: 0 0 6px; font-size: 22px; }
.done p { margin: 0; color: var(--text-2); }
.sent form, .sent .head { display: none; }
.sent .done { display: block; }
.rs { margin: 0 0 8px; }
