/* XImperium — магазин. Один файл, без фреймворков. */

:root {
  --bg: #08090e;
  --panel: #12141c;
  --panel-2: #171a24;
  --panel-3: #1d212d;
  --line: rgba(255, 255, 255, .08);
  --txt: #e9eaf2;
  --mut: #969db0;
  --acc: #a855f7;
  --acc-2: #7c3aed;
  --ok: #34d399;
  --r: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font: 400 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }

p { margin: 0; }

button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }

input, select, textarea { font: inherit; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

section { padding: 64px 0; }

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 12px;
  background: linear-gradient(135deg, var(--acc), var(--acc-2));
  color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: 0 10px 26px rgba(124, 58, 237, .32);
  transition: transform .15s, filter .15s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-ghost { background: var(--panel-2); color: var(--txt); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: rgba(168, 85, 247, .5); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-full { width: 100%; }

.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .18); display: inline-block;
}

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(10, 11, 16, .6); border: 1px solid var(--line);
  font-size: 13px; font-weight: 700; color: var(--txt);
}

/* ---------- шапка ---------- */

.hdr {
  position: sticky; top: 0; z-index: 40;
  background: rgba(8, 9, 14, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr-in { display: flex; align-items: center; gap: 20px; height: 66px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.brand img { border-radius: 9px; }

.nav { display: flex; gap: 2px; margin-left: 6px; }
.nav a {
  padding: 8px 12px; border-radius: 10px; color: var(--mut);
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--txt); background: var(--panel); }

.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.ip {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--mut);
  transition: border-color .15s, color .15s;
}
.ip:hover { color: var(--txt); border-color: rgba(168, 85, 247, .45); }
.ip.copied { border-color: rgba(52, 211, 153, .6); }
.ip.copied::after {
  content: "Скопировано"; position: absolute; top: -10px; right: -8px;
  padding: 2px 8px; border-radius: 999px;
  background: var(--ok); color: #06231a; font-size: 11px; font-weight: 800;
}

.ip-cycle { flex-direction: column; align-items: stretch; gap: 5px; height: 44px; padding: 7px 14px 6px; }
.ip-row { display: flex; align-items: center; gap: 8px; }
.ip-bar { display: block; height: 3px; border-radius: 999px; background: var(--panel-3); overflow: hidden; }
.ip-bar i {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--acc), var(--acc-2));
  animation: ipfill 7000ms linear infinite;
}
@keyframes ipfill { from { width: 0; } to { width: 100%; } }

.cart {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 12px; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--line); color: var(--mut);
  transition: .15s;
}
.cart:hover { color: var(--txt); border-color: rgba(168, 85, 247, .45); }
.cart b { font-size: 13px; color: var(--acc); }

.burger { display: none; flex-direction: column; gap: 4px; padding: 10px; }
.burger i { width: 20px; height: 2px; background: var(--txt); border-radius: 2px; }

/* ---------- hero: текст слева, превью справа ---------- */

.hero { padding: 30px 0 46px; }

.hero-card {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  overflow: hidden; border-radius: 24px;
  border: 1px solid rgba(168, 85, 247, .22);
  background: var(--panel);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
}

.hero-left { padding: 40px 34px 42px; }
.hero-right {
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
  padding: 34px 30px;
  background: radial-gradient(120% 100% at 50% 45%, rgba(124, 58, 237, .2), rgba(7, 8, 13, 0) 72%), #07080d;
  border-left: 1px solid var(--line);
}
.hero-art {
  width: 100%; height: auto; border-radius: 14px;
  box-shadow: 0 18px 48px rgba(124, 58, 237, .3);
}
.hero-right .hero-ips { flex-direction: column; margin: 6px 0 0; gap: 10px; }
.hero-right .ip-lg { width: 100%; }
.hero-right .mirrors { margin-top: 2px; }
.hero-right .ver { margin-top: 0; }

