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

.mp .r-wrap :is(h1, h2) { text-wrap: balance; }
.mp-top { padding-top: 12px; }
.mp bdi { unicode-bidi: isolate; direction: ltr; white-space: nowrap; }
.mp-iso {
  flex: none; display: inline-grid; place-items: center; width: 34px; height: 26px; border-radius: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--r-link); background: var(--r-brand-tint);
}

/* ══ Первый экран: четыре страны M-Pesa ═══════════════════════════════════ */
.mp-hero { grid-template-columns: 1.15fr 0.85fr; }
.mp-hero-art { min-width: 0; }
.mp-art {
  width: 100%; max-width: 340px; box-sizing: border-box; padding: 20px; border-radius: 28px;
  background: var(--r-surface-3); border: 1px solid var(--r-line-2); box-shadow: var(--r-pop-shadow);
  display: flex; flex-direction: column; gap: 10px;
}
.mp-art-top { display: flex; align-items: center; gap: 12px; padding-bottom: 6px; }
.mp-art-top b { font-size: 17px; font-weight: 800; flex: 1 1 auto; }
.mp-art-ico { flex: none; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--r-green-tint); color: var(--r-green); }
.mp-art-eta { flex: none; height: 26px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 800; color: var(--r-green); background: var(--r-green-tint); }
.mp-art-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px;
  background: var(--r-fill-2); border: 1px solid var(--r-line-2); font-size: 14px;
}
.mp-art-row--on { border-color: var(--r-brand-2); background: var(--r-brand-tint); }
.mp-art-n { flex: 1 1 auto; min-width: 0; font-weight: 700; color: var(--r-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-art-c { color: var(--r-muted); font-size: 13px; }
.mp-art-row b { font-weight: 800; color: var(--r-text); min-width: 36px; text-align: end; }

/* ══ Короткий ответ ═══════════════════════════════════════════════════════ */
.mp-short { padding: 32px 36px; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 28px; align-items: start; }
.mp-h2s { font-size: clamp(24px, 1.4vw + 14px, 34px); }
.mp-short-p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--r-text-2); }

