/* FlakaFlaka: графит, серый и фиолетовый. Шрифты Unbounded, Onest, Caveat (лицензии рядом в /fonts), иконки Phosphor. */

@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 200 900; font-display: swap; src: url('/fonts/unbounded-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 200 900; font-display: swap; src: url('/fonts/unbounded-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/onest-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/onest-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/caveat-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/caveat-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 200 900; font-display: swap; src: url('/fonts/unbounded-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/onest-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/caveat-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #050508;
  --surface: #0f0f15;
  --surface-2: #16161e;
  --surface-3: #1e1e28;
  --line: #24242e;
  --line-2: #363644;
  --text: #f0eff6;
  --text-2: #b3b1c2;
  --text-3: #8f8da4;
  --violet: #7d6bf5;
  --violet-hi: #9d8fff;
  --violet-dark: #3f30ae;
  --lilac: #d8d2ff;
  --glow: rgba(125, 107, 245, 0.55);
  --ok: #6fe3a6;
  --warn: #f2c56f;
  --bad: #ff8e96;
  --display: 'Unbounded', 'Onest', system-ui, sans-serif;
  --sans: 'Onest', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --hand: 'Caveat', 'Segoe Print', 'Bradley Hand', 'Comic Sans MS', cursive;
  --mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Consolas, monospace;
  --r-1: 10px;
  --r-2: 14px;
  --r-3: 18px;
  --r-4: 24px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --spring: cubic-bezier(0.3, 1.5, 0.5, 1);
  --bg-opacity: 0.3; /* насколько видно фоновое фото: 0 нет, 1 во всю силу */
  --bar: 66px; /* высота шапки: она приклеена к верху, контент начинается ниже */
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }
* { scrollbar-width: thin; scrollbar-color: #2d2d3b transparent; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 18px); -webkit-text-size-adjust: 100%; }
html:has(dialog[open]) { overflow: hidden; }
body { margin: 0; padding-top: calc(var(--bar) + env(safe-area-inset-top, 0px)); background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: rgba(125, 107, 245, 0.45); }
a { color: var(--violet-hi); text-underline-offset: 3px; }
a:hover { color: var(--lilac); }
h1, h2, h3, p { margin-top: 0; }
img, svg { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--violet-hi); outline-offset: 3px; border-radius: 6px; }
.mono, code { font-family: var(--mono); }
.muted { color: var(--text-3); }
[hidden] { display: none !important; }

/* фон: фото чёрной дыры еле заметно, поверх тёмные затемнения */
.bg { position: fixed; inset: 0; z-index: -1; background: var(--bg); overflow: hidden; }
.bg::before { content: ''; position: absolute; inset: 0; background: url('/img/bg.webp') 50% 0 / cover no-repeat; opacity: 0; transition: opacity 2s ease; }
.bg.ready::before { opacity: var(--bg-opacity); }
@media (max-width: 760px), (max-aspect-ratio: 4/5) {
  .bg::before { background-image: url('/img/bg-m.webp'); }
}
.bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 45% at 78% 14%, rgba(94, 74, 216, 0.1), transparent 70%), linear-gradient(180deg, rgba(5, 5, 8, 0.1) 0%, rgba(5, 5, 8, 0.45) 45%, var(--bg) 92%); }

.i { flex: none; width: 1.2em; height: 1.2em; fill: currentColor; }
.wrap { width: min(1120px, calc(100% - 2 * clamp(16px, 4vw, 32px))); margin-inline: auto; }
.wrap.narrow { width: min(800px, calc(100% - 2 * clamp(16px, 4vw, 32px))); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--r-1); background: var(--violet); color: #fff; font-weight: 600; text-decoration: none; transition: top 0.2s; }
.skip:focus { top: calc(var(--bar) + env(safe-area-inset-top, 0px) + 8px); }
.sr-copy { position: fixed; top: 0; left: 0; opacity: 0; pointer-events: none; }
.noscript { text-align: center; padding: 16px; color: var(--warn); }

/* рукописные пометки и каракули-стрелки */
.hand { margin: 0; font: 600 1.6rem/1 var(--hand); color: var(--lilac); }
.doodle { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

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

.btn {
  --h: 46px;
  --face: var(--violet);
  --edge: var(--violet-dark);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 16px 0 20px;
  border: 0;
  border-radius: var(--r-2);
  background: var(--face);
  color: #fff;
  font: 600 15px/1 var(--sans);
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--edge);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.2s, color 0.2s, opacity 0.2s;
}
.btn .i { width: 18px; height: 18px; }
.btn:has(> .i:first-child) { padding-left: 16px; }
.btn .ico { display: grid; place-items: center; width: 26px; height: 26px; margin-right: -2px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); transition: background 0.2s, transform 0.25s var(--spring); }
.btn .ico .i { width: 14px; height: 14px; }
.btn:hover { --face: #8b7af7; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 0 var(--edge); }
.btn:hover .ico { background: rgba(255, 255, 255, 0.3); transform: translate(1px, -1px) scale(1.06); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--edge); }
.btn.lg { --h: 56px; padding: 0 18px 0 24px; font-size: 16px; border-radius: 16px; }
.btn.lg .ico { width: 30px; height: 30px; }
.btn.lg .ico .i { width: 16px; height: 16px; }
.btn.sm { --h: 38px; padding: 0 14px; font-size: 14px; border-radius: 12px; box-shadow: 0 2px 0 var(--edge); }
.btn.sm:hover { box-shadow: 0 3px 0 var(--edge); }
.btn.sm:active { transform: translateY(2px); box-shadow: 0 0 0 var(--edge); }
.btn.block { width: 100%; }
.btn.ghost { --face: transparent; --edge: transparent; background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn.ghost:hover { background: rgba(125, 107, 245, 0.1); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--violet-hi); transform: none; }
.btn.ghost:active { transform: translateY(1px); box-shadow: inset 0 0 0 1.5px var(--violet-hi); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: inset 0 0 0 1.5px var(--line-2); background: transparent; color: var(--text-3); }
.btn .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--violet); color: #fff; font-size: 12px; font-weight: 700; }
.btn .spin { display: none; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.3); border-top-color: #fff; animation: spin 0.7s linear infinite; }
.btn .txt { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.btn.loading .txt { visibility: hidden; }
.btn.loading .spin { display: block; }

.icon-btn { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 12px; background: transparent; color: var(--text-2); cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line); transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s var(--spring); }
.icon-btn:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-2); transform: rotate(90deg); }
.icon-btn .i { width: 16px; height: 16px; }
.icon-btn.sm { width: 30px; height: 30px; border-radius: 10px; }
.icon-btn.sm .i { width: 13px; height: 13px; }