.hero-name { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 14px; }
.lead { color: #c3c8d6; font-size: 16px; max-width: 620px; }

/* ник */
.nick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.nick-av { width: 34px; height: 34px; border-radius: 8px; image-rendering: pixelated; background: var(--panel-2); align-self: center; }
.nick-av[hidden] { display: none; }
.nick-in {
  flex: 1 1 220px; min-width: 0; height: 46px; padding: 0 15px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--txt);
  font-size: 15px; font-weight: 600; outline: none;
}
.nick-in::placeholder { color: #6f7689; }
.nick-in:focus { border-color: rgba(168, 85, 247, .55); }
.btn-nick { flex: 0 0 auto; }

/* онлайн */
.online {
  margin-top: 22px; padding: 16px 18px; border-radius: 14px;
  background: rgba(10, 11, 16, .72); border: 1px solid var(--line);
  max-width: 520px;
}
.online-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.online-h { font-size: 13px; font-weight: 700; color: var(--mut); }
.online-n { font-size: 22px; font-weight: 800; color: var(--txt); letter-spacing: -.02em; }
.online-n i { font-style: normal; font-size: 14px; font-weight: 700; color: #6f7689; }
.online-bar { height: 6px; margin-top: 10px; border-radius: 999px; background: var(--panel-3); overflow: hidden; }
.online-bar i {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--acc), var(--acc-2));
  transition: width .5s ease;
}
.online-src { margin-top: 8px; font-size: 12px; color: #6f7689; }

/* соцсети */
.socials { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.socials a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--mut);
  transition: .15s;
}
.socials a:hover { color: #fff; border-color: rgba(168, 85, 247, .55); transform: translateY(-2px); }
.socials .soc-txt {
  display: inline-flex; align-items: center; width: auto; height: 40px; padding: 0 15px;
  font-size: 14px; font-weight: 700; color: var(--txt); background: var(--panel-2);
}
.socials .soc-txt:hover { transform: none; border-color: rgba(168, 85, 247, .55); }

.pick-h {
  margin: 26px 0 10px; font-size: 12px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: var(--mut);
}
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 10px 16px; border-radius: 12px; text-align: left;
  background: rgba(18, 20, 28, .82); border: 1px solid var(--line); transition: .15s;
}
.pill b { font-size: 15px; font-weight: 800; }
.pill span { font-size: 12px; color: var(--mut); }
.pill:hover { border-color: rgba(168, 85, 247, .5); }
.pill.on {
  background: linear-gradient(135deg, var(--acc), var(--acc-2));
  border-color: transparent; box-shadow: 0 8px 22px rgba(124, 58, 237, .38);
}
.pill.on span { color: rgba(255, 255, 255, .82); }

.hero-ips { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }
.ip-lg { flex-direction: column; align-items: flex-start; gap: 2px; height: auto; padding: 12px 18px; background: rgba(18, 20, 28, .82); }
.ip-lg b { font-size: 12px; color: var(--mut); font-weight: 700; }
.ip-lg span { font-size: 17px; color: var(--txt); font-weight: 800; letter-spacing: -.01em; }

