:root {
  --bg: #f3efe6;
  --paper: #fffdf8;
  --ink: #1c1915;
  --muted: #4a453c;
  --line: #ddd4c6;
  --green: #0c5c49;
  --green-2: #08483a;
  --green-soft: #e7f3ee;
  --rust: #7a3418;
  --danger: #8d2b2b;
  --danger-bg: #f8e8e4;
  --warn-bg: #f8efd8;
  --warn-ink: #5c4310;
  --shadow: 0 1px 0 rgba(28, 25, 21, 0.04);
  --max: 1080px;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: var(--green-2); }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 650; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.7rem, 4.6vw, 3.25rem); margin: 0 0 12px; overflow-wrap: break-word; }
h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin: 0 0 8px; }
h3 { font-size: 1.25rem; margin: 0 0 8px; }
p { margin: 0 0 12px; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 14px;
  z-index: 20;
  border-radius: 8px;
}
.skip:focus { top: 12px; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }
.top {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.brand span { min-width: 0; }
.brand small { display: block; font-weight: 400; color: var(--muted); font-size: 0.82rem; }
.mark {
  width: 36px;
  height: 36px;
  flex: none;
}
.nav-toggle {
  width: 48px;
  height: 48px;
  flex: none;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
}
.bars, .bars:before, .bars:after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin: 0 auto;
  position: relative;
}
.bars:before, .bars:after { content: ""; position: absolute; left: 0; }
.bars:before { top: -6px; }
.bars:after { top: 6px; }
.nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0 0 16px;
}
.nav.is-open { display: flex; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 4px;
  font-weight: 600;
}
.notice {
  background: var(--green);
  color: #f4faf7;
}
.notice .wrap { padding: 14px 0; }
.notice p { margin: 0; font-size: 0.98rem; }
.notice a { color: #f4faf7; }
.hero { padding: 36px 0 12px; }
.hero-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.hero-grid > * { min-width: 0; }
.kicker {
  margin: 0 0 8px;
  color: var(--rust);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lead { font-size: 1.08rem; max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.hero-photo {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.hero-photo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #ece7de; }
.caption { margin: 0; padding: 10px 14px 14px; color: var(--muted); font-size: 0.92rem; }
.btn, .btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid var(--green);
  touch-action: manipulation;
}
.btn { background: var(--green); color: #f4faf7; }
.btn:hover { background: var(--green-2); }
.btn-line { background: transparent; color: var(--green-2); }
.btn-line:hover { background: var(--green-soft); }
.btn:focus-visible, .btn-line:focus-visible, .nav-toggle:focus-visible, summary:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}
.block { padding: 36px 0; }
.sec-head { max-width: 68ch; margin-bottom: 20px; }
.sec-head p { color: var(--muted); }
.coins { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.coins li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px 6px 6px;
  font-weight: 600;
  font-size: 0.95rem;
}
.coins img { width: 28px; height: 28px; display: block; }
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.card-photo { background: #ece7de; aspect-ratio: 16 / 9; }
.card-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.price {
  font-variant-numeric: tabular-nums;
  color: var(--rust);
  font-weight: 700;
  font-size: 1.35rem;
  margin: 0;
}
.card ul { margin: 0; padding-left: 18px; }
.card li { margin: 4px 0; }
.card .btn { margin-top: auto; align-self: flex-start; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 0.95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.82rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); }
td:first-child { font-weight: 700; }
.hint { color: var(--muted); font-size: 0.92rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.steps strong { display: block; font-family: var(--serif); font-size: 1.15rem; margin-bottom: 4px; }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ticks li {
  background: var(--paper);
  border-left: 4px solid var(--green);
  padding: 12px 14px;
  border-radius: 0 10px 10px 0;
}
.faq { display: grid; gap: 8px; }
details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px 14px;
}
summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }
details p { color: var(--muted); }
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 0.95rem; }
.foot a { color: var(--muted); }

.layout { display: grid; gap: 20px; padding: 28px 0 48px; grid-template-columns: minmax(0, 1fr); }
.layout > * { min-width: 0; }
.layout .side { order: -1; }
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.panel h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.fields { display: grid; gap: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.req { color: var(--rust); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #c9c0b2;
  border-radius: 8px;
  padding: 10px 12px;
  font: 400 1rem/1.4 var(--sans);
  color: var(--ink);
  background: #fff;
}
textarea { min-height: 88px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green);
}
.help { color: var(--muted); font-size: 0.92rem; margin: 6px 0 0; }
.err { color: var(--danger); font-size: 0.92rem; margin: 6px 0 0; min-height: 0; }
.field.is-bad input, .field.is-bad select, .field.is-bad textarea { border-color: var(--danger); background: #fff8f6; }
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 600;
}
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.methods { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.methods legend { font-weight: 700; margin-bottom: 8px; }
.method {
  display: grid;
  grid-template-columns: 22px 28px 1fr;
  column-gap: 12px;
  row-gap: 0;
  align-items: center;
  min-height: 56px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.method input, .method img { grid-row: 1 / span 2; }
.method img { width: 28px; height: 28px; }
.method small { grid-column: 3; color: var(--muted); }
.method:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.method:has(input:focus-visible) { outline: 3px solid var(--green); outline-offset: 2px; }
.side-price { font-variant-numeric: tabular-nums; font-size: 1.6rem; font-weight: 700; color: var(--rust); margin: 4px 0; }
.split { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.banner {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 14px;
}
.banner.bad { background: var(--danger-bg); color: var(--danger); }
.pay-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.amount {
  font-variant-numeric: tabular-nums;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 8px 0;
}
.addr-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.addr-row input { flex: 1; min-width: 0; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.92rem; }
#ship-block { white-space: pre-line; }
.qr-frame {
  width: 236px;
  height: 236px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin: 12px 0;
}
.qr-frame canvas { width: 220px; height: 220px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
#pay-panel[hidden], .err:empty { display: none; }

@media (min-width: 800px) {
  .nav-toggle { display: none; }
  .nav { display: flex; flex-direction: row; align-items: center; gap: 18px; padding: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); align-items: start; }
  .layout .side { order: 0; position: sticky; top: 16px; }
}
@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
