/* kpbica0 SHOP — static mockup */
:root {
  --bg: #080b11;
  --bg-soft: #0d121a;
  --surface: #141b26;
  --surface-2: #1a2331;
  --surface-3: #222c3d;
  --line: rgba(170, 196, 230, 0.12);
  --line-strong: rgba(170, 196, 230, 0.22);
  --text: #f4f7fb;
  --muted: #9aa8bc;
  --faint: #6e7c91;
  --accent: #3ee0c5;
  --accent-2: #62f0d4;
  --accent-dim: rgba(62, 224, 197, 0.14);
  --accent-ink: #04241d;
  --blue: #8cb6ff;
  --gold: #f3c35a;
  --sale: #ff5d73;
  --ok: #3ee0c5;
  --warn: #f3c35a;
  --tg: #2aabee;
  --vk: #4c75a3;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 72px;
  --max: 1180px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Onest", "Manrope", sans-serif;
  --logo: "Unbounded", "Onest", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 650; letter-spacing: -0.03em; line-height: 1.15; margin: 0; }
p { margin: 0; }

.container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

/* background atmosphere */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(62, 224, 197, 0.09), transparent 55%),
    radial-gradient(800px 480px at 95% 8%, rgba(80, 120, 255, 0.08), transparent 50%),
    linear-gradient(180deg, #0c1119 0%, var(--bg) 40%, var(--bg) 100%);
}
.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cpath d='M0 70h140M70 0v140' stroke='%23ffffff' stroke-opacity='0.03' stroke-width='1'/%3E%3C/svg%3E");
}

/* header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  backdrop-filter: blur(18px);
  background: rgba(8, 11, 17, 0.78);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 28px;
}
.logo { display: flex; align-items: center; gap: 10px; min-width: max-content; }
.logo-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--accent) 0%, #1aa98f 100%);
  color: var(--accent-ink);
  font-family: var(--logo);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.04em;
  box-shadow: 0 0 0 4px rgba(62, 224, 197, 0.12);
}
.logo-text { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.logo-name {
  font-family: var(--logo);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.03em;
}
.logo-shop {
  font-size: 9px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--accent);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  height: 42px;
  max-width: 420px;
  width: 100%;
  justify-self: start;
}
.header-search:focus-within {
  border-color: rgba(62, 224, 197, 0.5);
  box-shadow: 0 0 0 3px rgba(62, 224, 197, 0.12);
}
.header-search svg { flex: none; color: var(--faint); }
.header-search input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  min-width: 0;
}
.header-search input::placeholder { color: var(--faint); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
}
.nav a:hover, .nav a.is-active { color: var(--text); background: rgba(255,255,255,0.04); }

.menu-btn {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.menu-btn svg { width: 20px; height: 20px; }

.mobile-nav {
  display: none;
  position: absolute;
  left: 0; right: 0; top: var(--header-h);
  background: rgba(12, 16, 24, 0.97);
  border-bottom: 1px solid var(--line);
  padding: 12px 24px 20px;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  padding: 12px 10px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--text);
}
.mobile-nav a:hover { background: rgba(255,255,255,0.04); }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 8px 24px rgba(62, 224, 197, 0.22);
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(62, 224, 197, 0.3); }
.btn-ghost {
  background: var(--surface-2);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-tg { background: #229ed9; color: #fff; }
.btn-vk { background: #4a6fa5; color: #fff; }
.btn-block { width: 100%; }
.btn-lg { height: 54px; font-size: 16px; border-radius: 16px; }

/* hero */
.hero {
  position: relative;
  padding: 64px 0 28px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(62, 224, 197, 0.18);
}
.hero h1 {
  font-size: clamp(36px, 4.4vw, 58px);
  max-width: 16ch;
  margin-bottom: 16px;
}
.hero-lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 46ch;
  margin-bottom: 28px;
}
.hero-search {
  display: flex;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 8px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.hero-search input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  padding: 0 14px;
  min-width: 0;
  font-size: 16px;
}
.hero-search input::placeholder { color: var(--faint); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-note { margin-top: 14px; color: var(--faint); font-size: 13.5px; }

.hero-art {
  position: relative;
  height: 460px;
}
.hero-art-card {
  position: absolute;
  width: 58%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.08);
  background: #111;
}
.hero-art-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/9; }
.hero-art-card:nth-child(1) { top: 18px; left: 6%; transform: rotate(-8deg); z-index: 1; }
.hero-art-card:nth-child(2) { top: 86px; right: 0; transform: rotate(7deg); z-index: 2; width: 62%; }
.hero-art-card:nth-child(3) { bottom: 28px; left: 16%; transform: rotate(-2deg); z-index: 3; width: 66%; }

