/* ==========================================================
   Витрина: тема «Dark Glass» — тёмно-синий фон, стекло, свечение,
   живой фон (сгустки света, лучи, сетка + частицы на canvas в bg.js)
   ========================================================== */

/* Регистрация переменных, чтобы их можно было плавно анимировать */
@property --o-x1 { syntax: "<percentage>"; inherits: false; initial-value: 14%; }
@property --o-y1 { syntax: "<percentage>"; inherits: false; initial-value: 22%; }
@property --o-x2 { syntax: "<percentage>"; inherits: false; initial-value: 88%; }
@property --o-y2 { syntax: "<percentage>"; inherits: false; initial-value: 72%; }
@property --o-x3 { syntax: "<percentage>"; inherits: false; initial-value: 54%; }
@property --o-y3 { syntax: "<percentage>"; inherits: false; initial-value: 6%; }
@property --b-a { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --b-b { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --g-o { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --glow { syntax: "<number>"; inherits: false; initial-value: .8; }
@property --sheen { syntax: "<percentage>"; inherits: false; initial-value: -120%; }

:root {
  --bg: #050914;
  --bg-2: #081022;
  --card: #0b1430;
  --line: rgba(124, 160, 255, .16);
  --line-2: rgba(124, 196, 255, .34);
  --glass: rgba(255, 255, 255, .045);
  --glass-2: rgba(255, 255, 255, .08);
  --text: #eaf0ff;
  --muted: #8d9bbd;
  --faint: #66749a;
  --accent: #2f7bff;
  --sky: #7cc4ff;
  --cyan: #22d3ee;
  --ok: #2ee59d;
  --warn: #ffc43c;
  --err: #ff5d6c;
  --grad: linear-gradient(135deg, var(--accent), #22b8f0);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 14px 40px -22px rgba(0, 0, 0, .9);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: var(--bg);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: rgba(47, 123, 255, .45); color: #fff; }
.wrap { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
[hidden] { display: none !important; }

/* ---------- ЖИВОЙ ФОН ---------- */
/* слой 1: сгустки света дрейфуют по экрану */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(46vmax 38vmax at var(--o-x1) var(--o-y1), rgba(37, 99, 235, .42), transparent 62%),
    radial-gradient(40vmax 34vmax at var(--o-x2) var(--o-y2), rgba(6, 182, 212, .24), transparent 64%),
    radial-gradient(34vmax 30vmax at var(--o-x3) var(--o-y3), rgba(99, 102, 241, .3), transparent 66%),
    linear-gradient(180deg, #060b1c, #03060e);
  animation: orbs 42s ease-in-out infinite;
}
/* слой 3 (над частицами): лучи и сетка, плывут и пульсируют */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0, transparent 40px, rgba(70, 130, 255, calc(.2 * var(--glow))) 95px, transparent 160px, transparent 330px) var(--b-a) 0 / 330px 100% repeat-x,
    linear-gradient(90deg, transparent 0, transparent 120px, rgba(124, 196, 255, calc(.12 * var(--glow))) 175px, transparent 225px, transparent 470px) var(--b-b) 0 / 470px 100% repeat-x,
    linear-gradient(rgba(124, 160, 255, .07) 1px, transparent 1px) var(--g-o) var(--g-o) / 56px 56px,
    linear-gradient(90deg, rgba(124, 160, 255, .07) 1px, transparent 1px) var(--g-o) var(--g-o) / 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 95% 85% at 50% 0, #000 20%, transparent 78%);
          mask-image: radial-gradient(ellipse 95% 85% at 50% 0, #000 20%, transparent 78%);
  animation: beam-a 26s linear infinite, beam-b 41s linear infinite, grid-move 38s linear infinite, pulse 8s ease-in-out infinite;
}
/* слой 2: частицы и «кометы» рисует bg.js */
#bgCanvas { position: fixed; inset: 0; z-index: -2; width: 100vw; height: 100vh; pointer-events: none; }

@keyframes orbs {
  0%, 100% { --o-x1: 14%; --o-y1: 22%; --o-x2: 88%; --o-y2: 72%; --o-x3: 54%; --o-y3: 6%; }
  33% { --o-x1: 34%; --o-y1: 60%; --o-x2: 64%; --o-y2: 26%; --o-x3: 18%; --o-y3: 78%; }
  66% { --o-x1: 72%; --o-y1: 32%; --o-x2: 24%; --o-y2: 80%; --o-x3: 84%; --o-y3: 56%; }
}
@keyframes beam-a { to { --b-a: 330px; } }
@keyframes beam-b { from { --b-b: 0px; } to { --b-b: -470px; } }
@keyframes grid-move { to { --g-o: 56px; } }
@keyframes pulse { 0%, 100% { --glow: .5; } 50% { --glow: 1.15; } }
@keyframes shimmer { from { background-position: 0 0; } to { background-position: 200% 0; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-12px) rotate(var(--r, 0deg)); } }
@keyframes blink { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(46, 229, 157, .6); } 50% { opacity: .7; box-shadow: 0 0 0 6px rgba(46, 229, 157, 0); } }
@keyframes rise { from { opacity: .35; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sk { to { background-position: -200% 0; } }

/* Переливающийся текст для заголовков */
.shine {
  background: linear-gradient(90deg, #fff 0, #9fd0ff 25%, var(--cyan) 50%, #9fd0ff 75%, #fff 100%) 0 0 / 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 9s linear infinite;
}

/* ---------- Шапка ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(5, 9, 20, .55);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
          backdrop-filter: blur(16px) saturate(140%);
}
.topbar-inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px; position: relative; flex: none;
  background: var(--grad);
  box-shadow: 0 0 0 1px rgba(124, 196, 255, .3), 0 0 32px -6px rgba(47, 123, 255, .9);
}
.brand-mark::after { content: ""; position: absolute; inset: 9px 8px; border-radius: 4px; border: 2.5px solid #fff; border-top-width: 6px; }
.search {
  flex: 1; max-width: 540px; height: 42px; display: flex; align-items: center; gap: 9px; padding: 0 14px;
  background: var(--glass); border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.search:focus-within { border-color: var(--sky); background: rgba(47, 123, 255, .1); box-shadow: 0 0 0 3px rgba(47, 123, 255, .25), 0 0 30px -8px rgba(47, 123, 255, .8); }
.search svg { width: 17px; height: 17px; fill: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; }
.search input::placeholder { color: var(--muted); }
.topnav { display: flex; gap: 8px; margin-left: auto; }
.navlink {
  height: 40px; padding: 0 15px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  border-radius: 999px; border: 1px solid var(--line); background: var(--glass);
  color: var(--text); font-weight: 600; font-size: 14px; transition: background .2s, border-color .2s, box-shadow .2s;
}
.navlink:hover { background: var(--grad); border-color: transparent; box-shadow: 0 8px 24px -8px rgba(47, 123, 255, .9); }
.badge { background: var(--grad); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; font-weight: 800; box-shadow: 0 0 12px -2px rgba(47, 123, 255, .9); }
.navlink:hover .badge { background: #fff; color: var(--accent); }

main { flex: 1; padding-top: 26px; padding-bottom: 56px; }
main > * { animation: rise .4s ease both; }

/* ---------- Главный экран ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: center;
  padding: 40px;
  margin-bottom: 26px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 100% 0, rgba(47, 123, 255, .22), transparent 55%),
    radial-gradient(80% 80% at 0 100%, rgba(34, 211, 238, .1), transparent 60%),
    linear-gradient(180deg, rgba(14, 24, 54, .86), rgba(8, 15, 34, .9));
  box-shadow: 0 30px 80px -40px rgba(47, 123, 255, .6), inset 0 1px 0 rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--sky), transparent);
}
.live {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; margin-bottom: 18px;
  border-radius: 999px; border: 1px solid rgba(46, 229, 157, .3); background: rgba(46, 229, 157, .08);
  color: #b9ffe0; font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
}
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: blink 1.8s infinite; }
.hero h1 { font-size: clamp(30px, 4.6vw, 54px); line-height: 1.04; letter-spacing: -.04em; font-weight: 800; margin: 0 0 16px; }
.hero p { margin: 0 0 24px; color: var(--muted); font-size: 16px; max-width: 560px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-stats div {
  min-width: 118px; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--glass);
}
.hero-stats b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.hero-stats span { font-size: 12px; color: var(--muted); font-weight: 600; }
.hero-art { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; transform: rotate(-7deg) translateX(10px); }
.tile {
  --r: 0deg;
  aspect-ratio: 1; border-radius: 20px; overflow: hidden; position: relative;
  border: 1px solid rgba(124, 196, 255, .28);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9), 0 0 40px -14px rgba(47, 123, 255, .7);
  animation: float 6s ease-in-out infinite;
}
.tile:nth-child(2n) { animation-delay: -2s; margin-top: 18px; }
.tile:nth-child(3n) { animation-delay: -4s; }
.tile img, .tile .ph { width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255, 255, 255, .18), transparent 40%); }

/* ---------- Кнопки ---------- */
.btn {
  --sheen: -120%;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--glass); color: var(--text); font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: --sheen .8s ease, box-shadow .25s, background-color .2s, border-color .2s, transform .1s;
}
.btn:hover { border-color: var(--line-2); background-color: rgba(47, 123, 255, .18); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-primary {
  border: 0; color: #fff;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%) no-repeat var(--sheen) 0 / 220% 100%, var(--grad);
  box-shadow: 0 10px 28px -10px rgba(47, 123, 255, .95);
}
.btn-primary:hover { --sheen: 220%; box-shadow: 0 14px 36px -8px rgba(47, 123, 255, 1); }
.btn-white {
  border: 0; background: #fff; color: #07101f;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 14px 36px -10px rgba(124, 196, 255, .75);
}
.btn-white:hover { background: #dff0ff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .4), 0 18px 46px -8px rgba(124, 196, 255, 1); }
.btn-block { width: 100%; }
.btn-ghost { background: var(--glass); }

/* ---------- Категории: стеклянная «таблетка» ---------- */
.chips {
  display: flex; gap: 4px; overflow-x: auto; padding: 5px; margin-bottom: 22px; width: fit-content; max-width: 100%;
  border: 1px solid var(--line); border-radius: 999px; background: var(--glass);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 9px 16px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: background .2s, color .2s, box-shadow .2s;
}
.chip:hover { color: #fff; background: rgba(47, 123, 255, .18); box-shadow: inset 0 0 0 1px rgba(124, 196, 255, .3); }
.chip.active { background: var(--grad); color: #fff; box-shadow: 0 8px 24px -8px rgba(47, 123, 255, .95); }
.chip .count { opacity: .65; font-weight: 600; margin-left: 6px; font-size: 12px; }

.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 4px 0 16px; }
.section-title h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.03em; }

/* ---------- Карточки ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; }
.card {
  --mx: 50%; --my: 0%;
  position: relative; display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: radial-gradient(120% 80% at 100% 0, rgba(47, 123, 255, .14), transparent 55%), linear-gradient(180deg, #0e1836, #080f22);
  box-shadow: var(--shadow);
  transition: translate .25s ease, border-color .25s, box-shadow .25s;
  animation: rise .5s ease both;
}
.card:nth-child(4n+2) { animation-delay: .04s; }
.card:nth-child(4n+3) { animation-delay: .08s; }
.card:nth-child(4n+4) { animation-delay: .12s; }
/* подсветка, которая следует за курсором */
.card::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(124, 196, 255, .16), transparent 60%);
}
/* световая полоса по верхней кромке */
.card::after {
  content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 2px; z-index: 3; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--sky), transparent); transform: scaleX(0); transition: transform .35s;
}
.card:hover { translate: 0 -5px; border-color: rgba(124, 196, 255, .55); box-shadow: 0 22px 60px -18px rgba(47, 123, 255, .6), inset 0 0 0 1px rgba(124, 196, 255, .12); }
.card:hover::before { opacity: 1; }
.card:hover::after { transform: scaleX(1); }
.card-media { margin: 12px 12px 0; border-radius: 14px; overflow: hidden; aspect-ratio: 460 / 215; background: linear-gradient(135deg, #16245a, #0a1230); position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.ph {
  --ph-h: 220; --ph-x: 30%;
  position: relative; width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(70% 90% at var(--ph-x) 0, hsla(var(--ph-h), 95%, 62%, .55), transparent 65%),
    radial-gradient(60% 70% at 100% 100%, hsla(calc(var(--ph-h) - 30), 90%, 55%, .28), transparent 70%),
    linear-gradient(135deg, #16245a, #0a1230);
}
/* мелкая сетка поверх, как на фоне сайта */
.ph::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: linear-gradient(rgba(124, 160, 255, .12) 1px, transparent 1px) 0 0 / 18px 18px, linear-gradient(90deg, rgba(124, 160, 255, .12) 1px, transparent 1px) 0 0 / 18px 18px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%); mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
}
.ph span {
  position: relative; font-weight: 800; font-size: 32px; letter-spacing: -.03em;
  background: linear-gradient(180deg, #fff, hsl(var(--ph-h), 100%, 82%)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 18px hsla(var(--ph-h), 100%, 60%, .6));
}
.card-tag {
  position: absolute; top: 9px; left: 9px; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px;
  background: linear-gradient(135deg, #ff5d6c, #ff8a4c); color: #fff; box-shadow: 0 6px 16px -6px rgba(255, 93, 108, .9);
}
.card-body { padding: 13px 15px 16px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card-title { font-weight: 700; font-size: 15px; line-height: 1.3; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-cat { font-size: 12px; color: var(--muted); font-weight: 600; }
.card-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--sky); white-space: nowrap; }
.price small { font-weight: 600; color: var(--muted); font-size: 12px; margin-right: 4px; }
.card-go {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--glass); border: 1px solid var(--line); color: var(--sky); transition: background .2s, color .2s, transform .2s;
}
.card:hover .card-go { background: var(--grad); color: #fff; border-color: transparent; transform: translateX(2px); }
.card-go svg { width: 15px; height: 15px; }
.variants { font-size: 11.5px; color: var(--muted); font-weight: 600; }

.empty { text-align: center; padding: 60px 16px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--glass); }
.empty h3 { color: var(--text); margin: 0 0 6px; font-size: 20px; }
.empty .btn { margin-top: 14px; }

/* ---------- Страница товара ---------- */
.crumbs { font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--muted); margin-bottom: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--sky); }
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 26px; align-items: start; }
.product-info {
  border-radius: 24px; border: 1px solid var(--line); padding: 16px 16px 22px;
  background: radial-gradient(120% 70% at 100% 0, rgba(47, 123, 255, .12), transparent 55%), linear-gradient(180deg, rgba(16, 27, 58, .94), rgba(8, 15, 34, .96));
  box-shadow: var(--shadow);
}
.product-media { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(135deg, #16245a, #0a1230); aspect-ratio: 460 / 215; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product h1 { font-size: clamp(26px, 3.4vw, 38px); margin: 20px 6px 10px; line-height: 1.08; letter-spacing: -.035em; font-weight: 800; }
.cat-pill { display: inline-flex; margin: 0 6px; padding: 4px 11px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 700; }
.desc { color: var(--muted); white-space: pre-line; margin: 12px 6px 0; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.trust div { background: var(--glass); border: 1px solid var(--line); border-radius: 14px; padding: 12px; font-size: 12.5px; color: var(--muted); }
.trust b { display: block; color: var(--text); font-size: 14px; margin-bottom: 3px; }

.buy {
  position: sticky; top: 88px; padding: 22px; border-radius: 24px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 30, 62, .92), rgba(9, 16, 36, .96));
  box-shadow: 0 30px 80px -30px rgba(47, 123, 255, .6);
}
.buy h3, .label { margin: 0 0 10px; font-size: 11px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 18px; max-height: 380px; overflow: auto; padding: 2px; }
.offer {
  text-align: left; padding: 11px 13px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass);
  cursor: pointer; display: flex; flex-direction: column; gap: 3px; transition: border-color .15s, background .15s, box-shadow .15s;
}
.offer:hover { border-color: var(--line-2); background: var(--glass-2); }
.offer.active { border-color: var(--sky); background: rgba(47, 123, 255, .26); box-shadow: 0 0 24px -6px rgba(47, 123, 255, .85); }
.offer[disabled] { opacity: .4; cursor: not-allowed; }
.offer-title { font-weight: 600; font-size: 13.5px; line-height: 1.25; }
.offer-price { font-weight: 800; font-size: 14px; color: var(--sky); }
.offer.active .offer-price { color: #fff; }
.offer-sub { font-size: 11.5px; color: var(--muted); }
.offer-search { margin-bottom: 8px; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 15px; }
.field > label { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.field .hint { font-size: 12px; color: var(--faint); }
.input, select.input, textarea.input {
  width: 100%; height: 46px; padding: 0 15px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--glass); outline: 0; transition: border-color .15s, box-shadow .15s, background-color .15s;
}
textarea.input { height: auto; min-height: 90px; padding: 11px 15px; resize: vertical; }
select.input { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238d9bbd' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 12px 8px no-repeat, var(--glass); padding-right: 36px; }
select.input option { background: #0b1430; }
.input::placeholder { color: var(--faint); }
.input:focus { border-color: var(--sky); background-color: rgba(47, 123, 255, .1); box-shadow: 0 0 0 3px rgba(47, 123, 255, .26); }
.input.invalid { border-color: var(--err); box-shadow: 0 0 0 3px rgba(255, 93, 108, .2); }
.amount-row { display: flex; gap: 8px; }
.amount-row .input { flex: 1; font-size: 18px; font-weight: 700; }
.amount-cur { display: grid; place-items: center; padding: 0 16px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); font-weight: 800; color: var(--sky); }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.preset { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); font-size: 13px; font-weight: 600; cursor: pointer; color: var(--muted); transition: all .15s; }
.preset:hover { color: #fff; border-color: var(--sky); background: rgba(47, 123, 255, .2); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; height: 46px; background: var(--glass); width: fit-content; }
.qty button { width: 44px; height: 100%; border: 0; background: transparent; cursor: pointer; font-size: 20px; color: var(--sky); }
.qty button:hover { background: rgba(47, 123, 255, .2); }
.qty input { width: 64px; text-align: center; border: 0; background: transparent; height: 100%; outline: 0; font-weight: 700; }
.pay-methods { display: grid; gap: 8px; }
.pay { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass); cursor: pointer; transition: all .15s; }
.pay:hover { border-color: var(--line-2); }
.pay input { accent-color: var(--accent); width: 18px; height: 18px; }
.pay.active { border-color: var(--sky); background: rgba(47, 123, 255, .16); box-shadow: 0 0 22px -8px rgba(47, 123, 255, .8); }
.pay small { display: block; color: var(--muted); font-size: 12px; }
.total { display: flex; align-items: baseline; justify-content: space-between; margin: 20px 0 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.total span { font-size: 11px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.total b { font-size: 38px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.agree { font-size: 12px; color: var(--faint); margin-top: 12px; text-align: center; }
.error-box { background: rgba(255, 93, 108, .12); border: 1px solid rgba(255, 93, 108, .4); color: #ffd0d5; padding: 11px 14px; border-radius: 14px; font-size: 14px; margin-bottom: 12px; }
.info-box { background: rgba(47, 123, 255, .1); border: 1px solid rgba(124, 196, 255, .3); padding: 13px 15px; border-radius: 14px; font-size: 14px; margin-bottom: 14px; white-space: pre-line; }
.ok-box { background: rgba(46, 229, 157, .1); border: 1px solid rgba(46, 229, 157, .35); color: #c6ffe6; padding: 13px 15px; border-radius: 14px; font-size: 14px; margin-bottom: 14px; }

/* ---------- Заказ ---------- */
.order { max-width: 780px; margin: 0 auto; }
.order-card {
  padding: 28px; border-radius: 26px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 30, 62, .9), rgba(9, 16, 36, .95));
  box-shadow: 0 30px 80px -30px rgba(47, 123, 255, .55);
}
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.order-head h1 { font-size: 28px; margin: 0 0 4px; font-weight: 800; letter-spacing: -.035em; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; background: var(--glass); border: 1px solid var(--line); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.status.completed { border-color: rgba(46, 229, 157, .4); background: rgba(46, 229, 157, .1); }
.status.completed::before { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.status.failed::before, .status.cancelled::before, .status.refunded::before { background: var(--err); }
.status.processing::before, .status.paid::before { background: var(--cyan); animation: blink 1.2s infinite; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 22px; }
.step { padding: 11px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: 13px; color: var(--faint); text-align: center; font-weight: 700; }
.step.done { color: #c6ffe6; border-color: rgba(46, 229, 157, .4); background: rgba(46, 229, 157, .08); }
.step.now { color: #fff; border-color: transparent; background: var(--grad); box-shadow: 0 8px 24px -8px rgba(47, 123, 255, .9); }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 9px 14px; font-size: 14px; margin: 0 0 18px; padding: 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.codes { display: grid; gap: 8px; margin: 8px 0 16px; }
.code {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 15px; border-radius: 14px;
  background: rgba(47, 123, 255, .08); border: 1px dashed rgba(124, 196, 255, .45);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; word-break: break-all;
}
.code .btn { flex: none; height: 34px; padding: 0 14px; font-size: 13px; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .25); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; vertical-align: -3px; }
.orders-list { display: grid; gap: 10px; }
.order-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; border-radius: 18px;
  background: linear-gradient(180deg, #0e1836, #080f22); border: 1px solid var(--line); transition: border-color .2s, translate .2s;
}
.order-row:hover { border-color: rgba(124, 196, 255, .5); translate: 0 -2px; }

.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: linear-gradient(180deg, rgba(18, 30, 62, .7), rgba(9, 16, 36, .8)); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; margin-bottom: 10px; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--muted); margin: 10px 0 0; }

/* ---------- Подвал ---------- */
.footer { border-top: 1px solid var(--line); background: rgba(5, 9, 20, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 30px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { font-weight: 800; margin-bottom: 4px; letter-spacing: -.02em; }
.footer p { margin: 0; font-size: 13px; max-width: 520px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 14px; font-weight: 500; }
.footer-links a:hover { color: #fff; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; font-weight: 600;
  background: rgba(11, 20, 48, .92); border: 1px solid var(--line-2); padding: 11px 18px; border-radius: 999px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .7), 0 0 30px -10px rgba(47, 123, 255, .8);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.skeleton { background: linear-gradient(90deg, rgba(255, 255, 255, .03) 0%, rgba(124, 160, 255, .1) 50%, rgba(255, 255, 255, .03) 100%); background-size: 200% 100%; animation: sk 1.3s infinite; border-radius: var(--radius); border: 1px solid var(--line); }

/* Полоса прокрутки */
* { scrollbar-width: thin; scrollbar-color: rgba(124, 160, 255, .3) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(124, 160, 255, .25); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }

/* Доступность */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  body::before, body::after, .shine, .tile, .live i, main > *, .card { animation: none !important; }
  .card, .card-media img, .btn { transition: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 26px; }
  .hero-art { display: none; }
  .product { grid-template-columns: 1fr; }
  .buy { position: static; }
}
@media (max-width: 640px) {
  .topbar-inner { height: auto; flex-wrap: wrap; padding: 10px 16px; gap: 10px; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .navlink.support { display: none; }
  .navlink { height: 38px; padding: 0 13px; }
  .hero { padding: 22px 18px; border-radius: 22px; }
  .hero-stats div { min-width: 0; flex: 1; padding: 10px 12px; }
  .hero-stats b { font-size: 18px; }
  .chips { border-radius: 18px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-media { margin: 8px 8px 0; border-radius: 12px; }
  .card-body { padding: 10px 11px 12px; }
  .card-title { font-size: 13.5px; }
  .price { font-size: 16px; }
  .card-go { display: none; }
  .trust { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .steps { grid-template-columns: 1fr; }
  .order-card, .buy { padding: 18px; border-radius: 20px; }
  .total b { font-size: 30px; }
  body::after { opacity: .7; }
}
