/* ===== Reset & base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: #000000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  color: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

/* ===== Header ===== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 28px;
  margin: 24px 24px 0;
  background-color: #212121;
  border: 1px solid #444444;
  border-radius: 8px;
}

/* ----- Logo ----- */
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.header__logo:hover {
  opacity: 0.9;
}

.header__logo-icon {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

.header__logo-text {
  display: block;
  height: 28px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

/* ----- Navigation ----- */
.header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header__nav-link {
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 400;
  color: #ffffff;
  border-radius: 6px;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.header__nav-link:hover {
  color: #e0e0e0;
  background-color: #333333;
}

.header__nav-link--active {
  background-color: #444444;
  color: #ffffff;
}

.header__nav-link--active:hover {
  background-color: #505050;
  color: #ffffff;
}

/* ----- Right block: BTC rate + language ----- */
.header__right {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ----- BTC rate (оранжевая кнопка слева) ----- */
.header__btc-rate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-radius: 9px;
  margin-right: 7px;
  background: rgb(246, 173, 77);
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.header__btc-rate-symbol {
  flex-shrink: 0;
}

.header__btc-rate-value {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.header__btc-rate-currency {
  flex-shrink: 0;
  margin-left: 2px;
}

/* ----- XMR rate (кнопка Monero) ----- */
.header__xmr-rate {
  display: none; /* temporarily hidden */
  /* display: inline-flex; */
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  border-radius: 9px;
  margin-right: 7px;
  background: #3a3a3a;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.header__xmr-rate-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.header__xmr-rate-logo svg {
  display: block;
  width: 20px;
  height: 20px;
}

.header__xmr-rate-value {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.header__xmr-rate-currency {
  flex-shrink: 0;
  margin-left: 2px;
}

/* ----- Language selector (no-JS dropdown via details/summary) ----- */
.header__lang {
  position: relative;
  flex-shrink: 0;
}

.header__lang-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  height: 40px;
  box-sizing: border-box;
  background-color: #444444;
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.2s ease;
}

.header__lang-summary::-webkit-details-marker {
  display: none;
}

.header__lang-summary::marker,
.header__lang-summary::before {
  display: none;
}

.header__lang:hover .header__lang-summary,
.header__lang[open] .header__lang-summary {
  background-color: #505050;
}

/* Флаг в кнопке выбора (как на картинке 1) */
.header__lang-flag-img {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.header__lang-text {
  font-size: 15px;
  font-weight: 400;
  color: #e8e8e8;
}

.header__lang-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaaaaa;
  margin-left: 2px;
}

.header__lang-arrow-svg {
  display: block;
  transition: transform 0.2s ease;
}

/* В развёрнутом меню стрелка вниз (как на картинке 2) */
.header__lang[open] .header__lang-arrow-svg {
  transform: rotate(-90deg);
}

.header__lang:hover .header__lang-arrow {
  color: #cccccc;
}

/* Выпадающее меню (как на картинке 2) */
.header__lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin: 6px 0 0;
  padding: 6px 0;
  min-width: 180px;
  background-color: #2a2a2a;
  border: 1px solid #444444;
  border-radius: 8px;
  list-style: none;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.header__lang-menu li {
  margin: 0;
}

.header__lang-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.header__lang-menu-link:hover {
  background-color: #404040;
}

.header__lang-menu-flag {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* ===== Main content (exchange block) ===== */
.main {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 24px 48px;
}

/* ----- Reserve bar ----- */
.reserve-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  margin-bottom: 16px;
  background-color: #1C1C1E;
  border: 1px solid #333333;
  border-radius: 10px;
}

.reserve-bar__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reserve-bar__label {
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
}

.reserve-bar__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.reserve-bar__badge--high {
  background-color: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.reserve-bar__badge--medium {
  background-color: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.reserve-bar__badge--low {
  background-color: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.reserve-bar__right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
}

.reserve-bar__eq {
  color: #888888;
}

/* ----- Shared: pill (limits, commission) ----- */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background-color: #2C2C2E;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 400;
  color: #ffffff;
  margin: 0 4px;
}

/* ----- Shared: buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 400;
  border-radius: 8px;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.btn--secondary {
  background-color: #2C2C2E;
  color: #CCCCCC;
}

.btn--secondary:hover {
  background-color: #38383a;
  color: #e0e0e0;
}

.btn--primary {
  background-color: #3A8BFF;
  color: #ffffff;
  font-weight: 600;
}

.btn--primary:hover {
  background-color: #2d7aef;
}

.btn--wide {
  width: 100%;
  
  padding: 14px 24px;
  font-size: 16px;
}

/* ----- Exchange card ----- */
.exchange-card {
  background-color: #1C1C1E;
  border: 1px solid #333333;
  border-radius: 10px;
  padding: 24px 28px;
}

.exchange-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid #444444;
}

.exchange-card__row:first-child {
  padding-top: 0;
}

.exchange-card__row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.exchange-card__row--address {
  display: block;
  padding: 20px 0;
}

.exchange-card__limits-text {
  margin: 0;
  font-size: 15px;
  color: #CCCCCC;
  font-weight: 400;
}

.exchange-card__address-block {
  background-color: #121212;
  border-radius: 8px;
  padding: 16px 18px;
}

.exchange-card__address-label {
  display: block;
  font-size: 13px;
  color: #AAAAAA;
  margin-bottom: 8px;
}

.exchange-card__address-input {
  width: 100%;
  padding: 0;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #F0F0F0;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
}

.exchange-card__address-input::placeholder {
  color: #888888;
}

.exchange-card__meta-text {
  font-size: 15px;
  color: #CCCCCC;
}

.exchange-card__commission {
  margin: 0;
  font-size: 15px;
  color: #CCCCCC;
}

.exchange-card__commission .pill {
  margin-left: 8px;
}

/* ----- Actions & disclaimer ----- */
.main__actions {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.main__disclaimer {
  margin: 24px auto 0;
  max-width: 480px;
  font-size: 13px;
  line-height: 1.5;
  color: #AAAAAA;
  text-align: center;
}

/* ----- Transaction details (ожидание платежа) ----- */
.transaction-details {
  background-color: #1E1E1E;
  border: 1px solid #333333;
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 24px;
}

.transaction-details__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid #444444;
}

.transaction-details__row:first-child {
  padding-top: 0;
}

.transaction-details__row--limits {
  flex-wrap: wrap;
}

.transaction-details__limits-text {
  margin: 0;
  font-size: 14px;
  color: #BBBBBB;
  font-weight: 400;
}

.transaction-details__row--send-address {
  align-items: flex-start;
  gap: 24px;
}

.transaction-details__address-block {
  flex: 1;
  min-width: 0;
}

.transaction-details__address-label {
  display: block;
  font-size: 14px;
  color: #AAAAAA;
  margin-bottom: 8px;
}

.transaction-details__address-value {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  word-break: break-all;
  line-height: 1.3;
}

.transaction-details__qr {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  background-color: #ffffff;
  border-radius: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath fill='%23000' d='M0 0h12v12H0zm16 0h12v12H16zm32 0h12v12H48zM0 16h12v12H0zm16 16h12v12H16zm0-16h12v12H16zM48 16h12v12H48zM0 48h12v12H0zm16 0h12v12H16zm32 0h12v12H48zM16 48h12v12H16zM32 32h12v12H32z'/%3E%3C/svg%3E");
  background-size: 100px 100px;
}

.transaction-details__row--status {
  gap: 10px;
}

.transaction-details__status-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10' stroke-dasharray='32 24' stroke-dashoffset='0'/%3E%3C/svg%3E") center no-repeat;
  background-size: 24px 24px;
  animation: payment-processing-spin 0.9s linear infinite;
}

.transaction-details__status-text {
  font-size: 16px;
  font-weight: 400;
  color: #FFFFFF;
}

.transaction-details__wallets {
  border-bottom: 1px solid #444444;
}

.transaction-details__wallet-row {
  padding: 20px 0;
  border-bottom: 1px solid #444444;
}

.transaction-details__wallet-row:last-child {
  border-bottom: none;
}

.transaction-details__wallet-label {
  display: block;
  font-size: 14px;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.transaction-details__wallet-pct {
  font-size: 13px;
  color: #AAAAAA;
  margin-left: 4px;
}

.transaction-details__wallet-address {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  color: #FFFFFF;
  word-break: break-all;
}

.transaction-details__row--meta {
  padding-bottom: 0;
  border-bottom: none;
}

.transaction-details__meta-text {
  font-size: 15px;
  color: #FFFFFF;
}

.transaction-details__commission {
  margin: 0;
  font-size: 15px;
  color: #FFFFFF;
}

.transaction-details__commission .pill {
  margin-left: 8px;
}

/* ----- Payment processing (платёж получен, обработка) ----- */
.payment-processing {
  background-color: #1A1A1A;
  border: 1px solid #333333;
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 24px;
}

.payment-processing__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid #444444;
}

.payment-processing__row:first-child {
  padding-top: 0;
}

.payment-processing__row--limits {
  flex-wrap: wrap;
}

.payment-processing__limits-text {
  margin: 0;
  font-size: 14px;
  color: #BBBBBB;
  font-weight: 400;
}

.payment-processing__row--status {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 0;
}

.payment-processing__status-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.payment-processing__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 165, 0, 0.25);
  border-top-color: #FFA500;
  border-radius: 50%;
  animation: payment-processing-spin 0.9s linear infinite;
}

@keyframes payment-processing-spin {
  to {
    transform: rotate(360deg);
  }
}

.payment-processing__status-text {
  font-size: 16px;
  font-weight: 400;
  color: #FFFFFF;
  text-align: center;
}

.payment-processing__substatus {
  margin: 0;
  font-size: 14px;
  color: #AAAAAA;
  text-align: center;
}

.payment-processing__order-id {
  margin: 0;
  font-size: 13px;
  color: #888888;
  text-align: center;
}

.payment-processing__order-id code {
  color: #FFA500;
}

.payment-processing__wallets {
  border-bottom: 1px solid #444444;
}

.payment-processing__wallet-row {
  padding: 20px 0;
  border-bottom: 1px solid #444444;
}

.payment-processing__wallet-row:last-child {
  border-bottom: none;
}

.payment-processing__wallet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.payment-processing__wallet-label {
  font-size: 14px;
  color: #FFFFFF;
}

.payment-processing__wallet-pct {
  font-size: 14px;
  color: #A0A0A0;
  flex-shrink: 0;
}

.payment-processing__wallet-address {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  color: #FFFFFF;
  word-break: break-all;
}

.payment-processing__row--meta {
  padding-bottom: 0;
  border-bottom: none;
}

.payment-processing__meta-text {
  font-size: 15px;
  color: #FFFFFF;
}

.payment-processing__commission {
  margin: 0;
  font-size: 15px;
  color: #FFFFFF;
}

.payment-processing__commission .pill {
  margin-left: 8px;
}

/* ----- Order success (заявка успешно обработана) ----- */
.order-success {
  background-color: #1A1A1A;
  border: 1px solid #333333;
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 24px;
}

.order-success__row {
  display: flex;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #444444;
}

.order-success__row:first-child {
  padding-top: 0;
}

.order-success__row--limits {
  flex-wrap: wrap;
}

.order-success__limits-text {
  margin: 0;
  font-size: 14px;
  color: #BBBBBB;
  font-weight: 400;
}

.order-success__row--message {
  justify-content: center;
  padding: 40px 0;
}

.order-success__message-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.order-success__checkmark {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22c55e;
}

.order-success__checkmark svg {
  display: block;
}

.order-success__message-text {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #FFFFFF;
  text-align: center;
}

.order-success__wallets {
  border-top: 1px solid #444444;
}

.order-success__wallet-row {
  padding: 20px 0;
  border-bottom: 1px solid #444444;
}

.order-success__wallet-row:last-child {
  border-bottom: none;
}

.order-success__wallet-label {
  display: block;
  font-size: 14px;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.order-success__wallet-pct {
  color: #A0A0A0;
  margin-left: 4px;
}

.order-success__wallet-address {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  color: #FFFFFF;
  word-break: break-all;
}

/* ----- Mixer form (extended) ----- */
.mixer-form {
  background-color: #1C1C1E;
  border: 1px solid #333333;
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 24px;
}

.mixer-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid #444444;
}

.mixer-form__row:first-child {
  padding-top: 0;
}

.mixer-form__row--limits {
  flex-wrap: wrap;
  gap: 12px;
}

.mixer-form__limits-text {
  margin: 0;
  font-size: 15px;
  color: #CCCCCC;
  font-weight: 400;
}

.mixer-form__wallets {
  border-bottom: 1px solid #444444;
}

.mixer-form__wallet-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #444444;
}

.mixer-form__wallet-item:last-child {
  border-bottom: none;
}

.mixer-form__wallet-content {
  flex: 1;
  min-width: 0;
}

.mixer-form__wallet-label {
  display: block;
  font-size: 13px;
  color: #AAAAAA;
  margin-bottom: 6px;
}

.mixer-form__wallet-input {
  width: 100%;
  background: transparent;
  color: #ffffff;
  font-size: 15px;
  border: 0;
  padding: 4px 0;
  font-family: inherit;
}

.mixer-form__wallet-input::placeholder {
  color: #888888;
}

.mixer-form__wallet-input:focus {
  outline: none;
}

.mixer-form__wallet-pct {
  font-size: 12px;
  color: #888888;
  margin-left: 4px;
}

.mixer-form__wallet-address {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #F0F0F0;
  word-break: break-all;
}

.mixer-form__btn-remove {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #2C2C2E;
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s ease;
}

.mixer-form__btn-remove:hover {
  background-color: #38383a;
}

.mixer-form__row--distribution {
  display: block;
  padding: 20px 0;
}

.mixer-form__distribution-title {
  margin: 0 0 14px;
  font-size: 15px;
  color: #CCCCCC;
  font-weight: 400;
}

.mixer-form__distribution-note {
  font-size: 13px;
  color: #888888;
  font-style: normal;
}

.mixer-form__distribution-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
}

