:root {
  --bg: #08090c;
  --bg-raised: #0d0f13;
  --surface: #121419;
  --surface-2: #181b22;
  --border: #22262f;
  --border-strong: #303542;
  --text: #eef0f4;
  --muted: #8b93a3;
  --faint: #5c6474;
  --accent: #c8f560;
  --accent-hover: #d6ff7a;
  --accent-ink: #0c0e06;
  --accent-soft: rgba(200, 245, 96, 0.09);
  --danger: #ff8080;
  --danger-soft: rgba(255, 128, 128, 0.09);
  --warn: #ffcc66;
  --radius: 18px;
  --radius-sm: 11px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* ---------- Кнопки и поля ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }

.spinner {
  display: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite;
}
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

input[type="text"], input[type="number"], input[type="password"], textarea, select {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  padding: 12px 14px;
  transition: border-color .15s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, textarea:hover, select:hover { border-color: #3d4352; }
textarea { resize: vertical; min-height: 84px; }

.form-error {
  margin-top: 12px; padding: 10px 14px;
  background: var(--danger-soft); color: var(--danger);
  border-radius: var(--radius-sm); font-size: 14px;
}

/* ---------- Шапка ---------- */

.topbar { position: sticky; top: 0; z-index: 10; background: rgba(8, 9, 12, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; text-decoration: none; letter-spacing: -0.01em; }
.brand-mark { display: block; width: 26px; height: 26px; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 600; }
.nav > a:not(.btn) { color: var(--muted); text-decoration: none; }
.nav > a:not(.btn):hover { color: var(--text); }
@media (max-width: 960px) { .nav > a:not(.btn):not(.nav-accent) { display: none; } }
@media (max-width: 640px) { .nav { gap: 12px; } .nav > a:not(.btn) { display: none; } }
.nav > a.nav-accent { color: var(--accent); }
.nav > a.nav-accent:hover { color: var(--accent-hover); }

.lang-switch { position: relative; display: inline-flex; }
.lang-switch select {
  width: auto; height: 36px; padding-block: 0; padding-inline: 12px 30px;
  background: transparent; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  appearance: none; -webkit-appearance: none;
}
.lang-switch::after {
  content: ''; position: absolute; inset-inline-end: 12px; top: 50%; width: 6px; height: 6px; margin-top: -5px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none;
}
.lang-switch select option { background: var(--surface); color: var(--text); }

/* ---------- Первый экран ---------- */

.hero {
  position: relative;
  padding: 72px 0 56px;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(200, 245, 96, .10), transparent 70%),
    linear-gradient(to bottom, transparent, var(--bg) 95%);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000 20%, transparent 75%);
  opacity: .55;
}
.hero .wrap { position: relative; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 12px; border: 1px solid var(--border-strong); border-radius: 999px;
  background: rgba(18, 20, 25, .7); font-size: 13px; font-weight: 600; color: var(--muted);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(200,245,96,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(200,245,96,0); } 100% { box-shadow: 0 0 0 0 rgba(200,245,96,0); } }

.hero h1 { white-space: pre-line; margin-top: 24px; font-size: clamp(34px, 6.4vw, 64px); font-weight: 800; letter-spacing: -0.035em; }
.lead { max-width: 600px; margin: 20px auto 0; color: var(--muted); font-size: clamp(16px, 2.2vw, 18px); }

.check { max-width: 680px; margin: 40px auto 0; text-align: start; }
.check-field {
  display: flex; gap: 8px; padding: 8px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: calc(var(--radius-sm) + 8px);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,.7);
  transition: border-color .15s;
}
.check-field:focus-within { border-color: var(--accent); }
.check-field input {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 12px;
  font-family: var(--mono); font-size: 15px;
}
.check-field input:focus-visible { outline: none; }
.check-field .btn { height: 52px; padding: 0 26px; }
.check-hint { margin-top: 12px; font-size: 13px; color: var(--faint); text-align: center; }
.hero-link { margin-top: 14px; text-align: center; font-size: 14px; font-weight: 700; }
.hero-link a { color: var(--accent); text-decoration: none; }
.hero-link a:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .check-field { flex-direction: column; }
  .check-field input { height: 48px; }
  .check-field .btn { width: 100%; }
}

