/* =================================================================
   cryptoaml.ai — design system
   Professional AML tool. Dark first. Dense. Authoritative.
   ================================================================= */

:root {
  /* Surface */
  --bg:               #0a0a1a;
  --bg-deep:          #06060f;
  --bg-card:          #111827;
  --bg-card-hover:    #1a2535;
  --bg-elevated:      #1c2638;
  --bg-input:         #0e1322;

  /* Border */
  --border:           #1e293b;
  --border-strong:    #2b3a55;
  --border-accent:    rgba(59,130,246,0.45);

  /* Accent */
  --accent:           #3b82f6;
  --accent-hover:     #2563eb;
  --accent-soft:      rgba(59,130,246,0.12);
  --accent-glow:      0 0 0 4px rgba(59,130,246,0.18);

  /* Risk semantics */
  --green:            #10b981;
  --green-soft:       rgba(16,185,129,0.14);
  --yellow:           #f59e0b;
  --yellow-soft:      rgba(245,158,11,0.14);
  --red:              #ef4444;
  --red-soft:         rgba(239,68,68,0.14);
  --info:             #5eb8ff;

  /* Text */
  --text:             #f1f5f9;
  --text-strong:      #ffffff;
  --text-muted:       #94a3b8;
  --text-dim:         #64748b;
  --text-faint:       #475569;

  /* Layout */
  --radius-sm:        6px;
  --radius:           10px;
  --radius-lg:        14px;
  --radius-xl:        20px;

  /* Shadow */
  --shadow-sm:        0 1px 2px rgba(0,0,0,0.4);
  --shadow:           0 4px 24px rgba(0,0,0,0.35), 0 2px 6px rgba(0,0,0,0.25);
  --shadow-lg:        0 16px 48px rgba(0,0,0,0.5), 0 6px 16px rgba(0,0,0,0.35);
  --shadow-accent:    0 8px 28px rgba(59,130,246,0.32);

  /* Typography */
  --font-sans:        "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono:        "JetBrains Mono", "SF Mono", "Fira Code", ui-monospace, monospace;

  /* Container */
  --container:        1180px;
  --container-narrow: 880px;
}

/* ----------------- reset ----------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background:
    radial-gradient(1100px 600px at 12% -10%, rgba(59,130,246,0.10), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(99,102,241,0.06), transparent 65%),
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ----------------- layout ----------------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 20px; }

/* ----------------- typography ----------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #93b5ff;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

h1, .h1 {
  font-size: clamp(34px, 5.5vw, 56px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-strong);
}
h2, .h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-strong);
}
h3, .h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}
h4, .h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-strong);
}
p { color: var(--text-muted); }
p strong { color: var(--text); font-weight: 600; }

.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 640px;
}

.mono { font-family: var(--font-mono); }

.gradient-text {
  background: linear-gradient(120deg, #93b5ff 0%, #c4b5fd 50%, #93b5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ----------------- header ----------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,26,0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}
.brand .logo-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3b82f6, #6366f1 60%, #8b5cf6);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(59,130,246,0.45), inset 0 1px 0 rgba(255,255,255,0.18);
}
.brand .logo-mark svg { width: 16px; height: 16px; }
.brand b { color: var(--accent); font-weight: 700; }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 150ms ease;
}
.nav-link:hover { color: var(--text); }
.nav-link--highlight { color: var(--accent); font-weight: 600; }
.nav-link--highlight:hover { color: var(--accent); opacity: .85; }

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ----------------- language dropdown ----------------- */
.lang-dropdown {
  position: relative;
}

.lang-dropdown__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px 5px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.lang-dropdown__btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.lang-dropdown__flag {
  font-size: 14px;
  line-height: 1;
}

.lang-dropdown__chevron {
  transition: transform 200ms ease;
  flex-shrink: 0;
  opacity: 0.5;
}

.lang-dropdown.is-open .lang-dropdown__chevron {
  transform: rotate(180deg);
}

.lang-dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3);
  min-width: 140px;
  list-style: none;
  margin: 0;
  padding: 4px;
  z-index: 300;
}

.lang-dropdown.is-open .lang-dropdown__menu {
  display: block;
}

.lang-dropdown__item {
  border-radius: 7px;
  overflow: hidden;
}

.lang-dropdown__item a {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 120ms ease, color 120ms ease;
}

.lang-dropdown__item a:hover {
  background: var(--bg-card-hover);
  color: var(--text);
}

