:root {
  --ink: #0d1b2a;
  --muted: #627080;
  --paper: #f3f5f2;
  --white: #fff;
  --line: #dbe1dc;
  --blue: #155eef;
  --blue-dark: #0b48c9;
  --green: #138a55;
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.topbar, main { width: min(760px, calc(100% - 40px)); margin: 0 auto; }
.topbar {
  height: 78px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: .12em; font-weight: 750; }
.brand b { color: var(--blue); }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: white; background: var(--ink); border-radius: 9px; font: 21px Georgia, serif; }
.login-link { color: var(--blue); font-size: 13px; font-weight: 700; }
.hero { padding: 66px 0 30px; }
.eyebrow { margin: 0 0 12px; color: var(--blue); font-size: 11px; letter-spacing: .16em; font-weight: 800; }
h1 { margin: 0; font-size: clamp(37px, 7vw, 56px); letter-spacing: -.045em; }
.hero > p:last-child { max-width: 620px; margin: 15px 0 0; color: var(--muted); line-height: 1.7; }
.card { margin-bottom: 70px; padding: 30px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 15px 45px rgba(13,27,42,.05); }
.compact { max-width: 580px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; margin-top: 19px; font-size: 12px; font-weight: 750; }
.form-grid label { margin-top: 0; }
input, textarea, select {
  width: 100%; margin-top: 8px; padding: 12px 13px; color: var(--ink);
  background: #fbfcfa; border: 1px solid var(--line); border-radius: 9px; outline: none;
}
textarea { min-height: 112px; resize: vertical; line-height: 1.6; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,94,239,.1); }
label small, .privacy { display: block; margin-top: 7px; color: var(--muted); font-weight: 400; line-height: 1.5; }
.inline-control { display: grid; grid-template-columns: 1fr auto; gap: 9px; align-items: end; }
button, .button-link { border: 0; border-radius: 9px; padding: 12px 17px; font-size: 13px; font-weight: 750; }
.primary { color: white; background: var(--blue); }
.primary:hover { background: var(--blue-dark); }
.secondary { height: 44px; color: var(--blue); background: #edf3ff; }
button:disabled { opacity: .55; cursor: wait; }
.submit { width: 100%; margin-top: 25px; padding: 14px; }
fieldset { margin: 22px 0 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
legend { padding: 0 8px; color: var(--muted); font-size: 12px; font-weight: 750; }
.check { display: flex; gap: 10px; align-items: start; margin: 8px 0 14px; }
.check input { width: 17px; height: 17px; margin: 2px 0 0; }
.check b { display: block; }
.check small { margin-top: 3px; }
.fixed-resource { margin: 7px 0 0 27px; color: var(--muted); font-size: 12px; }
.privacy { margin-bottom: 0; text-align: center; }
.result { padding: 100px 0; text-align: center; }
.result-mark { width: 62px; height: 62px; margin: 0 auto 23px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 50%; font-size: 30px; }
.result p { max-width: 560px; margin: 18px auto 30px; color: var(--muted); line-height: 1.7; white-space: pre-line; }
.button-link { display: inline-block; }
.toast { position: fixed; right: 24px; bottom: 24px; max-width: 460px; padding: 14px 18px; color: white; background: var(--ink); border-radius: 10px; box-shadow: 0 16px 45px rgba(13,27,42,.24); font-size: 13px; line-height: 1.5; }
.toast.error { background: #8f2525; }
@media (max-width: 640px) {
  .topbar, main { width: min(100% - 28px, 760px); }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .form-grid label { margin-top: 19px; }
  .card { padding: 22px; }
  .inline-control { grid-template-columns: 1fr; }
  .secondary { width: 100%; }
}