/* ══ Таблицы ══════════════════════════════════════════════════════════════ */
.mp-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;
}
.mp-tbl-wrap:focus-visible { outline: 2px solid var(--r-accent); outline-offset: 2px; }
.mp-tbl { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.mp-tbl :is(th, td) { padding: 16px 20px; text-align: start; vertical-align: middle; border-bottom: 1px solid var(--r-line); }
.mp-tbl tbody tr:last-child :is(th, td) { border-bottom: 0; }
.mp-tbl thead th { font-size: 13px; font-weight: 800; color: var(--r-muted); background: var(--r-fill-1); }
.mp-tbl tbody th { font-weight: 800; color: var(--r-text); }
.mp-tbl td { color: var(--r-text-2); }
.mp-cn { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.mp-code { font-weight: 800; color: var(--r-text); }
.mp-td-l { display: none; }
.mp-foot { margin: -8px 0 0; font-size: 13px; color: var(--r-faint); line-height: 1.5; }
.mp-sh { display: flex; align-items: center; gap: 10px; }
.mp-sh-bar { flex: 1 1 auto; max-width: 160px; height: 8px; border-radius: 99px; background: var(--r-fill-3); overflow: hidden; }
.mp-sh-bar i { display: block; height: 100%; border-radius: inherit; background: var(--r-accent); }
.mp-sh bdi { font-weight: 800; color: var(--r-text); min-width: 3.2em; }

/* ══ Проверка номера и расчёт ═════════════════════════════════════════════ */
.mp-calc { display: grid; grid-template-columns: 1fr 1fr; }
.mp-form { padding: 32px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.mp-f { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mp-f-l { font-size: 13px; font-weight: 800; color: var(--r-text-2); line-height: 1.35; }
.mp-in {
  width: 100%; box-sizing: border-box; height: 54px; 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: 17px; font-weight: 700; text-align: start;
}
.mp-sel { appearance: none; -webkit-appearance: none; cursor: pointer; padding-inline-end: 40px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
[dir="rtl"] .mp-sel { background-position: 16px 50%, 22px 50%; }
.mp-sel option { background: var(--r-surface); color: var(--r-text); }
.mp-in--amt { font-size: 18px; font-weight: 800; }
.mp-in::placeholder { color: var(--r-faint); font-size: 15px; font-weight: 600; }
.mp-in:focus { outline: 2px solid var(--r-accent); outline-offset: 1px; border-color: transparent; }
.mp-in[aria-invalid="true"] { border-color: var(--r-red); }
.mp-in.is-ok { border-color: var(--r-green); }
.mp-hint { font-size: 13px; line-height: 1.45; color: var(--r-muted); min-height: 1.45em; }
.mp-hint.is-warn { color: var(--r-red); }
.mp-hint.is-ok { color: var(--r-green); }
.mp-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);
}
.mp-out-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; color: var(--r-muted); }
.mp-out-row b { color: var(--r-text); font-size: 17px; font-weight: 800; }
.mp-bar { height: 8px; border-radius: 99px; background: var(--r-fill-3); overflow: hidden; }
.mp-bar i { display: block; height: 100%; border-radius: inherit; background: var(--r-accent); transition: width .2s ease; }
.mp-out-total { padding-top: 14px; border-top: 1px solid var(--r-line-3); color: var(--r-text); font-weight: 700; }
.mp-out-total b { font-size: clamp(22px, 2vw + 10px, 30px); color: var(--r-green); }
.mp-msg { margin: 0; font-size: 13px; line-height: 1.5; color: var(--r-muted); min-height: 2.9em; }
.mp-msg.is-warn { color: var(--r-red); }
.mp-out-btn { align-self: flex-start; margin-top: 4px; }

/* ══ Правила номера ═══════════════════════════════════════════════════════ */
.mp-rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mp-rule { padding: 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mp-rule-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--r-green-tint); color: var(--r-green); }
.mp-rule-t { margin: 0; font-size: 17px; font-weight: 800; color: var(--r-text); line-height: 1.3; }
.mp-rule-d { margin: 0; font-size: 14.5px; color: var(--r-muted); line-height: 1.6; }

/* ══ Совет ════════════════════════════════════════════════════════════════ */
.mp-tip {
  margin-top: 12px; display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: 20px;
  background: var(--r-brand-tint); border: 1px solid var(--r-line-2); max-width: 900px;
}
.mp-tip-ico { flex: none; color: var(--r-accent); margin-top: 2px; }
.mp-tip-p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--r-text); }

/* ══ Шаги ═════════════════════════════════════════════════════════════════ */
.mp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-radius: 24px; overflow: hidden; border: 1px solid var(--r-line); background: var(--r-surface); }
.mp-step { padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; border-inline-start: 1px solid var(--r-line); }
.mp-step:first-child { border-inline-start: 0; }
.mp-step-n { font-size: 34px; font-weight: 800; line-height: 1; color: var(--r-accent); }
.mp-step-t { font-size: 17px; font-weight: 800; color: var(--r-text); }
.mp-step-d { font-size: 14px; color: var(--r-muted); line-height: 1.55; }