/* sections */
.section { padding: 72px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 28px;
}
.section-head h2 { font-size: clamp(26px, 3vw, 34px); }
.section-head p, .section-kicker { color: var(--muted); font-size: 15px; }
.section-kicker {
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

/* catalog grid */
.grid-games {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.game-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.game-card .cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0e131b;
  overflow: hidden;
}
.game-card .cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.game-card:hover .cover img { transform: scale(1.05); }
.badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--sale);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  letter-spacing: 0.02em;
}
.game-card .body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.game-card h3 {
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.02em;
  min-height: 2.4em;
  max-height: 2.4em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.price-row { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.price-old {
  color: var(--faint);
  font-size: 13px;
}
.price-kzt { color: var(--muted); font-size: 13px; }
.caption-under {
  margin-top: 18px;
  color: var(--faint);
  font-size: 13.5px;
}

/* how it works */
.how { background: linear-gradient(180deg, transparent, rgba(20, 27, 38, 0.65), transparent); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 20px 24px;
  min-height: 230px;
  position: relative;
}
.step-num {
  font-family: var(--logo);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.step-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent);
  display: grid; place-items: center;
}
.step-icon svg { width: 20px; height: 20px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* trust */
.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.trust-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.trust-icon {
  width: 46px; height: 46px; flex: none;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--accent-dim);
  color: var(--accent);
}
.trust-icon svg { width: 22px; height: 22px; }
.trust-card h3 { font-size: 17px; margin-bottom: 6px; }
.trust-card p { color: var(--muted); font-size: 14.5px; }

/* footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
  margin-top: 20px;
  background: #080b11;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer h4 { font-size: 14px; margin-bottom: 14px; color: var(--text); }
.footer a, .footer p { color: var(--muted); font-size: 14.5px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a:hover { color: var(--accent); }
.legal-note {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--faint);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* game page */
.crumb {
  display: flex; flex-wrap: wrap; gap: 8px;
  color: var(--faint); font-size: 13.5px;
  padding: 24px 0 8px;
}
.crumb a:hover { color: var(--text); }
.crumb .sep { opacity: 0.5; }

.game-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  padding-bottom: 56px;
  align-items: start;
}
.game-media {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0c1016;
  box-shadow: var(--shadow);
}
.game-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.game-desc { margin-top: 22px; }
.game-desc h1 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 12px; }
.game-desc p { color: var(--muted); font-size: 16.5px; max-width: 62ch; }

.buy-box {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 24px;
  position: sticky;
  top: 96px;
  box-shadow: var(--shadow);
}
.buy-box .price { font-size: 40px; line-height: 1; margin: 4px 0 8px; }
.buy-meta { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.ttl {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(243, 195, 90, 0.1);
  color: var(--gold);
  font-size: 13.5px;
  font-weight: 650;
  margin-bottom: 18px;
}
.ttl svg { width: 16px; height: 16px; flex: none; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.field label { font-size: 13.5px; font-weight: 650; color: var(--muted); }
.field input {
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #0e141d;
  padding: 0 14px;
  outline: none;
}
.field input:focus {
  border-color: rgba(62, 224, 197, 0.55);
  box-shadow: 0 0 0 3px rgba(62, 224, 197, 0.12);
}
.field input::placeholder { color: var(--faint); }
.buy-help { margin-top: 12px; color: var(--faint); font-size: 13px; }

/* checkout */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  padding: 8px 0 64px;
  align-items: start;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
}
.page-title { font-size: clamp(28px, 3vw, 36px); margin: 4px 0 6px; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(243, 195, 90, 0.12);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}
.status-pill.ok { background: var(--accent-dim); color: var(--accent); }

.timeline { display: flex; flex-direction: column; margin: 8px 0 8px; }
.tl-item { display: grid; grid-template-columns: 28px 1fr; gap: 14px; }
.tl-rail { display: flex; flex-direction: column; align-items: center; }
.tl-dot {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--surface-2);
  display: grid; place-items: center;
  color: var(--faint);
  flex: none;
  z-index: 1;
}
.tl-dot svg { width: 12px; height: 12px; }
.tl-item.is-done .tl-dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tl-item.is-current .tl-dot {
  background: var(--gold);
  border-color: var(--gold);
  color: #2a1d00;
  box-shadow: 0 0 0 6px rgba(243, 195, 90, 0.16);
}
.tl-line { width: 2px; flex: 1; min-height: 22px; background: var(--line-strong); margin: 4px 0; }
.tl-item:last-child .tl-line { display: none; }
.tl-body { padding-bottom: 26px; }
.tl-item:last-child .tl-body { padding-bottom: 0; }
.tl-body h3 { font-size: 17px; margin-bottom: 4px; }
.tl-body p { color: var(--muted); font-size: 14.5px; }
.tl-item.is-wait h3, .tl-item.is-wait p { color: var(--faint); }

