:root {
  --ink: #1b1714;
  --muted: #6d645b;
  --paper: #f3eee6;
  --card: #fffdf9;
  --line: #e3d9cc;
  --green: #0e6b52;
  --green-deep: #0a4a39;
  --sand: #f7f1e7;
  --copper: #a85b32;
  --shadow: 0 18px 50px rgba(48, 32, 16, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 90% -10%, #efe2cf 0%, transparent 55%),
    linear-gradient(180deg, #f7f3ec 0%, var(--paper) 40%, #efe8dc 100%);
  font-family: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 7vw 10px;
}
.brand {
  color: var(--ink);
  text-decoration: none;
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: 1.55rem;
  letter-spacing: 0.08em;
}
.brand span { color: var(--green); }
.top nav { display: flex; gap: 18px; }
.top nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}
.top nav a:hover { color: var(--ink); }

.testbar {
  margin: 8px 7vw 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff6df;
  color: #6a4b12;
  border: 1px solid #ead7a4;
  font-size: 0.92rem;
}

main { padding: 28px 7vw 64px; }

.hero { max-width: 760px; margin-bottom: 28px; }
.kicker {
  margin: 0 0 8px;
  color: var(--copper);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
}
h1 {
  margin: 0 0 12px;
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.12;
}
.lede { margin: 0; color: var(--muted); font-size: 1.05rem; max-width: 46rem; }

.shop {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 26px;
}
.panel h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}
.hint { margin: 0 0 16px; color: var(--muted); font-size: 0.92rem; }

.amounts, .mults {
  display: grid;
  gap: 12px;
}
.amounts { grid-template-columns: repeat(5, 1fr); }
.mults { grid-template-columns: repeat(3, 1fr); margin-bottom: 18px; }

.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 92px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--sand);
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, transform .15s, background .15s;
}
.choice strong { font-family: Georgia, Palatino, serif; font-size: 1.45rem; font-weight: 500; }
.choice small { color: var(--muted); margin-top: 4px; }
.choice input:checked + span {
  border-color: var(--green);
  background: #f3faf6;
  box-shadow: inset 0 0 0 1px var(--green);
}
.choice input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.choice:hover span { transform: translateY(-2px); }

label.field { display: block; margin: 14px 0; }
label.field span { display: block; margin-bottom: 6px; font-size: 0.9rem; }
input[type="text"], input[type="email"], textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
}
textarea { min-height: 96px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--muted); }
.check input { margin-top: 3px; }

.summary { position: sticky; top: 18px; }
.summary .total {
  margin: 18px 0;
  padding: 18px;
  border-radius: 18px;
  background: var(--green-deep);
  color: #f6f3ec;
}
.summary .total p { margin: 0; opacity: .75; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.summary .total strong {
  display: block;
  margin-top: 6px;
  font-family: Georgia, Palatino, serif;
  font-size: 2.6rem;
  font-weight: 500;
}
.lines { list-style: none; margin: 0; padding: 0; }
.lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.lines b { color: var(--ink); font-weight: 600; }

button.pay {
  width: 100%;
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  padding: 16px 18px;
  background: var(--green);
  color: white;
  font: inherit;
  font-size: 1.05rem;
  cursor: pointer;
}
button.pay:hover { background: var(--green-deep); }
button.pay:disabled { opacity: .55; cursor: not-allowed; }

.alert {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff1ee;
  color: #8a2e22;
  border: 1px solid #f0c8c0;
}
.okbox {
  padding: 8px 0 0;
}
.ref {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--sand);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

.prose { max-width: 760px; }
.prose h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.prose h2 { margin-top: 1.6rem; font-size: 1.15rem; }
.prose p, .prose li { color: #3d362f; line-height: 1.6; }

.foot {
  padding: 10px 7vw 36px;
  color: var(--muted);
  font-size: 0.9rem;
}
.foot a { color: var(--green-deep); }
.fine { font-size: 0.8rem; }

@media (max-width: 980px) {
  .shop, .amounts { grid-template-columns: 1fr 1fr; }
  .shop { grid-template-columns: 1fr; }
  .amounts { grid-template-columns: repeat(3, 1fr); }
  .summary { position: static; }
  .top { padding-inline: 20px; }
  .testbar, main, .foot { margin-left: 20px; margin-right: 20px; }
  main, .foot { padding-inline: 0; }
}
@media (max-width: 640px) {
  .amounts, .mults { grid-template-columns: 1fr 1fr; }
  .top { flex-direction: column; align-items: flex-start; }
}