.mixer-form__distribution-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mixer-form__distribution-label-text {
  font-size: 14px;
  color: #CCCCCC;
  min-width: 72px;
}

.mixer-form__distribution-input {
  width: 64px;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 500;
  color: #F0F0F0;
  background-color: #121212;
  border: 1px solid #444444;
  border-radius: 6px;
  font-family: inherit;
  -moz-appearance: textfield;
}

.mixer-form__distribution-input::-webkit-outer-spin-button,
.mixer-form__distribution-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.mixer-form__distribution-input:focus {
  outline: none;
  border-color: #5a9eff;
}

.mixer-form__row--meta {
  padding-bottom: 0;
  border-bottom: none;
}

.mixer-form__meta-text {
  font-size: 15px;
  color: #CCCCCC;
}

.mixer-form__commission {
  margin: 0;
  font-size: 15px;
  color: #CCCCCC;
}

.mixer-form__commission .pill {
  margin-left: 8px;
}

/* ===== How it works ===== */
.how-it-works {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  position: relative;
}

.how-it-works::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.how-it-works__title {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  position: relative;
}

.how-it-works__intro {
  margin: 0 auto 40px;
  max-width: 720px;
  font-size: 15px;
  line-height: 1.6;
  color: #e0e0e0;
  text-align: center;
  position: relative;
}

