/*
 * /is-nexus-pay-safe/ — «Надёжен ли Nexus Pay» (seo-1125, зона trust).
 * Только токены r26 (assets/r26.css): тёмная тема — без атрибута, светлая — html[data-theme="light"].
 * Приставка sf-. Телефон: 899 / 719 / 359 px, без боковой прокрутки на 320. RTL — логические свойства.
 * Короткий ответ и две двери — классы cr- из assets/r26-core-1111.css.
 */

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

/* ══ Первый экран: карточка-чеклист ═══════════════════════════════════════ */
.sf-hero { grid-template-columns: 1.15fr 0.85fr; }
.sf-hero-art { min-width: 0; }
.sf-card {
  width: 100%; max-width: 360px; box-sizing: border-box; padding: 22px; border-radius: 24px;
  background: var(--r-surface-3); border: 1px solid var(--r-line-2); box-shadow: var(--r-pop-shadow);
  display: flex; flex-direction: column; gap: 16px;
}
.sf-card-top { display: flex; align-items: center; gap: 12px; }
.sf-card-ico {
  flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--r-brand-tint); color: var(--r-link);
}
.sf-card-tt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sf-card-tt b { font-size: 16px; font-weight: 800; color: var(--r-text); }
.sf-card-tt span { font-size: 12.5px; color: var(--r-muted); }
.sf-card-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sf-card-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--r-text-2); line-height: 1.35; }
.sf-tick {
  flex: none; width: 26px; height: 26px; border-radius: 99px; display: grid; place-items: center;
  background: var(--r-green-tint); color: var(--r-green);
}
.sf-tick--warn { background: var(--r-red-line); color: var(--r-red); }
.sf-card-foot {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px;
  border-top: 1px dashed var(--r-line-3); font-size: 14px; color: var(--r-muted);
}
.sf-card-foot b { font-size: 20px; font-weight: 800; color: var(--r-green); }

/* ══ Общие мелочи ═════════════════════════════════════════════════════════ */
.sf-ico {
  flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--r-brand-tint); color: var(--r-link);
}
.sf-ico--lg { width: 56px; height: 56px; border-radius: 18px; }
.sf-p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--r-text-2); }
.sf-h2s { font-size: clamp(22px, 1.2vw + 14px, 28px); margin: 0; }
.sf-h3 { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.3; color: var(--r-text); }
.sf-d { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--r-muted); }
.sf-foot { margin: -8px 0 0; font-size: 13px; color: var(--r-faint); line-height: 1.5; }
.sf-note {
  margin: 0; padding: 16px 20px; border-radius: 18px; font-size: 14.5px; line-height: 1.6; color: var(--r-text-2);
  background: var(--r-fill-1); border: 1px dashed var(--r-line-3);
}

/* ══ Таблицы ══════════════════════════════════════════════════════════════ */
.sf-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;
}
.sf-tbl-wrap:focus-visible { outline: 2px solid var(--r-accent); outline-offset: 2px; }
.sf-tbl { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.sf-tbl :is(th, td) { padding: 16px 22px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--r-line); }
.sf-tbl tbody tr:last-child :is(th, td) { border-bottom: 0; }
.sf-tbl thead th { font-size: 13px; font-weight: 800; color: var(--r-muted); background: var(--r-fill-1); letter-spacing: .02em; }
.sf-tbl tbody th { width: 22%; font-weight: 800; color: var(--r-text); }
.sf-tbl td { color: var(--r-text-2); }
.sf-tbl td:last-child { width: 24%; }
.sf-tbl td a { color: var(--r-link); font-weight: 700; text-decoration: none; }
.sf-tbl td a:hover { text-decoration: underline; }
.sf-tbl td span { color: var(--r-muted); }
.sf-tbl--fee td:last-child { width: 30%; }

