:root {
  --red: #d92b3a;
  --red-dark: #b01e2c;
  --red-soft: rgba(217, 43, 58, .12);
  --ink: #15161a;
  --ink-2: #1e2026;
  --ink-3: #2a2d35;
  --line-dark: #33363f;
  --cream: #f7f3ee;
  --paper: #ffffff;
  --text: #1b1c20;
  --muted: #6c6f78;
  --line: #e6e1da;
  --green: #1f9d55;
  --amber: #e59b13;
  --blue: #2f6fdf;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(17, 18, 22, .08);
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); color: var(--text); background: var(--cream); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.serif { font-family: var(--serif); font-weight: 400; }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hidden { display: none !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 14px; border: 1px solid transparent;
  font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .08s, background .15s, box-shadow .15s;
}
.btn:active { transform: scale(.98); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(217, 43, 58, .3); }
.btn-red:hover { background: var(--red-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-light { background: #fff; border-color: var(--line); color: var(--text); }
.btn-light:hover { border-color: #cfc8bf; }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-green { background: var(--green); color: #fff; }
.btn-block { width: 100%; }
.btn-lg { min-height: 64px; font-size: 19px; border-radius: 16px; }
.btn svg { width: 22px; height: 22px; flex: none; }

.toast-wrap { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 999; display: grid; gap: 10px; }
.toast { background: var(--ink); color: #fff; padding: 16px 24px; border-radius: 14px; font-weight: 600; font-size: 16px; box-shadow: 0 16px 40px rgba(0,0,0,.25); animation: drop .25s ease; display: flex; gap: 12px; align-items: center; }
.toast.err { background: var(--red); }
.toast.ok::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #3ddc84; }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } }

.field { display: grid; gap: 7px; }
.field > span { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.input {
  width: 100%; min-height: 50px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line);
  background: #fff; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea.input { padding: 12px 16px; min-height: 80px; resize: vertical; }
.input:focus { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