.lang-dropdown__item.active a {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.lang-dropdown__item-flag {
  font-size: 16px;
  line-height: 1;
}

/* legacy — keep for any unreplaced markup */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-switcher button,
.lang-switcher a {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  border-radius: 999px;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}
.lang-switcher button.active,
.lang-switcher a.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(59,130,246,0.45);
}
.lang-switcher button:not(.active):hover,
.lang-switcher a:not(.active):hover { color: var(--text); }

/* lang visibility */
html[lang="en"] .lang-ru,
html[lang="en"] .lang-de,
html[lang="en"] .lang-es,
html[lang="en"] .lang-fr,
html[lang="en"] .lang-pt,
html[lang="en"] .lang-tr { display: none !important; }

html[lang="ru"] .lang-en,
html[lang="ru"] .lang-de,
html[lang="ru"] .lang-es,
html[lang="ru"] .lang-fr,
html[lang="ru"] .lang-pt,
html[lang="ru"] .lang-tr { display: none !important; }

html[lang="de"] .lang-en,
html[lang="de"] .lang-ru,
html[lang="de"] .lang-es,
html[lang="de"] .lang-fr,
html[lang="de"] .lang-pt,
html[lang="de"] .lang-tr { display: none !important; }

html[lang="es"] .lang-en,
html[lang="es"] .lang-ru,
html[lang="es"] .lang-de,
html[lang="es"] .lang-fr,
html[lang="es"] .lang-pt,
html[lang="es"] .lang-tr { display: none !important; }

html[lang="fr"] .lang-en,
html[lang="fr"] .lang-ru,
html[lang="fr"] .lang-de,
html[lang="fr"] .lang-es,
html[lang="fr"] .lang-pt,
html[lang="fr"] .lang-tr { display: none !important; }

html[lang="pt"] .lang-en,
html[lang="pt"] .lang-ru,
html[lang="pt"] .lang-de,
html[lang="pt"] .lang-es,
html[lang="pt"] .lang-fr,
html[lang="pt"] .lang-tr { display: none !important; }

html[lang="tr"] .lang-en,
html[lang="tr"] .lang-ru,
html[lang="tr"] .lang-de,
html[lang="tr"] .lang-es,
html[lang="tr"] .lang-fr,
html[lang="tr"] .lang-pt { display: none !important; }

/* ----------------- buttons ----------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #6366f1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow-accent), inset 0 1px 0 rgba(255,255,255,0.16);
}
.btn-primary:hover { filter: brightness(1.1); box-shadow: 0 12px 32px rgba(59,130,246,0.5); }

.btn-outline {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover { background: var(--bg-card-hover); border-color: var(--accent); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
}
.btn-ghost:hover { color: var(--text); background: var(--bg-card); }

.btn-tg {
  background: linear-gradient(135deg, #229ED9, #2AABEE);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 24px rgba(34,158,217,0.36), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-tg:hover { filter: brightness(1.1); box-shadow: 0 12px 32px rgba(34,158,217,0.5); }

.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ----------------- hero ----------------- */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 240px at 50% 0%, rgba(99,102,241,0.16), transparent 70%),
    radial-gradient(800px 300px at 50% 100%, rgba(59,130,246,0.08), transparent 80%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; max-width: 880px; margin: 0 auto; }
.hero h1 { margin-top: 18px; }
.hero h1 .accent { color: var(--accent); }
.hero .lead { margin: 22px auto 0; }

/* ----------------- checker form ----------------- */
.checker {
  margin: 36px auto 0;
  max-width: 720px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  display: flex;
  gap: 8px;
  box-shadow: var(--shadow);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.checker:focus-within {
  border-color: var(--border-accent);
  box-shadow: var(--shadow), var(--accent-glow);
}
.checker input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  padding: 14px 14px;
  color: var(--text-strong);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: -0.01em;
  min-width: 0;
}
.checker input::placeholder { color: var(--text-faint); font-family: var(--font-sans); letter-spacing: 0; }
.checker button { flex-shrink: 0; }

.chains-row {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 12px;
}
.chains-row .chain-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
}
.chains-row .chain-pill .ico {
  width: 14px; height: 14px; border-radius: 999px;
  display: grid; place-items: center;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
}

/* ----------------- result card ----------------- */
.result {
  margin: 24px auto 0;
  max-width: 720px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 22px 18px;
  box-shadow: var(--shadow);
  animation: fadeSlideIn 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.result-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.result-meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); word-break: break-all; }
.score-circle {
  --val: 0; --col: var(--green);
  width: 76px; height: 76px;
  border-radius: 50%;
  display: grid; place-items: center;
  background:
    conic-gradient(var(--col) calc(var(--val) * 1%), rgba(255,255,255,0.05) 0);
  position: relative;
}
.score-circle::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--bg-card);
}
.score-circle .val {
  position: relative;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-strong);
  font-family: var(--font-mono);
}