.how-it-works__diagram {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 280px) 1fr;
  grid-template-rows: auto 56px auto;
  gap: 24px 32px;
  align-items: start;
  position: relative;
}

.how-it-works__diagram--centered {
  display: flex;
  justify-content: center;
  align-items: center;
}

.how-it-works__diagram--centered a {
  cursor: default;
}

.how-it-works__diagram-img {
  display: block;
  max-width: 730px;
  width: 100%;
  height: auto;
}

.diagram__cell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.diagram__cell--left-top {
  grid-column: 1;
  grid-row: 1;
}

.diagram__cell--center {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

.diagram__cell--right-top {
  grid-column: 3;
  grid-row: 1;
}

.diagram__divider {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.diagram__divider-label {
  font-size: 13px;
  color: #AAAAAA;
}

.diagram__divider-line {
  width: 100%;
  margin: 0;
  border: none;
  border-top: 1px dashed #444444;
}

.diagram__cell--left-bottom {
  grid-column: 1;
  grid-row: 3;
}

.diagram__cell--center-bottom {
  grid-column: 2;
  grid-row: 3;
}

.diagram__cell--right-bottom {
  grid-column: 3;
  grid-row: 3;
}

.diagram__arrow {
  flex-shrink: 0;
}

.diagram__arrow--down {
  width: 2px;
  height: 24px;
  margin: 0 auto;
  background: linear-gradient(to bottom, #5a9eff, #4a8eef);
}

.diagram__arrow--right {
  width: 24px;
  height: 2px;
  background: linear-gradient(to right, #5a9eff, #4a8eef);
}

/* ----- Flow cards (shared) ----- */
.flow-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background-color: #252528;
  border: 1px solid #333333;
  border-radius: 10px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.flow-card:hover {
  border-color: #404044;
  background-color: #2a2a2e;
}

.flow-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: #333336;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
}

.flow-card__icon--wallet {
  background-color: #2a3a4a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%235a9eff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12V7H5a2 2 0 0 1 0-4h14v4'/%3E%3Cpath d='M3 5v14a2 2 0 0 0 2 2h16v-5'/%3E%3Cpath d='M18 12a2 2 0 0 0 0 4h4v-4h-4z'/%3E%3C/svg%3E");
}

.flow-card__icon--doc {
  background-color: #2a3a4a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%235a9eff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M16 13H8'/%3E%3Cpath d='M16 17H8'/%3E%3Cpath d='M10 9H8'/%3E%3C/svg%3E");
}

.flow-card__icon--mixer {
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v6'/%3E%3Cpath d='M8 8l4 4 4-4'/%3E%3Cpath d='M4 12v4a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-4'/%3E%3Cpath d='M8 14h8'/%3E%3Cpath d='M10 18v2'/%3E%3Cpath d='M14 18v2'/%3E%3C/svg%3E");
  background-size: 24px 24px;
}

.flow-card__icon--exchange {
  background-color: #333336;
}

.flow-card__icon--binance {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='%23F3BA2F' d='M12 2L9 8H3l3 6 6 8 6-8h6l-3-6-6-6z'/%3E%3Cpath fill='%231e2329' d='M12 5l2 4 4 .5-3 3.5 1 4.5L12 19l-4-5.5 1-4.5-3-3.5 4-.5L12 5z'/%3E%3C/svg%3E");
  background-size: 20px 20px;
}

.flow-card__icon--okx {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235a9eff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M8 4l8 8-8 8M16 4l8 8-8 8'/%3E%3C/svg%3E");
  background-size: 18px 18px;
}

.flow-card__icon--bybit {
  background-color: #1e3a5f;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 6h6l4 6-4 6H7l4-6 4-6'/%3E%3C/svg%3E");
  background-size: 18px 18px;
}

.flow-card__icon--coinbase {
  background-color: #0052ff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 4a8 8 0 1 1 0 16 8 8 0 0 1 0-16z'/%3E%3C/svg%3E");
  background-size: 18px 18px;
}

.flow-card__content {
  flex: 1;
  min-width: 0;
}

.flow-card__title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.35;
}

.flow-card__title:last-child {
  margin-bottom: 0;
}

.flow-card__subtitle {
  margin: 0;
  font-size: 12px;
  color: #AAAAAA;
  line-height: 1.4;
}

.flow-card--mixer {
  background-color: #3A8BFF;
  border-color: #4a9aff;
  padding: 20px 22px;
}

.flow-card--mixer:hover {
  background-color: #2d7aef;
  border-color: #3A8BFF;
}

.flow-card--mixer .flow-card__title {
  font-size: 18px;
  font-weight: 600;
}

.flow-card--mixer .flow-card__subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}

.btn--pgp {
  margin-top: 12px;
}

.btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
}

