/*
 * /usdt-to-pix/ — вывод USDT на PIX (seo-1108, зона payouts-1).
 * Только токены r26 (assets/r26.css): тёмная тема — без атрибута, светлая — html[data-theme="light"].
 * Приставка pix-. Телефон: 899 / 719 / 359 px, без боковой прокрутки на 320. RTL — логические свойства.
 */

.pix .r-wrap :is(h1, h2) { text-wrap: balance; }
.pix-top { padding-top: 12px; }
.pix bdi { unicode-bidi: isolate; direction: ltr; white-space: nowrap; }

/* ══ Первый экран: плитки видов ключа ═════════════════════════════════════ */
.pix-hero { grid-template-columns: 1.2fr 0.8fr; }
.pix-hero-art { min-width: 0; }
.pix-keys-art {
  width: 100%; max-width: 340px; box-sizing: border-box; padding: 20px; border-radius: 24px;
  background: var(--r-surface-3); border: 1px solid var(--r-line-2); box-shadow: var(--r-pop-shadow);
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.pix-ka-h { grid-column: 1 / -1; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--r-accent); }
.pix-ka {
  display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; min-width: 0;
  background: var(--r-fill-2); border: 1px solid var(--r-line-2);
}
.pix-ka b { font-size: 14px; font-weight: 800; color: var(--r-text); line-height: 1.25; }
.pix-ka-ico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--r-brand-tint); color: var(--r-link); }
.pix-ka--on { border-color: var(--r-brand-2); background: var(--r-brand-tint); }
.pix-ka-sum {
  grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding-top: 12px; border-top: 1px dashed var(--r-line-3); font-size: 14px; color: var(--r-muted);
}
.pix-ka-sum b { font-size: 18px; font-weight: 800; color: var(--r-green); }

/* ══ Короткий ответ ═══════════════════════════════════════════════════════ */
.pix-short {
  padding: 30px 34px; border-radius: 28px; display: flex; flex-direction: column; gap: 12px;
  background: var(--r-brand-tint); border: 1px solid var(--r-line-2);
}
.pix-short-k { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--r-accent); }
.pix-h2s { font-size: clamp(24px, 1.4vw + 14px, 32px); }
.pix-short-p { margin: 0; max-width: 880px; font-size: 17px; line-height: 1.65; color: var(--r-text); }

/* ══ Таблицы ══════════════════════════════════════════════════════════════ */
.pix-tbl-wrap {
  overflow-x: auto; border-radius: 24px; border: 1px solid var(--r-line); background: var(--r-surface);
  box-shadow: var(--r-block-shadow); -webkit-overflow-scrolling: touch;
}
.pix-tbl-wrap:focus-visible { outline: 2px solid var(--r-accent); outline-offset: 2px; }
.pix-tbl { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.pix-tbl :is(th, td) { padding: 16px 20px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--r-line); }
.pix-tbl tbody tr:last-child :is(th, td) { border-bottom: 0; }
.pix-tbl thead th { font-size: 13px; font-weight: 800; color: var(--r-muted); background: var(--r-fill-1); }
.pix-tbl tbody th { font-weight: 800; color: var(--r-text); }
.pix-tbl td { color: var(--r-text-2); }
.pix-kt { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.pix-kt-ico { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--r-brand-tint); color: var(--r-link); }
.pix-td-l { display: none; }
.pix-foot { margin: -8px 0 0; font-size: 13px; color: var(--r-faint); line-height: 1.5; }

