:root {
  color-scheme: dark;
  --bg: #090b10;
  --surface: rgba(255, 255, 255, .045);
  --border: rgba(255, 255, 255, .08);
  --border-gold: rgba(233, 196, 106, .3);
  --text: #f3f4f7;
  --hint: #8b93a3;
  --gold: #e9c46a;
  --gold-grad: linear-gradient(135deg, #f8e1a1 0%, #e9c46a 45%, #c08f2e 100%);
  --green: #2fd38a;
  --radius: 20px;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text);
  font: 16px/1.55 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(900px 520px at 100% -10%, rgba(233, 196, 106, .16), transparent 62%),
    radial-gradient(760px 460px at -15% 10%, rgba(47, 211, 138, .1), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--hint); }

.top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1080px; margin: 0 auto; padding: 14px 20px;
  background: rgba(9, 11, 16, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 750; font-size: 17px; }
.brand:hover { text-decoration: none; }

main { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
section { margin: 64px 0; }
h1 { font-size: clamp(32px, 5.4vw, 56px); line-height: 1.08; letter-spacing: -.025em; margin: 18px 0 18px; font-weight: 800; }
h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.015em; margin: 0 0 20px; font-weight: 750; }
section > .muted { margin: -10px 0 20px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 26px; border-radius: 16px;
  background: var(--gold-grad); color: #1d1405; font-weight: 750; font-size: 16px; border: 0;
  box-shadow: 0 14px 32px -14px rgba(233, 196, 106, .7); transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 18px 36px -14px rgba(233, 196, 106, .85); }
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.btn.small { padding: 9px 16px; font-size: 14px; border-radius: 12px; }

.hero { margin-top: 36px; }
.badge {
  display: inline-block; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 650; color: var(--gold);
  background: rgba(233, 196, 106, .1); border: 1px solid var(--border-gold);
}
.crumbs { font-size: 14px; color: var(--hint); }
.lead { font-size: clamp(17px, 2vw, 20px); color: #c9ced8; max-width: 720px; margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 40px; }
.stat {
  padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
}
.stat b {
  display: block; font-size: 24px; font-weight: 800; margin-bottom: 4px;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { color: var(--hint); font-size: 14px; }
.numbers .stats { margin-top: 0; }

.card {
  display: block; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  color: var(--text);
}
.card b { display: block; font-size: 17px; margin-bottom: 6px; }
.card p { margin: 0; color: var(--hint); font-size: 15px; }
.card h2 { font-size: 20px; margin-bottom: 14px; }
.ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; font-size: 22px;
  background: rgba(233, 196, 106, .1); border: 1px solid var(--border-gold); margin-bottom: 14px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.guide .lead { max-width: 820px; margin-bottom: 20px; }
.card h3 { font-size: 18px; margin: 0 0 10px; }
.card h3 + p { color: #c9ced8; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
.steps li { position: relative; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); counter-increment: step; }
.steps li::after {
  content: counter(step); position: absolute; top: 18px; right: 20px; font-size: 34px; font-weight: 800; color: rgba(255, 255, 255, .07);
}
.steps b { display: block; font-size: 17px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--hint); font-size: 15px; }

.market { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-top: 40px; }
.rates { border-color: var(--border-gold); }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.quotes div { padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); }
.quotes span { display: block; color: var(--hint); font-size: 14px; }
.quotes b { font-size: 20px; margin: 4px 0 0; }
.rates p { margin: 6px 0 0; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--border); font-weight: 600; font-size: 14px; }

.chips.links a { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--border); font-weight: 600; font-size: 14px; }
.chips.links a:hover { text-decoration: none; border-color: var(--border-gold); }

.topnav { display: flex; align-items: center; gap: 18px; }
.topnav > a:not(.btn) { color: var(--text); font-weight: 600; font-size: 15px; }
.more { font-weight: 650; }
.rates .more { display: inline-block; margin-top: 8px; font-size: 15px; }

.table { padding: 0; overflow-x: auto; border-color: var(--border-gold); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 14px 18px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--border); }
thead th { color: var(--hint); font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
tbody th { font-weight: 700; }
tbody th small { color: var(--hint); font-weight: 600; margin-left: 4px; }
tbody tr:last-child > * { border-bottom: 0; }
td { font-weight: 650; }
.table + .muted { margin-top: 14px; }

.article .more { display: inline-block; margin-top: 12px; color: var(--gold); }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(21px, 2.4vw, 26px); margin: 36px 0 12px; }
.prose p { color: #c9ced8; font-size: 17px; margin: 0 0 14px; }
.prose .actions { margin-top: 28px; }

.country, .article { transition: border-color .15s ease, transform .15s ease; }
.country:hover, .article:hover { text-decoration: none; border-color: var(--border-gold); transform: translateY(-2px); }
.code {
  display: inline-grid; place-items: center; min-width: 44px; height: 30px; padding: 0 10px; margin-bottom: 12px;
  border-radius: 10px; font-size: 13px; font-weight: 800; letter-spacing: .08em; color: #1d1405; background: var(--gold-grad);
}

.faq { display: grid; gap: 10px; max-width: 820px; }
details { border-radius: 16px; background: var(--surface); border: 1px solid var(--border); padding: 0 20px; }
details[open] { border-color: var(--border-gold); }
summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 650; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 22px; color: var(--gold); }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 18px; color: #c9ced8; }

.final {
  text-align: center; padding: 48px 24px; border-radius: 28px; border: 1px solid var(--border-gold);
  background: radial-gradient(600px 260px at 50% 0%, rgba(233, 196, 106, .14), transparent 70%), var(--surface);
}
.final p { color: #c9ced8; margin: 0 auto 24px; max-width: 560px; }

footer { max-width: 1080px; margin: 0 auto; padding: 28px 20px 40px; border-top: 1px solid var(--border); font-size: 14px; }
.langs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 14px; }
.langs a { color: var(--hint); }
.langs a.on { color: var(--gold); font-weight: 650; }

@media (max-width: 860px) {
  .grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .market { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  section { margin: 48px 0; }
  .grid, .grid.two, .steps { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; }
  .top .btn.small { display: none; }
  th, td { padding: 12px 14px; }
  .quotes { grid-template-columns: 1fr; }
  .stat { padding: 14px; }
  .stat b { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .country, .article { transition: none; }
}
