/* ============================================================
   btcchange24 — дизайн в стиле BTCChange24
   Белый фон, тёмный hero, красный акцент, Unbounded + Inter
   ============================================================ */

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

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

:root {
  --black: #020710;
  --ink: #080d15;
  --ink-2: #13171f;
  --ink-3: #191d25;
  --white: #ffffff;
  --paper: #f3f3f4;
  --paper-2: #ececee;
  --line: #dedfe1;
  --line-dark: rgba(255, 255, 255, 0.12);
  --red: #b81e10;
  --red-dark: #96170c;
  --red-bright: #ff5a45;
  --red-soft: #fbe9e7;
  --grey: #656d79;
  --grey-2: #9aa1ac;
  --grey-3: #aab1bc;
  --green: #127745;
  --green-soft: #e6f6ee;
  --yellow: #c98a0b;
  --yellow-soft: #fdf4e0;
  --blue: #1d5fd0;
  --blue-soft: #e9f0fc;
  --radius: 25px;
  --radius-lg: 32px;
  --radius-sm: 14px;
  --font-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 24px 70px rgba(2, 7, 16, 0.1);
  --shadow-soft: 0 10px 34px rgba(2, 7, 16, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
}
h1 { font-size: clamp(34px, 5vw, 58px); }
h2 { font-size: clamp(27px, 3.6vw, 44px); }
h3 { font-size: 21px; }
h4 { font-size: 17px; }
h5 { font-size: 14px; }
p { margin: 0 0 1em; }
small { color: var(--grey); }

::selection { background: rgba(184, 30, 16, 0.16); }

/* ---------- layout ---------- */

.container { width: min(1280px, calc(100% - 48px)); margin: 0 auto; }
.container-narrow { width: min(760px, calc(100% - 48px)); margin: 0 auto; }

.section { padding: 92px 0; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink-2); color: var(--white); }
.section-tight { padding: 62px 0; }

