:root {
  --bg: #05070b;
  --panel: #0b1018;
  --panel2: #101827;
  --text: #eef4ff;
  --muted: #98a8bd;
  --gold: #ffd83d;
  --green: #00f5a0;
  --violet: #d04cff;
  --line: #263246;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0, #20102d 0, #08101a 38%, #030508 80%);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.topbar { position: sticky; top: 0; z-index: 20; background: #050910; border-bottom: 1px solid #1e2b3d; }
.topbar-inner { max-width: 1500px; margin: auto; min-height: 64px; display: flex; align-items: center; gap: 18px; padding: 10px 20px; }
.brand { font-size: 22px; font-weight: 900; letter-spacing: 3px; color: var(--gold); }
.nav { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.nav a { padding: 9px 12px; border: 1px solid #253247; border-radius: 10px; color: #cbd6e7; }
.nav a.active { border-color: var(--gold); color: var(--gold); }
.hero { max-width: 1500px; margin: auto; padding: 42px 20px 20px; text-align: center; }
.version { color: var(--gold); font-weight: 800; letter-spacing: 4px; }
.hero h1 { margin: 8px 0; font-size: clamp(38px, 6vw, 72px); }
.hero p { max-width: 820px; margin: 8px auto 22px; color: #b7c5d8; }
.server-grid { max-width: 980px; margin: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.server-button { padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: #0a0e15; color: #fff; cursor: pointer; }
.server-button.selected { border-color: var(--server-color); box-shadow: 0 0 24px rgba(255,255,255,.08); }
.server-button strong { display: block; color: var(--server-color); font-size: 18px; }
.layout { max-width: 1500px; margin: auto; padding: 15px 20px 60px; display: grid; grid-template-columns: 230px minmax(0, 1fr) 330px; gap: 18px; }
.panel { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid #202c3d; border-radius: 16px; padding: 16px; }
.filters, .cart-panel { position: sticky; top: 85px; height: max-content; }
.filters label, .cart-panel label { display: block; margin: 12px 0 5px; color: var(--muted); font-size: 12px; }
.filters input, .filters select, .cart-panel input, .cart-panel textarea, .toolbar select {
  width: 100%; padding: 10px 11px; border-radius: 9px; border: 1px solid #2b3a50; background: #090d14; color: #fff;
}
.check-line { display: flex !important; gap: 8px; align-items: center; }
.check-line input { width: auto; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.toolbar select { width: auto; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.product { overflow: hidden; background: linear-gradient(180deg, #111a27, #080c13); border: 1px solid #263349; border-radius: 15px; display: flex; flex-direction: column; min-height: 350px; }
.product-image { height: 176px; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle, #202c3d, #080b11 70%); }
.product-image img { max-width: 88%; max-height: 154px; object-fit: contain; }
.product-body { padding: 13px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.badges { display: flex; gap: 5px; flex-wrap: wrap; }
.badge { font-size: 10px; padding: 4px 7px; border: 1px solid #35455d; border-radius: 20px; }
.badge.promo { border-color: #ff5577; color: #ff8ca3; }
.product-name { font-weight: 800; min-height: 40px; }
.product-meta, .note { color: var(--muted); font-size: 12px; }
.product-price { margin-top: auto; font-size: 20px; font-weight: 900; color: var(--gold); }
.old-price { margin-left: 6px; color: #7e8794; font-size: 12px; text-decoration: line-through; }
.add-button, #prepareOrder { width: 100%; padding: 10px; border-radius: 10px; border: 1px solid var(--gold); background: #171204; color: #fff; font-weight: 800; cursor: pointer; }
.cart-row { padding: 10px 0; border-bottom: 1px solid #1c2736; }
.cart-row-top { display: flex; justify-content: space-between; gap: 8px; }
.cart-controls { display: flex; gap: 6px; margin-top: 7px; }
.cart-controls button { border: 1px solid #35445b; background: #111925; color: #fff; border-radius: 6px; min-width: 28px; min-height: 28px; }
.cart-total { display: flex; justify-content: space-between; font-size: 18px; padding: 16px 0; }
#orderText { margin-top: 10px; resize: vertical; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.contact { padding: 11px; border-radius: 10px; text-align: center; font-weight: 800; border: 1px solid #34455e; }
.telegram { border-color: #36aeea; }
.discord { border-color: #5865f2; }
.empty { padding: 32px; text-align: center; color: var(--muted); }
.footer { padding: 28px 20px; text-align: center; border-top: 1px solid #182334; color: #7f8ea3; }
@media (max-width: 1050px) {
  .layout { grid-template-columns: 1fr; }
  .filters, .cart-panel { position: static; }
}
@media (max-width: 700px) {
  .server-grid { grid-template-columns: 1fr; }
  .nav a { font-size: 12px; padding: 7px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .layout { padding: 10px; }
}
