/* ShadowVisual — строго чёрно-белая тема */
:root {
  --bg: #09090a;
  --s1: #101011;
  --s2: #161617;
  --s3: #1d1d1f;
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .16);
  --text: #f5f5f6;
  --mut: #8c8c91;
  --dim: #5d5d62;
  --white: #fff;
  --danger: #d8d8dc;
  --r: 18px;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased;
  min-height: 100vh; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
::selection { background: #fff; color: #000; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
svg.i { width: 1em; height: 1em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.page { padding: 112px 0 72px; min-height: 100vh; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--mut); font-size: 14px; font-weight: 500; }
.eyebrow svg { color: #fff; }
.h2 { font-size: clamp(26px, 5.4vw, 48px); line-height: 1.12; font-weight: 600; letter-spacing: -.02em; margin: 14px auto 0; max-width: 18em; text-wrap: balance; }
.center { text-align: center; }
.muted { color: var(--mut); }

/* ---------- кнопки / поля ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line2);
  background: transparent; font-weight: 500; font-size: 14.5px; transition: .18s; white-space: nowrap;
}
.btn:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.3); }
.btn.primary { background: #fff; color: #000; border-color: #fff; font-weight: 600; }
.btn.primary:hover { background: #e4e4e6; }
.btn.block { width: 100%; }
.btn.sm { height: 38px; padding: 0 16px; font-size: 13.5px; }
.btn.danger { color: var(--danger); border-color: var(--line); background: var(--s1); }
.btn[disabled], .btn.off { opacity: .4; pointer-events: none; }
.btn.loading { pointer-events: none; opacity: .7; }

.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; color: var(--mut); }
.input {
  width: 100%; height: 46px; padding: 0 16px; background: var(--bg); border: 1px solid var(--line);
  border-radius: 14px; outline: none; transition: border-color .15s; min-width: 0;
}
.input::placeholder { color: var(--dim); }
.input:focus { border-color: rgba(255,255,255,.5); }
.input:-webkit-autofill { -webkit-text-fill-color: #fff; box-shadow: 0 0 0 40px var(--bg) inset; }

/* ---------- шапка ---------- */
.nav-wrap { position: fixed; z-index: 50; top: 14px; left: 0; right: 0; }
.nav {
  width: min(1120px, 100% - 28px); margin-inline: auto; height: 56px; padding: 0 10px 0 16px;
  display: flex; align-items: center; gap: 18px; border-radius: 999px;
  background: rgba(14,14,15,.72); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
}
.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.logo img { width: 28px; height: 28px; }
.nav-links { display: none; gap: 4px; margin-left: 12px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; color: var(--mut); font-size: 14px; transition: .15s; }
.nav-links a:hover, .nav-links a.on { color: #fff; background: rgba(255,255,255,.08); }
.nav-sp { flex: 1; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 5px; border-radius: 999px;
  background: var(--s2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 500;
}
.pill.plain { padding: 0 16px; background: #fff; color: #000; border-color: #fff; font-weight: 600; }
.pill img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--s3); }
.burger { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: none; border: 0; color: var(--mut); font-size: 20px; }
.burger:hover { color: #fff; }
.drawer {
  position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: .2s;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer nav {
  position: absolute; top: 12px; right: 12px; left: 12px; background: var(--s1); border: 1px solid var(--line2);
  border-radius: 24px; padding: 10px; display: grid; gap: 2px; transform: translateY(-10px); transition: .2s;
}
.drawer.open nav { transform: none; }
.drawer a, .drawer button.lnk { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; font-size: 16px; background: none; border: 0; text-align: left; width: 100%; }
.drawer a:hover, .drawer a.on { background: var(--s3); }
.drawer svg { color: var(--mut); }
@media (min-width: 860px) { .nav-links { display: flex; } .burger { display: none; } .pill { padding-right: 16px; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: start center; overflow: hidden; isolation: isolate; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, var(--bg) 0, rgba(9,9,10,0) 26%, rgba(9,9,10,0) 62%, var(--bg) 100%); }
.hero-in { padding-top: clamp(130px, 20vh, 190px); text-align: center; }
.hero h1 { margin: 0; font-size: clamp(34px, 8.4vw, 76px); line-height: 1.06; font-weight: 500; letter-spacing: -.03em; text-wrap: balance; }
.hero h1 b { font-weight: 700; }
.hero p { max-width: 520px; margin: 18px auto 0; color: var(--mut); font-size: clamp(15px, 2.4vw, 17px); }
.hero-cta { display: flex; gap: 10px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.hero-cta .btn { height: 50px; padding: 0 28px; }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; color: #fff; font-size: 20px; opacity: .6; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* ---------- секции главной ---------- */
.sec { padding: clamp(56px, 9vw, 110px) 0; }
.cards3 { display: grid; gap: 14px; margin-top: 44px; }
.card {
  background: var(--s1); border: 1px solid var(--line); border-radius: 24px; padding: 30px 24px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--line2); }
.feat { text-align: center; }
.feat .ic { width: 64px; height: 64px; margin: 6px auto 18px; border-radius: 50%; display: grid; place-items: center; font-size: 26px;
  background: radial-gradient(circle at 30% 25%, #2a2a2d, #0b0b0c); border: 1px solid var(--line2); }
.feat h3 { margin: 0 0 10px; font-size: 21px; font-weight: 600; }
.feat p { margin: 0; color: var(--mut); font-size: 14.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 16px; background: var(--s1); border: 1px solid var(--line); font-size: 14px; }
.chip svg { color: #fff; }
@media (min-width: 760px) { .cards3 { grid-template-columns: repeat(3, 1fr); } }

.video { position: relative; margin-top: 36px; border-radius: 26px; overflow: hidden; aspect-ratio: 16/9; background: var(--s1); border: 1px solid var(--line); }
.video iframe, .video img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video .play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(transparent, rgba(0,0,0,.45)); border: 0; width: 100%; }
.video .play span { width: 72px; height: 50px; border-radius: 16px; background: #fff; color: #000; display: grid; place-items: center; font-size: 22px; }
.video.empty { display: grid; place-items: center; text-align: center; color: var(--mut);
  background: repeating-linear-gradient(135deg, #111 0 14px, #0d0d0e 14px 28px); }
.video.empty b { display: block; color: #fff; font-size: 20px; margin-bottom: 4px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 40px; }
.stat b { display: block; font-size: clamp(26px, 7vw, 56px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--mut); font-size: clamp(11.5px, 2.8vw, 16px); }

.foot { border-top: 1px solid var(--line); padding: 44px 0 36px; text-align: center; color: var(--mut); font-size: 13px; }
.foot .logo { justify-content: center; font-size: 22px; color: #fff; margin-bottom: 14px; }
.foot nav { display: flex; gap: 8px 22px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.foot nav a:hover { color: #fff; }

/* ---------- магазин ---------- */
.head { text-align: center; }
.head h1 { margin: 0; font-size: clamp(32px, 8vw, 56px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.head p { margin: 12px auto 0; color: var(--mut); max-width: 470px; }
.tabs { display: flex; gap: 8px; justify-content: center; margin: 30px 0 28px; flex-wrap: wrap; }
.tab { height: 40px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--s1); color: var(--text); font-size: 14px; transition: .15s; }
.tab:hover { border-color: var(--line2); }
.tab.on { background: #fff; color: #000; border-color: #fff; font-weight: 600; }
.grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.prod { display: flex; flex-direction: column; background: var(--s1); border: 1px solid var(--line); border-radius: 22px; padding: 10px; transition: .2s; }
.prod:hover { border-color: var(--line2); transform: translateY(-2px); box-shadow: 0 18px 50px -24px rgba(255,255,255,.16); }
.cover { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 20% 0%, #2c2c2f 0, #121213 55%, #0a0a0b 100%); border: 1px solid var(--line); }
.cover::before { content: ""; position: absolute; inset: 0; opacity: .5; background:
  repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 1px, transparent 1px 16px); }
.cover .big { position: relative; font-size: clamp(34px, 6vw, 46px); font-weight: 700; letter-spacing: -.04em; line-height: 1; text-align: center; }
.cover .big small { display: block; margin-top: 6px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.tag { position: absolute; top: 10px; left: 10px; font-size: 11.5px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.7); border: 1px solid var(--line2); }
.prod-b { padding: 16px 10px 8px; display: flex; flex-direction: column; flex: 1; }
.prod h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; }
.prod p { margin: 0 0 18px; color: var(--mut); font-size: 13.5px; flex: 1; }
.price { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 14px; display: flex; align-items: baseline; gap: 10px; }
.price s { font-size: 15px; color: var(--dim); font-weight: 400; }
.note { font-size: 12.5px; color: var(--mut); margin: -6px 0 12px; }

/* ---------- модалки ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.7); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); animation: fade .15s; overflow-y: auto; }
.sheet { position: relative; width: min(440px, 100%); background: var(--s1); border: 1px solid var(--line2); border-radius: 26px; padding: 26px 24px; animation: pop .2s; margin: auto; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.x { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 0; background: none; color: var(--mut); font-size: 18px; }
.x:hover { color: #fff; background: var(--s3); }
.sheet .kick { font-size: 13px; color: var(--mut); }
.sheet h3 { margin: 2px 0 4px; font-size: 22px; font-weight: 600; }
.sheet .sum { font-size: 34px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.lbl { font-size: 13px; color: var(--mut); margin: 0 0 10px; }
.methods { display: grid; gap: 10px; margin-bottom: 18px; }
@media (min-width: 440px) { .methods.two { grid-template-columns: 1fr 1fr; } }
.method { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; width: 100%; transition: .15s; }
.method:hover { border-color: var(--line2); }
.method.on { border-color: #fff; background: var(--s2); }
.method .mi { width: 38px; height: 34px; border-radius: 10px; background: var(--s3); display: grid; place-items: center; font-size: 18px; flex: none; font-weight: 700; }
.method b { display: block; font-size: 14px; font-weight: 500; }
.method small { color: var(--mut); font-size: 11.5px; }
.method .ck { position: absolute; top: 8px; right: 10px; font-size: 13px; opacity: 0; }
.method.on .ck { opacity: 1; }
.promo { display: flex; gap: 8px; margin-bottom: 14px; }
.legal { margin: 12px 0 0; text-align: center; font-size: 11.5px; color: var(--dim); }
.msg { min-height: 20px; margin: 10px 0 0; font-size: 13px; color: var(--mut); }
.msg.err { color: #fff; }
.msg.err::before { content: "✕ "; }
.msg.ok::before { content: "✓ "; }
.form { display: grid; gap: 14px; margin-top: 18px; }
.alt { text-align: center; margin: 16px 0 0; color: var(--mut); font-size: 13.5px; }
.alt a, .alt button { color: #fff; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; }
.cap { display: flex; gap: 10px; align-items: center; }
.cap button { padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; height: 46px; flex: none; }
.cap img { height: 100%; display: block; }

/* ---------- профиль ---------- */
.prof { display: grid; gap: 14px; max-width: 980px; margin-inline: auto; }
.pbox { background: var(--s1); border: 1px solid var(--line); border-radius: 24px; padding: 20px; }
.who { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.av { position: relative; width: 58px; height: 58px; border-radius: 50%; overflow: hidden; border: 2px solid #fff; flex: none; background: var(--s3); cursor: pointer; padding: 0; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av::after { content: "Сменить"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; background: rgba(0,0,0,.65); opacity: 0; transition: .15s; }
.av:hover::after { opacity: 1; }
.who b { font-size: 20px; font-weight: 600; display: block; line-height: 1.2; }
.who span { color: var(--mut); font-size: 14px; }
.side { display: grid; gap: 4px; padding: 8px; }
.side a, .side button.sl { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 12px; font-size: 15px; color: #e4e4e6; background: none; border: 0; text-align: left; width: 100%; }
.side a svg { color: var(--mut); font-size: 18px; }
.side a:hover { background: var(--s2); }
.side a.on { background: #26262a; color: #fff; font-weight: 500; }
.side a.on svg { color: #fff; }
.logout { display: flex; align-items: center; justify-content: center; gap: 10px; height: 46px; border-radius: 14px; background: #131112; border: 1px solid rgba(255,255,255,.14); color: #d4d4d8; width: 100%; }
.logout:hover { background: #1c1a1b; color: #fff; }
.pbox h2 { margin: 0; font-size: 24px; font-weight: 600; }
.pbox > .sub { margin: 4px 0 0; color: var(--mut); font-size: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.rows > div { display: flex; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.rows > div > svg { color: #cfcfd3; font-size: 19px; }
.rows > div > span { color: #d7d7da; }
.rows > div > b { margin-left: auto; font-weight: 400; text-align: right; overflow-wrap: anywhere; word-break: normal; min-width: 0; padding-left: 8px; font-variant-numeric: tabular-nums; }
.rows > div > span { flex: none; max-width: 52%; }
.act { display: grid; gap: 10px; margin: 20px 0; }
.keybox { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.keybox h4 { margin: 0 0 12px; font-size: 15px; font-weight: 500; display: flex; gap: 10px; align-items: center; }
.keybox div { display: flex; gap: 10px; }
.sec-h { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; margin: 0 0 12px; }
.blk { padding: 22px 0; border-bottom: 1px solid var(--line); }
.blk:last-child { border: 0; padding-bottom: 0; }
.blk .fields { display: grid; gap: 10px; margin-bottom: 12px; }
.blk p { margin: 0 0 12px; color: var(--mut); font-size: 13.5px; }
.reflink { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; margin-top: 20px; border-radius: 16px; background: var(--s2); border: 1px solid var(--line2); }
.reflink > svg { font-size: 22px; }
.reflink div { flex: 1 1 180px; min-width: 0; }
@media (max-width: 520px) { .reflink .btn { width: 100%; } }
.reflink small { display: block; color: var(--mut); font-size: 12px; }
.reflink code { display: block; font: 500 13px/1.3 var(--font); word-break: break-all; }
.tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.tri div { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px; min-width: 0; }
.tri small { color: var(--mut); font-size: 12px; display: block; }
.tri b { font-size: 24px; font-weight: 600; white-space: nowrap; }
.inv { margin-top: 12px; }
.inv .empty { text-align: center; color: var(--dim); font-size: 13px; padding: 22px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; }
.inv li { list-style: none; display: flex; justify-content: space-between; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; font-size: 14px; }
.inv ul { padding: 0; margin: 0; }
.badge { display: inline-block; min-width: 22px; text-align: center; padding: 1px 8px; border-radius: 99px; background: var(--s3); font-size: 11.5px; color: var(--mut); margin-left: 6px; }
@media (min-width: 900px) {
  .prof { grid-template-columns: 280px 1fr; align-items: start; }
  .prof .col { display: grid; gap: 14px; position: sticky; top: 96px; }
  .act { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 899px) { .prof .col { display: contents; } }

/* ---------- контакты / вход ---------- */
.narrow { max-width: 780px; margin-inline: auto; }
.list-box { background: var(--s1); border: 1px solid var(--line); border-radius: 24px; padding: 28px 28px 14px; }
.list-box h1 { margin: 0; font-size: 26px; font-weight: 600; }
.list-box > p { margin: 6px 0 0; color: var(--mut); font-size: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.crow { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.crow:last-child { border: 0; }
.crow svg { font-size: 22px; color: #fff; }
.crow em { margin-left: auto; font-style: normal; color: #fff; font-size: 14px; }
.crow.off { color: var(--dim); }
.crow.off svg, .crow.off em { color: var(--dim); }
a.crow:hover em { text-decoration: underline; text-underline-offset: 3px; }
.center-card { max-width: 440px; margin: 0 auto; background: var(--s1); border: 1px solid var(--line2); border-radius: 26px; padding: 30px 26px; }
.center-card h1 { margin: 0; font-size: 26px; font-weight: 600; }

/* ---------- toast ---------- */
#toasts { position: fixed; z-index: 200; left: 0; right: 0; bottom: 18px; display: grid; gap: 8px; justify-items: center; pointer-events: none; padding: 0 16px; }
.toast { background: #fff; color: #000; padding: 12px 20px; border-radius: 14px; font-size: 14px; font-weight: 500; box-shadow: 0 12px 40px rgba(0,0,0,.6); animation: pop .2s; max-width: 420px; }
.toast.err { background: #1d1d1f; color: #fff; border: 1px solid var(--line2); }
.spin { width: 16px; height: 16px; border: 2px solid rgba(0,0,0,.25); border-top-color: #000; border-radius: 50%; animation: sp .7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.skel { height: 260px; border-radius: 22px; background: linear-gradient(100deg, var(--s1) 30%, var(--s2) 50%, var(--s1) 70%); background-size: 300% 100%; animation: sh 1.4s infinite; }
@keyframes sh { to { background-position: -100% 0; } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* бейдж роли: обычный — контур, привилегированные — залитые белым */
.who span.role, .role { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 3px 11px 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: #e4e4e6; background: var(--s3); border: 1px solid var(--line2); }
.role svg { font-size: 13px; }
.role.r-owner, .role.r-admin, .who span.role.r-owner, .who span.role.r-admin { background: #fff; color: #000; border-color: #fff; font-weight: 600; }
.role.r-moderator, .role.r-beta_tester, .who span.role.r-moderator, .who span.role.r-beta_tester { background: #2a2a2d; color: #fff; border-color: rgba(255,255,255,.4); }
.rows > div > b .role { margin: 0; }

/* баланс в шапке */
.pill.bal { padding: 0 14px; gap: 7px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pill.bal svg { font-size: 16px; color: var(--mut); }
.pill.bal:hover { border-color: var(--line2); }
.nav { gap: 10px; }
.nav-sp { margin-right: 0; }
@media (max-width: 520px) { .pill .pl { display: none; } .pill { padding-right: 5px; } .pill.bal { padding: 0 12px; } .logo { font-size: 16px; } .nav { padding-left: 12px; } }

/* раздел «Баланс» */
.balbig { margin: 20px 0 14px; padding: 22px; border-radius: 18px; border: 1px solid var(--line2); background: radial-gradient(120% 140% at 0% 0%, #26262a 0, var(--s2) 60%); }
.balbig small { color: var(--mut); font-size: 13px; display: block; }
.balbig b { font-size: clamp(34px, 8vw, 46px); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.tri.two { grid-template-columns: 1fr 1fr; }
.tri.two b { font-size: 20px; }
.amt .presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.amt .tab { height: 34px; padding: 0 14px; font-size: 13px; }
#tm-list { margin-bottom: 14px; }
@media (min-width: 640px) { #tm-list { grid-template-columns: repeat(3, 1fr); } #tm-list .method { flex-direction: column; align-items: flex-start; } }
.inv li b { font-weight: 600; white-space: nowrap; align-self: center; }
.inv li b.plus { color: #fff; }
.inv li small { font-size: 12px; }

/* уведомления — в правом верхнем углу под шапкой */
#toasts { top: 84px; bottom: auto; left: auto; right: 16px; justify-items: end; padding: 0; width: min(380px, calc(100% - 24px)); }
.toast { animation: toast-in .25s ease-out; display: flex; align-items: center; gap: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.6); }
.toast::before { content: "✓"; display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: #000; color: #fff; font-size: 12px; }
.toast.err::before { content: "✕"; background: #fff; color: #000; }
@keyframes toast-in { from { opacity: 0; transform: translateX(24px); } }
@media (max-width: 520px) { #toasts { right: 12px; } }

/* колокольчик */
.bellwrap { position: relative; }
.bell { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--s2); border: 1px solid var(--line); font-size: 18px; color: #e4e4e6; }
.bell:hover { border-color: var(--line2); color: #fff; }
.bell .dot { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #fff; color: #000; font: 700 11px/18px var(--font); text-align: center; font-style: normal; border: 2px solid #0e0e0f; box-sizing: content-box; line-height: 14px; height: 14px; }
.bell .dot[hidden] { display: none; }
.npanel { position: absolute; top: 48px; right: -60px; width: 360px; max-height: 70vh; display: flex; flex-direction: column; background: var(--s1); border: 1px solid var(--line2); border-radius: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.7); overflow: hidden; animation: pop .15s; }
.npanel[hidden] { display: none; }
.nhead { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.nhead b { font-weight: 600; }
.nhead button { background: none; border: 0; color: var(--mut); font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; }
.nhead button:hover { color: #fff; }
.nlist { overflow-y: auto; }
.nitem { display: block; position: relative; padding: 13px 16px 13px 28px; border-bottom: 1px solid var(--line); }
.nitem:last-child { border: 0; }
.nitem b { display: block; font-size: 14px; font-weight: 600; }
.nitem span { display: block; color: var(--mut); font-size: 13px; margin-top: 2px; overflow-wrap: anywhere; }
.nitem small { display: block; color: var(--dim); font-size: 11.5px; margin-top: 4px; }
.nitem.new::before { content: ""; position: absolute; left: 12px; top: 19px; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
a.nitem:hover { background: var(--s2); }
.nempty { display: grid; justify-items: center; gap: 8px; padding: 36px 20px; color: var(--dim); font-size: 13.5px; text-align: center; }
.nempty svg { font-size: 26px; }
@media (max-width: 520px) {
  .nav.in .logo .lt { display: none; }
  .bellwrap { position: static; }
  .npanel { position: fixed; top: 80px; left: 12px; right: 12px; width: auto; }
}
.bell .dot { box-sizing: border-box; min-width: 18px; height: 18px; padding: 0 4px; line-height: 14px; top: -5px; right: -5px; border: 2px solid #0e0e0f; display: block; }
.bell .dot[hidden] { display: none; }
/* логотипы способов оплаты */
.method .mi.pic { width: 56px; height: 38px; padding: 5px 7px; background: #fff; border-radius: 10px; overflow: hidden; }
.method .mi.pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.method .mi.pic.fp { width: 38px; padding: 0; }
.method .mi.pic.fp img { object-fit: cover; }

/* единый квадрат для всех логотипов оплаты */
.method .mi.pic, .method .mi.pic.fp { width: 46px; height: 46px; padding: 0; border-radius: 12px; background: #fff; }
.method .mi.pic img { object-fit: cover; }
.method .mi { width: 46px; height: 46px; border-radius: 12px; }

/* публичные профили */
.tbl { border-collapse: collapse; font-size: 13.5px; }
.tbl th { color: var(--mut); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); }

/* 3D-модель скина (профиль и страница игрока) */
.sk3dw { width: 160px; max-width: 100%; margin: 0 auto; }
.sk3d { position: relative; width: 160px; height: 320px; max-width: 100%; overflow: hidden; border-radius: 28px; background: var(--s1); border: 1px solid var(--line); }
.sk3d::before { content: ""; position: absolute; left: 50%; top: 46%; width: 150%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.16), rgba(255,255,255,0) 100%); pointer-events: none; }
.sk3d::after { content: ""; position: absolute; left: 50%; top: 84%; width: 79%; height: 7%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.55), rgba(0,0,0,0)); pointer-events: none; }
.sk3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
.sk3d-h { margin: 8px 0 0; font-size: 12px; line-height: 1.35; color: var(--mut); text-align: center; }

/* согласие при регистрации и юридические страницы */
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--mut); line-height: 1.45; cursor: pointer; }
.chk input { margin-top: 2px; width: 16px; height: 16px; flex: none; accent-color: #fff; }
.chk a, .legal a { color: #fff; text-decoration: underline; }
.legal { background: var(--s1); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.legal h1 { margin: 0 0 6px; font-size: 26px; font-weight: 600; }
.legal h2 { margin: 26px 0 8px; font-size: 17px; font-weight: 600; }
.legal p { margin: 0 0 8px; color: var(--mut); font-size: 14px; line-height: 1.6; }

.foot .disc { max-width: 560px; margin: 12px auto 0; font-size: 12px; opacity: .7; line-height: 1.5; }
