:root {
  --bg: #f6f5fb;
  --surface: #ffffff;
  --surface-2: #f0eefa;
  --text: #17142b;
  --muted: #66627c;
  --line: #e6e3f1;
  --brand: #4f2bd9;
  --brand-2: #7b5cff;
  --brand-ink: #ffffff;
  --hot: #f0401f;
  --hot-bg: #fff0ec;
  --ok: #0a8150;
  --gold: #ffcf3f;
  --shadow: 0 1px 2px rgb(23 20 43 / 6%), 0 8px 24px rgb(23 20 43 / 6%);
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0c18;
    --surface: #18152a;
    --surface-2: #221e38;
    --text: #f2f0fb;
    --muted: #a6a1bf;
    --line: #2d2846;
    --brand: #8d72ff;
    --brand-2: #b19fff;
    --brand-ink: #120d2b;
    --hot: #ff6a4d;
    --hot-bg: #3a1b16;
    --ok: #46d494;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
svg { width: 1em; height: 1em; flex: none; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }

.sample { background: var(--gold); color: #2b2200; text-align: center; font-weight: 700; padding: 8px 16px; font-size: 14px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 16px; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.logo b { color: var(--brand); }
.logo-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--hot)); color: #fff; font-size: 22px; line-height: 1; }
.top-nav { display: flex; gap: 18px; margin-left: auto; font-size: 15px; font-weight: 500; }
.top-nav a { text-decoration: none; color: var(--muted); }
.top-nav a:hover { color: var(--text); }
.join { display: flex; gap: 8px; flex-wrap: wrap; }
.join a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; text-decoration: none; color: #fff; }
.join-tg { background: #229ed9; }
.join-wa { background: #1fa855; }

.refresh { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 999px; background: var(--text); color: var(--bg); box-shadow: var(--shadow); font-weight: 600; }
.refresh button { border: 0; border-radius: 999px; padding: 8px 14px; background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 700; cursor: pointer; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 44px 0 34px; background:
  radial-gradient(900px 300px at 10% -10%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
  radial-gradient(700px 300px at 100% 0%, color-mix(in srgb, var(--hot) 16%, transparent), transparent 70%); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero h1 { margin: 0; max-width: 820px; font-size: clamp(30px, 5.4vw, 54px); line-height: 1.05; letter-spacing: -0.035em; }
.hl { background: linear-gradient(90deg, var(--brand), var(--hot)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 18px; max-width: 680px; margin: 14px 0 0; }
.stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.stats div { display: flex; flex-direction: column; min-width: 120px; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.stats b { font-size: 26px; letter-spacing: -0.02em; }
.stats span { color: var(--muted); font-size: 13px; }
.hero-join { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; color: var(--muted); font-weight: 600; font-size: 14px; }

/* chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.chips a:hover { border-color: var(--brand); }
.chips a[aria-current] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.chips small { color: var(--muted); font-weight: 600; margin-left: 2px; }
.chips a[aria-current] small { color: inherit; opacity: .8; }

.section { margin: 22px 0 44px; }
.h2 { display: flex; align-items: center; gap: 8px; font-size: 22px; letter-spacing: -0.02em; margin: 0 0 14px; }
.h2 svg { color: var(--hot); }

/* toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.toolbar select, .search, .chk { height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 15px; }
.toolbar select { padding: 0 12px; }
.search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; padding: 0 14px; color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: inherit; }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.chk { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; cursor: pointer; }
.chk input { accent-color: var(--brand); width: 18px; height: 18px; }
.noresults { color: var(--muted); padding: 20px 0; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 240px); gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.rail .card { scroll-snap-align: start; }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-media { display: block; aspect-ratio: 1; background: #fff; text-decoration: none; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.ph { display: grid; place-items: center; width: 100%; height: 100%; aspect-ratio: 1; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 16%, var(--surface-2)), color-mix(in srgb, var(--hot) 14%, var(--surface-2))); }
.ph span { font-size: 64px; filter: saturate(1.1); }
.badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 8px; font-size: 13px; font-weight: 800; letter-spacing: -0.01em; }
.badge.off { background: var(--hot); color: #fff; }
.badge.bolt { background: var(--gold); color: #2b2200; }
.badge.big { position: absolute; top: 16px; left: 16px; font-size: 18px; padding: 6px 12px; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 14px; flex: 1; border-top: 1px solid var(--line); }
.card-title { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--brand); }
.prices { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.prices .now { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.prices s { color: var(--muted); font-size: 14px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 8px; min-height: 20px; font-size: 13px; color: var(--muted); }
.ship { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-weight: 700; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: auto; padding: 11px 16px; border-radius: 12px; border: 0; background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; transition: filter .15s; }
.btn:hover { filter: brightness(1.08); }
.btn-xl { width: 100%; padding: 16px 20px; font-size: 17px; border-radius: 14px; margin-top: 8px; }

.empty { text-align: center; padding: 56px 16px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); }
.empty h1, .empty h3 { margin: 6px 0; }
.empty p { color: var(--muted); max-width: 460px; margin: 8px auto; }
.empty-emoji { font-size: 44px; margin: 0; }

/* pages */
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; padding: 18px 0 0; font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.page-head { padding: 16px 0 0; }
.page-head h1 { margin: 0; font-size: clamp(26px, 4vw, 40px); letter-spacing: -0.03em; line-height: 1.1; }

.deal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin: 18px 0 36px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.deal-media { position: relative; border-radius: 16px; overflow: hidden; background: #fff; align-self: start; }
.deal-img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 24px; }
.ph.deal-img span { font-size: 120px; }
.deal-info h1 { margin: 0 0 14px; font-size: clamp(22px, 3vw, 30px); line-height: 1.2; letter-spacing: -0.02em; }
.prices.big .now { font-size: 40px; }
.prices.big s { font-size: 18px; }
.save { display: inline-block; margin: 8px 0 0; padding: 4px 10px; border-radius: 8px; background: var(--hot-bg); color: var(--hot); font-weight: 800; }
.facts { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 8px; color: var(--muted); }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts svg { color: var(--ok); }
.fine { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.notice { padding: 12px 14px; border-radius: 12px; background: var(--hot-bg); color: var(--hot); font-weight: 600; margin: 0 0 14px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; font-size: 14px; color: var(--muted); }
.share a, .share button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.share .btn.share-wa, .share a.share-wa:hover { background: #1fa855; border-color: #1fa855; color: #fff; }
.share a.share-tg:hover { background: #229ed9; border-color: #229ed9; color: #fff; }

.coupons { display: grid; gap: 12px; margin: 20px 0 48px; }
.coupon { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 18px; background: var(--surface); border: 1px dashed var(--brand); border-radius: var(--radius); }
.coupon h3 { margin: 0; }
.coupon p { margin: 4px 0 0; }
.coupon-act { display: flex; gap: 8px; align-items: center; }
.code { padding: 10px 14px; border-radius: 10px; border: 2px dashed var(--brand); background: var(--surface-2); color: var(--brand); font: 700 16px ui-monospace, SFMono-Regular, Menlo, monospace; cursor: pointer; }

.prose { max-width: 760px; padding-top: 28px; padding-bottom: 48px; }
.prose h1 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.03em; line-height: 1.1; }
.prose h2 { font-size: 20px; margin-top: 28px; }
.prose p { color: var(--muted); }
.prose textarea { width: 100%; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }

.foot { border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.foot strong { color: var(--text); }
.foot-links { display: flex; flex-wrap: wrap; gap: 16px; }
.foot-links a { color: var(--text); font-weight: 600; text-decoration: none; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 60%, transparent); outline-offset: 2px; }

@media (max-width: 760px) {
  .top-nav { display: none; }
  .top .join { margin-left: auto; }
  .top .join a { padding: 8px; font-size: 0; gap: 0; }
  .top .join svg { width: 18px; height: 18px; }
  .hero { padding: 28px 0 22px; }
  .lead { font-size: 16px; }
  .stats div { min-width: 0; flex: 1; padding: 10px 12px; }
  .stats b { font-size: 21px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rail { grid-auto-columns: 46%; gap: 10px; }
  .card-body { padding: 10px; gap: 6px; }
  .card-title { font-size: 14px; }
  .prices .now { font-size: 18px; }
  .card-media img { padding: 8px; }
  .btn { padding: 10px 12px; font-size: 14px; }
  .toolbar select, .chk { flex: 1 1 auto; }
  .deal { grid-template-columns: 1fr; gap: 18px; padding: 14px; border-radius: 18px; }
  .prices.big .now { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