.flags { display: flex; flex-direction: column; gap: 8px; }
.flag {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
}
.flag .label { color: var(--text); font-weight: 500; }
.flag .v { font-family: var(--font-mono); color: var(--text-muted); font-size: 12px; }
.flag.flag-ok    { border-color: rgba(16,185,129,0.3);  background: var(--green-soft); }
.flag.flag-warn  { border-color: rgba(245,158,11,0.3);  background: var(--yellow-soft); }
.flag.flag-bad   { border-color: rgba(239,68,68,0.35);  background: var(--red-soft); }

.tg-cta-inline {
  margin-top: 16px;
  background: linear-gradient(135deg, rgba(34,158,217,0.12), rgba(99,102,241,0.10));
  border: 1px solid rgba(42, 171, 238, 0.28);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  justify-content: space-between;
}
.tg-cta-inline p { color: var(--text); margin: 0; font-size: 13px; }

/* ----------------- stats ----------------- */
.section { padding: 64px 0; }
.section-tight { padding: 48px 0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 200ms ease, background 200ms ease, transform 200ms ease;
}
.stat-card:hover { border-color: var(--border-strong); background: var(--bg-card-hover); transform: translateY(-2px); }
.stat-card .num {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  font-feature-settings: "tnum" 1;
}
.stat-card .num b {
  background: linear-gradient(120deg, #93b5ff, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}
.stat-card .lbl {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
}
.stat-card .ico-bg {
  position: absolute; right: 12px; top: 12px;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
}

/* ----------------- section heading ----------------- */
.section-head { text-align: center; margin-bottom: 36px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { margin-bottom: 10px; }
.section-head p { max-width: 600px; margin: 0 auto; }

/* ----------------- steps ----------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px 22px;
  position: relative;
}
.step .step-no {
  display: inline-flex;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-mono);
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border: 1px solid var(--border-accent);
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--text-muted); }

/* ----------------- feature grid (what we check) ----------------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: border-color 200ms ease, transform 200ms ease, background 200ms ease;
}
.feature:hover { border-color: var(--border-strong); transform: translateY(-2px); background: var(--bg-card-hover); }
.feature .icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  margin-bottom: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--border-accent);
}
.feature .icon svg { width: 20px; height: 20px; }
.feature.f-red    .icon { background: var(--red-soft);    color: var(--red);    border-color: rgba(239,68,68,0.32); }
.feature.f-yellow .icon { background: var(--yellow-soft); color: var(--yellow); border-color: rgba(245,158,11,0.32); }
.feature.f-green  .icon { background: var(--green-soft);  color: var(--green);  border-color: rgba(16,185,129,0.32); }
.feature h3 { font-size: 16px; margin-bottom: 4px; }
.feature p { font-size: 13.5px; color: var(--text-muted); }

/* ----------------- audience ----------------- */
.audience {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.aud {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: left;
  transition: border-color 200ms ease, transform 200ms ease;
}
.aud:hover { border-color: var(--accent); transform: translateY(-2px); }
.aud .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 12px; }
.aud h3 { font-size: 16px; margin-bottom: 4px; }
.aud p { font-size: 13px; color: var(--text-muted); }

/* ----------------- big CTA ----------------- */
.cta-block {
  background:
    radial-gradient(500px 200px at 0% 0%, rgba(99,102,241,0.20), transparent 65%),
    radial-gradient(500px 200px at 100% 100%, rgba(59,130,246,0.18), transparent 65%),
    var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  position: relative;
  overflow: hidden;
}
.cta-block h2 { font-size: 28px; margin-bottom: 6px; }
.cta-block p { font-size: 15px; max-width: 560px; }
.cta-block .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ----------------- blockchain grid ----------------- */
.chain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 12px;
}
.chain-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}
.chain-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.chain-card .ico {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid; place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.chain-card .name { font-weight: 600; color: var(--text); font-size: 14px; }
.chain-card .sym { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }

/* chain palette */
.c-btc  { background: linear-gradient(135deg, #f7931a, #ea7c0a); }
.c-eth  { background: linear-gradient(135deg, #627eea, #3c5cf5); }
.c-trx  { background: linear-gradient(135deg, #ef0027, #b00020); }
.c-sol  { background: linear-gradient(135deg, #9945ff, #14f195); }
.c-bnb  { background: linear-gradient(135deg, #f3ba2f, #d99500); color:#1a1a00; }
.c-pol  { background: linear-gradient(135deg, #8247e5, #5f2db5); }
.c-ltc  { background: linear-gradient(135deg, #345d9d, #1d3f72); }
.c-doge { background: linear-gradient(135deg, #c2a633, #8c7a26); color:#1a1500; }
.c-xrp  { background: linear-gradient(135deg, #23292f, #0a0d10); }
.c-ada  { background: linear-gradient(135deg, #0033ad, #001a5a); }
.c-avax { background: linear-gradient(135deg, #e84142, #b51e1f); }
.c-arb  { background: linear-gradient(135deg, #28a0f0, #1c75bc); }
.c-op   { background: linear-gradient(135deg, #ff0420, #b50219); }
.c-near { background: linear-gradient(135deg, #5f8afa, #2e5dd7); }
.c-atom { background: linear-gradient(135deg, #2e3148, #1c1d2c); }
.c-dash { background: linear-gradient(135deg, #008ce7, #005c9a); }
.c-xmr  { background: linear-gradient(135deg, #ff6600, #cc5200); }
.c-zec  { background: linear-gradient(135deg, #f4b728, #b88112); color:#1a1300; }
.c-xlm  { background: linear-gradient(135deg, #000000, #1d1d1d); }
.c-algo { background: linear-gradient(135deg, #000000, #1d1d1d); }

/* ----------------- FAQ ----------------- */
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: border-color 150ms ease, background 150ms ease;
}
.faq details[open] { border-color: var(--border-strong); background: var(--bg-card-hover); }
.faq summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-strong);
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--bg-deep);
  display: grid; place-items: center;
  color: var(--text-muted);
  transition: transform 200ms ease, color 200ms ease;
  flex-shrink: 0;
}
.faq details[open] summary .chev { transform: rotate(180deg); color: var(--accent); }
.faq details p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ----------------- footer ----------------- */
.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
  padding: 40px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color 150ms ease;
}
.footer-col a:hover { color: var(--text-strong); }
.footer-col .brand {
  display: inline-flex;
  padding: 0;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
}

/* ----------------- chain page extras ----------------- */
.crumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.crumbs a { color: var(--text-muted); transition: color 150ms ease; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { color: var(--text-faint); }

.chain-hero {
  padding: 56px 0 32px;
  text-align: left;
}
.chain-hero .hero-row {
  display: flex; align-items: center; gap: 18px; margin-bottom: 18px;
}
.chain-hero .chain-mark {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 18px;
  box-shadow: var(--shadow);
}
.chain-hero h1 { font-size: clamp(28px, 4.5vw, 44px); margin-bottom: 8px; }
.chain-hero .lead { margin: 0; }

.content-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  margin-bottom: 18px;
}
.content-block h2 { font-size: 22px; margin-bottom: 12px; }
.content-block h3 { font-size: 17px; margin-top: 18px; margin-bottom: 8px; color: var(--text-strong); }
.content-block p { color: var(--text); font-size: 14.5px; line-height: 1.75; margin-bottom: 12px; }
.content-block p:last-child { margin-bottom: 0; }
.content-block ul { list-style: none; padding-left: 0; margin: 8px 0 14px; display: grid; gap: 8px; }
.content-block ul li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.6;
}
.content-block ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.content-block code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: #93b5ff;
}

/* risk table */
.risk-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.risk-table thead th {
  background: var(--bg-deep);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.risk-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.risk-table tbody tr:last-child td { border-bottom: 0; }
.risk-table tbody tr:hover td { background: var(--bg-card-hover); }
.risk-table .pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}
.risk-table .pill.low  { background: var(--green-soft);  color: var(--green);  border: 1px solid rgba(16,185,129,0.35); }
.risk-table .pill.mid  { background: var(--yellow-soft); color: var(--yellow); border: 1px solid rgba(245,158,11,0.35); }
.risk-table .pill.high { background: var(--red-soft);    color: var(--red);    border: 1px solid rgba(239,68,68,0.35); }

/* related chains */
.related {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

/* about page extras */
.tile-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.tile h3 { font-size: 17px; margin-bottom: 6px; }
.tile p { font-size: 14px; color: var(--text-muted); }

/* ----------------- responsive ----------------- */
@media (max-width: 960px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .audience { grid-template-columns: 1fr 1fr; }
  .cta-block { grid-template-columns: 1fr; padding: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tile-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 14.5px; }
  .section { padding: 40px 0; }
  .hero { padding: 44px 0 32px; }

  /* header: скрываем навигацию, уменьшаем отступы */
  .nav { display: none; }
  .site-header .container { height: 56px; gap: 12px; padding: 0 16px; }
  .brand { font-size: 15px; }
  .brand .logo-mark { width: 24px; height: 24px; }
  .header-tools { gap: 8px; }
  .lang-switcher button, .lang-switcher a { padding: 4px 9px; font-size: 11px; }

  /* hero */
  .hero-inner { padding: 0 4px; }
  .hero .lead { font-size: 15px; margin-top: 14px; }
  .checker { flex-direction: column; margin-top: 24px; }
  .checker input { font-size: 16px; padding: 13px 14px; } /* iOS no-zoom */
  .checker button { width: 100%; padding: 14px; justify-content: center; }
  .chains-row { gap: 6px; margin-top: 14px; }
  .chains-row .chain-pill { padding: 5px 8px; font-size: 11px; }

  /* сетки */
  .stats-grid { grid-template-columns: 1fr; gap: 10px; }
  .features { grid-template-columns: 1fr; }
  .audience { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }

  /* сетка блокчейнов: 2 колонки на мобильном */
  .chain-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .chain-card { padding: 11px 10px; gap: 8px; }
  .chain-card .ico { width: 26px; height: 26px; font-size: 11px; }
  .chain-card .name { font-size: 13px; }

  /* CTA блок */
  .cta-block { padding: 22px 18px; grid-template-columns: 1fr; }
  .cta-block h2 { font-size: 22px; }
  .cta-block .actions { flex-direction: column; }
  .cta-block .actions a, .cta-block .actions button { width: 100%; text-align: center; justify-content: center; }

  /* Telegram CTA */
  .tg-cta-inline { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* футер */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* страницы блокчейнов */
  .content-block { padding: 18px; }
  .chain-hero { padding: 36px 0 24px; }
  .chain-hero .chain-mark { width: 44px; height: 44px; font-size: 15px; }
  .chain-hero h1 { font-size: clamp(24px, 7vw, 34px); }
  .crumbs { flex-wrap: wrap; }
  .checker-mini { flex-direction: column; }
  .checker-mini button { width: 100%; }

  /* секция heading */
  .section-head { margin-bottom: 24px; }
}

@media (max-width: 380px) {
  /* очень маленькие экраны */
  .chain-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .lang-switcher button, .lang-switcher a { padding: 3px 7px; font-size: 10px; }
}

/* prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ── Payment widget ─────────────────────────────────────────────────────── */
.pay-widget { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.pay-header { background: linear-gradient(135deg, var(--bg-card), var(--bg-card-hover)); padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.pay-price { font-size: 22px; font-weight: 800; color: var(--accent); }
.pay-title { font-size: 15px; font-weight: 700; color: var(--text); }
.pay-desc { font-size: 12px; color: var(--text-muted); margin: 2px 0 0; }
.pay-header > div { flex: 1; }
.pay-step { padding: 16px 20px; }
.pay-step-label { font-size: 13px; color: var(--text-muted); margin: 0 0 10px; }
.pay-net-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-net-btn { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; text-align: left; transition: border-color 150ms, background 150ms; }
.pay-net-btn:hover { border-color: var(--accent); background: var(--bg-card-hover); }
.pay-net-icon { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #fff; flex-shrink: 0; }
.pay-net-name { font-size: 13px; font-weight: 600; color: var(--text); }
.pay-net-chain { font-size: 11px; color: var(--text-muted); margin-left: auto; }
.pay-net-badge { font-size: 10px; background: rgba(34,197,94,.15); color: var(--green); padding: 2px 6px; border-radius: 999px; font-weight: 600; }
.pay-loading { text-align: center; padding: 20px 0; color: var(--text-muted); font-size: 13px; }
.pay-addr-box { display: flex; align-items: center; gap: 8px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
.pay-address { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text); word-break: break-all; flex: 1; }
.pay-copy-btn { flex-shrink: 0; padding: 4px 10px; background: var(--bg-card-hover); border: 1px solid var(--border); border-radius: 6px; font-size: 12px; color: var(--text-muted); cursor: pointer; transition: color 150ms; }
.pay-copy-btn:hover { color: var(--text); }
.pay-qr { text-align: center; margin: 8px 0; }
.pay-qr-fallback { font-size: 12px; color: var(--text-muted); }
.pay-timer { font-size: 12px; color: var(--text-muted); text-align: center; margin-bottom: 8px; }
.pay-status { font-size: 13px; color: var(--accent); text-align: center; padding: 8px; background: var(--accent-soft); border-radius: 8px; }
.pay-success { text-align: center; padding: 20px; color: var(--green); font-weight: 600; }
.pay-back { background: none; border: none; color: var(--text-muted); font-size: 13px; cursor: pointer; padding: 8px 20px 12px; display: block; }
.pay-back:hover { color: var(--text); }
@media (max-width: 420px) { .pay-net-grid { grid-template-columns: 1fr; } }