.copy { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 0; border-radius: 10px; background: rgba(125, 107, 245, 0.14); color: var(--lilac); font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.12s; }
.copy .i { width: 15px; height: 15px; }
.copy:hover { background: rgba(125, 107, 245, 0.26); }
.copy:active { transform: scale(0.96); }
.copy.ok { background: rgba(111, 227, 166, 0.14); color: var(--ok); }
.linkbtn { border: 0; background: none; padding: 4px 0; color: var(--text-3); font-size: 13px; cursor: pointer; }
.linkbtn:hover { color: var(--text); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 13px; border: 0; border-radius: 11px; background: var(--surface-2); color: var(--text-2); box-shadow: inset 0 0 0 1.5px var(--line); font: 500 14px var(--sans); white-space: nowrap; cursor: pointer; transition: box-shadow 0.2s, background 0.2s, color 0.2s, transform 0.12s; }
.chip:hover { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.chip:active { transform: scale(0.97); }
.chip[aria-pressed='true'], .chip.on { background: rgba(125, 107, 245, 0.16); color: var(--lilac); box-shadow: inset 0 0 0 1.5px var(--violet); }
.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c, #888); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.07); }

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

.top { position: fixed; top: 0; left: 0; right: 0; z-index: 30; padding-top: env(safe-area-inset-top, 0px); background: #050508; border-bottom: 1px solid var(--line); }
.top.scrolled { box-shadow: 0 10px 28px -18px #000; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--bar); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.mark { width: 36px; height: 36px; display: block; transition: transform 0.5s var(--spring); }
.brand:hover .mark { transform: rotate(-14deg) scale(1.08); }
.foot-badge { display: block; width: 132px; height: 132px; margin: 14px 0 6px; }
.wordmark { font: 700 18px/1 var(--display); letter-spacing: -0.04em; }
.wordmark b { font-weight: 700; color: var(--violet-hi); }
.nav { display: flex; gap: 28px; margin-left: auto; margin-right: 8px; }
.nav a { position: relative; color: var(--text-2); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color 0.2s; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px; background: var(--violet); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }

/* ---------- верх страницы ---------- */

.intro { position: relative; padding: clamp(22px, 4.5vw, 56px) 0 6px; }
.hand.tilt { display: inline-block; margin-bottom: 12px; transform: rotate(-3deg); transform-origin: left center; font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
h1 { margin: 0 0 16px; font: 700 clamp(1.95rem, 4.5vw, 3.5rem)/1.1 var(--display); letter-spacing: -0.045em; }
.hero-line { margin: 0 0 18px; max-width: 11.6em; }
.hero-line::after {
  content: "";
  display: inline-block;
  width: 0.78em;
  height: 0.7em;
  margin-inline-start: 0.14em;
  vertical-align: -0.04em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 58' fill='none' stroke='%23f6f3ff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M33 51c-1-1-8-6-14-12-7-7-11-13-10-19 1-7 8-11 14-7 3 2 5 5 6 7 1-2 4-6 7-8 7-4 14-1 16 6 2 8-3 15-9 21-6 6-9 10-10 12'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: rotate(-12deg);
}
.nets-lead { display: inline-block; margin: 0 0 12px; font-size: clamp(1.25rem, 2vw, 1.55rem); transform: rotate(-2deg); transform-origin: left center; }
.net-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.net-row li { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 13px 0 6px; border-radius: 999px; background: #171a24; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); color: #f4f5f8; font-size: 13.5px; font-weight: 650; letter-spacing: -0.01em; }
.net-row img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.net-row img.tile { border-radius: 7px; }
.scribble { position: relative; display: inline-block; white-space: nowrap; }
.squig { position: absolute; left: -1%; bottom: -0.2em; width: 102%; height: 0.3em; color: var(--violet-hi); }
.squig path { stroke-width: 3.5px; vector-effect: non-scaling-stroke; }
.sub { margin: 0 0 22px; max-width: 36em; font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--text-2); }
.intro-foot { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 26px; }
.notice { display: flex; align-items: center; gap: 12px; max-width: 640px; padding: 11px 16px 11px 14px; border-radius: var(--r-2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), inset 3px 0 0 var(--violet); color: var(--text-2); font-size: 0.9rem; }
.notice .i { width: 20px; height: 20px; color: var(--violet-hi); }
.notice p { margin: 0; }
.notice strong { color: var(--lilac); font-weight: 650; }
.notice a { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; }
.notice a .i { width: 13px; height: 13px; }
.point { display: flex; align-items: flex-end; margin-left: auto; color: var(--lilac); transform: rotate(-2deg); }
.point .hand { margin: 0 0 34px; font-size: 1.75rem; }
.point .doodle { width: 84px; height: 63px; margin-left: -4px; }

/* ---------- список монет ---------- */

.coin-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 22px 0 0; padding: 0; list-style: none; }
.group-head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 14px 0 0; padding: 0 4px; }
.group-head:first-child { margin-top: 0; }
.group-head h2 { display: inline-flex; align-items: center; gap: 9px; margin: 0; font: 600 1.05rem/1.2 var(--display); letter-spacing: -0.03em; }
.wallet-ico { flex: none; width: 22px; height: 22px; border-radius: 6px; object-fit: contain; background: #12141c; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.group-head h2 small { font: 500 0.8rem var(--sans); letter-spacing: 0; color: var(--text-3); }
.group-head p { margin: 0; font-size: 0.85rem; color: var(--text-3); }
.amount { font: 600 1.12rem/1.2 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.per { font-size: 0.78rem; color: var(--text-3); white-space: nowrap; }
.was { font-size: 0.78rem; color: var(--text-3); }
.list-note { margin: 14px 4px 0; font-size: 13px; color: var(--text-3); }
.state-box { grid-column: 1 / -1; display: grid; justify-items: center; gap: 8px; padding: 44px 20px; border-radius: var(--r-3); box-shadow: inset 0 0 0 1.5px var(--line-2); text-align: center; }
.state-box p { margin: 0; }

/* иконка монеты и значок сети в углу */
.coin-icon { --s: 54px; position: relative; flex: none; display: block; width: var(--s); height: var(--s); }
.coin-icon.sm { --s: 40px; }
.coin-icon.lg { --s: 64px; }
.coin-icon.xl { --s: 104px; }
.coin-icon .face { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.55)); transition: transform 0.45s var(--spring); }
.coin-icon .net { position: absolute; z-index: 1; right: -7%; bottom: -5%; width: 42%; height: 42%; border-radius: 50%; object-fit: cover; background: #101014; pointer-events: none; box-shadow: 0 0 0 2px #0f0f15, 0 0 0 3px rgba(255, 255, 255, 0.14); }
.coin-icon .net.tile { border-radius: 26%; }

/* ---------- секции ---------- */

.section { padding: clamp(56px, 8vw, 96px) 0 0; }
h2 { margin: 0 0 28px; font: 600 clamp(1.4rem, 2.6vw, 1.95rem)/1.15 var(--display); letter-spacing: -0.035em; }
html.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 48px; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; }
.step-ico { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 14px; border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--violet-hi); transition: transform 0.35s var(--spring); }
.step-ico .i { width: 26px; height: 26px; }
.steps li:hover .step-ico { transform: rotate(-6deg) scale(1.06); }
.steps h3 { margin: 0 0 6px; font: 650 1.05rem/1.3 var(--sans); }
.steps p { margin: 0; color: var(--text-2); font-size: 0.93rem; }
.step-next { position: absolute; top: 15px; left: calc(100% + 2px); width: 44px; height: 25px; color: var(--text-3); }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 0; font: 600 1.04rem/1.35 var(--sans); cursor: pointer; list-style: none; transition: color 0.2s; }
.faq summary:hover { color: var(--lilac); }
.faq summary::-webkit-details-marker { display: none; }
.plus { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--surface-2); color: var(--violet-hi); transition: transform 0.3s var(--spring), background 0.2s; }
.plus .i { width: 14px; height: 14px; }
.faq summary:hover .plus { background: var(--surface-3); }
.faq details[open] .plus { transform: rotate(135deg); }
.faq p { max-width: 62ch; margin: 0 0 20px; color: var(--text-2); }
.faq .btn { margin-bottom: 20px; }

