:root {
  --bg: #0B0B0C;
  --panel: #111113;
  --panel-2: #1B1B1F;
  --line: #262629;
  --line-2: #333338;
  --text: #EDEDED;
  --muted: #9A9AA2;
  --acc: #C6FF00;
  --pink: #FF3EA5;
  --cyan: #3EE6FF;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --display: 'Unbounded', system-ui, sans-serif;
  --gut: 48px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--mono); font-size: 15px; line-height: 1.5; }
a { color: var(--acc); }
a:hover { color: #E4FF80; }
img { display: block; max-width: 100%; }
h1, h2, h3, .h2, .h3 { font-family: var(--display); margin: 0; letter-spacing: -0.5px; }
.h2, h2 { font-size: 26px; font-weight: 800; }
.h3, h3 { font-size: 18px; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.accent { color: var(--acc); }
main { min-height: 60vh; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border: 0; border-radius: 6px; background: var(--acc); color: var(--bg); font: 700 14px var(--mono); text-decoration: none; cursor: pointer; }
.btn:hover { background: #D8FF4D; color: var(--bg); }
.btn.big { min-height: 52px; padding: 0 26px; font-size: 15px; }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2);
  border-radius: 6px; background: transparent; color: var(--text); font: 400 14px var(--mono); text-decoration: none; cursor: pointer; }
.btn-ghost:hover { border-color: var(--acc); color: var(--text); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* header */
.hd { display: flex; align-items: center; gap: 20px; padding: 18px var(--gut); border-bottom: 1px solid #222; flex-wrap: wrap; }
.logo { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.5px; color: var(--text); text-decoration: none; }
.logo span { color: var(--acc); }
.logo:hover { color: var(--text); }
.search { flex: 1 1 320px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border: 1px solid var(--line-2);
  border-radius: 6px; background: #121214; }
.search:focus-within { border-color: var(--acc); }
.search .prompt { color: var(--acc); }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--text); font: 14px var(--mono); }
.hd-actions { display: flex; gap: 10px; align-items: center; }
.hd-actions form { margin: 0; }

/* ticker */
.ticker { overflow: hidden; background: var(--acc); color: var(--bg); font-size: 13px; font-weight: 700; white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 48px; padding: 10px 0 10px var(--gut); animation: tick 40s linear infinite; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* categories */
.cats { display: flex; gap: 10px; padding: 20px var(--gut); overflow-x: auto; scrollbar-width: none; }
.cats a { flex-shrink: 0; padding: 9px 16px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--text); text-decoration: none; font-size: 14px; }
.cats a:hover { border-color: var(--acc); }
.cats a.on { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 700; }
.cats a.dashed { border: 1px dashed var(--acc); color: var(--acc); }

/* hero */
.hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 12px var(--gut) 36px; }
.hero-text { display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.hero-text p { margin: 0; }
.hero h1 { font-weight: 800; font-size: clamp(32px, 4vw, 50px); line-height: 1.08; letter-spacing: -1px; }
.lead { font-size: 16px; line-height: 1.6; }
.stats { display: flex; gap: 32px; flex-wrap: wrap; }
.stats b { display: block; font-family: var(--display); font-size: 28px; font-weight: 800; color: var(--acc); }
.stats span { color: var(--muted); font-size: 13px; }
.chit { display: flex; gap: 24px; padding: 24px; border: 1px solid var(--acc); border-radius: 10px; background: var(--panel); color: var(--text); text-decoration: none; }
.chit:hover { color: var(--text); background: #141417; }
.chit-img { width: 240px; aspect-ratio: 1; flex-shrink: 0; border-radius: 8px; background: #fff; overflow: hidden; }
.chit-img img { width: 100%; height: 100%; object-fit: contain; }
.chit-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.chit-title { font-family: var(--display); font-size: 20px; font-weight: 600; line-height: 1.25; }
.chit .btn { margin-top: auto; align-self: flex-start; }
.compare { line-height: 1.7; color: #BDBDBD; }
.label-pink { align-self: flex-start; padding: 4px 10px; border-radius: 4px; background: var(--pink); color: var(--bg); font-size: 12px; font-weight: 700; }

/* sections */
.section { padding: 0 var(--gut) 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

/* card */
.card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); }
.card:hover { border-color: #3A3A40; }
.card-img { position: relative; display: block; aspect-ratio: 4 / 5; background: #fff; }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.pct { position: absolute; top: 12px; left: 12px; padding: 4px 9px; border-radius: 4px; background: var(--acc); color: var(--bg); font-weight: 700; font-size: 14px; }
.tag { position: absolute; bottom: 12px; left: 12px; right: 12px; width: fit-content; max-width: calc(100% - 24px); padding: 3px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag.static { position: static; display: inline-block; max-width: 100%; }
.tag-ok { background: var(--acc); color: var(--bg); }
.tag-info { background: var(--cyan); color: var(--bg); }
.tag-warn { background: var(--pink); color: var(--bg); }
.fav { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(11, 11, 12, 0.75); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.fav:hover { border-color: var(--acc); }
.fav.on { color: var(--pink); border-color: var(--pink); }
.fav.on svg { fill: currentColor; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px; color: var(--text); text-decoration: none; flex: 1; }
.card-body:hover { color: var(--text); }
.brand { color: var(--muted); font-size: 12px; }
.brand.big { font-size: 15px; color: var(--text); font-weight: 700; }
.title { font-size: 14px; line-height: 1.35; height: 38px; overflow: hidden; }
.prices { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price { font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--acc); }
.price.big { font-size: 34px; }
.price.huge { font-size: 42px; }
.old { color: #6A6A72; font-size: 13px; text-decoration: line-through; }
.meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; margin-top: auto; }

/* filters */
.filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line-2);
  background: transparent; color: var(--text); text-decoration: none; font: 13px var(--mono); cursor: pointer; }
.chip:hover { border-color: var(--acc); color: var(--text); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 700; }
.sort { display: flex; align-items: center; gap: 10px; margin: 0; }
select { min-height: 40px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line-2); background: #121214; color: var(--text); font: 13px var(--mono); }
.pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.empty { padding: 48px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.empty p { margin: 0; }

/* product */
.product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 36px; padding: 12px var(--gut) 40px; }
.product-img { position: relative; border-radius: 10px; overflow: hidden; background: #fff; aspect-ratio: 4 / 5; align-self: start; position: sticky; top: 16px; }
.product-img img { width: 100%; height: 100%; object-fit: contain; }
.product-img .pct { font-size: 20px; padding: 6px 12px; }
.product-info { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.product-title { font-size: 28px; font-weight: 600; line-height: 1.2; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.size { padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 6px; font-size: 13px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.fav-big { position: static; width: auto; height: 52px; padding: 0 18px; border-radius: 6px; gap: 8px; font: 14px var(--mono); }
.box { border: 1px solid var(--line); border-radius: 10px; padding: 18px; background: var(--panel); display: flex; flex-direction: column; gap: 12px; }
.box p { margin: 0; }
.stores { width: 100%; border-collapse: collapse; font-size: 14px; }
.stores td { padding: 8px 0; border-top: 1px solid var(--line); }
.stores tr:first-child td { border-top: 0; }
.stores .r { text-align: right; }
.stores .best td:first-child { font-weight: 700; }
.chart { width: 100%; height: auto; }
.chart-line { fill: none; stroke: var(--acc); stroke-width: 2.5; }
.chart-old { stroke: #55555c; stroke-dasharray: 5 5; }
.chart-legend { display: flex; justify-content: space-between; }
.details { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }
.warn-box { padding: 10px 12px; border: 1px solid var(--pink); border-radius: 6px; color: var(--pink); font-size: 13px; }
.warn-text { color: var(--pink); }

/* auth */
.auth { max-width: 440px; padding: 24px var(--gut) 56px; display: flex; flex-direction: column; gap: 14px; }
.auth p { margin: 0; }
.form { display: flex; flex-direction: column; gap: 8px; }
.form label { font-size: 13px; color: var(--muted); margin-top: 6px; }
.form input { height: 46px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--line-2); background: #121214; color: var(--text); font: 14px var(--mono); }
.form input:focus { border-color: var(--acc); outline: none; }
.form .btn { margin-top: 12px; }
.error { margin: 4px 0 0; color: var(--pink); font-size: 13px; }

/* account */
.fav-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 14px; }
.fav-row { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--panel); flex-wrap: wrap; }
.fav-row:first-child { border-top: 0; }
.fav-row form { margin: 0; }
.fav-thumb { width: 64px; height: 80px; border-radius: 6px; overflow: hidden; background: #fff; flex-shrink: 0; }
.fav-thumb img { width: 100%; height: 100%; object-fit: contain; }
.fav-info { flex: 1 1 240px; min-width: 0; }
.fav-title { color: var(--text); text-decoration: none; }
.fav-price { display: flex; flex-direction: column; align-items: flex-end; }

/* cta, footer */
.cta { margin: 0 var(--gut) 48px; padding: 28px 32px; border: 1px dashed var(--acc); border-radius: 10px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta > div { flex: 1 1 300px; }
.cta p { margin: 6px 0 0; }
.ft { padding: 28px var(--gut); border-top: 1px solid #222; font-size: 13px; display: flex; flex-direction: column; gap: 6px; }

/* responsive */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --gut: 16px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product { grid-template-columns: 1fr; gap: 20px; }
  .product-img { position: relative; top: 0; }
  .chit { flex-direction: column; }
  .chit-img { width: 100%; max-width: 280px; }
  .hd { gap: 12px; padding-top: 14px; padding-bottom: 14px; }
  .logo { font-size: 22px; }
  .hd-actions { margin-left: auto; }
  .hd-actions .btn-ghost, .hd-actions .btn { min-height: 40px; padding: 0 12px; }
  .search { order: 3; flex-basis: 100%; height: 44px; }
  .hd-actions .lbl { display: none; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut); }
  .chip { flex-shrink: 0; }
  .card-body { padding: 10px; }
  .price { font-size: 17px; }
  .title { font-size: 13px; }
  .fav { width: 40px; height: 40px; }
}