.section-head { margin-bottom: 38px; max-width: 760px; }
.section-head.row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}
.section-head p { color: var(--grey); margin: 0; max-width: 640px; }
.section--dark .section-head p { color: var(--grey-3); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
}
.eyebrow--light { color: var(--red-bright); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 86px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text small {
  display: block;
  margin-top: 5px;
  font-family: var(--font-body);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
}
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--grey);
  transition: color 0.15s;
}
.main-nav a:hover, .main-nav a.active { color: var(--black); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  font-size: 18px;
  margin-left: auto;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-dark { background: var(--black); border-color: var(--black); color: #fff; }
.btn-dark:hover { background: #161d29; border-color: #161d29; }
.btn-light { background: #fff; border-color: var(--line); color: var(--black); }
.btn-light:hover { border-color: var(--black); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--black); }
.btn-ghost:hover { border-color: var(--black); }
.btn-ghost-light { background: transparent; border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; }
.btn-danger { background: var(--red-soft); border-color: #f3c9c3; color: var(--red); }
.btn-success { background: var(--green-soft); border-color: #bfe7d2; color: var(--green); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 11.5px; }
.btn-block { width: 100%; }
.btn-icon { min-width: 40px; padding: 0 10px; }

/* ---------- forms ---------- */

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field > label { font-size: 12.5px; font-weight: 600; color: var(--black); }
.field-hint { font-size: 12.5px; color: var(--grey); line-height: 1.5; }
.input, .select, textarea.input {
  width: 100%;
  min-height: 52px;
  padding: 0 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23020710' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  padding-right: 44px;
  cursor: pointer;
}
.input:focus, .select:focus, textarea.input:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 4px rgba(2, 7, 16, 0.06);
}
.input::placeholder { color: var(--grey-2); }
textarea.input { padding: 15px 20px; min-height: 100px; border-radius: 20px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-error,
.form-success {
  display: none;
  padding: 13px 18px;
  border-radius: 16px;
  font-size: 13.5px;
  margin-bottom: 16px;
  line-height: 1.5;
}
.form-error { background: var(--red-soft); border: 1px solid #f3c9c3; color: var(--red); }
.form-success { background: var(--green-soft); border: 1px solid #bfe7d2; color: var(--green); }
.form-error.visible, .form-success.visible { display: block; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--grey);
  cursor: pointer;
  line-height: 1.5;
}
.check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--red); flex-shrink: 0; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 108px;
  background: linear-gradient(249deg, #191d25 0.66%, #080d15 99.43%);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  right: -180px;
  top: -220px;
  background: radial-gradient(circle, rgba(184, 30, 16, 0.32), transparent 66%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 470px;
  gap: 70px;
  align-items: center;
}
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 span { color: var(--red-bright); }
.hero-lead {
  font-size: 16.5px;
  color: var(--grey-3);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}
.hero-stat span { font-size: 12px; color: var(--grey-3); }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--grey-3);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: #3ddc84; }
.pill--dark { background: var(--paper); border-color: var(--line); color: var(--grey); }

/* ---------- calculator ---------- */

.calc-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 22px;
  color: var(--black);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.32);
}
.calc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 6px 16px;
}
.calc-head h2, .calc-head h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.calc-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.calc-block + .calc-block { margin-top: 12px; }
.calc-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.calc-label span { font-size: 12px; font-weight: 600; color: var(--grey); }
.calc-label .label-hint { font-weight: 400; color: var(--grey); font-size: 11.5px; }
.calc-block .select { border: 0; min-height: 38px; padding: 0 34px 0 0; font-size: 14px; font-weight: 600; background-position: right 6px center; }
.calc-block .select:focus { box-shadow: none; }
.amount-wrap { position: relative; }
.amount-wrap .input {
  border: 0;
  border-radius: 0;
  min-height: 48px;
  padding: 0 74px 0 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.amount-wrap .input:focus { box-shadow: none; }
.amount-badge {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--grey);
  letter-spacing: 0.04em;
  pointer-events: none;
}
.calc-swap {
  width: 46px;
  height: 46px;
  margin: 12px auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--black);
  border: 0;
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.calc-swap:hover { transform: rotate(180deg); background: var(--red); }
.calc-result {
  min-height: 48px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.calc-result strong {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.calc-result span { font-family: var(--font-display); font-size: 12px; font-weight: 700; color: var(--grey); }
.calc-meta { display: flex; justify-content: space-between; gap: 12px; margin: 16px 2px; font-size: 12px; color: var(--grey); }
.calc-meta b { color: var(--black); font-weight: 600; }
.calc-limit { margin: 12px 0 0; text-align: center; font-size: 11.5px; color: var(--grey); }
.presets { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.preset {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--grey);
  cursor: pointer;
}
.preset:hover { border-color: var(--black); color: var(--black); }

/* ---------- tables ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.table { width: 100%; border-collapse: collapse; min-width: 660px; }
.table th {
  text-align: left;
  padding: 16px 22px;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.table td { padding: 17px 22px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #fafafa; }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table th.num { text-align: right; }
.table .mono { font-family: var(--font-display); font-size: 12px; letter-spacing: -0.01em; }
.table--plain { border: 0; background: transparent; }
.table--plain th { background: transparent; padding-left: 0; padding-right: 0; }
.table--plain td { padding-left: 0; padding-right: 0; }
.table--plain tbody tr:hover { background: transparent; }

.coin { display: flex; align-items: center; gap: 12px; }
.coin-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.coin-name { font-weight: 600; font-size: 13.5px; }
.coin-code { font-size: 11.5px; color: var(--grey); }
.muted { color: var(--grey); }
.nowrap { white-space: nowrap; }
.mono { font-family: "Cascadia Code", Consolas, monospace; font-size: 12.5px; }

/* ---------- features / steps ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.section--paper .feature { border-color: transparent; }
.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--red-soft);
  color: var(--red);
  font-size: 20px;
  margin-bottom: 20px;
}
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { color: var(--grey); font-size: 13.5px; margin: 0; }
.step-num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.step-card { border-top: 2px solid var(--black); padding-top: 22px; }
.step-card h3 { font-size: 18px; }
.step-card p { color: var(--grey); font-size: 13.5px; margin: 0; }

/* ---------- cta / footer ---------- */

.cta-band {
  margin: 20px auto 100px;
  padding: 54px 58px;
  border-radius: var(--radius-lg);
  background: linear-gradient(249deg, #191d25 0.66%, #080d15 99.43%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -120px;
  top: -180px;
  background: radial-gradient(circle, rgba(184, 30, 16, 0.4), transparent 65%);
  pointer-events: none;
}
.cta-band h2 { color: #fff; max-width: 620px; margin-bottom: 8px; position: relative; z-index: 1; }
.cta-band p { color: var(--grey-3); margin: 0; max-width: 560px; position: relative; z-index: 1; }
.cta-band .btn { position: relative; z-index: 1; }

.site-footer { background: var(--black); color: var(--grey-3); padding: 66px 0 30px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { background: var(--red); }
.site-footer .brand-text small { color: var(--grey-3); }
.footer-text { max-width: 340px; font-size: 13px; margin: 18px 0 0; }
.footer-col h3 {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.footer-col a, .footer-col span { display: block; font-size: 13px; margin-bottom: 10px; color: var(--grey-3); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 26px;
  font-size: 11.5px;
  color: var(--grey-2);
}
.footer-bottom a:hover { color: #fff; }

/* ---------- auth ---------- */

.auth-page {
  min-height: calc(100vh - 86px);
  display: grid;
  place-items: center;
  padding: 56px 24px 80px;
  background: var(--paper);
}
.auth-card {
  width: min(460px, 100%);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 42px;
  box-shadow: var(--shadow-soft);
}
.auth-card .brand { justify-content: center; margin-bottom: 24px; }
.auth-card h1 { font-size: 26px; text-align: center; margin-bottom: 6px; }
.auth-card .sub { text-align: center; color: var(--grey); font-size: 13.5px; margin-bottom: 28px; }
.auth-alt { text-align: center; margin-top: 22px; font-size: 13px; color: var(--grey); }
.auth-alt a { color: var(--red); font-weight: 600; }
/* ---------- app shell ---------- */

.app-shell { display: grid; grid-template-columns: 270px 1fr; min-height: 100vh; background: #f7f7f8; }
.app-sidebar {
  border-right: 1px solid var(--line);
  background: var(--white);
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.app-sidebar .brand { padding: 0 8px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: 999px;
  color: var(--grey);
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}
.side-nav a .ico { width: 20px; text-align: center; font-size: 14px; }
.side-nav a:hover { background: var(--paper); color: var(--black); }
.side-nav a.active { background: var(--red); color: #fff; }
.side-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 18px; }
.side-user { padding: 0 8px 14px; }
.side-user strong { display: block; font-family: var(--font-display); font-size: 13px; font-weight: 600; }
.side-user span { font-size: 11.5px; color: var(--grey); word-break: break-all; }
.app-main { padding: 38px clamp(20px, 4vw, 48px) 70px; min-width: 0; }
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.page-head h1 { font-size: 30px; margin-bottom: 4px; }
.page-head p { color: var(--grey); margin: 0; font-size: 13.5px; }
.page-head .head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card {
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}
.stat-card span { display: block; font-size: 13px; color: var(--grey); margin-bottom: 6px; }
.stat-card strong {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.stat-card strong.accent { color: var(--red); }
.stat-card strong.green { color: var(--green); }

.card-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card-panel + .card-panel { margin-top: 18px; }
.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.card-title h2, .card-title h3, .card-title h4 { margin: 0; }
.card-title h2 { font-size: 19px; letter-spacing: -0.02em; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tab {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--grey);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 500;
}
.tab.active { background: var(--black); border-color: var(--black); color: #fff; }

/* ---------- badges ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge-new { background: var(--paper-2); color: var(--ink-2); }
.badge-paid, .badge-pending { background: var(--yellow-soft); color: var(--yellow); }
.badge-processing { background: var(--blue-soft); color: var(--blue); }
.badge-completed, .badge-approved { background: var(--green-soft); color: var(--green); }
.badge-rejected, .badge-cancelled { background: var(--red-soft); color: var(--red); }
.badge-admin { background: var(--red-soft); color: var(--red); }
.badge-user { background: var(--paper); color: var(--grey); }
.badge-blocked { background: var(--red-soft); color: var(--red); }
.badge-active { background: var(--green-soft); color: var(--green); }

/* ---------- exchange page ---------- */

.exchange-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 22px;
  align-items: start;
}
.exchange-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.exchange-card .swap-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.exchange-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--paper);
}
.exchange-summary .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--grey);
}
.exchange-summary .row b { color: var(--black); font-weight: 600; text-align: right; }
.exchange-summary .row.total {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  align-items: baseline;
}
.exchange-summary .row.total b { font-family: var(--font-display); font-size: 18px; }
.address-box {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--paper);
  font-size: 12px;
  color: var(--grey);
  word-break: break-all;
}
.address-box .mono { color: var(--black); display: block; margin-top: 5px; }
.reserve-list { display: flex; flex-direction: column; }
.reserve-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.reserve-item:last-child { border-bottom: 0; padding-bottom: 0; }
.reserve-item:first-child { padding-top: 0; }
.copy-btn {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--grey);
  cursor: pointer;
  flex-shrink: 0;
}
.copy-btn:hover { color: var(--black); border-color: var(--black); }

.success-card { text-align: center; padding: 46px 32px; }
.success-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  font-size: 28px;
}
.success-card h2 { font-size: 28px; margin-bottom: 8px; }
.success-card p { color: var(--grey); }
.order-ref {
  display: inline-block;
  margin: 8px 0 22px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ---------- admin ---------- */

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.filters .select { max-width: 220px; min-height: 42px; font-size: 13px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.currency-edit {
  display: grid;
  grid-template-columns: 80px 1.3fr 110px 155px 105px 100px 100px 65px 1.3fr 100px;
  gap: 10px;
  align-items: center;
  min-width: 1360px;
}
.currency-edit .input { min-height: 42px; font-size: 12.5px; padding: 0 14px; border-radius: 12px; }
.currency-head {
  font-family: var(--font-display);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey);
  padding: 0 20px 10px;
}
.currency-row { padding: 12px 20px; border-bottom: 1px solid var(--line); }
.currency-row:last-child { border-bottom: 0; }
.table tr.is-disabled, .currency-row.is-disabled { opacity: 0.5; }
.admin-table-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- misc ---------- */

.toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(380px, calc(100vw - 44px));
}
.toast {
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 13px;
  background: var(--black);
  color: #fff;
  box-shadow: var(--shadow);
  animation: toast-in 0.2s ease;
}
.toast.error { background: var(--red); }
.toast.success { background: var(--green); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.loading, .empty { padding: 44px 20px; text-align: center; color: var(--grey); font-size: 13.5px; }
.empty .big { display: block; font-size: 26px; margin-bottom: 10px; }
.empty a { color: var(--red); font-weight: 600; }

.banner {
  padding: 15px 20px;
  border-radius: 18px;
  margin-bottom: 20px;
  font-size: 13px;
  background: var(--yellow-soft);
  color: var(--yellow);
  border: 1px solid #f2e2b8;
}
.banner--dark { background: rgba(255, 255, 255, 0.08); border-color: var(--line-dark); color: #fff; }

.mobile-only { display: none !important; }

/* ---------- дополнительные блоки ---------- */

.exchange-page { padding: 30px 0 84px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--grey);
  margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--black); }

.exchange-side { display: flex; flex-direction: column; gap: 18px; }

.payment-box {
  margin: 4px 0 20px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--paper);
  text-align: left;
}
.payment-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.payment-head span { font-size: 12px; color: var(--grey); }
.payment-head strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.payment-box .address-box { background: var(--white); margin-top: 0; font-size: 12.5px; }
.payment-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.payment-actions .field-hint { flex: 1 1 190px; margin: 0; font-size: 11.5px; }
.success-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.order-steps {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  font-size: 13px;
  color: var(--grey);
  line-height: 1.55;
}
.order-steps b { color: var(--black); }
.order-steps li::marker { color: var(--red); font-family: var(--font-display); font-weight: 700; }

.status-list { display: grid; gap: 14px; }
.status-list > div {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.status-list p { margin: 0; font-size: 13px; color: var(--grey); line-height: 1.55; }
.status-list .badge { flex-shrink: 0; margin-top: 1px; }

.status-timeline {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
}
.status-timeline li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
}
.status-timeline li:last-child { padding-bottom: 0; }
.status-timeline li::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 26px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.status-timeline li:last-child::before { display: none; }
.status-timeline li.done::before { background: var(--green); }
.status-timeline b {
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-2);
  line-height: 1.4;
}
.status-timeline .done b { color: var(--grey); }
.status-timeline .current b { color: var(--black); font-weight: 600; }
.step-dot {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--white);
  color: var(--grey-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.status-timeline .done .step-dot {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.status-timeline .current .step-dot {
  background: var(--black);
  border-color: var(--black);
  color: #fff;
}

.order-alert {
  padding: 13px 16px;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--grey);
  font-size: 13px;
  line-height: 1.55;
}
.order-alert b { color: var(--black); }
.order-alert--success { background: var(--green-soft); }
.order-alert--success b { color: var(--green); }
.order-alert--danger { background: var(--red-soft); }
.order-alert--danger b { color: var(--red); }

.support-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }

.stat-tile {
  padding: 28px 26px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
}
.stat-tile strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 4px;
}
.stat-tile span { font-size: 12.5px; color: var(--grey-3); }

.review-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review-stars { color: #d98a12; letter-spacing: 3px; font-size: 14px; }
.review-text { margin: 0; font-size: 13.5px; color: var(--grey); line-height: 1.65; flex: 1; }
.review-author {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--black);
}

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  position: relative;
  padding: 22px 54px 22px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  font-size: 18px;
  font-weight: 400;
  color: var(--grey);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.faq-item[open] summary::after { content: "–"; background: var(--black); color: #fff; }
.faq-item p {
  margin: -4px 0 24px;
  max-width: 780px;
  font-size: 13.5px;
  color: var(--grey);
  line-height: 1.65;
}

.banner--info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: #eef4ff;
  border-color: #d7e4ff;
  color: #1d4ed8;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 7, 16, 0.55);
  backdrop-filter: blur(4px);
}
.modal-backdrop.open { display: flex; }
.modal {
  width: min(600px, 100%);
  max-height: min(88vh, 900px);
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 40px 100px rgba(2, 7, 16, 0.28);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.modal-head h2, .modal-head h3 { margin: 0; font-size: 21px; }
.modal-close {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--grey);
  cursor: pointer;
  font-size: 14px;
}
.modal-close:hover { color: var(--black); border-color: var(--black); }
.modal .exchange-summary { margin: 14px 0 0; }
.modal .payment-box { margin: 14px 0 0; }
.modal .success-actions { justify-content: flex-start; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 72px 0 80px; }
  .calc-card { max-width: 560px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .exchange-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
    gap: 12px;
  }
  .app-sidebar .brand { display: none; }
  .side-nav { flex-direction: row; overflow-x: auto; padding-bottom: 2px; }
  .side-nav a { white-space: nowrap; padding: 9px 14px; }
  .side-foot { display: none; }
  .app-main { padding-top: 26px; }
  .mobile-only { display: inline-flex !important; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .menu-btn { display: block; }
  .header-actions { margin-left: 0; }
  .header-inner { height: 76px; gap: 14px; }
  .grid-3, .grid-2, .grid-4, .form-row, .settings-grid, .swap-row { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .section-head.row { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: clamp(32px, 8vw, 46px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 38px 30px; margin-bottom: 70px; }
  .auth-card { padding: 32px 26px; }
  .mobile-only { display: inline-flex !important; }
  .currency-head { min-width: 980px; }
}

@media (max-width: 600px) {
  .container, .container-narrow { width: calc(100% - 32px); }
  .modal-backdrop { padding: 12px; align-items: flex-end; }
  .modal { padding: 20px; max-height: 92vh; border-radius: 24px; }
  .payment-head strong { font-size: 18px; }
  .status-list > div { flex-direction: column; gap: 6px; }
  .hero { padding: 52px 0 60px; }
  .hero-stats { gap: 22px 30px; }
  .calc-card { padding: 16px; border-radius: 25px; }
  .calc-block { padding: 16px; }
  .amount-wrap .input { font-size: 24px; }
  .section { padding: 52px 0; }
  .auth-page { padding: 34px 16px 60px; }
  .table th, .table td { padding: 12px 14px; }
  .table { min-width: 560px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .page-head h1 { font-size: 24px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 18px; }
  .stat-card strong { font-size: 21px; }
  .toast-stack { right: 12px; left: 12px; bottom: 12px; max-width: none; }
  .exchange-card { padding: 22px; }
  .card-panel { padding: 20px; }
  .app-sidebar .side-nav a .ico { display: none; }
}

.order-fields [data-order-field][hidden] { display: none; }
.order-fields .input, .order-fields .select { display: block; margin-top: 5px; }
.order-field-value { overflow-wrap: anywhere; }

.order-edit-toggle { margin-top: 12px; }
#orderModal [hidden] { display: none !important; }
.order-editor { margin: 14px 0 8px; }
.order-editor h3 { margin-bottom: 14px; font-size: 16px; }
.order-editor .order-fields .field { margin-bottom: 12px; }
.order-editor .success-actions { margin-top: 14px; }

.currency-toolbar { display: flex; align-items: center; gap: 12px; margin: 0 18px 16px; }
.currency-toolbar .input { max-width: 440px; }
.currency-toolbar span { flex-shrink: 0; color: var(--grey); font-size: 13px; }
.currency-edit[hidden], #currencyEmpty[hidden] { display: none; }
.currency-edit .currency-addresses { margin-top: 6px; min-height: 58px; padding: 9px 12px; }

.currency-rate .check { margin: 5px 0 2px; font-size: 11px; gap: 5px; }
.currency-rate .check input { width: 14px; height: 14px; }
.currency-rate small { display: block; font-size: 10px; line-height: 1.35; }

[data-panel][hidden] { display: none !important; }
.user-role { min-height: 36px; padding: 4px 10px; min-width: 130px; margin-bottom: 6px; }
.badge-operator { color: var(--blue); background: var(--blue-soft); }

.currency-adjustment{display:grid;gap:6px}.currency-adjustment label{display:grid;gap:4px;font-size:11px}.currency-adjustment .select{min-height:38px;padding:0 10px;font-size:12px;border-radius:12px}.currency-adjustment small{font-size:11px;color:#637087}
