:root {
  color-scheme: dark;
  --page: #17121b;
  --surface: #231b28;
  --line: #45374a;
  --ink: #fff5f4;
  --muted: #cbbfce;
  --warm: #ffb595;
  --button: #f489a7;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--warm); outline-offset: 4px; }
.wrap { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.topbar { border-block-end: 1px solid var(--line); }
.topbar-inner { min-height: 4.65rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.wordmark { display: inline-flex; gap: .6rem; align-items: center; font-weight: 850; letter-spacing: -.025em; font-size: 1.22rem; text-decoration: none; white-space: nowrap; }
.brand-icon { display: block; width: 2.25rem; height: 2.25rem; border-radius: .55rem; object-fit: cover; }
nav { display: flex; align-items: center; gap: clamp(.85rem, 3vw, 1.6rem); font-size: .94rem; font-weight: 660; }
nav a { text-decoration: none; }
.nav-link { padding-block: .5rem; color: var(--muted); }
.nav-link:hover { color: var(--ink); }
.nav-orders { padding: .5rem .85rem; border: 1px solid var(--line); border-radius: .5rem; white-space: nowrap; }
.nav-orders:hover, .nav-orders[aria-current="page"] { background: #3a2538; border-color: #78506b; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .86fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-block: clamp(2.7rem, 6vw, 5.3rem); }
.hero-kicker { color: var(--warm); font-weight: 730; margin: 0 0 .85rem; }
h1, h2, h3, h4 { margin: 0; line-height: 1.13; }
.hero h1 { font-size: clamp(2.55rem, 5.9vw, 4.2rem); line-height: 1.05; letter-spacing: -.058em; font-weight: 825; }
.hero h1 span { color: var(--warm); }
.hero-description, .intro { margin: 1.1rem 0 0; font-size: clamp(1.02rem, 2vw, 1.2rem); color: var(--muted); }
.hero-image { display: block; width: 100%; height: auto; border: 1px solid #6c3e60; border-radius: 1.25rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.8rem; padding: .62rem 1rem; border-radius: .55rem; color: #281321; background: var(--button); font-weight: 800; text-decoration: none; }
.button:hover { background: #ffabc2; }
.hero .button { margin-block-start: 1.5rem; }
.catalog { padding-block: 0 clamp(3rem, 8vw, 5rem); scroll-margin-top: 1.1rem; }
.catalog-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .45rem 1rem; margin-block-end: 1rem; }
.catalog-head h2 { font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -.04em; font-weight: 800; }
.catalog-head p { color: var(--muted); font-size: .94rem; margin: 0; }
.product-section { margin-block-start: 2.15rem; }
.product-section > h3 { margin-block-end: .85rem; font-size: 1.55rem; letter-spacing: -.03em; }
.products { display: grid; gap: .7rem; }
.product { display: grid; grid-template-columns: 4rem minmax(0, 1fr) minmax(15rem, 28%); align-items: center; gap: clamp(.85rem, 2.6vw, 1.55rem); background: var(--surface); border: 1px solid var(--line); border-radius: .82rem; padding: clamp(1rem, 2.8vw, 1.55rem); }
.product-icon { display: grid; width: 4rem; height: 4rem; place-items: center; border-radius: .7rem; }
.product-icon img { display: block; }
.steam { background: #30455f; }
.stars { background: #493324; color: #ffc966; font-size: 2rem; line-height: 1; }
.telegram { background: #246087; }
.appstore { background: #dceaff; }
.googleplay { background: #dcf0e2; }
.steam-card { background: #1d2b3f; border-color: #3c516a; }
.product-copy h3, .product-copy h4 { font-size: clamp(1.19rem, 2.3vw, 1.58rem); letter-spacing: -.03em; }
.product-copy p { margin: .45rem 0 0; color: var(--muted); max-width: 35rem; }
.product-facts { margin: 0; border-inline-start: 1px solid var(--line); padding-inline-start: clamp(.85rem, 2.5vw, 1.55rem); }
.steam-card .product-facts { border-color: #45586f; }
.product-facts > div + div { margin-block-start: .55rem; }
dt { color: var(--muted); font-size: .875rem; }
dd { margin: .08rem 0 0; font-weight: 660; }
.currencies { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: .25rem 0 0; }
.currencies li { padding: .12rem .45rem; border: 1px solid #5b6d84; border-radius: .32rem; font-size: .875rem; }
.footer { border-block-start: 1px solid var(--line); color: var(--muted); font-size: .94rem; font-weight: 700; padding-block: 1.1rem; }
.orders-page { padding-block: clamp(3rem, 8vw, 6rem); }
.orders-page h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); letter-spacing: -.045em; }
.orders-note { max-width: 39rem; margin-block-start: 1.75rem; padding: clamp(1.15rem, 3vw, 1.65rem); background: var(--surface); border: 1px solid var(--line); border-radius: .82rem; }
.orders-note h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); letter-spacing: -.025em; }
.orders-note p { color: var(--muted); margin: .75rem 0 1.1rem; }
@media (max-width: 760px) {
  .wrap { width: min(100% - 2rem, 72rem); }
  .hero { grid-template-columns: 1fr; gap: 1.7rem; }
  .hero-image { width: min(100%, 33rem); }
  .product { grid-template-columns: 3.25rem minmax(0, 1fr); align-items: start; }
  .product-icon { width: 3.25rem; height: 3.25rem; }
  .product-icon img { width: 1.8rem; height: 1.8rem; }
  .product-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; border-inline: 0; border-block-start: 1px solid var(--line); padding: .7rem 0 0; }
  .product-facts > div + div { margin-block-start: 0; }
}
@media (max-width: 370px) {
  .topbar-inner { flex-wrap: wrap; padding-block: .7rem; }
  .product-facts { grid-template-columns: 1fr; gap: .55rem; }
}

.admin-form { display: flex; flex-wrap: wrap; align-items: end; gap: .65rem; margin-block-start: 1.15rem; }
.admin-form label { flex-basis: 100%; font-weight: 650; }
.admin-form input { width: min(100%, 16rem); min-height: 2.8rem; padding: .55rem .65rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--page); color: var(--ink); font: inherit; }
button.button { border: 0; cursor: pointer; font-family: inherit; font-size: 1rem; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--warm); outline-offset: 3px; }
.admin-orders { max-width: 100%; }
.admin-table { overflow-x: auto; margin-block-start: .9rem; }
.admin-table table { width: 100%; border-collapse: collapse; text-align: left; }
.admin-table th, .admin-table td { border-block-end: 1px solid var(--line); padding: .55rem .75rem; overflow-wrap: anywhere; }
