@font-face { font-family: Archivo; src: url(/fonts/archivo-latin.woff2) format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
:root {
  --blue: #1a3bd2; --blue-dark: #142ea6; --ink: #0a0a0a; --muted: #4a4d57; --line: #dfe1e8;
  --pale: #f2f2f4; --white: #ffffff; --good: #127a3e; --good-bg: #e8f5ed; --bad: #d1242f; --bad-bg: #fdeef0; --wait-bg: #eef1fd;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 17px/1.45 Archivo, system-ui, sans-serif; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; max-width: 560px; margin: 0 auto; }
.logo img { display: block; }
main { max-width: 560px; margin: 0 auto; padding: 4px 16px 32px; min-height: 60vh; }
.foot { max-width: 560px; margin: 0 auto; padding: 16px 16px 40px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.foot p { margin: 0 0 8px; }
h1 { font-size: 34px; line-height: 1.08; font-weight: 700; font-stretch: 85%; margin: 18px 0 12px; letter-spacing: -0.01em; }
h2 { font-size: 24px; line-height: 1.15; font-weight: 700; font-stretch: 90%; margin: 14px 0 8px; }
h3 { font-size: 18px; font-weight: 600; margin: 0 0 4px; }
p { margin: 0 0 12px; }
.lead { font-size: 19px; color: var(--muted); }
.small { font-size: 14px; color: var(--muted); }
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 14px 18px; border: 0; border-radius: 12px;
  background: var(--blue); color: var(--white); font: 600 18px/1.2 Archivo, system-ui, sans-serif; cursor: pointer; text-decoration: none; transition: background 150ms; }
.btn:active { background: var(--blue-dark); }
.btn[disabled] { background: #9aa6e6; cursor: default; }
.btn.ghost { background: var(--pale); color: var(--ink); }
.btn svg { width: 22px; height: 22px; flex: none; }
.link { background: none; border: 0; color: var(--blue); font: 500 15px Archivo, system-ui, sans-serif; padding: 8px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.stack > * + * { margin-top: 12px; }
.steps { list-style: none; padding: 0; margin: 20px 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--pale); color: var(--blue); font-weight: 700; display: grid; place-items: center; }
.steps b { display: block; }
.deadline { background: var(--wait-bg); border-radius: 10px; padding: 10px 14px; font-size: 15px; margin: 14px 0; }
label { display: block; font-weight: 600; font-size: 15px; margin: 14px 0 6px; }
input[type=text], input[type=tel], input[type=password], input[inputmode] { width: 100%; min-height: 54px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: 500 19px Archivo, system-ui, sans-serif; color: var(--ink); background: var(--white); }
input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26, 59, 210, 0.15); }
.err { color: var(--bad); font-size: 15px; min-height: 20px; margin: 10px 0; }
.choices { display: grid; gap: 10px; margin: 16px 0; }
.choice { min-height: 56px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); font: 500 18px Archivo, system-ui, sans-serif; color: var(--ink); text-align: left; padding: 14px 16px; cursor: pointer; }
.choice:active, .choice.on { border-color: var(--blue); background: #eef1fd; }
.progress { height: 6px; background: var(--pale); border-radius: 3px; overflow: hidden; margin: 8px 0 4px; }
.progress i { display: block; height: 100%; background: var(--blue); transition: width 160ms; }
.doc { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; margin: 10px 0; background: var(--white); width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.doc .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--pale); color: var(--muted); }
.doc .ic svg { width: 22px; height: 22px; }
.doc.ok { border-color: #b7dfc6; } .doc.ok .ic { background: var(--good-bg); color: var(--good); }
.doc.no { border-color: #f3b8b2; } .doc.no .ic { background: var(--bad-bg); color: var(--bad); }
.doc small { display: block; color: var(--muted); font-size: 14px; }
.chev { color: var(--muted); display: grid; } .chev svg { width: 20px; height: 20px; }
.pages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.pg { position: relative; border-radius: 10px; overflow: hidden; background: var(--pale); aspect-ratio: 3 / 4; }
.pg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg span { position: absolute; left: 6px; bottom: 6px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--white); }
.pg.pass span { color: var(--good); } .pg.fail span { color: var(--bad); }
.result { border-radius: 12px; padding: 14px 16px; margin: 12px 0; }
.result.pass { background: var(--good-bg); color: #0b4f28; }
.result.fail { background: var(--bad-bg); color: #a3121f; }
.result.wait { background: var(--wait-bg); }
.result ul { margin: 6px 0 0; padding-left: 20px; }
.sheet { border: 1.5px dashed #b9c1ec; border-radius: 12px; padding: 14px 16px; margin: 12px 0; background: #f7f8fe; }
.sheet dt { font-size: 13px; color: var(--muted); margin-top: 10px; }
.sheet dd { margin: 2px 0 0; font-size: 20px; font-weight: 600; letter-spacing: 0.04em; }
.copy { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 8px 0; }
.copy b { font-size: 13px; color: var(--muted); font-weight: 500; display: block; }
.copy span { font-size: 18px; font-weight: 600; word-break: break-all; }
.copy button { border: 0; background: var(--pale); border-radius: 8px; padding: 10px 12px; font: 600 14px Archivo, system-ui, sans-serif; color: var(--blue); cursor: pointer; }
.guide { list-style: none; padding: 0; margin: 0; counter-reset: g; }
.guide > li { counter-increment: g; padding: 16px 0; border-top: 1px solid var(--line); }
.guide > li > h3::before { content: counter(g) '. '; color: var(--blue); }
.mail { display: block; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--line); background: none; padding: 12px 0; font: inherit; color: inherit; cursor: pointer; }
.mail b { display: block; }
.mail small { color: var(--muted); }
.mailbody { white-space: pre-wrap; word-break: break-word; background: var(--pale); border-radius: 10px; padding: 14px; font-size: 15px; }
.spin { width: 22px; height: 22px; border: 3px solid rgba(255,255,255,0.4); border-top-color: var(--white); border-radius: 50%; animation: r 0.8s linear infinite; }
.spin.dark { border-color: rgba(26,59,210,0.2); border-top-color: var(--blue); }
@keyframes r { to { transform: rotate(360deg); } }
.tag { display: inline-block; font-size: 13px; font-weight: 600; color: var(--good); margin-right: 6px; }
.back { margin: 4px 0 0; }
.share { border: 1.5px solid #c9d1f5; background: #f7f8fe; border-radius: 12px; padding: 16px; margin: 18px 0; }
.share h3 { margin-bottom: 6px; }
.share .btn { margin-top: 10px; }
