:root {
  --bg: #14110f;
  --surface: #1e1915;
  --line: #3a3029;
  --text: #f3ece4;
  --muted: #b9ab9c;
  --accent: #ff8a2a;
  --on-accent: #1a1005;
  --error: #ff9b8f;
  --ok: #9be28a;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top-in { max-width: 960px; margin: 0 auto; padding: 14px 16px; }
.brand { color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: .02em; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px 48px; }
#product, #not-found { max-width: 520px; margin: 0 auto; }
.shop-title { font-size: 24px; margin: 24px 0 16px; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.grid li { display: flex; }
.card { display: block; width: 100%; color: var(--text); text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.card:hover { border-color: var(--accent); }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 35%; }
.card-title { display: block; padding: 12px 14px 2px; font-weight: 700; }
.card-price { display: block; padding: 0 14px 14px; color: var(--accent); font-weight: 700; }
.card-title:last-child { padding-bottom: 14px; }
.crumb { margin: 16px 0 0; font-size: 14px; }
.crumb a, #not-found a { color: var(--muted); }
.price { margin: 0 0 8px; color: var(--accent); font-size: 22px; font-weight: 800; }
.hero { display: block; width: 100%; height: auto; margin: 12px 0 0; border-radius: 6px; }
@media (max-width: 520px) {
  .hero { width: calc(100% + 32px); margin: 0 -16px; border-radius: 0; }
}
h1 { font-size: 28px; line-height: 1.15; margin: 20px 0 6px; }
h2 { font-size: 20px; margin: 0 0 4px; }
.tagline { margin: 0 0 12px; color: var(--muted); font-weight: 600; }
.points { margin: 0 0 24px; padding-left: 20px; }
.points li { margin-bottom: 4px; }
.btn {
  display: block; width: 100%; min-height: 52px; padding: 14px 18px;
  border: 0; border-radius: 6px; cursor: pointer;
  background: var(--accent); color: var(--on-accent);
  font-family: inherit; font-size: 18px; font-weight: 700; line-height: 1.2;
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .6; cursor: default; }
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.order { margin-top: 24px; padding: 20px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.order label { display: block; margin: 14px 0 4px; font-weight: 600; }
.order input {
  display: block; width: 100%; min-height: 48px; padding: 10px 12px;
  background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 4px;
  font: inherit; font-size: 16px;
}
.hint { margin: 0; color: var(--muted); }
.fine { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.order .btn { margin-top: 20px; }
.msg { margin: 16px 0 0; padding: 10px 12px; border-radius: 4px; border: 1px solid var(--line); }
.msg.is-error { color: var(--error); border-color: var(--error); }
.done { margin: 24px 0 0; padding: 16px; border: 1px solid var(--ok); border-radius: 6px; color: var(--ok); font-weight: 600; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }
