:root{
  --bg:#0c0f17; --panel:#141926; --panel2:#1a2133; --line:#262f45;
  --text:#eaf0ff; --muted:#93a0bd; --brand:#2f6bff; --brand2:#18c2ff;
  --ok:#2ecc71; --warn:#ffb020; --bad:#ff5d5d; --wa:#25d366;
  --r:16px;
}
*{box-sizing:border-box;margin:0}
html{scroll-behavior:smooth}
body{
  background:var(--bg);color:var(--text);
  font-family:"Noto Sans Georgian","Inter",system-ui,"Segoe UI",Sylfaen,Arial,sans-serif;
  line-height:1.5;-webkit-font-smoothing:antialiased;
}
.wrap{max-width:1180px;margin:0 auto;padding:0 16px}
button{font:inherit;color:inherit;cursor:pointer;border:0;background:none}
input{font:inherit}

/* header */
.top{position:sticky;top:0;z-index:20;background:rgba(12,15,23,.85);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.top-in{display:flex;align-items:center;justify-content:space-between;height:60px}
.logo{font-weight:700;font-size:22px;color:var(--text);text-decoration:none;letter-spacing:.3px}
.logo span{color:var(--brand2)}
.top-r{display:flex;align-items:center;gap:12px}
.lang{display:flex;background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:3px}
.lang button{padding:5px 11px;border-radius:7px;font-size:13px;font-weight:600;color:var(--muted)}
.lang button.on{background:var(--brand);color:#fff}
.cart-btn{position:relative;width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:var(--panel);border:1px solid var(--line)}
.badge{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;border-radius:10px;background:var(--brand2);color:#00131f;font-size:12px;font-weight:700;display:grid;place-items:center;padding:0 5px}
.badge.zero{display:none}

/* hero */
.hero{padding:44px 0 28px;background:
  radial-gradient(700px 260px at 15% 0%,rgba(47,107,255,.28),transparent 70%),
  radial-gradient(600px 240px at 90% 20%,rgba(24,194,255,.16),transparent 70%)}
.hero h1{font-size:clamp(26px,4.6vw,44px);line-height:1.2;max-width:760px}
.hero p{color:var(--muted);margin-top:10px;max-width:620px;font-size:17px}
.how{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}
.how div{display:flex;align-items:center;gap:10px;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:10px 14px;font-size:14px}
.how b{width:26px;height:26px;border-radius:50%;background:var(--brand);display:grid;place-items:center;font-size:13px;flex:none}

/* tools */
.tools{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:22px 0 16px}
.tabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px}
.tabs button{white-space:nowrap;padding:9px 16px;border-radius:999px;background:var(--panel);border:1px solid var(--line);font-size:14px;font-weight:600;color:var(--muted)}
.tabs button.on{background:var(--brand);border-color:var(--brand);color:#fff}
.check{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--muted);cursor:pointer}
.check input{accent-color:var(--brand);width:17px;height:17px}

/* grid */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px;padding-bottom:48px}
.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;display:flex;flex-direction:column;transition:transform .15s,border-color .15s}
.card:hover{transform:translateY(-3px);border-color:#3a4766}
.card.sold{opacity:.65}
.pic{position:relative;aspect-ratio:4/3;background:var(--panel2);display:grid;place-items:center;overflow:hidden}
.pic img{width:100%;height:100%;object-fit:cover}
.pic .ph{font-size:54px;opacity:.9}
.pic.stickers{background:linear-gradient(135deg,#3b2a7a,#1d6fa8)}
.pic.consoles{background:linear-gradient(135deg,#12306b,#0b1b3d)}
.pic.accessories{background:linear-gradient(135deg,#0f5a5e,#143a55)}
.tag{position:absolute;top:10px;left:10px;font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px;background:rgba(0,0,0,.55);backdrop-filter:blur(6px)}
.tag.ok{color:var(--ok)} .tag.low{color:var(--warn)} .tag.out{color:var(--bad)}
.body{padding:14px;display:flex;flex-direction:column;gap:6px;flex:1}
.body h3{font-size:16px;line-height:1.35}
.body p{color:var(--muted);font-size:13.5px;flex:1}
.row{display:flex;justify-content:space-between;align-items:center;margin-top:8px;gap:8px}
.price{font-size:20px;font-weight:700}
.left{font-size:12.5px;color:var(--muted)}
.add{position:relative;display:inline-flex;align-items:center;justify-content:center;width:46px;height:42px;padding:0;border-radius:12px;background:var(--brand);font-weight:600;font-size:14px;white-space:nowrap}
.add.txt,.add.req{width:auto;padding:9px 14px;height:auto}
.add i{position:absolute;top:-7px;right:-7px;min-width:20px;height:20px;border-radius:10px;background:var(--brand2);color:#00131f;font-size:12px;font-style:normal;font-weight:700;display:grid;place-items:center;padding:0 5px;border:2px solid var(--panel)}
.add:hover{background:#4a7fff}
.add:disabled{background:var(--panel2);color:var(--muted);cursor:not-allowed}
.empty{text-align:center;color:var(--muted);padding:40px 0}

/* footer */
.foot{border-top:1px solid var(--line);padding:26px 0 34px;color:var(--muted);font-size:14px}
.foot .wrap{display:flex;flex-direction:column;gap:8px}
.foot-links{display:flex;gap:16px;flex-wrap:wrap}
.foot a{color:var(--brand2);text-decoration:none}
.foot small{opacity:.7}

/* drawer */
.overlay{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:30}
.drawer{position:fixed;top:0;right:0;height:100%;width:min(420px,100%);background:var(--panel);border-left:1px solid var(--line);z-index:31;display:flex;flex-direction:column;transform:translateX(105%);transition:transform .25s}
.drawer.open{transform:none}
.drawer-h{display:flex;justify-content:space-between;align-items:center;padding:16px;border-bottom:1px solid var(--line)}
.drawer-h h2{font-size:18px}
.x{font-size:30px;line-height:1;width:36px;height:36px;border-radius:10px;color:var(--muted)}
.drawer-b{flex:1;overflow:auto;padding:12px 16px}
.drawer-f{padding:14px 16px 18px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:10px}
.line{display:flex;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);align-items:center}
.line .t{flex:1;font-size:14px}
.line .t small{display:block;color:var(--muted)}
.qty{display:flex;align-items:center;gap:2px;background:var(--panel2);border-radius:10px}
.qty button{width:30px;height:30px;font-size:18px}
.qty button:disabled{opacity:.3;cursor:not-allowed}
.qty span{min-width:22px;text-align:center;font-weight:600}
.rm{color:var(--bad);width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:rgba(255,93,93,.12)}
.rm:hover{background:rgba(255,93,93,.25)}
.clr{display:block;margin:14px auto 4px;color:var(--muted);font-size:13px;text-decoration:underline;padding:6px}
.qty button{width:34px;height:34px}
.cart-empty{text-align:center;color:var(--muted);padding:40px 0}
.fld{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--muted)}
.fld input{background:var(--panel2);border:1px solid var(--line);border-radius:10px;padding:10px 12px;color:var(--text);font-size:15px}
.fld input:focus{outline:2px solid var(--brand);border-color:transparent}
.total{display:flex;justify-content:space-between;font-size:18px;margin-top:4px}

.wa:disabled{opacity:.4;cursor:not-allowed}
.hint{color:var(--muted);font-size:12.5px;text-align:center}

.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,30px);background:#fff;color:#0c0f17;padding:10px 18px;border-radius:12px;font-weight:600;font-size:14px;opacity:0;pointer-events:none;transition:.25s;z-index:40}
.toast.show{opacity:1;transform:translate(-50%,0)}

@media (max-width:520px){
  .grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .body{padding:10px}.body h3{font-size:14px}.body p{display:none}
  .price{font-size:17px}.add{width:42px;height:38px}.add.txt,.add.req{padding:8px 10px;font-size:13px;height:auto;width:auto}
  .row{flex-wrap:wrap}
  .pic .ph{font-size:40px}
}

/* reservation */
.dview{display:flex;flex-direction:column;flex:1;min-height:0}
.dview[hidden]{display:none}
.resbar{display:flex;width:100%;justify-content:space-between;align-items:center;gap:10px;padding:9px 16px;background:linear-gradient(90deg,#14407a,#0f5a72);border-top:1px solid var(--line);font-size:14px;font-weight:600;text-align:left}
.resbar[hidden]{display:none}
.resbar.warn{background:linear-gradient(90deg,#7a3b14,#8a2a2a)}
.resbar b{background:rgba(255,255,255,.18);border-radius:8px;padding:3px 10px;font-size:13px}
.reserve{background:var(--brand);color:#fff;font-weight:700;font-size:16px;padding:13px 18px;border-radius:13px}
.reserve:hover{background:#4a7fff}.reserve:disabled{opacity:.5;cursor:wait}
.refbox{display:flex;justify-content:space-between;align-items:baseline;background:var(--panel2);border-radius:12px;padding:12px 14px;margin-bottom:12px}
.refbox small{color:var(--muted)}.refbox b{font-size:22px;letter-spacing:.5px;color:var(--brand2)}
.ritems{border:1px solid var(--line);border-radius:12px;padding:6px 12px;margin-bottom:14px}
.rline{display:flex;justify-content:space-between;gap:10px;padding:6px 0;font-size:14px}
.rline.tot{border-top:1px solid var(--line);margin-top:4px;padding-top:8px;font-size:16px}
.timer{text-align:center;margin:6px 0 12px}
.timer small{display:block;color:var(--muted)}.timer b{font-size:40px;font-variant-numeric:tabular-nums;letter-spacing:1px}
.steps{padding-left:20px;color:var(--muted);font-size:14px;margin-bottom:14px;display:flex;flex-direction:column;gap:6px}
a.wa{display:flex;align-items:center;justify-content:center;background:var(--wa);color:#04210f;font-weight:700;font-size:16px;padding:14px;border-radius:13px;text-decoration:none;margin-bottom:16px}
.codefld{margin-top:4px}
.coderow{display:flex;gap:8px}
.coderow input{flex:1;min-width:0;text-align:center;font-size:22px;letter-spacing:6px;font-variant-numeric:tabular-nums}
.msg{min-height:20px;font-size:13.5px;margin-top:8px}.msg.err{color:var(--warn)}
.final{padding:16px;border-radius:12px;font-weight:600;margin-bottom:14px;text-align:center}
.final.good{background:rgba(46,204,113,.15);color:var(--ok)}
.final.bad{background:rgba(255,176,32,.12);color:var(--warn)}
.tag.res{color:#ffb020;background:rgba(60,35,0,.75)}
.left.av{color:var(--ok)}.left.rs{color:var(--warn);font-weight:600}.left.sd{color:var(--muted)}
.card.sold .pic{filter:grayscale(.6)}

/* request */
.add.req{background:var(--panel2);border:1px solid var(--brand);color:#9fc0ff}
.add.req:hover{background:#1f2c4d}
.add.req:disabled{border-color:var(--line);color:var(--ok);opacity:1}
.rmodal{position:fixed;inset:0;background:rgba(0,0,0,.65);z-index:35;display:flex;align-items:center;justify-content:center;padding:16px}
.rmodal[hidden]{display:none}
.rsheet{background:var(--panel);border:1px solid var(--line);border-radius:18px;width:100%;max-width:440px;max-height:92vh;overflow:auto;padding:18px;display:flex;flex-direction:column;gap:12px}
.rsheet h3{font-size:18px}.rsub{color:var(--muted);font-size:14px}
.ghostb{background:var(--panel2);border:1px solid var(--line);padding:13px 16px;border-radius:13px;font-weight:600}
.rsheet .coderow{margin-top:4px}.rsheet .coderow .reserve{flex:1}
.priv{margin-top:2px;line-height:1.35}

/* header logo */
.logo{display:flex;align-items:baseline;gap:8px}
.logo.has-mark{background:#e4ebfa;border-radius:11px;padding:4px 12px 4px 9px;gap:7px}
.logo img{height:30px;width:auto;display:block}
.logo img[hidden]{display:none}
@font-face{font-family:"HS Brand";src:url(fonts/brand.woff2) format("woff2");font-weight:900;font-style:italic;font-display:swap}
.logo > span{color:var(--text);font-family:"HS Brand",system-ui,sans-serif;font-weight:900;font-style:italic;text-transform:uppercase;letter-spacing:1px;font-size:22px;line-height:1}
.logo > span span{color:#2a8bff}
.logo.has-mark > span span{color:#006cfb}
.logo.has-mark > span{margin-left:-9px}
@media (max-width:400px){.logo.has-mark{padding:3px 10px 3px 7px}.logo img{height:27px}.logo > span{font-size:19px;letter-spacing:.5px}.top-r{gap:8px}}
@media (max-width:370px){.logo img{height:24px}.logo > span{font-size:16px;letter-spacing:0}.logo.has-mark{padding:3px 8px 3px 6px;gap:5px}.logo.has-mark > span{margin-left:-7px}.lang button{padding:5px 7px}.cart-btn{width:38px;height:38px}.top-r{gap:6px}}