/* ══ Ограничения ══════════════════════════════════════════════════════════ */
.mp-risk { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mp-risk-i {
  display: flex; gap: 12px; align-items: flex-start; padding: 20px; border-radius: 20px;
  background: var(--r-surface); border: 1px solid var(--r-red-line); min-width: 0;
}
.mp-risk-ic { flex: none; color: var(--r-red); margin-top: 2px; }
.mp-risk-i p { margin: 0; font-size: 14.5px; color: var(--r-muted); line-height: 1.55; }
.mp-risk-i b { color: var(--r-text); }

/* ══ Вопросы ══════════════════════════════════════════════════════════════ */
.mp-qa { display: flex; flex-direction: column; gap: 10px; max-width: 900px; }
.mp-qa-i { border-radius: 20px; background: var(--r-surface); border: 1px solid var(--r-line); }
.mp-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;
}
.mp-qa-i summary::-webkit-details-marker { display: none; }
.mp-qa-i summary:focus-visible { outline: 2px solid var(--r-accent); outline-offset: -2px; border-radius: 20px; }
.mp-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;
}
.mp-qa-i[open] .mp-qa-ic { transform: rotate(45deg); }
.mp-qa-i p { margin: 0; padding: 0 22px 20px; font-size: 15px; color: var(--r-text-2); line-height: 1.65; max-width: 75ch; }

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

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

/* ══ Планшет и телефон ════════════════════════════════════════════════════ */
@media (max-width: 1199px) {
  .mp-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mp-step:nth-child(3) { border-inline-start: 0; }
  .mp-step:nth-child(n+3) { border-top: 1px solid var(--r-line); }
  .mp-risk { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .mp-hero { grid-template-columns: 1fr; }
  .mp-hero-art { justify-content: flex-start; }
  .mp-short { grid-template-columns: 1fr; gap: 14px; }
  .mp-calc { grid-template-columns: 1fr; }
  .mp-out { border-inline-start: 0; border-top: 1px solid var(--r-line-2); }
  .mp-links { grid-template-columns: 1fr; }
  .mp-final { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
}
@media (max-width: 719px) {
  .mp-art { max-width: none; }
  .mp-art.r-float { animation: none; }
  .mp-short { padding: 24px 20px; }
  .mp-short-p { font-size: 16px; }
  .mp-rules, .mp-risk { grid-template-columns: 1fr; }
  .mp-steps { grid-template-columns: 1fr; }
  .mp-step { border-inline-start: 0 !important; border-top: 1px solid var(--r-line); padding: 20px; }
  .mp-step:first-child { border-top: 0; }
  .mp-rule { padding: 20px; }
  .mp-form, .mp-out { padding: 22px 20px; }
  .mp-out-btn, .mp-final .r-btns, .mp-final .r-btn { align-self: stretch; width: 100%; }
  .mp .r-hero-txt .r-btns .r-btn { flex: 1 1 100%; }
  .mp-tbl :is(th, td) { padding: 12px 14px; font-size: 14px; }
  /* Таблица стран на телефоне — карточками. */
  .mp-tbl--cn thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .mp-tbl--cn, .mp-tbl--cn tbody, .mp-tbl--cn tr, .mp-tbl--cn th, .mp-tbl--cn td { display: block; width: auto; }
  .mp-tbl--cn tr { padding: 12px 0; border-bottom: 1px solid var(--r-line); }
  .mp-tbl--cn tbody tr:last-child { border-bottom: 0; }
  .mp-tbl--cn :is(th, td) { border-bottom: 0; padding: 3px 16px; }
  .mp-tbl--cn th { padding-bottom: 8px; }
  .mp-tbl--cn td { padding-top: 5px; padding-bottom: 5px; }
  .mp-tbl--cn .mp-td-l { display: block; font-size: 12px; font-weight: 800; color: var(--r-faint); letter-spacing: .02em; }
  .mp-sh-bar { display: none; }
  .mp-final { padding: 28px 20px; }
  .mp-qa-i summary { padding: 16px 18px; font-size: 15px; }
  .mp-qa-i p { padding: 0 18px 18px; }
}
@media (max-width: 359px) {
  .mp-art { padding: 16px; }
  .mp-art-row { padding: 8px 10px; gap: 8px; font-size: 13px; }
  .mp-form, .mp-out { padding: 18px 16px; }
  .mp-in { font-size: 16px; }
  .mp-tbl--share :is(th, td) { padding: 10px 8px; font-size: 13px; }
}
@media (max-width: 379px) {
  .mp .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). */
.mp .r-btn svg { flex: none; }