.foot { margin-top: clamp(64px, 9vw, 112px); padding: 40px 0 60px; border-top: 1px solid var(--line); }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.foot-grid p { max-width: 46ch; margin: 14px 0 0; font-size: 0.88rem; }
.foot nav { display: grid; align-content: start; gap: 10px; }
.foot nav a { color: var(--text-2); text-decoration: none; font-size: 14.5px; }
.foot nav a:hover { color: var(--text); }

/* ---------- окна ---------- */

dialog.modal { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; overflow: hidden; }
dialog.modal[open] { display: flex; align-items: center; justify-content: center; }
dialog.modal::backdrop { background: rgba(3, 3, 6, 0.8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade 0.3s ease; }
.sheet { display: flex; flex-direction: column; width: min(560px, calc(100% - 32px)); max-height: min(92dvh, 900px); border-radius: var(--r-4); background: #0e0e14; box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 100px -30px #000; overflow: hidden; animation: rise 0.45s var(--spring); }
.drawer[open] { justify-content: flex-end; align-items: stretch; }
.drawer .sheet { width: min(460px, 100%); max-height: none; height: 100%; border-radius: var(--r-4) 0 0 var(--r-4); animation: slide 0.45s var(--ease); }
.grab { display: none; width: 40px; height: 4px; margin: 10px auto 0; border-radius: 2px; background: var(--line-2); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px 14px 24px; border-bottom: 1px solid var(--line); }
.sheet-title { margin: 0; font: 600 1.15rem/1 var(--display); letter-spacing: -0.03em; }
.sheet-body { flex: 1; min-height: 0; padding: 20px 24px 24px; overflow-y: auto; overscroll-behavior: contain; }

.stepper { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; font-size: 13px; font-weight: 500; color: var(--text-3); }
.stepper li { display: inline-flex; align-items: center; gap: 8px; }
.stepper li + li::before { content: ''; width: 22px; height: 0; margin: 0 8px; border-top: 1.5px dashed var(--line-2); }
.stepper span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 8px; box-shadow: inset 0 0 0 1.5px var(--line-2); font-size: 11px; font-weight: 700; }
.stepper .current { color: var(--text); }
.stepper .current span { background: var(--violet); box-shadow: none; color: #fff; }
.stepper .done { color: var(--text-2); }
.stepper .done span { background: rgba(125, 107, 245, 0.2); box-shadow: inset 0 0 0 1.5px var(--violet); color: var(--lilac); }

/* ---------- форма покупки ---------- */

.co-head { display: flex; align-items: center; gap: 18px; }
.co-head h2 { margin: 0; font-size: 1.45rem; }
.co-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; font-size: 0.9rem; color: var(--text-2); }
.tag { margin-left: 4px; padding: 2px 9px; border-radius: 7px; background: rgba(125, 107, 245, 0.14); box-shadow: inset 0 0 0 1px rgba(125, 107, 245, 0.4); color: var(--lilac); font-size: 0.74rem; font-weight: 600; transform: rotate(-2deg); }

.field { margin-top: 20px; }
.field > label, .field > .label { display: block; margin-bottom: 9px; font-size: 0.85rem; font-weight: 600; color: var(--text-2); }
.hint { margin: 8px 0 0; font-size: 13px; color: var(--text-3); }
.msg { margin: 8px 0 0; font-size: 13.5px; }
.msg.err { color: var(--bad); }
.msg.ok { color: var(--ok); }


.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap input { width: 100%; height: 52px; padding: 0 16px; border: 0; border-radius: var(--r-2); background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line-2); font-size: 17px; font-weight: 500; transition: box-shadow 0.2s, background 0.2s; }
.input-wrap input::placeholder { color: var(--text-3); font-weight: 400; }
.input-wrap input:hover { box-shadow: inset 0 0 0 1.5px #4a4a5c; }
.input-wrap input:focus { outline: none; background: var(--surface-3); box-shadow: inset 0 0 0 1.5px var(--violet), 0 0 0 4px rgba(125, 107, 245, 0.2); }
.input-wrap input[aria-invalid='true'] { box-shadow: inset 0 0 0 1.5px var(--bad); }
#co-addr { padding-right: 126px; font-size: 14.5px; }
.paste { position: absolute; right: 7px; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: 0; border-radius: 11px; background: rgba(125, 107, 245, 0.16); color: var(--lilac); font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.2s, transform 0.12s; }
.paste .i { width: 16px; height: 16px; }
.paste:hover { background: rgba(125, 107, 245, 0.28); }
.paste:active { transform: scale(0.96); }

.mini-label { margin: 14px 0 8px; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.04em; text-transform: lowercase; color: var(--text-3); }


.check { position: relative; display: flex; align-items: flex-start; gap: 12px; margin-top: 20px; font-size: 14px; line-height: 1.5; color: var(--text-2); cursor: pointer; }
.check input { position: absolute; width: 22px; height: 22px; margin: 0; opacity: 0; }
.check .box { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background 0.2s, box-shadow 0.2s; }
.check:hover .box { box-shadow: inset 0 0 0 1.5px var(--violet-hi); }
.check input:checked + .box { background: var(--violet); box-shadow: none; }
.check input:checked + .box::after { content: ''; width: 6px; height: 11px; margin-top: -2px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.check input:focus-visible + .box { outline: 2px solid var(--violet-hi); outline-offset: 3px; }
.check b { color: var(--text); font-weight: 650; }
.alert { display: grid; gap: 4px; margin-top: 18px; padding: 14px 16px; border-radius: var(--r-2); background: rgba(255, 142, 150, 0.08); box-shadow: inset 0 0 0 1.5px rgba(255, 142, 150, 0.45); font-size: 14px; }
.alert span { color: var(--text-2); }
#co-submit { margin-top: 18px; }

.about { margin-top: 20px; border-radius: var(--r-2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.about summary { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; font-size: 14px; font-weight: 500; color: var(--text-2); cursor: pointer; list-style: none; }
.about summary::-webkit-details-marker { display: none; }
.about summary::after { content: '+'; color: var(--violet-hi); font-size: 20px; font-weight: 400; line-height: 1; }
.about[open] summary::after { content: '−'; }
.facts { margin: 0; padding: 0 16px 6px; }
.facts > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--text-3); }
.facts dd { margin: 0; font-size: 14px; color: var(--text-2); word-break: break-word; }
.facts a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.facts a .i { width: 14px; height: 14px; }
.copyline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.copyline code { font-size: 12.5px; word-break: break-all; }

/* ---------- оплата и результат ---------- */

.pay-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 13px; border-radius: 10px; background: rgba(125, 107, 245, 0.16); color: var(--lilac); font-size: 13px; font-weight: 600; }
.status-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill.wait::before { animation: pulse 1.6s ease-in-out infinite; }
.status-pill.paid { background: rgba(242, 197, 111, 0.14); color: var(--warn); }
.status-pill.paid::before { animation: pulse 1s ease-in-out infinite; }
.status-pill.done { background: rgba(111, 227, 166, 0.14); color: var(--ok); }
.status-pill.fail { background: rgba(255, 142, 150, 0.13); color: var(--bad); }
.status-pill.sm { height: 26px; padding: 0 10px; font-size: 12px; border-radius: 9px; }

.order-item { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 12px 14px; border-radius: var(--r-2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.order-item strong { display: block; font-weight: 650; }
.order-item small { color: var(--text-3); font-size: 12.5px; }
.pay .lead, .view-done .lead, .view-fail .lead { margin: 0; font-size: 0.97rem; color: var(--text-2); }
.kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'k k' 'v c'; gap: 4px 12px; align-items: center; margin-bottom: 10px; padding: 13px 16px; border-radius: var(--r-2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.kv .k { grid-area: k; font-size: 12.5px; color: var(--text-3); }
.kv .vrow { grid-area: v; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; min-width: 0; }
.kv .copy { grid-area: c; }
.kv .v { font-size: 13.5px; font-weight: 500; word-break: break-all; color: var(--text); }
.kv.big .v { font: 600 1.35rem/1.2 var(--display); letter-spacing: -0.04em; color: var(--lilac); }
.kv .asset { font-weight: 600; color: var(--text-2); }
.kv .net { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 15px; }
.qr { margin: 0; text-align: center; }
.qr svg { display: block; width: 172px; height: 172px; border-radius: var(--r-2); box-shadow: 0 18px 40px -18px #000; }
.qr figcaption { margin-top: 8px; font-size: 12px; color: var(--text-3); }
.countdown { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 11px 15px; border-radius: var(--r-2); background: rgba(125, 107, 245, 0.1); box-shadow: inset 0 0 0 1.5px rgba(125, 107, 245, 0.35); font-size: 14px; }
.countdown .i { width: 18px; height: 18px; color: var(--violet-hi); }
.countdown b { font-variant-numeric: tabular-nums; }
.countdown.over { background: rgba(255, 142, 150, 0.08); box-shadow: inset 0 0 0 1.5px rgba(255, 142, 150, 0.45); }
.countdown.over .i { color: var(--bad); }
.warn { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--text-2); }
.warn li { display: flex; gap: 10px; align-items: flex-start; }
.warn .i { width: 18px; height: 18px; margin-top: 1px; color: var(--warn); }
.warn b { color: var(--text); }

.timeline { display: grid; margin: 24px 0 0; padding: 0; list-style: none; }
.timeline li { position: relative; padding: 0 0 18px 34px; font-size: 14.5px; color: var(--text-3); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:not(:last-child)::after { content: ''; position: absolute; left: 8.5px; top: 22px; bottom: 2px; border-left: 1.5px dashed var(--line-2); }
.timeline .tick { position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.timeline .done { color: var(--text); }
.timeline .done .tick { background: var(--ok); box-shadow: none; }
.timeline .done .tick::after { content: ''; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #04170c; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.timeline .current { color: var(--lilac); }
.timeline .current .tick { box-shadow: inset 0 0 0 1.5px var(--violet-hi); animation: ring 1.8s ease-out infinite; }
.auto { margin: 18px 0 0; font-size: 13px; color: var(--text-3); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.actions .btn { flex: 1 1 auto; }
.order-details { margin-top: 20px; }

.view-done, .view-fail { text-align: center; }
.view-done .lead, .view-fail .lead { margin-inline: auto; }
.view-done h2, .view-fail h2 { margin: 6px 0 10px; }
.view-fail .status-pill { margin-bottom: 6px; }
.view-fail .kv { margin-top: 20px; text-align: left; }
.done-mark { display: grid; place-items: center; margin: 6px 0 12px; }
.done-mark svg { width: 76px; height: 76px; }
.done-mark circle, .done-mark path { fill: none; stroke: var(--ok); stroke-linecap: round; stroke-linejoin: round; }
.done-mark circle { stroke-width: 1.6; stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw 0.9s var(--ease) forwards; }
.done-mark path { stroke-width: 3; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.5s 0.6s var(--ease) forwards; }
.done-coin { display: grid; place-items: center; margin: 22px 0 10px; }
.done-coin .coin-icon .face { animation: spin-in 0.9s var(--spring) both; }
.view-done .facts { margin: 12px 0 0; padding: 0 16px 6px; border-radius: var(--r-2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-align: left; }
.view-done .facts > div:first-child { border-top: 0; }
.note { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); font-size: 13.5px; text-align: left; }

.order-list { margin: 0; padding: 0; list-style: none; }
.order-list li { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); }
.order-row { flex: 1; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 6px; border: 0; border-radius: var(--r-2); background: none; text-align: left; cursor: pointer; transition: background 0.2s; }
.order-row:hover { background: rgba(255, 255, 255, 0.04); }
.order-row:hover .coin-icon .face { transform: rotate(-9deg) scale(1.08); }
.o-main { display: grid; min-width: 0; }
.o-main strong { font-weight: 650; }
.o-main small { font-size: 12.5px; color: var(--text-3); }

.toast { position: fixed; inset: auto auto 28px 50%; margin: 0; padding: 11px 20px; border-radius: var(--r-2); background: #1e1e2a; box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 50px -10px #000; color: var(--text); font-size: 14px; font-weight: 500; transform: translateX(-50%); }
.toast:popover-open { animation: toast 0.3s var(--spring); }

/* ---------- анимации ---------- */

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-in { from { transform: rotate(-120deg) scale(0.6); opacity: 0; } }
@keyframes shimmer { to { background-position: -220% 0, 0 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(20px) scale(0.97); } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
@keyframes pulse { 50% { opacity: 0.35; } }
@keyframes ring { 70% { box-shadow: inset 0 0 0 1.5px var(--violet-hi), 0 0 0 9px rgba(157, 143, 255, 0); } 100% { box-shadow: inset 0 0 0 1.5px var(--violet-hi), 0 0 0 0 rgba(157, 143, 255, 0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 14px); } }

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

@media (max-width: 1000px) {
  .point { display: none; }
  .step-next { display: none; }
}

@media (max-width: 1000px) {
  .coin-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 30px 26px; }
}

@media (max-width: 760px) {
  :root { --bar: 60px; }
  .nav { display: none; }
  .bar { height: var(--bar); }
  .intro { padding-top: 18px; }
  .hand.tilt { margin-bottom: 8px; }
  .notice { padding: 10px 14px 10px 12px; font-size: 0.84rem; }
  .coin-list { margin-top: 18px; }
}

@media (max-width: 640px) {
  dialog.modal[open] { align-items: flex-end; }
  .sheet, .drawer .sheet { width: 100%; max-height: 94dvh; height: auto; border-radius: var(--r-4) var(--r-4) 0 0; padding-bottom: env(safe-area-inset-bottom); animation: sheet 0.45s var(--ease); }
  .drawer .sheet { min-height: 56dvh; }
  .grab { display: block; }
  .sheet-head { padding: 10px 16px 12px 20px; }
  .sheet-body { padding: 18px 20px 24px; }
  .co-head { gap: 14px; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .qr { justify-self: center; }
  .stepper li + li::before { width: 12px; margin: 0 4px; }
  .toast { bottom: 20px; max-width: calc(100% - 32px); text-align: center; }

  .amount { font-size: 1.02rem; }
}

@media (max-width: 440px) {
  .steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ---------- язык ---------- */

html.i18n-pending body { visibility: hidden; }
.bar-end { display: flex; align-items: center; gap: 10px; }
.lang { position: relative; }
.lang-btn { gap: 6px; padding: 0 12px; }
#lang-code { font-weight: 700; font-size: 13px; letter-spacing: 0.04em; }
.lang-btn .caret { width: 14px; height: 14px; transition: transform 0.2s; }
.lang-btn[aria-expanded='true'] .caret { transform: rotate(180deg); }
.lang-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 40; min-width: 210px; max-height: min(70vh, 480px); margin: 0; padding: 6px; overflow-y: auto; list-style: none; border-radius: var(--r-2); background: #14141c; box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 50px -12px #000; }
.lang-menu[hidden] { display: none; }
.lang-menu button { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--text-2); font: 500 15px/1.2 var(--sans); text-align: start; cursor: pointer; }
.lang-menu button:hover, .lang-menu button:focus-visible { background: rgba(125, 107, 245, 0.12); color: var(--text); }
.lang-menu button[aria-selected='true'] { background: rgba(125, 107, 245, 0.18); color: var(--lilac); }
.lang-menu .c { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--text-3); }
.stepper b { font-weight: inherit; }

/* Арабский и китайский: системные шрифты, без отрицательного межбуквенного интервала (он ломает арабскую вязь) */
:lang(ar) { --display: 'Segoe UI', Tahoma, 'Noto Sans Arabic', 'Arial', sans-serif; --sans: 'Segoe UI', Tahoma, 'Noto Sans Arabic', 'Arial', sans-serif; --hand: 'Segoe UI', Tahoma, 'Noto Sans Arabic', sans-serif; }
:lang(ar) * { letter-spacing: 0 !important; }
:lang(zh) { --display: 'Onest', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif; --sans: 'Onest', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif; --hand: 'Caveat', 'KaiTi', 'Kaiti SC', 'STKaiti', cursive; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: 0; }

/* Справа налево */
[dir='rtl'] .skip { left: auto; right: 12px; }
[dir='rtl'] .nav { margin-left: 8px; margin-right: auto; }
[dir='rtl'] .nav a::after { transform-origin: right; }
[dir='rtl'] .hand.tilt { transform: rotate(3deg); transform-origin: right center; }
[dir='rtl'] .btn { padding: 0 20px 0 16px; }
[dir='rtl'] .btn.sm { padding: 0 14px; }
[dir='rtl'] .btn.lg { padding: 0 24px 0 18px; }
[dir='rtl'] .btn:has(> .i:first-child) { padding-left: 16px; padding-right: 16px; }
[dir='rtl'] .btn .ico { margin-right: 0; margin-left: -2px; }
[dir='rtl'] .btn .ico .i, [dir='rtl'] .notice a .i { transform: scaleX(-1); }
[dir='rtl'] .notice { padding: 11px 14px 11px 16px; box-shadow: inset 0 0 0 1px var(--line), inset -3px 0 0 var(--violet); }
[dir='rtl'] .point { margin-left: 0; margin-right: auto; transform: rotate(2deg); }
[dir='rtl'] .doodle:not(.squig) { transform: scaleX(-1); }
[dir='rtl'] .step-next { left: auto; right: calc(100% + 2px); }
[dir='rtl'] .coin-icon .net { right: auto; left: -7%; }
[dir='rtl'] .sheet-head { padding: 14px 24px 14px 18px; }
[dir='rtl'] .tag { margin-left: 0; margin-right: 4px; }
[dir='rtl'] .order-row, [dir='rtl'] .view-fail .kv, [dir='rtl'] .view-done .facts, [dir='rtl'] .note { text-align: right; }
[dir='rtl'] .timeline li { padding: 0 34px 18px 0; }
[dir='rtl'] .timeline li:not(:last-child)::after { left: auto; right: 8.5px; border-left: 0; border-right: 1.5px dashed var(--line-2); }
[dir='rtl'] .timeline .tick { left: auto; right: 0; }
[dir='rtl'] .timeline .done .tick::after { left: auto; right: 5px; }
/* адреса, суммы и ввод чисел всегда читаются слева направо */
[dir='rtl'] code, [dir='rtl'] .mono, [dir='rtl'] #co-addr, [dir='rtl'] #co-qty, [dir='rtl'] #co-usd { direction: ltr; unicode-bidi: isolate; text-align: left; }
[dir='rtl'] #co-addr::placeholder, [dir='rtl'] #co-qty::placeholder, [dir='rtl'] #co-usd::placeholder { text-align: left; }
@media (max-width: 640px) {
  [dir='rtl'] .sheet-head { padding: 10px 20px 12px 16px; }
  .bar-end { gap: 8px; }
  .lang-btn { padding: 0 10px; }
  .lang-menu { min-width: 190px; }
}
@media (max-width: 430px) {
  .bar { gap: 10px; }
  .bar-end { gap: 6px; }
  #orders-open { padding: 0 11px; }
  #orders-open [data-i18n] { display: none; }
  .lang-btn .caret { display: none; }
  .lang-btn { padding: 0 11px; }
}

/* ---------- карточки монет ---------- */

.card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--r-3); background: rgba(15, 15, 21, 0.9); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s; }
.card:hover { transform: translateY(-3px); background: rgba(22, 22, 30, 0.96); box-shadow: inset 0 0 0 1px #433b92, 0 18px 36px -22px var(--glow); }
.card:hover .coin-icon .face { transform: rotate(-9deg) scale(1.08); }
.card-top { display: flex; align-items: center; gap: 14px; }
.card-id { display: grid; justify-items: start; gap: 6px; min-width: 0; }
.card-id h3 { margin: 0; font: 650 1.2rem/1.2 var(--sans); overflow-wrap: anywhere; }
.net-badge { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, #888) 55%, transparent); color: var(--text-2); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.card-note { margin: 0; font-size: 0.88rem; line-height: 1.45; color: var(--text-3); }
.card-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin: 0; }
.card-price .from { font-size: 0.82rem; color: var(--text-3); }
.card-price .amount { font-size: 1.75rem; color: var(--lilac); }
.minis { display: flex; flex-wrap: wrap; gap: 6px; }
.mini { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 10px; border: 0; border-radius: 10px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-3); font-size: 12.5px; font-variant-numeric: tabular-nums; cursor: pointer; transition: box-shadow 0.2s, color 0.2s, transform 0.12s; }
.mini b { color: var(--text); font-weight: 700; }
.mini:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--violet); color: var(--text-2); }
.mini:active:not(:disabled) { transform: scale(0.96); }
.mini:disabled { cursor: default; }
.more { align-self: center; padding: 0 4px; font-size: 12.5px; color: var(--text-3); }
.card .btn { margin-top: auto; }
.card .btn:disabled { white-space: normal; height: auto; min-height: var(--h); line-height: 1.25; text-align: center; padding: 8px 12px; }
.card.is-off { cursor: default; }
.card.is-off .coin-icon .face,
.card.is-off .coin-icon .net { filter: grayscale(1) brightness(0.6); }
.card.is-off:hover { transform: none; background: rgba(15, 15, 21, 0.9); box-shadow: inset 0 0 0 1px var(--line); }
.card.skeleton { min-height: 262px; cursor: default; background: linear-gradient(100deg, rgba(255, 255, 255, 0.015) 30%, rgba(255, 255, 255, 0.055) 50%, rgba(255, 255, 255, 0.015) 70%) 0 0 / 220% 100%, var(--surface); animation: shimmer 1.8s linear infinite; }
.card.skeleton:hover { transform: none; box-shadow: inset 0 0 0 1px var(--line); }
.coin-icon.xs { --s: 24px; }
.coin-icon.xs .net { display: none; }

/* ---------- окно покупки: пакеты и «Покупка» ---------- */

.sheet.wide { width: min(1040px, calc(100% - 32px)); }
.pick { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.co-note { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 0; padding: 11px 14px; border-radius: var(--r-2); background: rgba(125, 107, 245, 0.08); box-shadow: inset 0 0 0 1px rgba(125, 107, 245, 0.3); font-size: 0.88rem; color: var(--text-2); }
.co-note .i { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--violet-hi); }
.sec-label { margin: 22px 0 10px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; }
.pack { position: relative; display: grid; justify-items: center; gap: 2px; min-width: 0; padding: 15px 8px 12px; border: 0; border-radius: var(--r-3); background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--text); text-align: center; cursor: pointer; transition: box-shadow 0.2s, background 0.2s, transform 0.12s; }
.pack:hover { background: var(--surface-3); box-shadow: inset 0 0 0 1.5px var(--line-2); transform: translateY(-1px); }
.pack:active { transform: scale(0.97); }
.pack .n { font: 700 1.5rem/1.15 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.pack .u { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.78rem; color: var(--text-3); }
.pack .p { margin-top: 6px; font: 700 1.05rem/1.2 var(--sans); color: var(--lilac); font-variant-numeric: tabular-nums; }
.pack[aria-pressed='true'] { background: rgba(125, 107, 245, 0.16); box-shadow: inset 0 0 0 1.5px var(--violet), 0 12px 26px -16px var(--glow); }
.pack .deal { position: absolute; top: -8px; right: 10px; padding: 0 8px; border-radius: 999px; background: var(--ok); color: #04170c; font: 700 11px/1.7 var(--sans); font-style: normal; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.tiles li { display: grid; justify-items: center; align-content: start; gap: 3px; padding: 14px 8px; border-radius: var(--r-2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.tiles .i { width: 24px; height: 24px; margin-bottom: 4px; color: var(--violet-hi); }
.tiles b { font-size: 0.9rem; }
.tiles small { font-size: 0.76rem; line-height: 1.35; color: var(--text-3); }

.exchange { position: sticky; top: 0; padding: 20px; border-radius: var(--r-3); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.ex-title { margin: 0 0 14px; font: 600 1.15rem/1.2 var(--display); letter-spacing: -0.03em; }
.ex-box { display: block; padding: 12px 14px; border-radius: var(--r-2); background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line-2); cursor: text; transition: box-shadow 0.2s; }
.ex-box:hover { box-shadow: inset 0 0 0 1.5px #4a4a5c; }
.ex-box:focus-within { box-shadow: inset 0 0 0 1.5px var(--violet), 0 0 0 4px rgba(125, 107, 245, 0.2); }
.ex-box:has(input[aria-invalid='true']) { box-shadow: inset 0 0 0 1.5px var(--bad); }
.ex-box .lbl { display: block; margin-bottom: 4px; font-size: 0.78rem; color: var(--text-3); }
.ex-row { display: flex; align-items: center; gap: 10px; }
.ex-row input { flex: 1; min-width: 0; padding: 0; border: 0; background: none; outline: none; color: var(--text); font: 700 1.7rem/1.2 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.cur { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 8px; border-radius: 999px; background: var(--surface-3); font-size: 0.9rem; font-weight: 700; }
.usd-sign { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #04170c; font-size: 0.82rem; }
.ex-swap { position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; margin: -9px auto; border-radius: 11px; background: var(--surface-3); box-shadow: 0 0 0 4px var(--surface), inset 0 0 0 1.5px var(--line-2); color: var(--violet-hi); }
.ex-swap .i { width: 16px; height: 16px; }
.exchange .hint { margin-top: 14px; }
.exchange .field { margin-top: 16px; }
.exchange .label { display: block; margin-bottom: 8px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
#co-next { margin-top: 18px; }
.ex-foot { margin: 12px 0 0; text-align: center; font-size: 13px; line-height: 1.45; color: var(--text-3); }
.about { margin-top: 18px; }

/* ---------- окно покупки: кошелёк ---------- */

.stage { max-width: 520px; margin: 0 auto; }
.back { display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; border: 0; background: none; color: var(--text-2); font-size: 0.9rem; font-weight: 600; cursor: pointer; }
.back:hover { color: var(--text); }
.back .i { width: 16px; height: 16px; }
.sumcard { margin-top: 12px; }
.sc-main { display: grid; flex: 1; min-width: 0; }
.sc-price { font: 600 1.3rem/1 var(--display); letter-spacing: -0.04em; color: var(--lilac); }
.infobox { display: flex; gap: 12px; margin-top: 14px; padding: 13px 15px; border-radius: var(--r-2); background: rgba(111, 227, 166, 0.07); box-shadow: inset 0 0 0 1.5px rgba(111, 227, 166, 0.35); font-size: 0.92rem; color: var(--text-2); }
.infobox .i { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--ok); }
.infobox p { margin: 0; }
.infobox b { color: var(--text); }
.mini-label { text-transform: none; letter-spacing: 0; }
.wallets { margin-top: 18px; }
.wallets ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.wallets li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: var(--r-2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.9rem; }
.wallets li b { display: inline-flex; align-items: center; gap: 8px; }
.wallets li span { text-align: end; font-size: 0.84rem; color: var(--ok); }
.wallets li.imp span { color: var(--warn); }

/* ---------- оплата ---------- */

.pay-sum { margin-top: 16px; padding: 2px 16px; border-radius: var(--r-3); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.ps-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.ps-row:first-child { border-top: 0; }
.ps-row .k { flex: 1 1 auto; font-size: 0.9rem; color: var(--text-3); }
.ps-row .v { display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; font-size: 0.95rem; text-align: end; overflow-wrap: anywhere; }
.ps-row .net { align-items: center; }
.ps-row.main .amt { font: 700 1.5rem/1.1 var(--display); letter-spacing: -0.04em; color: var(--lilac); }
.ps-row.main .asset { font-weight: 700; color: var(--text-2); }
.ps-row.main { flex-wrap: wrap; row-gap: 2px; }
.ps-row.main .k { flex-basis: 100%; }
.ps-row.main .v { flex: 1; text-align: start; white-space: nowrap; overflow-wrap: normal; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 16px; padding: 5px; border-radius: var(--r-3); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.tab { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 8px; border: 0; border-radius: 12px; background: none; color: var(--text-2); font-size: 0.92rem; font-weight: 600; cursor: pointer; transition: background 0.2s, color 0.2s; }
.tab .i { width: 18px; height: 18px; }
.tab:hover { color: var(--text); }
.tab[aria-selected='true'] { background: rgba(125, 107, 245, 0.2); box-shadow: inset 0 0 0 1.5px var(--violet); color: var(--lilac); }
.tabpanel { margin-top: 16px; }
.tabpanel .qr { display: grid; justify-items: center; margin-bottom: 14px; }
.addr-card { padding: 12px 14px; border-radius: var(--r-2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.addr-card .k { display: block; margin-bottom: 6px; font-size: 12.5px; color: var(--text-3); }
.addr-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.addr-row code { font-size: 13px; color: var(--text); overflow-wrap: anywhere; }
.sendexact { margin: 12px 0 0; text-align: center; font-size: 0.9rem; color: var(--text-2); }
.sendexact b { color: var(--lilac); }
.guide { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: g; }
.guide li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: var(--r-2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.92rem; color: var(--text-2); counter-increment: g; }
.guide li::before { content: counter(g); flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: rgba(125, 107, 245, 0.2); color: var(--lilac); font-size: 12px; font-weight: 700; }
.guide b { color: var(--text); }
.watching { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; font-size: 13px; color: var(--text-3); }
.dots { display: inline-flex; flex: none; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--violet-hi); animation: blink 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: 0.2s; }
.dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

/* ---------- флаги ---------- */

.flag { flex: none; width: 22px; height: 16px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); }
.lang-menu button { gap: 12px; }
.lang-menu .n { flex: 1; text-align: start; }

@media (max-width: 860px) {
  /* на телефоне «Покупка» идёт сразу после пакетов, а плитки и контракт ниже */
  .pick { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pick-main { display: contents; }
  .exchange { position: static; order: 1; margin-top: 22px; }
  .tiles { order: 2; }
  .about { order: 3; }
}
@media (max-width: 640px) {
  .sheet.wide { width: 100%; }
  .coin-list { grid-template-columns: 1fr; }
  .stepper li:not(.current) b { display: none; }
  .ex-row input { font-size: 1.45rem; }
  .pack .n { font-size: 1.3rem; }
  .ps-row.main .amt { font-size: 1.3rem; }
}
@media (max-width: 360px) {
  .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

[dir='rtl'] .pack .deal { right: auto; left: 10px; }
[dir='rtl'] .back .i { transform: scaleX(-1); }