.btn__icon--lock {
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center no-repeat;
  background-size: 14px 14px;
}

/* ===== PGP (отдельная страница) ===== */
.pgp-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.pgp-page__title {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
}

.pgp-page__content {
  margin-bottom: 24px;
}

.pgp-page__block {
  margin: 0;
  padding: 20px;
  font-family: ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.5;
  color: #e0e0e0;
  background-color: #1A1A1A;
  border: 1px solid #333333;
  border-radius: 8px;
  white-space: pre-wrap;
  word-break: break-all;
}

.pgp-page__empty {
  margin: 0;
  padding: 20px;
  font-size: 15px;
  color: #aaaaaa;
  text-align: center;
  background-color: #1A1A1A;
  border: 1px solid #333333;
  border-radius: 8px;
}

.pgp-page__cta {
  text-align: center;
}

/* ===== PGP page extras (verify, label, result) ===== */
.pgp-page__label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #cccccc;
}
.pgp-page__block:focus {
  outline: none;
  border-color: #F7931A;
}
.pgp-page__result {
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.6;
}
.pgp-page__result code {
  font-size: 12px;
  word-break: break-all;
}
.pgp-page__result--ok {
  background-color: #122a12;
  border: 1px solid #2d6a2d;
  color: #88dd88;
}
.pgp-page__result--fail {
  background-color: #2a1a1a;
  border: 1px solid #664444;
  color: #ffaaaa;
}

