:root {
  --bg: #f3f5f8; --card: #ffffff; --ink: #14181f; --muted: #5b6575; --line: #dde2ea;
  --brand: #1e5eff; --brand-ink: #ffffff; --ok: #12805c; --ok-bg: #e3f6ee; --warn: #a15c00; --warn-bg: #fff3dc;
  --bad: #c62828; --bad-bg: #fde8e8; --chip: #eef2f8; --radius: 14px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 2px 8px rgba(16,24,40,.06);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.4; -webkit-text-size-adjust: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid #7aa2ff; outline-offset: 2px; }
.hidden { display: none !important; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: .7em 1.1em; font-weight: 600; text-decoration: none; color: var(--ink); min-height: 44px; }
.btn:hover { background: #f7f9fc; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { background: #164ee0; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.danger { color: var(--bad); border-color: #f1c4c4; }
.btn.big { font-size: 1.15rem; padding: .9em 1.2em; min-height: 56px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
label { display: block; font-weight: 600; font-size: .92rem; margin: .7em 0 .3em; }
input[type=text], input[type=tel], input[type=password], input[type=number], textarea, select {
  width: 100%; border: 1px solid #c9d1dc; border-radius: 10px; padding: .65em .8em; background: #fff; min-height: 46px;
}
textarea { resize: vertical; min-height: 70px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.pill { display: inline-flex; align-items: center; gap: .4em; padding: .25em .7em; border-radius: 999px; font-size: .85rem; font-weight: 600; background: var(--chip); color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.dot { width: .6em; height: .6em; border-radius: 50%; background: currentColor; display: inline-block; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: #1d2430; color: #fff; padding: .8em 1.2em; border-radius: 12px; opacity: 0; pointer-events: none; transition: .2s; z-index: 9999; max-width: min(92vw, 560px); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--bad); }
.toast.success { background: var(--ok); }
/* login */
.login { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login .card { width: min(100%, 380px); padding: 28px 24px; text-align: center; }
.login h1 { margin: .2em 0 .1em; font-size: 1.5rem; }
.login input { text-align: center; font-size: 1.8rem; letter-spacing: .4em; padding: .4em; }
.login .err { color: var(--bad); min-height: 1.4em; margin: .6em 0 0; font-weight: 600; }
.logo { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 6px; display: block; }
/* order steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; }
.step { text-align: center; font-size: .74rem; color: var(--muted); padding-top: 8px; border-top: 4px solid var(--line); }
.step.done { border-top-color: var(--ok); color: var(--ink); }
.step b { display: block; font-size: .78rem; }