/* ══ Калькулятор ══════════════════════════════════════════════════════════ */
.pix-calc { display: grid; grid-template-columns: 1fr 1fr; }
.pix-form { padding: 32px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pix-f { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.pix-f-l { padding: 0; font-size: 13px; font-weight: 800; color: var(--r-text-2); line-height: 1.35; }
.pix-seg { display: flex; gap: 6px; padding: 4px; border-radius: 16px; background: var(--r-fill-2); border: 1px solid var(--r-line-2); }
.pix-seg label { flex: 1 1 0; position: relative; min-width: 0; }
.pix-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pix-seg span {
  display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 4px 10px; border-radius: 12px;
  font-size: 14px; font-weight: 800; color: var(--r-muted); cursor: pointer; text-align: center; line-height: 1.2;
}
.pix-seg input:checked + span { background: var(--r-brand); color: #FFFFFF; }
.pix-seg input:focus-visible + span { outline: 2px solid var(--r-accent); outline-offset: 2px; }
.pix-in {
  width: 100%; box-sizing: border-box; height: 56px; padding: 0 16px; border-radius: 14px;
  background: var(--r-fill-2); border: 1px solid var(--r-line-3); color: var(--r-text);
  font: inherit; font-size: 20px; font-weight: 800; text-align: start;
}
.pix-in:focus { outline: 2px solid var(--r-accent); outline-offset: 1px; border-color: transparent; }
.pix-in[aria-invalid="true"] { border-color: var(--r-red); }
.pix-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.pix-q {
  height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--r-line-3); background: var(--r-fill-1);
  color: var(--r-text-2); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer;
}
.pix-q:hover { border-color: var(--r-brand-2); color: var(--r-text); }
.pix-q:focus-visible { outline: 2px solid var(--r-accent); outline-offset: 2px; }
.pix-out {
  padding: 32px; display: flex; flex-direction: column; gap: 14px; justify-content: center; min-width: 0;
  background: var(--r-fill-1); border-inline-start: 1px solid var(--r-line-2);
}
.pix-out-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; color: var(--r-muted); }
.pix-out-row b { color: var(--r-text); font-size: 17px; font-weight: 800; }
.pix-out-total { padding-top: 14px; border-top: 1px solid var(--r-line-3); color: var(--r-text); font-weight: 700; }
.pix-out-total b { font-size: clamp(22px, 2vw + 10px, 30px); color: var(--r-green); }
.pix-msg { margin: 0; font-size: 13px; line-height: 1.5; color: var(--r-muted); min-height: 2.9em; }
.pix-msg.is-warn { color: var(--r-red); }
.pix-out-btn { align-self: flex-start; margin-top: 4px; }

/* ══ Цифры и примеры ══════════════════════════════════════════════════════ */
.pix-facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.pix-fact { padding: 22px 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pix-fact b { font-size: clamp(22px, 1.2vw + 14px, 28px); font-weight: 800; color: var(--r-text); letter-spacing: -0.01em; }
.pix-fact b bdi { white-space: normal; } /* qa 08.11: fr «Toutes les heures» на 390 давал прокрутку вбок */
.pix-fact span { font-size: 13.5px; color: var(--r-muted); line-height: 1.45; }
.pix-ex-wrap { margin-top: 12px; max-width: 760px; }
.pix-ex-net { color: var(--r-green) !important; font-weight: 800; }

/* ══ После отправки ═══════════════════════════════════════════════════════ */
.pix-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; position: relative; }
.pix-flow-i {
  display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 24px; min-width: 0;
  background: var(--r-surface); border: 1px solid var(--r-line); border-top: 3px solid var(--r-brand);
}
.pix-flow-i:nth-child(3) { border-top-color: var(--r-green); }
.pix-flow-i--no { border-top-color: var(--r-red); }
.pix-flow-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--r-brand-tint); color: var(--r-link); }
.pix-flow-i:nth-child(3) .pix-flow-ico { background: var(--r-green-tint); color: var(--r-green); }
.pix-flow-i--no .pix-flow-ico { background: var(--r-red-line); color: var(--r-red); }
.pix-flow-t { font-size: 17px; font-weight: 800; color: var(--r-text); }
.pix-flow-d { font-size: 14px; color: var(--r-muted); line-height: 1.55; }

/* ══ Если ключ с ошибкой ══════════════════════════════════════════════════ */
.pix-fix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pix-fix-i { padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pix-fix-n {
  width: 34px; height: 34px; border-radius: 99px; display: grid; place-items: center;
  font-size: 15px; font-weight: 800; color: var(--r-on-green); background: var(--r-green);
}
.pix-fix-i:nth-child(2) .pix-fix-n { background: var(--r-red); color: var(--r-on-green); }
.pix-fix-t { margin: 0; font-size: 18px; font-weight: 800; color: var(--r-text); line-height: 1.3; }
.pix-fix-d { margin: 0; font-size: 14.5px; color: var(--r-muted); line-height: 1.6; }

/* ══ Ограничения ══════════════════════════════════════════════════════════ */
.pix-risk { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-width: 900px; }
.pix-risk-i {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: 18px;
  background: var(--r-surface); border: 1px solid var(--r-red-line); min-width: 0;
}
.pix-risk-ic { flex: none; color: var(--r-red); margin-top: 2px; }
.pix-risk-i p { margin: 0; font-size: 15px; color: var(--r-muted); line-height: 1.55; }
.pix-risk-i b { color: var(--r-text); }

/* ══ Вопросы ══════════════════════════════════════════════════════════════ */
.pix-qa { display: flex; flex-direction: column; gap: 10px; max-width: 900px; }
.pix-qa-i { border-radius: 20px; background: var(--r-surface); border: 1px solid var(--r-line); }
.pix-qa-i summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; font-size: 16px; font-weight: 800; color: var(--r-text); line-height: 1.4;
}
.pix-qa-i summary::-webkit-details-marker { display: none; }
.pix-qa-i summary:focus-visible { outline: 2px solid var(--r-accent); outline-offset: -2px; border-radius: 20px; }
.pix-qa-ic {
  flex: none; width: 30px; height: 30px; border-radius: 99px; display: grid; place-items: center;
  background: var(--r-fill-3); color: var(--r-text-2); transition: transform .2s ease;
}
.pix-qa-i[open] .pix-qa-ic { transform: rotate(45deg); }
.pix-qa-i p { margin: 0; padding: 0 22px 20px; font-size: 15px; color: var(--r-text-2); line-height: 1.65; max-width: 75ch; }

