:root {
  --bg: #fff8fb;
  --card: #ffffff;
  --text: #2a1420;
  --muted: #7a6170;
  --line: #f0dbe6;
  --primary: #c4166d;
  --fill: #d81b7a;
  --soft: #fce3ef;
  --danger: #c0392b;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a0f16;
    --card: #26161f;
    --text: #f7e9f0;
    --muted: #c3a8b6;
    --line: #3d2433;
    --primary: #ff8ec3;
    --fill: #d03c82;
    --soft: #48203f;
    --danger: #ff7b6b;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  padding: env(safe-area-inset-top) 0 calc(24px + env(safe-area-inset-bottom));
}
.top { padding: 14px 16px; text-align: center; }
.logo { font-weight: 800; font-size: 22px; color: var(--primary); letter-spacing: 0.5px; }
main { max-width: 480px; margin: 0 auto; padding: 0 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-bottom: 14px; }
.photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: var(--soft); display: block; }
h1 { font-size: 21px; margin: 14px 0 2px; }
h2 { font-size: 16px; margin: 0 0 10px; }
.muted { color: var(--muted); font-size: 14px; }
.center { text-align: center; }
.price { font-size: 22px; font-weight: 700; margin: 8px 0 0; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.row.total { font-weight: 700; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
label { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 5px; }
input[type=text], input[type=email], textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-height: 46px;
}
textarea { min-height: 70px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.pair { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-top: 12px; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--fill); }
.stepper { display: inline-flex; align-items: center; gap: 14px; }
.stepper button {
  width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line);
  background: var(--soft); color: var(--primary); font-size: 22px; font-weight: 700;
}
.pay {
  width: 100%; min-height: 52px; border: 0; border-radius: 26px; background: var(--fill); color: #fff;
  font: inherit; font-weight: 700; font-size: 17px; margin-top: 6px;
}
.pay:disabled { opacity: 0.55; }
.error { color: var(--danger); font-size: 14px; margin: 10px 0 0; min-height: 1em; }
.note { background: var(--soft); border-radius: 12px; padding: 12px; font-size: 14px; }
.big { font-size: 44px; text-align: center; margin: 6px 0 0; }
.store { display: block; text-align: center; margin-top: 12px; color: var(--primary); font-weight: 700; }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; min-width: 0; }
button.small {
  flex: none; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--soft); color: var(--primary); font: inherit; font-weight: 700; font-size: 15px;
}
button.small:disabled { opacity: 0.55; }
[hidden] { display: none !important; }