.chains-line { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.chains-label { font-size: 13px; color: var(--faint); }
.chain-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chain-chips li {
  padding: 4px 10px; font-size: 12px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; background: var(--bg-raised);
}

/* ---------- Результат ---------- */

.result-section { padding: 8px 0 40px; scroll-margin-top: 80px; }
.result-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .result-grid { grid-template-columns: 1.5fr 1fr; align-items: start; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
@media (max-width: 560px) { .card { padding: 20px; } }

.result-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.result-label { font-size: 14px; font-weight: 600; color: var(--muted); }
.badge { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge.ok { background: var(--accent-soft); color: var(--accent); }
.badge.no { background: var(--danger-soft); color: var(--danger); }
.price { margin-top: 6px; font-size: clamp(44px, 8vw, 68px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.price.is-no { font-size: clamp(30px, 5vw, 40px); color: var(--muted); }
.result-addr { margin-top: 8px; font-size: 13px; color: var(--faint); word-break: break-all; }
.result-asof { margin-top: 2px; font-size: 12px; color: var(--faint); }
.result-asof:empty { display: none; }

.reasons { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.reasons li { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--danger-soft); color: var(--danger); font-size: 14px; font-weight: 600; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 24px 0 0; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.stats > div { background: var(--surface-2); padding: 14px 16px; }
.stats dt { font-size: 12px; color: var(--muted); font-weight: 600; }
.stats dd { margin: 4px 0 0; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .stats > div { display: flex; justify-content: space-between; align-items: baseline; }
  .stats dd { margin: 0; font-size: 16px; }
}

.notes { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.notes li { position: relative; padding-inline-start: 18px; font-size: 13px; color: var(--muted); }
.notes li::before { content: ''; position: absolute; inset-inline-start: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }

.chains-details { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 16px; }
.chains-details summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--muted); list-style: none; display: flex; align-items: center; gap: 8px; }
.chains-details summary::-webkit-details-marker { display: none; }
.chains-details summary::before { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.chains-details[open] summary::before { transform: rotate(45deg); }
.chains-details summary:hover { color: var(--text); }
.table-scroll { overflow-x: auto; margin-top: 12px; }
.chains-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.chains-table th { text-align: start; font-size: 12px; font-weight: 600; color: var(--faint); padding: 8px 0; border-bottom: 1px solid var(--border); }
.chains-table td { padding: 10px 0; border-bottom: 1px solid var(--border); }
.chains-table tr:last-child td { border-bottom: 0; }
.chains-table .num { text-align: end; font-variant-numeric: tabular-nums; }
.chains-table td.dim { color: var(--faint); }
.chains-table tr.inactive td:first-child { color: var(--muted); }

.sell h2 { font-size: 22px; }
.sell > div > .muted { margin-top: 8px; font-size: 14px; }
.lead-form { margin-top: 20px; display: grid; gap: 14px; }
.contact-row { display: grid; grid-template-columns: minmax(120px, 0.75fr) 1.6fr; gap: 8px; }
@media (max-width: 400px) { .contact-row { grid-template-columns: 1fr; } }
.field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-done { text-align: center; padding: 20px 0; }
.lead-done h2 { margin-top: 16px; }
.lead-done .muted { margin-top: 8px; font-size: 14px; }
.done-mark { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; background: var(--accent-soft); position: relative; }
.done-mark::after { content: ''; position: absolute; left: 20px; top: 15px; width: 12px; height: 22px; border-right: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(45deg); }

/* скелет загрузки */
.result.is-loading .price,
.result.is-loading .stats dd { color: transparent; background: linear-gradient(90deg, var(--surface-2), #20242d, var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; }
.result.is-loading .price { width: 180px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Секции ---------- */

.section { padding: 72px 0; border-top: 1px solid var(--border); }
.section-title { font-size: clamp(26px, 4vw, 36px); font-weight: 800; }

.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step-num { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.steps h3 { margin-top: 14px; font-size: 19px; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 15px; }

.factors { display: grid; gap: 32px; }
@media (min-width: 860px) { .factors { grid-template-columns: 1fr 1.4fr; gap: 64px; } }
.factors-intro { margin-top: 14px; max-width: 360px; }
.factor-list { list-style: none; margin: 0; padding: 0; display: grid; }
.factor-list li { padding: 20px 0; border-bottom: 1px solid var(--border); }
.factor-list li:first-child { padding-top: 0; }
.factor-list li:last-child { border-bottom: 0; }
.factor-list h3 { font-size: 17px; }
.factor-list p { margin-top: 6px; color: var(--muted); font-size: 15px; }

.faq-wrap { max-width: 800px; }
.faq { margin-top: 28px; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.faq summary { cursor: pointer; list-style: none; padding-block: 18px; padding-inline: 20px 52px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; inset-inline-end: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 20px 18px; color: var(--muted); font-size: 15px; }

.footer { border-top: 1px solid var(--border); padding: 28px 0; font-size: 14px; color: var(--faint); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer a { color: var(--muted); }

/* ---------- How the deal works ---------- */

.deal { background: linear-gradient(to bottom, var(--bg-raised), var(--bg)); }
.deal-head { max-width: 640px; }
.deal-head .muted { margin-top: 12px; font-size: 17px; }
.deal-steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 16px; counter-reset: deal; }
@media (min-width: 680px) { .deal-steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .deal-steps { grid-template-columns: repeat(4, 1fr); } }
.deal-steps li { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.deal-num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 15px; border: 1px solid rgba(200,245,96,.25);
}
.deal-steps h3 { font-size: 18px; }
.deal-steps p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.deal-note {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin-top: 16px; padding: 18px 22px;
  border-radius: var(--radius); border: 1px solid rgba(200,245,96,.22); background: var(--accent-soft);
}
.deal-note p { flex: 1 1 280px; font-weight: 600; }
.deal-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.shield {
  flex: none; width: 28px; height: 28px; background: var(--accent);
  -webkit-mask: url('/shield.svg') center / contain no-repeat; mask: url('/shield.svg') center / contain no-repeat;
}

/* ---------- NFT page ---------- */

.hero-nft { padding-bottom: 40px; }
.nft-token {
  display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 22px;
  border-radius: 20px; background: linear-gradient(145deg, #1b2010, #0f1208); border: 1px solid rgba(200,245,96,.35);
  box-shadow: 0 0 0 6px rgba(200,245,96,.05), 0 18px 50px -12px rgba(200,245,96,.35);
  transform: rotate(-6deg);
}
.nft-section { padding: 0 0 72px; }
.nft-grid { display: grid; gap: 24px; }
@media (min-width: 900px) {
  .nft-grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .nft-form-card { order: 2; }
}
.nft-form-card h2 { font-size: 22px; }
.nft-form-card > div > .muted { margin-top: 8px; font-size: 14px; }
.info-title { font-size: 22px; font-weight: 800; }
.timeline { list-style: none; margin: 20px 0 0; padding: 0; display: grid; }
.timeline li { position: relative; padding-block: 0 22px; padding-inline: 52px 0; }
.timeline li::before { content: ''; position: absolute; inset-inline-start: 17px; top: 34px; bottom: 4px; width: 1px; background: var(--border-strong); }
.timeline li:last-child::before { display: none; }
.timeline .step-num {
  position: absolute; inset-inline-start: 0; top: 0; display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border-strong);
}
.timeline h3 { font-size: 17px; padding-top: 6px; }
.timeline p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.safe-note { display: flex; gap: 14px; margin-top: 8px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.safe-note h3 { font-size: 16px; }
.safe-note p { margin-top: 4px; color: var(--muted); font-size: 14px; }

.nft-check { display: flex; gap: 8px; }
.nft-check input { flex: 1; min-width: 0; }
.nft-check .btn { flex: none; }
@media (max-width: 480px) { .nft-check { flex-direction: column; } .nft-check .btn { width: 100%; } }
.nft-offer { padding: 20px; border-radius: var(--radius-sm); background: var(--bg-raised); border: 1px solid rgba(200,245,96,.25); }
.nft-offer .price { margin-top: 4px; }
.nft-offer .stats { margin-top: 16px; }
.nft-manual { margin-top: 8px; font-weight: 600; }
.nft-offer.is-loading .price,
.nft-offer.is-loading .stats dd { color: transparent; background: linear-gradient(90deg, var(--surface-2), #20242d, var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; }
.nft-offer.is-loading .price { width: 160px; }

/* ---------- Sell fast: message us on Telegram ---------- */

.btn-tg { background: #2aabee; color: #fff; }
.btn-tg:hover { background: #47b8f2; }
.tg-icon { width: 16px; height: 16px; background: currentColor; -webkit-mask: url('/telegram.svg') center / contain no-repeat; mask: url('/telegram.svg') center / contain no-repeat; }
.choice-intro { margin-top: 8px; font-size: 14px; }
.choice { margin-top: 18px; }
.choice-head { display: flex; align-items: center; gap: 10px; }
.choice-head h3 { font-size: 17px; }
.choice-num {
  flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--muted); font-size: 13px; font-weight: 800;
}
.choice-text { margin-top: 6px; color: var(--muted); font-size: 14px; }
.choice .lead-form, .choice-fields { margin-top: 14px; display: grid; gap: 14px; }
.choice-or { display: flex; align-items: center; gap: 12px; margin-top: 22px; color: var(--faint); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.choice-or::before, .choice-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.choice-fast { padding: 18px; border-radius: var(--radius-sm); background: rgba(42, 171, 238, .08); border: 1px solid rgba(42, 171, 238, .3); }
.choice-fast .choice-num { background: rgba(42, 171, 238, .15); border-color: rgba(42, 171, 238, .4); color: #6cc6f5; }
.choice-fast .btn { margin-top: 14px; }
.fast-badge { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: auto; background: rgba(42, 171, 238, .15); color: #6cc6f5; }
.bolt-sm { width: 11px; height: 11px; background: currentColor; -webkit-mask: url('/bolt.svg') center / contain no-repeat; mask: url('/bolt.svg') center / contain no-repeat; }
.nft-options { padding-top: 4px; border-top: 1px solid var(--border); }
.done-fast { margin-top: 20px; font-size: 14px; color: var(--muted); }
.lead-done .btn-tg { margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Right-to-left languages (Arabic) ---------- */
[dir="rtl"] .chains-details summary::before { transform: rotate(135deg); }
[dir="rtl"] .chains-details[open] summary::before { transform: rotate(45deg); }
/* wallet addresses, amounts and handles always read left-to-right */
[dir="rtl"] .mono, [dir="rtl"] input[type="text"], [dir="rtl"] input[type="email"] { direction: ltr; text-align: start; }
[dir="rtl"] .check-field input { text-align: right; }