/* ══ Блог и связанные разделы ═════════════════════════════════════════════ */
.pix-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pix-link {
  position: relative; padding: 22px 52px 22px 22px; display: flex; flex-direction: column; gap: 6px;
  text-decoration: none; color: var(--r-text); min-width: 0; transition: border-color .16s ease;
}
[dir="rtl"] .pix-link { padding: 22px 22px 22px 52px; }
.pix-link:hover { border-color: var(--r-brand-2); }
.pix-link b { font-size: 16px; font-weight: 800; line-height: 1.35; }
.pix-link span { font-size: 14px; color: var(--r-muted); line-height: 1.5; }
.pix-link .pix-arr { position: absolute; inset-inline-end: 22px; top: 24px; color: var(--r-link); }
[dir="rtl"] .pix-arr { transform: scaleX(-1); }
.sx-next.pix-rel { grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }

/* ══ Финальный призыв ═════════════════════════════════════════════════════ */
.pix-final { padding: 40px 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.pix-final-txt { position: relative; display: flex; flex-direction: column; gap: 12px; max-width: 640px; min-width: 0; }
.pix-final .r-btns { position: relative; flex: none; }

/* ══ Планшет и телефон ════════════════════════════════════════════════════ */
@media (max-width: 1199px) {
  .pix-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pix-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .pix-hero { grid-template-columns: 1fr; }
  .pix-hero-art { justify-content: flex-start; }
  .pix-calc { grid-template-columns: 1fr; }
  .pix-out { border-inline-start: 0; border-top: 1px solid var(--r-line-2); }
  .pix-fix { grid-template-columns: 1fr; }
  .pix-links { grid-template-columns: 1fr; }
  .pix-final { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
}
@media (max-width: 719px) {
  .pix-keys-art { max-width: none; }
  .pix-keys-art.r-float { animation: none; }
  .pix-short { padding: 24px 20px; }
  .pix-short-p { font-size: 16px; }
  .pix-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pix-flow { grid-template-columns: 1fr; }
  .pix-form, .pix-out { padding: 22px 20px; }
  .pix-out-btn, .pix-final .r-btns, .pix-final .r-btn { align-self: stretch; width: 100%; }
  .pix .r-hero-txt .r-btns .r-btn { flex: 1 1 100%; }
  .pix-tbl :is(th, td) { padding: 14px 16px; font-size: 14px; }
  /* Таблица ключей на телефоне — карточками: вид ключа заголовком, остальное — строками. */
  .pix-tbl--keys thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pix-tbl--keys, .pix-tbl--keys tbody, .pix-tbl--keys tr, .pix-tbl--keys th, .pix-tbl--keys td { display: block; width: auto; }
  .pix-tbl--keys tr { padding: 14px 0; border-bottom: 1px solid var(--r-line); }
  .pix-tbl--keys tbody tr:last-child { border-bottom: 0; }
  .pix-tbl--keys :is(th, td) { border-bottom: 0; padding: 4px 16px; }
  .pix-tbl--keys th { padding-bottom: 8px; }
  .pix-tbl--keys td { padding-top: 6px; padding-bottom: 6px; }
  .pix-tbl--keys .pix-td-l { display: block; font-size: 12px; font-weight: 800; color: var(--r-faint); letter-spacing: .02em; }
  .pix-final { padding: 28px 20px; }
  .pix-qa-i summary { padding: 16px 18px; font-size: 15px; }
  .pix-qa-i p { padding: 0 18px 18px; }
  .pix-risk-i { padding: 16px 18px; }
}
@media (max-width: 359px) {
  .pix-keys-art { padding: 16px; gap: 8px; }
  .pix-ka { padding: 12px; }
  .pix-form, .pix-out { padding: 18px 16px; }
  .pix-in { font-size: 18px; }
  .pix-facts { grid-template-columns: 1fr; }
  .pix-tbl--ex :is(th, td) { padding: 12px 10px; font-size: 13px; }
}
@media (max-width: 379px) {
  .pix .r-btn { white-space: normal; height: auto; min-height: 52px; padding-top: 10px; padding-bottom: 10px; line-height: 1.25; text-align: center; }
}

/* Значок в кнопке не сжимается, когда подпись длинная (en/de). */
.pix .r-btn svg { flex: none; }