/* ══ Кто стоит за сервисом ════════════════════════════════════════════════ */
.sf-who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sf-who-c { padding: 26px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sf-legal {
  margin: 0; align-self: flex-start; padding: 10px 16px; border-radius: 12px; font-size: 16px; font-weight: 800;
  color: var(--r-text); background: var(--r-fill-2); border: 1px solid var(--r-line-2); letter-spacing: .01em;
}

/* ══ Хранение ═════════════════════════════════════════════════════════════ */
.sf-hold { padding: 32px 36px; display: flex; gap: 24px; align-items: flex-start; border-inline-start: 4px solid var(--r-brand); }
.sf-hold-txt { display: flex; flex-direction: column; gap: 14px; max-width: 880px; min-width: 0; }

/* ══ Защита ═══════════════════════════════════════════════════════════════ */
.sf-guards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sf-guard { padding: 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }

/* ══ Путь заявки ══════════════════════════════════════════════════════════ */
.sf-route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sf-route-i {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 22px;
  background: var(--r-surface); border: 1px solid var(--r-line); min-width: 0;
}
.sf-route-n {
  width: 36px; height: 36px; border-radius: 99px; display: grid; place-items: center; font-size: 15px; font-weight: 800;
  background: var(--r-brand-tint); color: var(--r-link);
}
.sf-route-i--back { border-color: var(--r-green-tint); background: var(--r-fill-1); }
.sf-route-i--back .sf-route-n { background: var(--r-green-tint); color: var(--r-green); }
.sf-route-i--back .sf-route-n svg { width: 18px; height: 18px; }
.sf-route-b { display: flex; flex-direction: column; gap: 6px; }
.sf-route-t { font-size: 17px; font-weight: 800; color: var(--r-text); }
.sf-route-d { font-size: 14.5px; line-height: 1.55; color: var(--r-muted); }
[dir="rtl"] .sf-route-i--back .sf-route-n svg { transform: scaleX(-1); }

/* ══ Проверка личности и поддержка ════════════════════════════════════════ */
.sf-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sf-two-c { padding: 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* ══ Самопроверка ═════════════════════════════════════════════════════════ */
.sf-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sf-step {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 22px;
  background: var(--r-surface); border: 1px solid var(--r-line); min-width: 0;
}
.sf-step-n {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-size: 16px; font-weight: 800; color: var(--r-on-green); background: var(--r-green);
}
.sf-step-b { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sf-step-t { font-size: 17px; font-weight: 800; color: var(--r-text); line-height: 1.3; }
.sf-step-d { font-size: 14.5px; line-height: 1.6; color: var(--r-muted); }

/* ══ Риски ════════════════════════════════════════════════════════════════ */
.sf-risks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sf-risk {
  display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; border-radius: 20px;
  background: var(--r-surface); border: 1px solid var(--r-red-line); min-width: 0;
}
.sf-risk-ic { flex: none; color: var(--r-red); margin-top: 2px; }
.sf-risk p { margin: 0; font-size: 14.5px; color: var(--r-muted); line-height: 1.55; }
.sf-risk b { color: var(--r-text); }

/* ══ Похожие названия ═════════════════════════════════════════════════════ */
.sf-name { padding: 28px 32px; display: flex; flex-direction: column; gap: 12px; background: var(--r-fill-1); }

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

/* ══ Подробнее ════════════════════════════════════════════════════════════ */
.sf-rel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sf-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"] .sf-link { padding: 22px 22px 22px 52px; }
.sf-link:hover { border-color: var(--r-brand-2); }
.sf-link b { font-size: 16px; font-weight: 800; line-height: 1.35; }
.sf-link span { font-size: 14px; color: var(--r-muted); line-height: 1.5; }
.sf-link svg { position: absolute; inset-inline-end: 22px; top: 24px; color: var(--r-link); }
[dir="rtl"] .sf-link svg { transform: scaleX(-1); }

/* ══ Планшет и телефон ════════════════════════════════════════════════════ */
@media (max-width: 1199px) {
  .sf-route { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-guards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .sf-hero { grid-template-columns: 1fr; }
  .sf-hero-art { justify-content: flex-start; }
  .sf-who, .sf-two, .sf-risks, .sf-steps, .sf-rel { grid-template-columns: 1fr; }
}
@media (max-width: 719px) {
  .sf-card { max-width: none; }
  .sf-card.r-float { animation: none; }
  .sf-guards, .sf-route { grid-template-columns: 1fr; }
  .sf-guard, .sf-route-i, .sf-step { padding: 20px; }
  .sf-who-c, .sf-two-c { padding: 22px 20px; }
  .sf-hold { padding: 24px 20px; flex-direction: column; gap: 16px; }
  .sf-name { padding: 24px 20px; }
  .sf-p { font-size: 15px; }
  .sf .r-hero-txt .r-btns .r-btn { flex: 1 1 100%; }
  /* Таблицы на телефоне — карточками: строка = блок, подписи колонок над значениями. */
  .sf-tbl thead { display: none; }
  .sf-tbl, .sf-tbl tbody, .sf-tbl tr, .sf-tbl th, .sf-tbl td { display: block; width: auto !important; }
  .sf-tbl tr { padding: 14px 16px; border-bottom: 1px solid var(--r-line); }
  .sf-tbl tbody tr:last-child { border-bottom: 0; }
  .sf-tbl :is(th, td) { padding: 2px 0; border-bottom: 0; font-size: 14px; }
  .sf-tbl tbody th { font-size: 13px; color: var(--r-muted); padding-bottom: 4px; }
  .sf-tbl td + td { padding-top: 6px; font-size: 13.5px; }
  .sf-qa-i summary { padding: 16px 18px; font-size: 15px; }
  .sf-qa-i p { padding: 0 18px 18px; }
  .sf-risk { padding: 18px; }
}
@media (max-width: 359px) {
  .sf-card { padding: 16px; }
  .sf-card-list li { font-size: 13px; }
  .sf-legal { font-size: 14px; padding: 8px 12px; }
}
@media (max-width: 379px) {
  .sf .r-btn { white-space: normal; height: auto; min-height: 52px; padding-top: 10px; padding-bottom: 10px; line-height: 1.25; text-align: center; }
}