/* ===== PGP page redesign ===== */
.pgp-page__subtitle {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.6;
  color: #aaaaaa;
  text-align: center;
}

.pgp-page__info {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.pgp-page__info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: #1A1A1A;
  border: 1px solid #333333;
  border-radius: 20px;
  font-size: 13px;
}

.pgp-page__info-label {
  color: #888888;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pgp-page__info-value {
  color: #F7931A;
  font-family: ui-monospace, monospace;
  font-weight: 600;
}

.pgp-page__fingerprint {
  text-align: center;
  margin-bottom: 24px;
  padding: 12px 16px;
  background-color: #1A1A1A;
  border: 1px solid #333333;
  border-radius: 8px;
}

.pgp-page__fingerprint .pgp-page__info-label {
  display: block;
  margin-bottom: 6px;
}

.pgp-page__fingerprint code {
  font-family: ui-monospace, monospace;
  font-size: 14px;
  color: #e0e0e0;
  letter-spacing: 1px;
  word-break: break-all;
}

.pgp-page__download {
  text-align: center;
  margin: 24px 0;
}

.pgp-page__verify-section {
  margin-top: 32px;
  padding: 24px;
  background-color: #1A1A1A;
  border: 1px solid #333333;
  border-radius: 8px;
}

.pgp-page__section-title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

