:root {
  --bg: #fff; --soft: #f6f7f9; --line: #e4e7ec; --text: #14181f; --muted: #667085;
  --accent: #e8590c; --accent-d: #c2410c; --accent-soft: #fff1e8; --green: #12805c; --green-soft: #e7f6ef;
  --r: 14px; --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 6px 20px rgba(16, 24, 40, .06);
}
* { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-d); }
h1, h2 { line-height: 1.2; margin: 0; text-wrap: balance; }
h2 { font-size: 20px; margin-bottom: 14px; }
small { color: var(--muted); font-size: 13px; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
main.wrap { min-height: 60vh; padding-bottom: 96px; }
section { margin-top: 36px; }
.loading, .empty { color: var(--muted); text-align: center; padding: 48px 0; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico.big { width: 40px; height: 40px; stroke-width: 1.3; }

.demo { background: #fff8e1; color: #7a5200; font-size: 13px; text-align: center; padding: 6px 16px; border-bottom: 1px solid #f3e2a9; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 12px; height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; flex: none; }
.logo b { color: var(--accent); font-weight: 800; margin-left: -8px; }
.logo-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: #fff; font-weight: 800; font-size: 17px; }
.top-search { flex: 1; display: flex; min-width: 0; max-width: 520px; margin: 0 auto; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); overflow: hidden; }
.top-search input { flex: 1; min-width: 0; border: 0; background: none; padding: 8px 14px; outline: none; }
.top-search button { border: 0; background: none; padding: 0 12px; cursor: pointer; display: grid; place-items: center; }
.top-search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.lang { display: flex; flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang button { border: 0; background: none; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.lang button.on { background: var(--text); color: #fff; }

/* skroll-kino: xona pastga tushgan sari ta'mirlanadi */
html, body { overflow-x: clip; }
.story { margin: 0 calc(50% - 50vw); height: calc(var(--segs) * 78vh); background: #0f141c; color: #fff; position: relative; }
.story-stage { position: sticky; top: 60px; height: calc(100vh - 60px); height: calc(100svh - 60px); overflow: hidden; }
.story-svg { position: absolute; left: 0; top: 0; width: 100%; height: 46%; display: block; }
.story-svg [data-fx=pop] { transform-box: fill-box; transform-origin: center; }
.story-svg [data-s] { will-change: transform, opacity; }
.story-bar { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: rgba(255, 255, 255, .12); z-index: 3; }
.story-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.story-cards { position: absolute; left: 0; right: 0; top: 46%; bottom: 0; }
.story-card { position: absolute; inset: 0; padding: 18px 20px 44px; display: flex; flex-direction: column; justify-content: center; gap: 8px;
  opacity: 0; transform: translateY(18px); pointer-events: none; transition: opacity .35s ease, transform .35s ease; }
.story-card > * { flex: none; }
.story-card.on { opacity: 1; transform: none; pointer-events: auto; }
.story-card h1 { font-size: clamp(22px, 5.4vw, 44px); letter-spacing: -.03em; }
.story-card h2 { font-size: clamp(26px, 7vw, 44px); letter-spacing: -.03em; margin: 0; }
.story-card p { margin: 0; color: #c4cad4; max-width: 460px; }
.story-card .btn { align-self: flex-start; margin-top: 6px; }
.story-kicker { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #ff922b; }
.story-stat { font-weight: 700; color: #fff !important; font-variant-numeric: tabular-nums; }
.story-card .hero-search { margin: 8px 0 0; max-width: 520px; box-shadow: none; color: var(--text); }
.story-hint { font-size: 14px; color: #c4cad4; margin-top: 6px; }
.story-hint span { display: inline-block; animation: nudge 1.4s ease-in-out infinite; color: #ff922b; }
@keyframes nudge { 50% { transform: translateY(5px); } }
.story-dots { position: absolute; left: 20px; bottom: 16px; display: flex; gap: 6px; }
.story-dots i { width: 22px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .22); transition: background .3s; }
.story-dots i.on { background: var(--accent); }
.story-skip { position: absolute; right: 16px; bottom: 10px; font-size: 13px; color: #98a2b3; text-decoration: underline; padding: 4px; }
.story-skip:hover, .story-hint:hover { color: #fff; }
.story.static { height: auto; }
.story.static .story-stage { position: relative; top: 0; height: 640px; }
.story.static .story-hint, .story.static .story-skip, .story.static .story-dots, .story.static .story-bar { display: none; }
#after-story { scroll-margin-top: 60px; }
@media (min-width: 900px) {
  .story-svg { left: 36%; width: 64%; height: 100%; }
  .story-cards { top: 0; right: 64%; }
  .story-card { padding: 32px 36px 32px max(24px, calc(50vw - 544px)); }
  .story-stage::after { content: ""; position: absolute; left: 36%; top: 0; bottom: 0; width: 90px; background: linear-gradient(90deg, #0f141c, rgba(15, 20, 28, 0)); pointer-events: none; }
  .story-dots { left: max(24px, calc(50vw - 544px)); bottom: 28px; }
  .story-skip { right: auto; left: calc(max(24px, 50vw - 544px) + 160px); bottom: 20px; }
}

/* fikr va baholar */
.stars { color: #f59e0b; letter-spacing: 1px; white-space: nowrap; }
.stars i { color: #d0d5dd; font-style: normal; }
.rating-sum { margin: 0 0 12px; font-size: 18px; }
.reviews { display: grid; gap: 10px; }
.review { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); }
.review blockquote { margin: 6px 0; }
.review figcaption { font-size: 13px; color: var(--muted); }
.review-form { display: grid; gap: 10px; max-width: 520px; margin-top: 18px; padding: 16px; background: var(--soft); border-radius: var(--r); }
.review-form input[type=text], .review-form textarea { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; width: 100%; resize: vertical; }
.review-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rate { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate label { font-size: 30px; line-height: 1; color: #d0d5dd; cursor: pointer; padding: 0 2px; }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: #f59e0b; }
.rate input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 4px; }
.thanks { padding: 12px 14px; background: var(--green-soft); color: var(--green); border-radius: var(--r); font-weight: 600; }
.err { color: #b42318; font-size: 14px; }

/* do'kon logosi va muqovasi */
.logo-sm { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; vertical-align: middle; margin-right: 8px; border: 1px solid var(--line); background: #fff; }
.logo-lg { width: 76px; height: 76px; border-radius: 18px; object-fit: cover; border: 3px solid #fff; background: #fff; box-shadow: var(--shadow); flex: none; }
.logo-sm.ph, .logo-lg.ph { display: inline-grid; place-items: center; background: var(--accent-soft); color: var(--accent-d); font-weight: 800; }
.logo-sm.ph { font-size: 14px; }
.logo-lg.ph { font-size: 32px; }
.cover { display: block; width: 100%; aspect-ratio: 16 / 5; min-height: 120px; object-fit: cover; border-radius: var(--r); background: var(--soft); margin-top: 12px; }
.cover.ph { background: linear-gradient(120deg, #1f2937, #e8590c); }
.shead-id { display: flex; align-items: flex-end; gap: 14px; margin: -34px 0 0 16px; position: relative; }
.shead-id h1 { margin: 0 0 4px !important; }
.hero-search { display: flex; max-width: 680px; margin: 0 auto; border: 2px solid var(--accent); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.hero-search input { flex: 1; min-width: 0; border: 0; padding: 16px 18px; font-size: 17px; outline: none; }
.hero-search button { border: 0; background: var(--accent); color: #fff; font-weight: 700; padding: 0 22px; cursor: pointer; }
.hero-search button:hover { background: var(--accent-d); }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: border-color .15s, box-shadow .15s; }
.tile .ico { color: var(--accent); margin-bottom: 6px; }
.tile:hover { border-color: var(--accent); box-shadow: var(--shadow); color: inherit; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; }
.card-img { display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--soft); color: #98a2b3; }
.card-img img, .phead-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 3px; padding: 12px; flex: 1; }
.card-cat { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.card-title { font-size: 15px; line-height: 1.3; }
.card-specs { font-size: 13px; color: var(--muted); flex: 1; }
.card-price { font-weight: 700; font-size: 16px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.card-price.none { color: var(--muted); font-weight: 400; font-size: 14px; }
.card-price small { font-weight: 400; }
.card-meta { font-size: 13px; color: var(--muted); }
.cmp-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 8px; cursor: pointer; }
.cmp-check input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }

/* steps + cta */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; padding: 14px; background: var(--soft); border-radius: var(--r); }
.steps li::before { content: counter(s); grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1px solid var(--line); font-weight: 700; color: var(--accent); }
.steps span { color: var(--muted); font-size: 14px; }
.cta { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding: 22px; border-radius: var(--r); background: var(--accent-soft); }
.cta h2 { margin-bottom: 6px; }
.cta p { margin: 0; color: #7c3a12; max-width: 560px; }
.soon { font-size: 14px; color: #7c3a12; font-weight: 600; }

/* buttons, chips, badges */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 9px 16px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600; font-size: 14px; border: 1px solid var(--accent); cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--accent-d); color: #fff; }
.btn.ghost { background: #fff; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--text); color: var(--text); }
.link { border: 0; background: none; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 14px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0; margin: 8px -16px 0; padding-inline: 16px; scrollbar-width: none; align-items: center; }
.chips::-webkit-scrollbar { display: none; }
.chips-l { font-size: 13px; color: var(--muted); flex: none; }
.chip { flex: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; background: #fff; }
.chip.on { background: var(--text); color: #fff; border-color: var(--text); }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-d); font-size: 12px; font-weight: 600; vertical-align: middle; }
.badge.green { background: var(--green-soft); color: var(--green); }
.svcs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.svc { font-size: 12px; padding: 1px 8px; border-radius: 6px; background: var(--soft); color: #475467; }

/* list page */
.crumbs { font-size: 13px; color: var(--muted); margin-top: 16px; }
.crumbs .cur { color: var(--text); }
.h-page { font-size: 26px; letter-spacing: -.02em; margin-top: 8px; }
.list-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 14px 0; font-size: 14px; color: var(--muted); }
.sort select { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: #fff; color: var(--text); }

/* product page */
.phead { display: grid; gap: 16px; margin-top: 14px; }
.phead-img { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--soft); border-radius: var(--r); color: #98a2b3; overflow: hidden; }
.phead h1 { font-size: 24px; letter-spacing: -.02em; margin: 2px 0 6px; }
.phead .specs { color: var(--muted); margin: 0 0 8px; }
.phead-price { font-size: 18px; font-weight: 700; margin: 0; font-variant-numeric: tabular-nums; }
.phead-price small { font-weight: 400; }
.calc { display: flex; flex-direction: column; gap: 4px; padding: 14px; background: var(--soft); border-radius: var(--r); margin-bottom: 12px; }
.calc label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.calc input { width: 110px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.need { font-size: 14px; font-weight: 600; margin: 0 0 10px; }
.offer { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 8px; background: #fff; }
.offer.best { border-color: var(--green); }
.offer.stale { background: var(--soft); }
.offer.stale .offer-price b { color: var(--muted); }
.offer-seller > a { font-weight: 600; }
.offer-seller small { display: block; }
.offer-price { font-variant-numeric: tabular-nums; }
.offer-price > b { font-size: 18px; }
.offer-price .badge { margin-right: 6px; }
.offer-price .upd { display: block; }
.offer-total { font-size: 14px; }
.offer-act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* seller page */
.shead h1 { font-size: 26px; letter-spacing: -.02em; margin: 10px 0; }
.info { display: grid; gap: 10px; margin: 14px 0; }
.info dt { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.info dd { margin: 0; }
.info a { color: var(--accent-d); text-decoration: underline; }

/* compare */
.tbl-wrap { overflow-x: auto; margin: 14px -16px 0; padding: 0 16px; }
.cmp-tbl { border-collapse: collapse; min-width: 100%; font-size: 14px; }
.cmp-tbl th, .cmp-tbl td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); min-width: 150px; }
.cmp-tbl th { color: var(--muted); font-weight: 500; min-width: 110px; position: sticky; left: -16px; background: #fff; }
.cmpbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(16, 24, 40, .08); }
.cmpbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; }

.foot { border-top: 1px solid var(--line); background: var(--soft); }
.foot-in { display: flex; flex-direction: column; gap: 4px; padding-block: 20px 28px; font-size: 13px; color: var(--muted); }

@media (min-width: 720px) {
  .tiles { grid-template-columns: repeat(5, 1fr); }
  .grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .cta { flex-direction: row; align-items: center; justify-content: space-between; }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .phead { grid-template-columns: 300px 1fr; align-items: center; }
  .offer { grid-template-columns: 1.4fr 1fr auto; align-items: center; }
  .info { grid-template-columns: repeat(2, 1fr); }
  .chips { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