.mirrors { margin-top: 12px; font-size: 13px; color: var(--mut); }
.mirrors b { color: #c8ccda; }
.mirrors[hidden] { display: none; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ver { margin-top: 18px; font-size: 14px; color: var(--mut); }
.ver b { color: var(--txt); }

/* ---------- витрина (бегущая строка) и мониторинг ---------- */

.sec-tight { padding: 46px 0; }

.marquee {
  overflow: hidden; margin: 4px 0 18px; padding: 16px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(168, 85, 247, .05), rgba(8, 9, 14, 0));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee-track.paused, .marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

.mk-half { display: flex; gap: 14px; padding-right: 14px; }
.mk {
  display: flex; align-items: center; gap: 11px; cursor: pointer;
  padding: 10px 16px 10px 10px; border-radius: 13px;
  background: var(--panel); border: 1px solid var(--line);
}
.mk:hover { border-color: rgba(168, 85, 247, .55); }
.mk-img { width: 42px; height: 42px; border-radius: 9px; background: var(--panel-2) center / contain no-repeat; }
.mk-name { font-size: 14px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.mk-price { font-size: 13px; font-weight: 800; color: var(--acc); white-space: nowrap; }

/* ---------- заголовки разделов ---------- */

.ttl { font-size: clamp(24px, 3vw, 32px); margin-bottom: 20px; }
.sub { color: var(--mut); margin: -12px 0 24px; font-size: 15px; }

/* ---------- магазин: сетка с боковой лентой ---------- */

.shop-in { display: grid; grid-template-columns: 232px 1fr; gap: 26px; align-items: start; }

.side {
  position: sticky; top: 86px;
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px; border-radius: var(--r);
  background: var(--panel); border: 1px solid var(--line);
}
.side-lbl { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #6f7689; }
.side-lbl + .cats, .side-lbl + .srv-select { margin-top: -4px; }

.srv-select {
  width: 100%; height: 40px; padding: 0 12px; border-radius: 10px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--txt);
  font-size: 14px; font-weight: 700; outline: none;
}
.srv-select:focus { border-color: rgba(168, 85, 247, .55); }

.cats { display: flex; flex-direction: column; gap: 3px; }
.cat {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 12px; border-radius: 10px; text-align: left;
  font-size: 14px; font-weight: 700; color: var(--mut); transition: .15s;
}
.cat i { font-style: normal; font-size: 12px; color: #6f7689; }
.cat:hover { color: var(--txt); background: var(--panel-2); }
.cat.on { color: #f3e8ff; background: rgba(168, 85, 247, .16); box-shadow: inset 2px 0 0 var(--acc); }
.cat.on i { color: var(--acc); }

.side-sum { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.side-total b { font-size: 20px; color: var(--acc); }

.shop-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.head-tools { display: flex; align-items: center; gap: 12px; }
.count { font-size: 13px; color: #6f7689; }

.search {
  width: 240px; height: 40px; padding: 0 15px; border-radius: 11px;
  background: var(--panel); border: 1px solid var(--line); color: var(--txt);
  font-size: 14px; outline: none;
}
.search::placeholder { color: #6f7689; }
.search:focus { border-color: rgba(168, 85, 247, .55); }

.grp { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); margin: 26px 0 12px; }
.grp:first-child { margin-top: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(292px, 1fr)); gap: 14px; }

.card {
  display: flex; flex-direction: column; gap: 12px; text-align: left;
  padding: 14px; border-radius: 16px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line);
  transition: transform .16s, border-color .16s, box-shadow .16s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(168, 85, 247, .6); box-shadow: 0 16px 34px rgba(0, 0, 0, .5); }
.card-top { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.card-img { width: 54px; height: 54px; border-radius: 12px; background: var(--panel-2) center / contain no-repeat; }
.card-tt { min-width: 0; }
.card-name { font-size: 16px; font-weight: 700; line-height: 1.25; }
.card-sub { margin-top: 2px; font-size: 12px; color: #6f7689; }
.card-price { display: flex; flex-direction: column; align-items: flex-end; font-size: 16px; font-weight: 800; color: var(--acc); white-space: nowrap; }
.card-price i { font-style: normal; font-size: 11px; font-weight: 600; color: #6f7689; }
.card-feats { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card-feats li { position: relative; padding-left: 20px; font-size: 13.5px; line-height: 1.35; color: #c8ccda; }
.card-feats li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 13px; height: 13px;
  background: url(/images/check.svg) center / contain no-repeat;
}
.card-foot { display: flex; align-items: center; gap: 10px; }
.btn-buy { flex: 1; height: 38px; font-size: 14px; }
.shop-hint { margin: 12px 0 2px; font-size: 13px; color: var(--mut); }

.empty { padding: 40px 0; text-align: center; color: var(--mut); }

/* ---------- серверы ---------- */

.srv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.srv {
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
  padding: 24px; border-radius: var(--r);
  background: var(--panel); border: 1px solid var(--line);
  transition: transform .15s, border-color .15s;
}
.srv:hover { transform: translateY(-3px); border-color: rgba(168, 85, 247, .4); }
.srv-tag { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--acc); }
.srv h3 { font-size: 20px; }
.srv p { color: var(--mut); font-size: 15px; flex: 1; }

#srv-grid .srv { cursor: pointer; }
#srv-grid .srv.on { border-color: rgba(168, 85, 247, .65); box-shadow: 0 14px 36px rgba(0, 0, 0, .42); }
#srv-grid .srv.on .srv-tag::after { content: " · выбран"; color: var(--ok); }
.srv-num { font-size: 13px; color: var(--acc); }

/* ---------- как купить ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.step span {
  display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 14px;
  border-radius: 11px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--acc), var(--acc-2));
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--mut); font-size: 15px; }
.step b { color: var(--txt); }

.how-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- вопросы ---------- */

.faq { display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 18px;
  font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--acc); font-size: 20px; font-weight: 700; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { color: #f3e8ff; }
.faq p { padding: 0 18px 16px; color: var(--mut); font-size: 15px; }

/* ---------- футер ---------- */

.ftr { border-top: 1px solid var(--line); background: #06070b; padding: 46px 0 0; }
.ftr-in { display: grid; grid-template-columns: 1.6fr repeat(2, 1fr); gap: 28px; padding-bottom: 34px; }
.ftr-col { display: flex; flex-direction: column; gap: 10px; }
.ftr-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #6f7689; }
.ftr-col a { font-size: 15px; color: var(--mut); }
.ftr-col a:hover { color: var(--txt); }
.ftr-note { margin-top: 12px; max-width: 300px; font-size: 14px; color: var(--mut); }
.ftr-bot { border-top: 1px solid var(--line); padding: 18px 20px; font-size: 13px; color: #6f7689; }

/* ---------- корзина (drawer) ---------- */

.drawer {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(6, 7, 11, .7); backdrop-filter: blur(4px);
  display: flex; justify-content: flex-end;
}
.drawer[hidden] { display: none; }
.drawer-in {
  width: 100%; max-width: 430px; height: 100%; overflow-y: auto;
  padding: 22px 22px 26px; background: var(--panel);
  border-left: 1px solid rgba(168, 85, 247, .3);
  box-shadow: -30px 0 80px rgba(0, 0, 0, .6);
  display: flex; flex-direction: column; gap: 12px;
}
.drawer-top { display: flex; align-items: center; justify-content: space-between; }
.drawer-top h3 { font-size: 22px; }
.drawer-server { font-size: 14px; color: var(--mut); }
.drawer-server b { color: var(--txt); }

.cart-list { display: flex; flex-direction: column; gap: 10px; }
.ci {
  display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center;
  padding: 10px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line);
}
.ci img { width: 46px; height: 46px; border-radius: 9px; object-fit: contain; background: #0d0f16; }
.ci-name { font-size: 14px; font-weight: 700; line-height: 1.25; }
.ci-sub { font-size: 12px; color: #6f7689; }
.ci-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ci-price { font-size: 14px; font-weight: 800; }
.ci-qty { display: flex; align-items: center; gap: 6px; }
.ci-qty button {
  width: 24px; height: 24px; border-radius: 7px; background: var(--panel-3);
  border: 1px solid var(--line); font-size: 14px; line-height: 1; color: var(--txt);
}
.ci-qty button:hover { border-color: rgba(168, 85, 247, .5); }
.ci-qty span { min-width: 18px; text-align: center; font-size: 13px; font-weight: 700; }
.ci-x { font-size: 13px; color: #6f7689; }
.ci-x:hover { color: #fca5a5; }
.cart-none { color: var(--mut); font-size: 14px; }
.cart-none[hidden] { display: none; }

.cart-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.cart-total { font-size: 15px; color: var(--mut); }
.cart-total b { font-size: 20px; color: var(--acc); }
.cart-btns { display: flex; gap: 10px; }
.cart-btns .btn { flex: 1; }

.fld { display: flex; flex-direction: column; gap: 6px; }
.fld[hidden] { display: none; }
.fld span { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #6f7689; }
.fld input {
  height: 42px; padding: 0 13px; border-radius: 11px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--txt);
  font-size: 15px; font-weight: 600; outline: none;
}
.fld input:focus { border-color: rgba(168, 85, 247, .55); }

.agree { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--mut); }
.agree a { color: var(--acc); text-decoration: underline; }
.agree input { margin-top: 3px; accent-color: var(--acc); }

.comment {
  width: 100%; padding: 11px 13px; border-radius: 11px; resize: none;
  background: #0d0f16; border: 1px dashed rgba(168, 85, 247, .4); color: #c8ccda;
  font: 500 13px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; outline: none;
}

/* ---------- карточка товара (sheet) ---------- */

.sheet {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center;
  padding: 20px; background: rgba(6, 7, 11, .72); backdrop-filter: blur(6px);
}
.sheet[hidden] { display: none; }
.sheet-in {
  position: relative; width: 100%; max-width: 420px; padding: 24px;
  background: var(--panel); border: 1px solid rgba(168, 85, 247, .3);
  border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  display: flex; flex-direction: column; gap: 14px;
}
.sheet-x { position: absolute; top: 12px; right: 14px; font-size: 26px; color: var(--mut); line-height: 1; }
.sheet-x:hover { color: var(--txt); }

.sheet-item { display: grid; grid-template-columns: 62px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; background: var(--panel-2); }
.sheet-img { width: 62px; height: 62px; border-radius: 12px; background: #0d0f16 center / contain no-repeat; }
.sheet-item h3 { font-size: 19px; margin-bottom: 4px; }
.sheet-price { font-size: 14px; color: var(--mut); }
.sheet-price b { color: var(--ok); font-size: 17px; }
.sheet-price i { font-style: normal; font-size: 12px; color: #6f7689; }
.term[hidden] { display: none; }
.term { display: flex; flex-direction: column; gap: 7px; }
.term > span { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #6f7689; }
.term-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.term-pill {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start; padding: 9px 11px;
  cursor: pointer; text-align: left; font: inherit; color: var(--txt);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px; transition: .15s;
}
.term-pill:hover { border-color: rgba(168, 85, 247, .5); }
.term-pill.on { border-color: var(--acc); background: rgba(168, 85, 247, .14); }
.term-pill b { font-size: 13.5px; font-weight: 700; }
.term-pill i { font-style: normal; font-size: 13px; font-weight: 800; color: var(--mut); }
.term-pill.on i { color: var(--ok); }
.sheet-feats { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.sheet-feats:empty { display: none; }
.sheet-feats li { position: relative; padding-left: 20px; font-size: 13.5px; line-height: 1.35; color: #c8ccda; }
.sheet-feats li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 13px; height: 13px;
  background: url(/images/check.svg) center / contain no-repeat;
}

.qty { display: flex; align-items: center; gap: 8px; }
.qty button {
  width: 40px; height: 42px; border-radius: 11px; background: var(--panel-2);
  border: 1px solid var(--line); font-size: 19px; color: var(--txt);
}
.qty button:hover { border-color: rgba(168, 85, 247, .55); }
.qty input {
  flex: 1; height: 42px; padding: 0 12px; border-radius: 11px; text-align: center;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--txt);
  font-size: 16px; font-weight: 800; outline: none; -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

.sheet-total { font-size: 15px; color: var(--mut); }
.sheet-total b { color: var(--acc); font-size: 20px; }
.sheet-server { font-size: 14px; color: var(--mut); }
.sheet-server b { color: var(--txt); }
.sheet-btns { display: flex; gap: 10px; }
.sheet-btns .btn { flex: 1; }

/* ---------- toast ---------- */

.toast {
  position: fixed; z-index: 90; left: 50%; bottom: 26px; transform: translateX(-50%);
  padding: 12px 20px; border-radius: 12px; background: var(--panel-3);
  border: 1px solid rgba(168, 85, 247, .45); color: var(--txt);
  font-size: 14px; font-weight: 700; box-shadow: 0 20px 50px rgba(0, 0, 0, .55);
}
.toast[hidden] { display: none; }

/* ---------- адаптив ---------- */

@media (max-width: 1040px) {
  .shop-in { grid-template-columns: 1fr; }
  .side { position: static; }
  .cats { flex-direction: row; flex-wrap: wrap; }
  .cat { flex: 0 0 auto; }
  .cat.on { box-shadow: inset 0 -2px 0 var(--acc); }
  .side-sum { flex-direction: row; align-items: center; justify-content: space-between; }
  .side-sum .btn { width: auto; }
}

@media (max-width: 860px) {
  .nav {
    position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 2px;
    margin: 0; padding: 10px 20px 16px; background: rgba(8, 9, 14, .97);
    border-bottom: 1px solid var(--line); display: none;
  }
  .nav.open { display: flex; }
  .burger { display: flex; }
  .hdr-right .ip { display: none; }
  .hdr-right .btn-sm { display: none; }
  .hero-card { grid-template-columns: 1fr; }
  .hero-left { padding: 30px 22px 34px; }
  .hero-right { padding: 30px 22px 34px; border-left: none; border-top: 1px solid var(--line); }
  .srv-grid, .steps { grid-template-columns: 1fr; }
  .ftr-in { grid-template-columns: 1fr 1fr; }
  section { padding: 48px 0; }
}

@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .card { padding: 13px; gap: 10px; }
  .card-top { grid-template-columns: 46px minmax(0, 1fr); }
  .card-img { width: 46px; height: 46px; }
  .card-price { grid-column: 2; justify-self: start; align-items: flex-start; }
  .card-name { font-size: 15px; }
  .card-price { font-size: 15px; }
  .term-pill { padding: 8px 9px; }
  .term-pill b { font-size: 12.5px; }
  .search { width: 100%; }
  .shop-head { align-items: stretch; }
  .head-tools { width: 100%; }
  .ftr-in { grid-template-columns: 1fr; }
  .cart-btns, .sheet-btns { flex-direction: column; }
  .nick-in { flex-basis: 100%; }
  .btn-nick { width: 100%; }
  .online-n { font-size: 18px; }
}
