:root {
  --ink: #1d1d1f;
  --muted: #4a5562;
  --line: #d5dde6;
  --blue: #0071e3;
  --blue-deep: #005bb8;
  --paper: #fff;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: Outfit, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #eef4fa 0%, #f5f7fb 220px, #f3f5f8 100%);
  font-size: 17px;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, p { margin: 0; }

.boot { min-height: 100vh; display: grid; place-items: center; color: var(--muted); }

.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 22px;
  color: var(--ink);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(236, 245, 252, 0.94) 48%, rgba(232, 246, 246, 0.94) 100%);
  border-bottom: 1px solid #d7e3ee;
  backdrop-filter: blur(16px);
}
.bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #2f6fed 0%, #7a4fd0 48%, #e11d48 100%);
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
a.brand, a.brand:hover, a.brand:focus, a.brand:visited { color: inherit; text-decoration: none; }
a.brand:hover strong { color: var(--blue); }
.logo {
  height: 44px;
  width: 44px;
  display: block;
  flex: none;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(47, 111, 237, 0.14);
}
.brand > div { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.brand strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #16324a;
}
.brand em { font-style: normal; color: #5c6b7a; font-size: 14px; font-weight: 500; white-space: nowrap; }

.bar nav {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(22, 50, 74, 0.06);
}
.bar nav a, .bar nav button, .text-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #3d4b5c;
  border-radius: 8px;
  padding: 7px 12px;
  font-weight: 500;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.bar nav a { text-decoration: none; }
.bar nav a:hover, .bar nav button:hover, .text-btn:hover { background: rgba(255, 255, 255, 0.7); color: #16324a; }
.bar nav a[aria-current="page"], .bar nav button[aria-current="page"] {
  background: #fff;
  color: var(--blue-deep);
  box-shadow: 0 1px 2px rgba(22, 50, 74, 0.12), 0 0 0 1px rgba(22, 50, 74, 0.05);
}
.bar-end { margin-left: auto; display: flex; align-items: center; gap: 8px; color: #5c6b7a; font-size: 15px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 20px 22px 48px; }
.seo-copy {
  margin: 22px 0 8px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid #e3eaf2;
  border-radius: 14px;
}
.seo-copy h2 { font-size: 18px; font-weight: 650; letter-spacing: -0.02em; margin-bottom: 8px; }
.seo-copy p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.site-foot {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid #e3eaf2;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.site-foot strong { color: var(--ink); }
.head { margin-bottom: 14px; }
.head h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; }
.head p { margin-top: 3px; color: var(--muted); font-size: 14px; }

.toolbar, .tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}
.toolbar {
  background: var(--paper);
  border: 1px solid #e3eaf2;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 8px 20px rgba(22, 50, 74, 0.05);
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  background: var(--paper);
  border: 1px solid #e3eaf2;
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 14px;
  box-shadow: 0 8px 20px rgba(22, 50, 74, 0.05);
}
.seg { display: flex; align-items: center; gap: 8px; }
.seg > span {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.seg-group {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: #eef2f7;
}
.seg-group button {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 550;
  color: #3d4b5c;
}
.seg-group button.on {
  background: #fff;
  color: #148a4a;
  box-shadow: 0 1px 3px rgba(22, 50, 74, 0.12);
}
.filter-hint {
  flex: 1 1 100%;
  margin: 2px 0 0;
  padding-top: 10px;
  border-top: 1px solid #edf1f6;
  font-size: 13px;
  color: var(--muted);
}
.filter-hint b { color: var(--ink); font-weight: 650; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 13px; color: var(--muted); }
.field input, .field select {
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 14px;
  background: #fff;
  text-decoration: none;
  line-height: 1.2;
}
.btn-primary { background: var(--blue); color: #fff; font-weight: 600; }
.btn-line { border-color: var(--line); }

.card {
  background: var(--paper);
  border: 1px solid #e3eaf2;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 1px 2px rgba(22, 50, 74, 0.04), 0 12px 32px rgba(22, 50, 74, 0.06);
}
.card h2 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }

.board { display: grid; gap: 10px; }
.block-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 8px 2px 0; }
.block-h:first-child { margin-top: 0; }
.block-h h2 { font-size: 15px; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: #5c6b7a; }
.block-h span { color: var(--muted); font-size: 13px; }

.board-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.crypto-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.official-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.rate-card {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid #e3eaf2;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 8px 20px rgba(22, 50, 74, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rate-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: var(--tone, #2f6fed);
}
.rate-top { display: flex; align-items: center; gap: 8px; }
.flag {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: var(--tone, #2f6fed);
  box-shadow: 0 6px 12px rgba(47, 111, 237, 0.14);
}
.flag .ico { width: 18px; height: 18px; display: block; }
.rate-top strong { display: block; font-size: 16px; letter-spacing: -0.02em; line-height: 1.1; }
.rate-top em { display: block; font-style: normal; color: var(--muted); font-size: 11px; margin-top: 1px; }
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.pair.single { grid-template-columns: 1fr; }
.pair > div {
  background: #f4f7fb;
  border-radius: 10px;
  padding: 7px 8px;
}
.pair span { display: block; font-size: 10px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pair b { display: block; margin-top: 1px; font-size: 16px; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.rate-card > small { color: var(--muted); font-size: 12px; margin-top: auto; }

.news-list { display: grid; gap: 8px; }
.news-item {
  display: grid;
  gap: 4px;
  background: var(--paper);
  border: 1px solid #e3eaf2;
  border-radius: 14px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 16px rgba(22, 50, 74, 0.05);
}
.news-item:hover { border-color: #b9d4f5; }
.news-item strong { font-size: 15px; letter-spacing: -0.02em; }
.news-item span { color: var(--muted); font-size: 13px; line-height: 1.4; }

.tone-usd { --tone: #277d4f; }
.tone-eur { --tone: #2f6fed; }
.tone-gbp { --tone: #7a4fd0; }
.tone-try { --tone: #e11d48; }
.tone-chf { --tone: #c43d3d; }
.tone-gold { --tone: #c3922e; }
.tone-silver { --tone: #6b7c90; }
.tone-btc { --tone: #f7931a; }
.tone-eth { --tone: #627eea; }
.tone-usdt { --tone: #26a17b; }
.tone-jpy { --tone: #c43d3d; }
.tone-aud { --tone: #1f7a4d; }
.tone-cad { --tone: #c43d3d; }
.tone-gold .flag, .tone-silver .flag { color: #1d1d1f; }
.tone-gold .flag { background: linear-gradient(180deg, #f3d27a, #c3922e); }
.tone-silver .flag { background: linear-gradient(180deg, #e7eef6, #9aabc0); }
.note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.banner {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fdecec;
  color: #8d2424;
}
.banner.ok { background: #e7f6ee; color: #145c38; }
.shop-list { display: grid; gap: 10px; margin-bottom: 0; }
.buro-split {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}
.rank-panel {
  position: sticky;
  top: 80px;
  background: var(--paper);
  border: 1px solid #e3eaf2;
  border-radius: 16px;
  padding: 12px;
  display: grid;
  gap: 12px;
  box-shadow: 0 8px 20px rgba(22, 50, 74, 0.05);
}
.rank-head h2 {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.rank-head p {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}
.rank-tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf1f6;
}
.rank-panel .seg.stacked {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  justify-content: flex-start;
}
.rank-panel .seg.stacked > span { letter-spacing: .1em; }
.rank-panel .seg-group { width: 100%; }
.rank-panel .seg-group button { flex: 1; padding: 7px 6px; }
.rank-list { display: grid; gap: 6px; }
.rank-cols,
.rank-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 68px 68px;
  gap: 8px;
  align-items: center;
}
.rank-cols {
  padding: 0 10px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.rank-cols span:nth-child(3),
.rank-cols span:nth-child(4),
.rank-row b { text-align: right; }
.rank-cols .on { color: #148a4a; }
.rank-row {
  width: 100%;
  text-align: left;
  border: 1px solid #edf1f6;
  background: #f7f9fc;
  border-radius: 12px;
  padding: 8px 10px;
}
.rank-row.top { border-color: #cfe8d8; background: #f3fbf6; }
.rank-row.picked { border-color: #c9a227; box-shadow: 0 0 0 1px #1a9a58; }
.rank-n {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #e8f1ff;
  color: #2f6fed;
  font-size: 13px;
  font-weight: 650;
}
.rank-row.top .rank-n { background: #148a4a; color: #fff; }
.rank-name { font-weight: 650; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row b {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-weight: 550;
}
.rank-row b.on { color: #145c38; font-weight: 700; }
.filter-bar.slim { margin-bottom: 12px; padding: 8px 12px; }
.ad-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 16px;
  padding: 18px 20px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff 0%, #f3f8ff 48%, #fff6f7 100%);
  border: 1px solid #d7e3ee;
  box-shadow: 0 10px 24px rgba(47, 111, 237, 0.08);
}
.ad-banner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #2f6fed, #7a4fd0, #e11d48);
}
.ad-kicker {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #2f6fed;
  line-height: 1.3;
  margin: 0;
}
.ad-banner h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.3;
  margin: 0;
  max-width: 720px;
}
.ad-lead {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  max-width: 720px;
  margin: 0;
}
.ad-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.ad-steps li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #e3eaf2;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.35;
}
.ad-steps b {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2f6fed;
  color: #fff;
  font-size: 12px;
  display: grid;
  place-items: center;
}
.ad-banner .btn { margin-top: 4px; }
.code-hint { display: block; margin-top: 6px; color: #16324a !important; }
.code-hint b { letter-spacing: .06em; }
.bureau-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bureau-name strong { font-size: 20px; letter-spacing: -0.03em; }
.bureau-card.compact { padding: 10px 12px; gap: 8px; }
.bureau-card.compact .bureau-name strong { font-size: 16px; }
.bureau-card.compact .quote-grid { max-width: none; }
.bureau-card.compact .q-row { padding: 5px 8px; }
.bureau-card.compact .q-cell b { font-size: 14px; }
.bureau-card.compact .code-box { padding: 6px 8px; }
.bureau-card.compact .code-box b { font-size: 14px; letter-spacing: .04em; }
.bureau-card.compact .btn { padding: 6px 10px; font-size: 13px; }
.bureau-card em { display: block; font-style: normal; color: var(--muted); font-size: 13px; margin: 4px 0 2px; }
.addr-btn {
  margin: 6px 0 0;
  padding: 5px 10px;
  font-size: 13px;
  border: 1px solid #d7e3ee;
  background: #fff;
  border-radius: 8px;
}
.bureau-address {
  margin: 6px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f4f7fb;
  font-size: 14px;
  line-height: 1.4;
}
.quote-grid { display: grid; gap: 4px; max-width: 360px; }
.q-row {
  display: grid;
  grid-template-columns: 58px 1fr 1fr;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f6f8fb;
}
.q-row.head {
  background: transparent;
  padding: 0 10px 2px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 650;
}
.q-cell { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.q-cell b { font-size: 16px; font-weight: 600; }
.q-cell i { font-style: normal; font-size: 10px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: #1a7a48; }
.q-cell.best b { color: #145c38; }
.bureau-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.bureau-foot p { margin: 0; color: var(--muted); font-size: 13px; }
.pick-box {
  background: #eef6ff;
  border: 1px solid #cfe0f5;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 12px;
}
.pick-box p { margin: 0 0 6px; font-size: 14px; }
.pick-box p:last-child { margin: 0; }
.bureau-card {
  background: var(--paper);
  border: 2px solid #e3eaf2;
  border-radius: 16px;
  padding: 14px 16px;
  display: grid;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.bureau-card.top { border-color: #2f6fed; box-shadow: 0 8px 22px rgba(47, 111, 237, 0.12); }
.bureau-card.picked,
.bureau-card.picked.top {
  border-color: #c9a227;
  border-image: none;
  box-shadow: 0 0 0 1px #1a9a58, 0 12px 28px rgba(201, 162, 39, 0.28);
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(120deg, #148a4a 0%, #c9a227 42%, #e2c15a 100%) border-box;
  border: 2px solid transparent;
}
.bureau-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}
.rank-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e8f1ff;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #2f6fed;
  font-weight: 650;
}
.rank-tag.muted { background: #eef1f5; color: var(--muted); }
.shop-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  background: var(--paper);
  border: 1px solid #e3eaf2;
  border-radius: 14px;
  padding: 12px 14px;
}
.shop-row em, .shop-row span { display: block; font-style: normal; color: var(--muted); font-size: 13px; }
.code-box {
  background: #eef5ff;
  border-radius: 12px;
  padding: 8px 12px;
  text-align: center;
}
.code-box small { display: block; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.code-box b { font-size: 20px; letter-spacing: .08em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 6px; }
.deal-form[data-quotes] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.deal-form, .deal-card .deal-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  align-items: end;
}
.deal-form input[type="hidden"] { display: none; }
.deal-card { margin-top: 8px; }
.deal-card + .card { margin-top: 14px; }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 760px; }
.stack-form { display: grid; gap: 10px; }

.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; }
th {
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
  border-bottom: 1px solid var(--line);
}
td { border-top: 1px solid #edf1f6; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.report-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}
.report-head .field { min-width: 180px; }
.report-grand {
  margin: 12px 0 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef7ff, #f4fff6);
  border: 1px solid #d7e6f4;
  display: grid;
  gap: 4px;
}
.report-grand span {
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}
.report-grand strong {
  font-size: 26px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.report-grand em { color: var(--muted); font-style: normal; }
.report-firm {
  border: 1px solid #e3eaf2;
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 12px;
  background: #fbfcfe;
}
.report-firm-h {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  align-items: baseline;
  margin-bottom: 10px;
}
.report-firm-h em, .report-firm-h p { color: var(--muted); font-style: normal; }
.report-firm-h p { margin: 0; }
.report-day {
  background: #fff;
  border: 1px solid #edf1f6;
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 8px;
}
.report-day-h {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto 1fr auto;
  gap: 8px 12px;
  align-items: baseline;
  padding: 4px 2px 8px;
}
.report-day-h span, .report-day-h em { color: var(--muted); font-style: normal; font-size: 13px; }
.code { font-weight: 650; }

.kur-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kur-row {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 12px 16px;
  align-items: center;
  background: var(--paper);
  border: 1px solid #e3eaf2;
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 6px 16px rgba(22, 50, 74, 0.05);
  border-left: 4px solid var(--tone, #2f6fed);
}
.kur-vals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.kur-vals div {
  background: #f4f7fb;
  border-radius: 10px;
  padding: 6px 8px;
}
.kur-vals span {
  display: block;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.kur-vals b {
  display: block;
  margin-top: 1px;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.convert-wrap {
  display: grid;
  grid-template-columns: minmax(240px, 320px) auto minmax(240px, 320px);
  justify-content: center;
  gap: 14px;
  align-items: stretch;
  max-width: 760px;
  margin: 0 auto;
}
.convert-pane {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid #e3eaf2;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(22, 50, 74, 0.07);
  display: grid;
  gap: 12px;
}
.convert-pane::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: var(--tone, #2f6fed);
}
.convert-pane .field input,
.convert-pane .field select { min-width: 0; width: 100%; font-size: 16px; }
.swap-btn {
  align-self: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #2f8df5, #0071e3);
  color: #fff;
  font-size: 22px;
  box-shadow: 0 8px 18px rgba(0, 113, 227, 0.28);
}
.swap-btn { transition: transform .2s var(--ease); }
.swap-btn:hover { transform: rotate(180deg); }
.result {
  background: #eef5ff;
  border-radius: 14px;
  padding: 14px 16px;
}
.result span { display: block; font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.result strong { display: block; margin-top: 4px; font-size: 32px; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }

@media (max-width: 1100px) {
  .board-grid, .official-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .crypto-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .buro-split { grid-template-columns: 1fr; }
  .rank-panel { position: static; }
  .board-grid, .crypto-grid, .official-grid { grid-template-columns: 1fr 1fr; }
  .kur-row { grid-template-columns: 1fr; }
  .kur-vals { grid-template-columns: 1fr 1fr; }
  .convert-wrap { grid-template-columns: minmax(0, 320px); }
  .swap-btn, .convert-pane { justify-self: center; width: 100%; }
  .bar { height: auto; flex-wrap: wrap; padding: 12px 16px; }
  .bar-end { margin-left: 0; width: 100%; justify-content: space-between; }
}
@media (max-width: 560px) {
  .board-grid, .crypto-grid, .official-grid { grid-template-columns: 1fr; }
  .brand em { display: none; }
  .shop-row, .deal-form, .auth-grid, .bureau-top, .deal-form[data-quotes], .ad-steps, .report-day-h { grid-template-columns: 1fr; }
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e7eef6;
  --muted: #c5d0dc;
  --line: #4a5a6c;
  --paper: #3a4556;
}
html[data-theme="dark"] body {
  background: linear-gradient(180deg, #364051 0%, #2f3848 42%, #2a3342 100%);
}
html[data-theme="dark"] .bar {
  background: linear-gradient(90deg, rgba(52, 62, 78, 0.96) 0%, rgba(48, 58, 74, 0.96) 48%, rgba(58, 50, 62, 0.96) 100%);
  border-bottom-color: #5a6778;
}
html[data-theme="dark"] .brand strong { color: #e7eef6; }
html[data-theme="dark"] .brand em,
html[data-theme="dark"] .bar-end,
html[data-theme="dark"] .bar nav a,
html[data-theme="dark"] .bar nav button,
html[data-theme="dark"] .text-btn { color: #c5d0dc; }
html[data-theme="dark"] .bar nav { background: rgba(255, 255, 255, 0.06); }
html[data-theme="dark"] .bar nav a:hover,
html[data-theme="dark"] .bar nav button:hover,
html[data-theme="dark"] .text-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
html[data-theme="dark"] .bar nav a[aria-current="page"],
html[data-theme="dark"] .bar nav button[aria-current="page"] {
  background: #243246;
  color: #8ec4ff;
  box-shadow: none;
}
html[data-theme="dark"] .block-h h2 { color: #c5d0dc; }
html[data-theme="dark"] .seo-copy,
html[data-theme="dark"] .site-foot { border-color: #556275; }
html[data-theme="dark"] .card,
html[data-theme="dark"] .rate-card,
html[data-theme="dark"] .news-item,
html[data-theme="dark"] .filter-bar,
html[data-theme="dark"] .toolbar,
html[data-theme="dark"] .convert-pane,
html[data-theme="dark"] .kur-row { background: #3a4556; border-color: #556275; }
html[data-theme="dark"] .seg-group { background: #2d3646; }
html[data-theme="dark"] .seg-group button { color: #c5d0dc; }
html[data-theme="dark"] .seg-group button.on { background: #243246; color: #9ee0b8; box-shadow: none; }
html[data-theme="dark"] .filter-hint { border-top-color: #4a5a6c; }
html[data-theme="dark"] .rank-tools { border-bottom-color: #4a5a6c; }
html[data-theme="dark"] .rank-panel { background: #3a4556; border-color: #556275; }
html[data-theme="dark"] .rank-row { background: #2d3646; border-color: #4a5a6c; }
html[data-theme="dark"] .rank-row.top { background: #163528; border-color: #2e9a5b; }
html[data-theme="dark"] .rank-cols .on,
html[data-theme="dark"] .rank-row b.on { color: #9ee0b8; }
html[data-theme="dark"] .rank-n { background: #243246; color: #8ec4ff; }
html[data-theme="dark"] .kur-vals div { background: #2d3646; }
html[data-theme="dark"] .news-item:hover { border-color: #7ab8ff; }
html[data-theme="dark"] .pair > div { background: #2d3646; }
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .btn { background: #2d3646; border-color: #66768a; color: #f4f7fb; }
html[data-theme="dark"] .btn-primary { background: #2f8df5; color: #fff; border-color: transparent; }
html[data-theme="dark"] .result { background: #1a3354; color: #e7eef6; }
html[data-theme="dark"] td { border-top-color: #4a5a6c; }
html[data-theme="dark"] .banner { background: #3a1d1d; color: #ffd0d0; }
html[data-theme="dark"] .banner.ok { background: #163528; color: #c9f0da; }
html[data-theme="dark"] .shop-row, html[data-theme="dark"] .code-box, html[data-theme="dark"] .bureau-card { background: #3a4556; border-color: #556275; }
html[data-theme="dark"] .code-box { background: #1a3354; }
html[data-theme="dark"] .pick-box { background: #243246; border-color: #3d5470; }
html[data-theme="dark"] .ad-banner {
  background: linear-gradient(135deg, #3a4556 0%, #343e50 55%, #3d3644 100%);
  border-color: #556275;
  box-shadow: none;
}
html[data-theme="dark"] .ad-kicker { color: #8ec4ff; }
html[data-theme="dark"] .ad-lead { color: #c5d0dc; }
html[data-theme="dark"] .ad-steps li { background: #2d3646; border-color: #556275; }
html[data-theme="dark"] .code-hint { color: #e7eef6 !important; }
html[data-theme="dark"] .q-row { background: #2d3646; }
html[data-theme="dark"] .q-cell.best b, html[data-theme="dark"] .q-cell i { color: #9ee0b8; }
html[data-theme="dark"] .bureau-address { background: #2d3646; }
html[data-theme="dark"] .rank-tag { background: #243246; color: #8ec4ff; }
html[data-theme="dark"] .rank-tag.muted { background: #2d3646; color: #c5d0dc; }
html[data-theme="dark"] .bureau-card.top { border-color: #7ab8ff; box-shadow: none; }
html[data-theme="dark"] .report-grand {
  background: linear-gradient(135deg, #1a3354, #163528);
  border-color: #3d5470;
}
html[data-theme="dark"] .report-firm { background: #323c4c; border-color: #556275; }
html[data-theme="dark"] .report-day { background: #3a4556; border-color: #556275; }
html[data-theme="dark"] .bureau-card.picked,
html[data-theme="dark"] .bureau-card.picked.top {
  background:
    linear-gradient(#3a4556, #3a4556) padding-box,
    linear-gradient(120deg, #3dce7a 0%, #e4c35a 45%, #f0d57a 100%) border-box;
  border: 2px solid transparent;
  box-shadow: 0 0 0 1px #2e9a5b, 0 12px 28px rgba(228, 195, 90, 0.18);
}
