:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #1b1a17;
  --muted: #5d5a53;
  --line: #e7e1d6;
  --field-line: #8c857a;
  --accent: #1f8a5b;
  --accent-text: var(--accent);
  --accent-ink: #ffffff;
  --ok: #1f7a4d;
  --err: #b42318;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(27, 26, 23, .06), 0 8px 28px rgba(27, 26, 23, .07);
  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131210;
    --surface: #1c1b18;
    --ink: #f3efe7;
    --muted: #b3ada2;
    --line: #2f2d28;
    --field-line: #77716a;
    --ok: #5fd39a;
    --err: #ff8a80;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 28px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--body);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { font: 700 18px/1 var(--display); text-decoration: none; letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: 15px; }
.pill { font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }

/* Type */
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(32px, 5.2vw, 56px); font-weight: 700; }
h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; margin-bottom: 14px; }
h3 { font-size: 20px; font-weight: 700; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 46ch; margin: 16px 0 0; }
.eyebrow { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-text); margin: 0 0 12px; }

/* Index */
.hero { padding: 56px 0 28px; }
.note { margin-top: 20px; display: inline-flex; gap: 10px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 14px; color: var(--muted); max-width: 60ch; }
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 12px 0 64px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 20px; text-decoration: none; box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease;
}
.card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 5px; border-radius: var(--radius) var(--radius) 0 0; background: var(--accent); }
.card:hover { transform: translateY(-2px); border-color: var(--accent); }
.card { --accent-text: var(--accent-l); }
@media (prefers-color-scheme: dark) { .card { --accent-text: var(--accent-d); } }
.card-title { font-size: 20px; margin-bottom: 0; }
#reserve { scroll-margin-top: 80px; }
.card .kind { font-size: 13px; color: var(--muted); margin: 0; }
.card p.tag { margin: 0; color: var(--ink); }
.card .row { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; }
.price { font: 700 20px/1 var(--display); }
.go { font-weight: 600; font-size: 14px; color: var(--accent-text); }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }

/* Product */
.kit { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 36px 0 40px; }
@media (min-width: 960px) { .kit { grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; padding-top: 56px; } }
.kit-hero .who { margin-top: 18px; font-size: 15px; color: var(--muted); }
.kit-hero .who strong { color: var(--ink); }
.reserve {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); align-self: start;
}
@media (min-width: 960px) { .reserve { position: sticky; top: 84px; grid-row: span 2; } }
.reserve .price-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.reserve .price { font-size: 34px; }
.reserve .fmt { font-size: 14px; color: var(--muted); }
.status-chip { display: inline-block; margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--ink); }
form { margin-top: 16px; display: grid; gap: 12px; }
label.f { font-size: 14px; font-weight: 600; display: grid; gap: 6px; }
input[type=email] {
  width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; border-radius: 12px;
  border: 1.5px solid var(--field-line); background: var(--bg); color: var(--ink);
}
input[type=email]:focus { border-color: var(--accent-text); }
input[aria-invalid=true] { border-color: var(--err); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.45; }
.consent input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); flex: none; }
.btn {
  appearance: none; border: 0; cursor: pointer; width: 100%; min-height: 50px; padding: 12px 18px;
  border-radius: 12px; font: 700 16px/1.2 var(--body); background: var(--accent); color: var(--accent-ink);
  text-decoration: none; display: inline-grid; place-items: center;
}
.btn:hover { filter: brightness(1.06); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); min-height: 46px; font-weight: 600; }
.small { font-size: 13px; color: var(--muted); margin: 0; }
.msg { font-size: 14px; min-height: 1.2em; margin: 0; }
.msg.ok { color: var(--ok); font-weight: 600; }
.msg.err { color: var(--err); font-weight: 600; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.section { padding: 8px 0 24px; }
.section + .section { border-top: 1px solid var(--line); padding-top: 28px; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.list li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.list .ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; font-weight: 700; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-text); }
.list.pain .ic { background: color-mix(in srgb, var(--err) 12%, transparent); color: var(--err); }
.fit { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .fit { grid-template-columns: 1fr 1fr; } }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.box h3 { font-size: 16px; margin-bottom: 10px; font-family: var(--body); letter-spacing: 0; }
.box ul { margin: 0; padding-left: 18px; }
.maker { display: flex; gap: 14px; align-items: center; }
.avatar { width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 700 18px/1 var(--display); background: var(--ink); color: var(--bg); }
details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 14px 16px; }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 20px; line-height: 1; color: var(--accent-text); flex: none; }
details[open] summary::after { content: '\2212'; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Sticky mobile CTA */
.stick { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: center; justify-content: space-between; transform: translateY(110%); transition: transform .2s ease; }
.stick { visibility: hidden; }
.stick.show { transform: none; visibility: visible; }
.stick .btn { width: auto; min-height: 44px; padding: 10px 18px; }
@media (min-width: 960px) { .stick { display: none; } }

/* Simple pages */
.page { padding: 44px 0 64px; max-width: 760px; }
.page h2 { margin-top: 28px; font-size: 22px; }
.page p, .page li { color: var(--muted); }

/* Admin */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.kpi b { display: block; font: 700 26px/1.1 var(--display); }
.kpi span { font-size: 13px; color: var(--muted); }
.inline { display: flex; gap: 10px; flex-wrap: wrap; }
.inline input { flex: 1 1 220px; }
.inline .btn { width: auto; }
.linkbtn { background: none; border: 0; color: var(--accent-text); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 26px 0 96px; font-size: 14px; color: var(--muted); }
@media (min-width: 960px) { .foot { padding-bottom: 32px; } }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
