:root {
  --bg: #f6f7f4; --surface: #fff; --surface-2: #f1f3ee; --border: #e3e6dd; --ink: #111a12; --ink-2: #4a5547; --ink-3: #87917f;
  --accent: #16a34a; --accent-ink: #fff; --accent-soft: rgba(22, 163, 74, .1); --warn: #b45309; --warn-soft: rgba(245, 158, 11, .14);
  --bad: #b91c1c; --bad-soft: rgba(239, 68, 68, .1); --shadow: 0 1px 2px rgba(17, 26, 18, .04), 0 8px 28px rgba(17, 26, 18, .06);
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 'Plus Jakarta Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.top { border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { font-weight: 800; letter-spacing: -.02em; text-decoration: none; font-size: 17px; }
.pay-chip { font-size: 12.5px; color: var(--ink-2); border: 1px solid var(--border); border-radius: 99px; padding: 4px 11px; white-space: nowrap; }
.hero { padding: 48px 0 28px; }
.hero h1 { font-size: clamp(28px, 6vw, 44px); line-height: 1.1; letter-spacing: -.035em; margin: 0 0 10px; max-width: 16ch; }
.hero p { color: var(--ink-2); margin: 0; max-width: 54ch; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); padding-bottom: 48px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); }
.prod { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; transition: transform .15s, border-color .15s; }
.prod-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 22px 22px; flex: 1; }
.cover { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-2); }
.cover-lg { border-radius: 18px; margin: 14px 0 18px; border: 1px solid var(--border); }
.tag.free { color: #b45309; background: rgba(245, 158, 11, .16); }
.prod:hover { transform: translateY(-2px); border-color: var(--accent); }
.prod h3 { margin: 0; font-size: 18px; letter-spacing: -.015em; line-height: 1.3; }
.prod p { margin: 0; color: var(--ink-2); font-size: 14px; flex: 1; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border-radius: 99px; padding: 3px 10px; width: fit-content; }
.price { font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.detail { display: grid; gap: 24px; grid-template-columns: 1fr; padding: 32px 0 56px; align-items: start; }
@media (min-width: 820px) { .detail { grid-template-columns: 1.4fr 1fr; } .buy { position: sticky; top: 84px; } }
.detail h1 { font-size: clamp(26px, 5vw, 36px); letter-spacing: -.03em; line-height: 1.15; margin: 10px 0 8px; }
.lead { color: var(--ink-2); font-size: 16.5px; margin: 0 0 18px; }
.desc { color: var(--ink); }
.desc p { margin: 0 0 12px; } .desc ul { margin: 0 0 14px; padding-left: 20px; } .desc li { margin: 4px 0; }
.buy { padding: 22px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; }
.field small { font-weight: 400; color: var(--ink-3); }
.input { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--ink); width: 100%; }
.input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.btn { font: inherit; font-weight: 700; border: 0; border-radius: 12px; padding: 13px 18px; cursor: pointer; background: var(--surface-2); color: var(--ink); border: 1px solid var(--border); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-block { width: 100%; }
.err { color: var(--bad); font-size: 13.5px; min-height: 1em; margin: 0; }
.muted { color: var(--ink-3); font-size: 13px; }
.order { max-width: 460px; margin: 28px auto 56px; padding: 24px; text-align: center; display: grid; gap: 14px; }
.order h1 { font-size: 22px; letter-spacing: -.02em; margin: 0; }
.qr { background: #fff; border-radius: 16px; padding: 10px; width: min(300px, 100%); margin: 0 auto; display: block; }
.amount { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.amount-row { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.note { background: var(--warn-soft); color: var(--warn); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; text-align: left; }
.steps { text-align: left; margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 14px; }
.status { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; font-size: 13px; border-radius: 99px; padding: 5px 12px; margin: 0 auto; background: var(--accent-soft); color: var(--accent); }
.status.wait { background: var(--warn-soft); color: var(--warn); } .status.bad { background: var(--bad-soft); color: var(--bad); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.big-ok { font-size: 54px; line-height: 1; }
.empty { padding: 60px 0; text-align: center; color: var(--ink-2); }
.loading { height: 40vh; }
.resume { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 14px; font-size: 14px; }
.foot { color: var(--ink-3); font-size: 12.5px; padding-bottom: 32px; }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } .prod { transition: none; } }
.price .was { font-size: .62em; font-weight: 600; color: #94a3b8; letter-spacing: 0; margin-right: 2px; }
.price .save { display: inline-block; vertical-align: middle; font-size: 11.5px; font-weight: 800; letter-spacing: 0; color: #fff; background: #dc2626; border-radius: 6px; padding: 2px 6px; }
/* catalog category filter + affiliate cards */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border); background: var(--surface); border-radius: 99px; padding: 8px 15px; font: 600 13.5px inherit; color: var(--ink-2); cursor: pointer; }
.chips button .n { font-size: 11.5px; font-weight: 800; background: var(--surface-2); border-radius: 99px; padding: 1px 7px; color: var(--ink-3); }
.chips button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips button.on .n { background: rgba(255, 255, 255, .18); color: #fff; }
.tag.aff { color: #c2410c; background: rgba(249, 115, 22, .13); }
.cover-ph { display: grid; place-items: center; font-size: 64px; }
.price-txt { font-size: 17px; }
.disc { color: var(--ink-3); font-size: 12.5px; margin: -28px 0 40px; max-width: 62ch; }

/* highlighted product banner */
.feat { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); overflow: hidden; color: inherit; text-decoration: none; margin: 0 0 18px; border: 2px solid #f59e0b; transition: transform .15s; }
.feat:hover { transform: translateY(-2px); }
.feat .cover { height: 100%; }
.feat-body { padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.feat-body h2 { margin: 0; font-size: clamp(21px, 3vw, 28px); line-height: 1.2; letter-spacing: -.02em; }
.feat-body p { margin: 0; color: var(--ink-2); }
.feat-body .price { font-size: 24px; }
.feat-body .btn { margin-top: auto; }
.tag.hot { color: #9a3412; background: rgba(245, 158, 11, .2); }
@media (max-width: 720px) { .feat { grid-template-columns: 1fr; } .feat-body { padding: 18px; } }