.pay-card {
  margin-top: 14px;
  background: #0e141d;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.pay-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14.5px; }
.pay-row span:first-child { color: var(--muted); }
.pay-amount { font-family: var(--display); font-weight: 700; font-size: 22px; }
.pay-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.link-quiet { color: var(--muted); font-size: 14px; font-weight: 600; align-self: center; }
.link-quiet:hover { color: var(--text); }

.summary-cover { border-radius: 14px; overflow: hidden; margin-bottom: 14px; border: 1px solid var(--line); }
.summary-cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.summary h3 { font-size: 18px; margin-bottom: 10px; }
.summary-rows { display: grid; gap: 8px; margin: 12px 0 4px; }
.summary-rows div { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; color: var(--muted); }
.summary-rows .total { color: var(--text); font-weight: 700; padding-top: 8px; border-top: 1px solid var(--line); }
.summary-rows .total strong { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--text); }

/* simple pages */
.prose { max-width: 72ch; padding: 12px 0 72px; }
.prose h1 { font-size: 36px; margin: 8px 0 16px; }
.prose h2 { font-size: 22px; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--muted); margin-bottom: 10px; }
.prose ul { padding-left: 18px; }
.orders-list { display: grid; gap: 14px; padding: 12px 0 72px; }
.order-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
}
.order-row img { width: 160px; height: 75px; object-fit: cover; border-radius: 10px; }
.order-row h3 { font-size: 18px; margin-bottom: 4px; }
.order-row p { color: var(--muted); font-size: 14px; }

/* responsive */
@media (max-width: 1100px) {
  .grid-games { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .game-layout, .checkout-layout { grid-template-columns: 1fr; }
  .hero-art { height: 340px; max-width: 560px; }
  .buy-box { position: static; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .container { width: min(var(--max), calc(100% - 32px)); }
  .header-search { display: none; }
  .header-inner { grid-template-columns: auto auto; justify-content: space-between; gap: 12px; }
  .grid-games { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .game-card h3 { font-size: 13.5px; min-height: 0; }
  .price { font-size: 18px; }
  .game-card .body { padding: 10px 10px 12px; }
  .steps, .trust, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 36px 0 12px; }
  .hero h1 { max-width: none; }
  .hero-lead { font-size: 16px; }
  .hero-art { height: 240px; margin-top: 8px; }
  .section { padding: 48px 0; }
  .order-row { grid-template-columns: 1fr; }
  .order-row img { width: 100%; height: auto; aspect-ratio: 16/9; }
  .hero-search { flex-direction: column; border-radius: 16px; }
  .hero-search .btn { width: 100%; }
  .pay-actions { flex-direction: column; }
  .pay-actions .btn { width: 100%; }
  .legal-note { flex-direction: column; }
}


/* game page title sits above the cover */
.game-title-block { margin-bottom: 18px; }
.game-title-block h1 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 0; }
.game-desc { margin-top: 22px; }
.game-desc p { color: var(--muted); font-size: 16.5px; max-width: 62ch; }
.related { padding: 0 0 64px; }
.related h2 { font-size: 24px; margin-bottom: 18px; }

@media (max-width: 720px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-art {
    height: auto;
    margin-top: 4px;
  }
  .hero-art-card:nth-child(1),
  .hero-art-card:nth-child(2) { display: none; }
  .hero-art-card:nth-child(3) {
    position: relative;
    top: auto; left: auto; right: auto; bottom: auto;
    width: 100%;
    transform: none;
    z-index: 1;
  }
  .hero-actions .btn { flex: 1; }
  .price-old { display: none; }
}

@media (max-width: 1100px) {
  .hero-art {
    height: auto;
    max-width: 640px;
    margin-inline: auto;
  }
  .hero-art-card { position: relative; width: 100% !important; transform: none !important; top: auto !important; left: auto !important; right: auto !important; bottom: auto !important; }
  .hero-art-card:nth-child(1),
  .hero-art-card:nth-child(2) { display: none; }
}