.pgp-page__instructions {
  margin: 0 0 16px;
  padding-left: 20px;
  list-style-type: decimal;
  color: #cccccc;
  font-size: 14px;
  line-height: 1.8;
}

.pgp-page__instructions li {
  margin-bottom: 12px;
}

.pgp-page__code {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 10px;
  font-family: ui-monospace, monospace;
  font-size: 13px;
  color: #F7931A;
  background-color: #111111;
  border: 1px solid #333333;
  border-radius: 4px;
}

.pgp-page__note {
  margin: 0;
  font-size: 13px;
  color: #888888;
}

/* ===== FAQ (Вопросы и ответы) ===== */
.faq {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.faq__title {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
}

.faq__intro {
  margin: 0 auto 40px;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.6;
  color: #e0e0e0;
  text-align: center;
}

.faq__list {
  background-color: #1A1A1A;
  border: 1px solid #333333;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}

.faq__item {
  border-bottom: 1px solid #333333;
}

.faq__item:last-child {
  border-bottom: none;
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  text-align: left;
  list-style: none;
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: inherit;
  transition: background-color 0.2s ease;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: "+";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 300;
  color: #AAAAAA;
  line-height: 1;
}

.faq__item[open] .faq__question::after {
  content: "×";
  font-size: 22px;
  font-weight: 300;
  color: #AAAAAA;
}

.faq__question:hover {
  background-color: #222222;
}

.faq__answer {
  padding: 0 20px 20px;
}

.faq__answer p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #CCCCCC;
}

.faq__link {
  color: #5a9eff;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.faq__link:hover {
  color: #7ab3ff;
}

/* ===== CTA (Пусть шторм заметёт следы) ===== */
.cta {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.cta__inner {
  display: flex;
  align-items: stretch;
  background-color: #1A1A1A;
  border: 1px solid #333333;
  border-radius: 10px;
  overflow: hidden;
}

.cta__content {
  flex: 0 0 48%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 36px 40px 32px;
}

.cta__tag {
  display: inline-flex;
  padding: 6px 14px;
  background-color: #2C2C2E;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 20px;
}

.cta__heading {
  margin: 0 0 16px;
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cta__text {
  margin: 0 0 28px;
  max-width: 320px;
  font-size: 15px;
  line-height: 1.55;
  color: #A0A0A0;
}

.cta__btn {
  padding: 14px 28px;
  font-size: 16px;
}

.cta__media {
  flex: 1;
  min-width: 0;
  min-height: 280px;
}

.cta__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
}

/* ===== Footer ===== */
.footer {
  background-color: #1a1a1a;
  border-top: 1px solid #2a2a2a;
  padding: 40px 24px 48px;
}

.footer__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  transition: opacity 0.2s ease;
}

.footer__logo:hover {
  opacity: 0.9;
}

.footer__logo-icon {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer__logo-text {
  display: block;
  height: 28px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.footer__copyright {
  margin: 0;
  font-size: 14px;
  color: #b3b3b3;
  font-weight: 400;
}

.footer__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
}

.footer__nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer__nav-link {
  font-size: 15px;
  font-weight: 400;
  color: #ffffff;
  transition: color 0.2s ease;
}

.footer__nav-link:hover {
  color: #e0e0e0;
}

.footer__actions {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 8px;
}

.footer__tor-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  cursor: pointer;
}

.footer__tor-link {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  word-break: break-all;
}

.footer__tor-link:hover {
  color: var(--text-primary);
}

.footer__btn-img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.footer__btn--pgp-img {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 0;
  transition: opacity 0.2s ease;
}

.footer__btn--pgp-img:hover {
  opacity: 0.9;
}

.footer__btn--pgp-img .footer__btn-img {
  display: block;
}

/* Footer contact rows */
.footer-contact-row {
  transition: opacity 0.2s ease;
}

.footer-contact-row:hover {
  opacity: 0.8;
}

.footer-contact__value {
  font-size: 16px;
  font-weight: 500;
  color: white;
  margin-top: 5px;
  margin-left: 10px;
}

.footer-contact__copy-icon {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-left: 5px;
}

@media (max-width: 600px) {
  .footer__inner {
    align-items: flex-start;
  }

  .footer__right {
    align-items: flex-start;
  }

  .footer__actions {
    align-items: flex-start;
  }
}
