/*
 * Зона start-other редизайна 19.10.2026:
 *   · /how-it-works/ — макет PgStart / PgStartLight (docs/redesign-1910/design/src);
 *   · страницы без своего макета (wallet, security, faq, about, paypal, iban-sepa,
 *     cashback, card-prices) — в общей стилистике макета.
 *
 * Классы — с приставкой so- (общий слой — r-, см. FOUNDATION.md). Цвета — только
 * токенами: свои ниже, для обеих тем; остальное — из assets/r26.css.
 * В макете у <div>/<span> box-sizing: content-box, у нас border-box (site.css):
 * у элементов с явной высотой и рамкой высота здесь на 2 px больше написанной.
 */

:root {
  --so-green-tint: rgba(61, 214, 140, 0.12);   /* подложка значков «Что понадобится» */
  --so-step-bg: rgba(255, 255, 255, 0.03);     /* шаги рядом с телефоном */
  --so-tap: #C4B8FF;                           /* кружок касания в телефоне */
  --so-tap-bg: rgba(196, 184, 255, 0.28);
  --so-batt: rgba(243, 242, 248, 0.5);
  --so-home-ind: rgba(243, 242, 248, 0.55);
  --so-ok-bg: rgba(10, 10, 15, 0.9);
  --so-phone-shadow: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.55));
  --so-card-shadow: drop-shadow(0 18px 30px rgba(91, 63, 235, 0.35));
  --so-card-shadow-lg: drop-shadow(0 22px 34px rgba(91, 63, 235, 0.4));
  --so-btn-shadow: 0 10px 26px rgba(91, 63, 235, 0.35);
  --so-btn-shadow-sm: 0 8px 24px rgba(91, 63, 235, 0.3);
  --so-nav-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  --so-cta-shadow: 0 12px 30px rgba(91, 63, 235, 0.35);
}
:root[data-theme="light"] {
  --so-green-tint: rgba(23, 138, 80, 0.12);
  --so-step-bg: rgba(21, 19, 31, 0.03);
  --so-tap: #8E7CFF;
  --so-batt: rgba(21, 19, 31, 0.45);
  --so-home-ind: rgba(21, 19, 31, 0.4);
  --so-ok-bg: rgba(244, 243, 247, 0.94);
  --so-phone-shadow: drop-shadow(0 40px 60px rgba(21, 19, 31, 0.25));
  --so-card-shadow: drop-shadow(0 18px 30px rgba(91, 63, 235, 0.25));
  --so-card-shadow-lg: drop-shadow(0 22px 34px rgba(91, 63, 235, 0.25));
  --so-btn-shadow: 0 10px 26px rgba(91, 63, 235, 0.25);
  --so-btn-shadow-sm: 0 8px 24px rgba(91, 63, 235, 0.25);
  --so-nav-shadow: 0 16px 40px rgba(21, 19, 31, 0.12);
  --so-cta-shadow: 0 12px 30px rgba(91, 63, 235, 0.25);
}

/* ══ /how-it-works/ — первый экран: заголовок слева, пять шагов справа ═══ */
.so-hero {
  padding: 40px 56px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center;
}
.so-hero > .r-glow { inset-inline-start: -200px; inset-inline-end: auto; top: -200px; width: 700px; height: 700px; }
.so-hero-txt { position: relative; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.so-h1 { margin: 0; font-size: clamp(34px, 4.4vw + 4px, 60px); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; }
.so-hero .r-lead { font-size: 18px; }
.so-hero .r-btns { padding-top: 6px; }
.so-hero .r-btn { box-shadow: var(--so-cta-shadow); }
.so-plane { padding-top: 6px; }
/* В макете картинка строчная: под ней нижний вынос строки (+6 px к высоте).
   Обёртка inline-block даёт то же и при .r-light-only { display: block }. */
.so-plane-in { display: inline-block; vertical-align: baseline; max-width: 100%; }
.so-plane img { display: block; width: 240px; height: 240px; max-width: 100%; object-fit: contain; }
[dir="rtl"] .so-plane img { transform: scaleX(-1); }
[dir="rtl"] .so-plane img.r-fly { animation-name: r-flyk-rtl; }

.so-steps { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.so-step {
  position: relative; display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; align-items: center;
  padding: 16px 18px; border-radius: 20px; background: var(--r-surface); border: 1px solid var(--r-line);
}
.so-step--on { background: var(--r-brand-tint); border-color: var(--r-brand-2); }
.so-step-n {
  width: 56px; height: 56px; border-radius: 18px; background: var(--r-raise); color: var(--r-link);
  font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.so-step--on .so-step-n { background: var(--r-brand); color: #FFFFFF; }
.so-step-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.so-step-t { font-size: 18px; font-weight: 800; }
.so-step-d { font-size: 14px; color: var(--r-muted); line-height: 1.45; }
.so-step-time {
  font-size: 12px; font-weight: 800; padding: 6px 10px; border-radius: 999px;
  background: var(--r-fill-3); color: var(--r-text-2); white-space: nowrap;
}

/* ══ /how-it-works/ — телефон с экранами приложения ═════════════════════ */
.so-sec-demo { padding-top: 40px; }
.so-demo {
  padding: 32px 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 40px; align-items: center;
}
.so-demo > .r-glow {
  inset-inline-start: -60px; inset-inline-end: auto; top: -100px; width: 640px; height: 640px;
  background: radial-gradient(circle, var(--so-demo-glow, rgba(91, 63, 235, 0.3)) 0%, rgba(91, 63, 235, 0) 62%);
}
:root[data-theme="light"] .so-demo > .r-glow { --so-demo-glow: rgba(91, 63, 235, 0.14); }
.so-demo-art { position: relative; display: flex; justify-content: center; min-width: 0; }
.so-phone { position: relative; width: 311px; height: 640px; flex: none; filter: var(--so-phone-shadow); }
.so-demo-txt { position: relative; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.so-st-list { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; margin: 0; list-style: none; padding-inline-start: 0; }
.so-st {
  display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 18px;
  border: 1px solid var(--r-line); background: var(--so-step-bg);
  animation: so-st4k 20s infinite both;
}
@keyframes so-st4k {
  0%, 24% { background: var(--r-brand-tint); border-color: var(--r-brand-2); }
  25.5%, 100% { background: var(--so-step-bg); border-color: var(--r-line); }
}
.so-st-n {
  width: 34px; height: 34px; flex: none; border-radius: 999px; background: var(--r-brand); color: #FFFFFF;
  font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.so-st-txt { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.so-st-t { font-size: 17px; font-weight: 800; }
.so-st-d { font-size: 13px; color: var(--r-muted); line-height: 1.45; }
.so-bar { width: 56px; height: 4px; flex: none; border-radius: 999px; background: var(--r-line-2); overflow: hidden; }
.so-bar span { display: block; height: 4px; width: 0; border-radius: 999px; background: var(--r-accent); animation: so-fill4 20s linear infinite both; }
@keyframes so-fill4 { 0% { width: 0; } 25% { width: 100%; } 25.1%, 100% { width: 0; } }
.so-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.so-pill {
  font-size: 13px; font-weight: 700; padding: 8px 12px; border-radius: 999px;
  background: var(--r-fill-3); border: 1px solid var(--r-line-2);
}

/* Телефон: рамка 389×800, уменьшенная до 0.8, экран 361×776 внутри. Внутри —
   интерфейс приложения на языке страницы (строки приложения,
   data/r26-i18n/mockups.*.json). Рамка всегда слева направо; экран на
   арабской странице — справа налево, как само приложение (fix-2010). */
.so-ph { position: relative; width: 389px; height: 800px; transform: scale(0.8); transform-origin: 0 0; direction: ltr; text-align: left; line-height: normal; }
.so-scr {
  position: absolute; left: 14px; top: 12px; width: 361px; height: 776px; border-radius: 52px; overflow: hidden;
  background: var(--r-bg); color: var(--r-text); font-family: var(--r-font);
}
.so-frm { position: absolute; inset: 0; width: 389px; height: 800px; pointer-events: none; z-index: 9; }
.so-status {
  position: absolute; left: 0; right: 0; top: 0; height: 52px; padding: 0 30px 0 38px;
  display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 800; z-index: 8; color: var(--r-text);
}
.so-status > span:first-child { font-variant-numeric: tabular-nums; }
.so-status-ic { display: flex; align-items: center; gap: 6px; }
.so-batt { width: 25px; height: 12px; border-radius: 4px; border: 1.5px solid var(--so-batt); padding: 1.5px; box-sizing: border-box; display: flex; }
.so-batt span { flex: 1; border-radius: 2px; background: currentColor; }
.so-home-ind { position: absolute; left: 50%; bottom: 8px; width: 128px; height: 5px; margin-left: -64px; border-radius: 999px; background: var(--so-home-ind); z-index: 8; }

.so-s4 {
  position: absolute; inset: 0; padding: 62px 16px 0; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 12px; opacity: 0; animation: so-s4k 20s infinite both;
}
@keyframes so-s4k {
  0% { opacity: 0; transform: translateX(26px); } 2.5% { opacity: 1; transform: none; }
  23% { opacity: 1; transform: none; } 25% { opacity: 0; transform: translateX(-26px); }
  100% { opacity: 0; transform: translateX(-26px); }
}
.so-t4 {
  position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 999px; box-sizing: content-box;
  border: 2px solid var(--so-tap); background: var(--so-tap-bg); opacity: 0; pointer-events: none; z-index: 5;
  animation: so-t4k 20s infinite both;
}
@keyframes so-t4k { 0%, 17% { opacity: 0; transform: scale(.4); } 18.5% { opacity: 1; transform: scale(1); } 22% { opacity: 0; transform: scale(1.9); } 100% { opacity: 0; } }
.so-t4e { animation-name: so-t4e; }
@keyframes so-t4e { 0%, 8.5% { opacity: 0; transform: scale(.4); } 10% { opacity: 1; transform: scale(1); } 13% { opacity: 0; transform: scale(1.9); } 100% { opacity: 0; } }
.so-a0 { animation: so-a0k 20s infinite both; }
.so-a1 { opacity: 0; animation: so-a1k 20s infinite both; }
@keyframes so-a0k { 0%, 6% { opacity: 1; } 7.5%, 100% { opacity: 0; } }
@keyframes so-a1k { 0%, 6% { opacity: 0; transform: translateY(6px); } 7.5%, 100% { opacity: 1; transform: none; } }
.so-pop { animation: so-popk 20s infinite both; }
@keyframes so-popk { 0%, 1% { opacity: 0; transform: scale(.86) rotate(-4deg); } 6%, 100% { opacity: 1; transform: none; } }
.so-ok4 {
  position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: var(--so-ok-bg); opacity: 0; animation: so-ok4k 20s infinite both;
}
@keyframes so-ok4k { 0%, 12.5% { opacity: 0; } 14%, 23% { opacity: 1; } 25%, 100% { opacity: 0; } }
.so-hl { animation: so-hlk 20s infinite both; }
@keyframes so-hlk { 0%, 8.5% { box-shadow: 0 0 0 0 rgba(91, 63, 235, 0); } 10%, 100% { box-shadow: 0 0 0 2px var(--r-brand-2); } }
.so-d0 { animation-delay: 0s; }
.so-d5 { animation-delay: -5s; }
.so-d10 { animation-delay: -10s; }
.so-d15 { animation-delay: -15s; }
/* Полоска шага: у .so-bar span своё animation — задержке нужен вес выше. */
.so-bar span.so-d5 { animation-delay: -5s; }
.so-bar span.so-d10 { animation-delay: -10s; }
.so-bar span.so-d15 { animation-delay: -15s; }

/* Экран 1 — главная приложения (390×838, уменьшена до 0.9256). */
.so-home {
  position: absolute; left: 0; top: 0; width: 390px; height: 838px; transform: scale(0.9256); transform-origin: 0 0;
  padding-top: 48px; box-sizing: border-box; background: var(--r-bg); color: var(--r-text);
  display: flex; flex-direction: column; gap: 12px; overflow: hidden;
}
.so-s4.so-s4--home { padding: 0; }
.so-app-hdr { display: flex; align-items: center; gap: 12px; padding: 8px 16px 0; }
.so-app-logo {
  width: 50px; height: 50px; flex: none; border-radius: 14px; background: var(--r-surface-3); border: 1px solid var(--r-line-2);
  display: flex; align-items: center; justify-content: center; color: var(--r-accent);
}
.so-app-hi { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.so-app-hi span:first-child { font-size: 13px; font-weight: 500; color: var(--r-muted); }
.so-app-hi span:last-child { font-size: 17px; font-weight: 800; }
.so-app-ibtn {
  width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--r-line); background: var(--r-surface-3); color: var(--r-text);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.so-app-bal { padding: 12px 16px 0; display: flex; flex-direction: column; gap: 10px; }
.so-app-bal-row { display: flex; align-items: center; gap: 10px; }
.so-app-bal-row > span:first-child { font-size: 14px; font-weight: 600; color: var(--r-muted); }
.so-app-cur {
  display: flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 999px;
  background: rgba(91, 63, 235, 0.2); color: var(--r-link); font-size: 12px; font-weight: 800;
}
:root[data-theme="light"] .so-app-cur { background: rgba(91, 63, 235, 0.1); }
.so-app-eye { margin-inline-start: auto; width: 36px; height: 36px; color: var(--r-muted); display: flex; align-items: center; justify-content: center; }
.so-app-sum { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.so-stack { display: grid; }
.so-stack > * { grid-area: 1 / 1; }
.so-faint { color: var(--r-faint); }
.so-badge-ok { align-self: flex-start; font-size: 12px; font-weight: 800; color: var(--r-green); background: var(--r-green-tint); padding: 5px 9px; border-radius: 999px; }
.so-app-acts { padding: 8px 16px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.so-app-act { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--r-text); font-size: 13px; font-weight: 700; }
.so-app-act > span:first-child {
  width: 64px; height: 64px; border-radius: 20px; background: var(--r-surface-3); border: 1px solid var(--r-line);
  display: flex; align-items: center; justify-content: center;
}
.so-app-act--main > span:first-child { background: var(--r-brand); border: 0; box-shadow: var(--so-btn-shadow-sm); }
.so-app-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px;
  background: var(--r-surface-3); border: 1px solid var(--r-line); color: var(--r-text);
}
.so-app-row--card { margin: 8px 16px 0; position: relative; }
.so-app-row--esim { margin: 0 16px; }
.so-app-row img { width: 64px; height: 56px; flex: none; object-fit: contain; }
.so-app-row-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.so-app-row-txt span:first-child { font-size: 16px; font-weight: 700; }
.so-app-row-txt span:last-child { font-size: 13px; font-weight: 500; color: var(--r-muted); }
.so-app-chev { color: var(--r-faint); flex: none; }
.so-app-h { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 16px 0; }
.so-app-h b, .so-app-h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.so-app-h2 { display: block; margin: 8px 16px 0; }
.so-app-h span { font-size: 14px; font-weight: 700; color: var(--r-link); }
.so-app-assets {
  margin: 0 16px; background: var(--r-surface-3); border: 1px solid var(--r-line); border-radius: 20px;
  padding: 4px 16px; display: flex; flex-direction: column;
}
.so-app-asset { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.so-app-asset + .so-app-asset { border-top: 1px solid var(--r-line); }
.so-app-asset-n { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.so-app-asset-n span:first-child { font-size: 15px; font-weight: 700; }
.so-app-asset-n span:last-child { font-size: 12px; font-weight: 500; color: var(--r-muted); }
.so-app-asset-v { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-variant-numeric: tabular-nums; }
.so-app-asset-v > span:first-child { justify-items: end; font-size: 15px; font-weight: 800; }
.so-app-asset-v > span:last-child { justify-items: end; font-size: 12px; font-weight: 600; color: var(--r-muted); }
.so-app-more { flex: 1; font-size: 14px; font-weight: 600; }
.so-app-tx { margin: 0 16px; }
.so-app-empty {
  background: var(--r-surface-3); border: 1px solid var(--r-line); border-radius: 20px; padding: 28px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
.so-app-empty > span:first-child {
  width: 52px; height: 52px; border-radius: 16px; background: var(--r-raise); color: var(--r-muted);
  display: flex; align-items: center; justify-content: center;
}
.so-app-empty b { display: block; font-size: 16px; font-weight: 800; }
.so-app-empty small { display: block; margin-top: 4px; font-size: 13px; font-weight: 500; color: var(--r-muted); }
.so-app-dep {
  align-self: start; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px;
  background: var(--r-surface-3); border: 1px solid var(--r-line);
}
.so-app-dep > span:first-child {
  width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--r-green-tint); color: var(--r-green);
  display: flex; align-items: center; justify-content: center;
}
.so-app-dep-n { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.so-app-dep-n span:first-child { font-size: 15px; font-weight: 700; }
.so-app-dep-n span:last-child { font-size: 12px; color: var(--r-muted); }
.so-app-dep > span:last-child { font-size: 15px; font-weight: 800; color: var(--r-green); font-variant-numeric: tabular-nums; }
.so-app-nav {
  position: absolute; left: 16px; right: 16px; bottom: 30px; display: flex; justify-content: space-between; align-items: center;
  padding: 8px; background: var(--r-surface-3); border: 1px solid var(--r-line); border-radius: 22px; box-shadow: var(--so-nav-shadow);
}
.so-app-nav span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-width: 76px; padding: 0 6px; box-sizing: border-box; white-space: nowrap; /* длинная подпись (id «Halaman utama») — шире ячейка, а не перенос */
  height: 56px; border-radius: 16px; color: var(--r-muted); font-size: 11px; font-weight: 700;
}
.so-app-nav span.so-on { color: #FFFFFF; background: var(--r-brand); }
/* Подложка под нижним меню: «Транзакции» не выглядывают между меню и краем экрана (fix-2010). */
.so-app-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 150px; background: linear-gradient(to bottom, transparent, var(--r-bg) 45%); pointer-events: none; z-index: 2; }
/* Значок USDC в строке «Пополнить USDC…» стоит с z-index: 1 — меню и подложка выше него. */
.so-app-nav { z-index: 2; }
/* Арабский: экран приложения зеркалится, рамка — нет (fix-2010). */
/* Рамка 389 px шире своей коробки на телефоне (263 px, масштаб 0.676): в RTL она вылезала бы влево,
   а масштаб от левого угла уводил телефон за край. Коробка — слева направо, экран — справа налево. */
html[dir="rtl"] .so-phone { direction: ltr; }
html[dir="rtl"] .so-scr { direction: rtl; text-align: right; }
html[dir="rtl"] .so-t4[style*="--rtl-left"] { left: var(--rtl-left) !important; }
/* Суммы со знаком (−30 USDT, +1,000) — слева направо, как числа на остальном арабском сайте. */
html[dir="rtl"] .so-scr :is(.so-status > span:first-child, .so-app-sum, .so-app-asset-v, .so-app-dep > span:last-child, .so-app-tier > span:last-child,
  .so-app-buy > span:last-child, .so-app-line span:last-child, .so-app-cardbal, .so-app-amt, .so-app-sum-tbl .so-stack, .so-ok4 small) { unicode-bidi: plaintext; }
html[dir="rtl"] .so-app-chev, html[dir="rtl"] .so-app-top > span:first-child svg { transform: scaleX(-1); }

/* Экраны 2–4 — выпуск карты, карта готова, пополнение карты. */
.so-app-top { display: flex; align-items: center; gap: 12px; }
.so-app-top > span:first-child {
  width: 42px; height: 42px; border-radius: 13px; background: var(--r-surface-3); border: 1px solid var(--r-line);
  display: flex; align-items: center; justify-content: center;
}
.so-app-top > span:last-child { font-size: 20px; font-weight: 800; }
.so-app-big { display: flex; justify-content: center; margin: -6px 0 -10px; }
.so-app-big img { width: 250px; height: 190px; flex: none; object-fit: contain; filter: var(--so-card-shadow); }
.so-app-big--pop { position: relative; margin: -10px 0 -14px; }
.so-app-big--pop img { width: 280px; height: 200px; filter: var(--so-card-shadow-lg); }
.so-app-line { display: flex; justify-content: space-between; padding: 0 4px; font-size: 13px; }
.so-app-line span:first-child { color: var(--r-muted); font-weight: 600; }
.so-app-line span:last-child { font-weight: 800; font-variant-numeric: tabular-nums; }
.so-app-tiers { position: relative; display: flex; flex-direction: column; gap: 8px; }
.so-app-tier {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 18px;
  background: var(--r-surface-3); border: 1px solid var(--r-line);
}
.so-app-tier img { width: 58px; height: 44px; flex: none; object-fit: contain; }
.so-app-tier-n { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.so-app-tier-n span:first-child { font-size: 15px; font-weight: 700; }
.so-app-tier-n span:last-child { font-size: 12px; color: var(--r-muted); }
.so-app-tier > span:last-child { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.so-app-tier--sm .so-app-tier-n span:first-child { font-size: 14px; }
.so-app-cta {
  position: relative; height: 52px; border-radius: 16px; background: var(--r-brand); color: #FFFFFF;
  font-size: 15px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--so-btn-shadow); margin-top: auto; margin-bottom: 40px;
}
.so-app-ready { display: flex; justify-content: center; }
.so-app-ready span {
  font-size: 12px; font-weight: 800; color: var(--r-green); background: var(--r-green-tint);
  padding: 6px 12px; border-radius: 999px; display: flex; align-items: center; gap: 6px;
}
.so-app-cardbal { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.so-app-cardbal span:first-child { font-size: 13px; font-weight: 600; color: var(--r-muted); }
.so-app-cardbal b { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.so-app-cardbal small { font-size: 16px; color: var(--r-muted); }
.so-app-cacts { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding-top: 4px; }
.so-app-cacts > span:not(.so-t4) { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; }
.so-app-cacts i {
  width: 56px; height: 56px; border-radius: 18px; background: var(--r-surface-3); border: 1px solid var(--r-line);
  display: flex; align-items: center; justify-content: center;
}
.so-app-cacts i.so-main { background: var(--r-brand); border: 0; box-shadow: var(--so-btn-shadow); }
.so-app-buy {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px;
  background: var(--r-surface-3); border: 1px solid var(--r-line);
}
.so-app-buy > span:first-child {
  width: 36px; height: 36px; flex: none; border-radius: 12px; background: rgba(91, 63, 235, 0.2); color: var(--r-link);
  display: flex; align-items: center; justify-content: center;
}
:root[data-theme="light"] .so-app-buy > span:first-child { background: rgba(91, 63, 235, 0.1); }
.so-app-buy-n { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.so-app-buy-n span:first-child { font-size: 14px; font-weight: 700; }
.so-app-buy-n span:last-child { font-size: 12px; color: var(--r-muted); }
.so-app-buy > span:last-child { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.so-app-amt { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 0 8px; }
.so-app-amt > span:first-child { justify-items: center; font-size: 54px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.so-app-amt > span:last-child { font-size: 13px; font-weight: 700; color: var(--r-muted); }
.so-app-quick { display: flex; gap: 6px; }
.so-app-quick > span { flex: 1; }
.so-app-q {
  flex: 1; height: 38px; border-radius: 12px; background: var(--r-surface-3); color: var(--r-text-2); border: 1px solid var(--r-line);
  font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-sizing: border-box;
}
.so-app-q--on { background: var(--r-brand); color: #FFFFFF; border: 0; }
.so-app-q-wrap { display: flex; }
.so-app-sum-tbl {
  display: flex; flex-direction: column; padding: 2px 14px; border-radius: 18px;
  background: var(--r-surface-3); border: 1px solid var(--r-line); font-size: 13px;
}
.so-app-sum-tbl > span { display: flex; justify-content: space-between; padding: 11px 0; }
.so-app-sum-tbl > span + span { border-top: 1px solid var(--r-line); }
.so-app-sum-tbl > span > span:first-child { color: var(--r-muted); font-weight: 600; }
.so-app-sum-tbl > span > span:last-child { font-weight: 800; font-variant-numeric: tabular-nums; justify-items: end; }
.so-green { color: var(--r-green); }
.so-ok4 > span:first-child {
  width: 72px; height: 72px; border-radius: 999px; background: var(--r-green); color: var(--r-on-green);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 34px rgba(61, 214, 140, 0.4);
}
.so-ok4 b { font-size: 22px; font-weight: 800; }
.so-ok4 small { font-size: 15px; font-weight: 700; color: var(--r-muted); font-variant-numeric: tabular-nums; }

/* ══ /how-it-works/ — сети, «что понадобится», вопросы ══════════════════ */
.so-sec { padding-top: 56px; display: flex; flex-direction: column; gap: 28px; }
.so-split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 32px; align-items: start; }
.so-split--faq { gap: 48px; }
.so-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.so-split--faq .so-col { gap: 14px; }
.so-warn {
  display: flex; gap: 14px; padding: 18px 20px; border-radius: 20px; align-items: flex-start;
  background: var(--r-red-line); color: var(--r-red);
}
.so-warn svg { flex: none; }
.so-warn span { font-size: 14px; line-height: 1.5; font-weight: 700; }
.so-nets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.so-net { padding: 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.so-net b { font-size: 20px; font-weight: 800; color: var(--r-link); }
.so-net span { font-size: 14px; font-weight: 700; }
.so-net small { font-size: 12px; color: var(--r-muted); }

.so-sec--need { gap: 22px; }
.so-need { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.so-need-it { padding: 24px; display: flex; gap: 16px; align-items: flex-start; min-width: 0; }
.so-need-ic {
  width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--so-green-tint); color: var(--r-green);
  display: flex; align-items: center; justify-content: center;
}
.so-need-txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.so-need-txt b { font-size: 17px; font-weight: 800; }
.so-need-txt span { font-size: 14px; color: var(--r-muted); line-height: 1.5; }

/* Вопросы — раскрывающиеся строки (<details>): первая открыта, как в макете. */
.so-faq { display: flex; flex-direction: column; border-bottom: 1px solid var(--r-line-2); min-width: 0; }
.so-faq details { border-top: 1px solid var(--r-line-2); padding: 20px 0; }
.so-faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 800; color: var(--r-text);
}
.so-faq summary::-webkit-details-marker { display: none; }
.so-faq summary::marker { content: ''; }
.so-faq-ic {
  position: relative; width: 34px; height: 34px; flex: none; border-radius: 999px;
  background: var(--r-fill-3); color: var(--r-text-2); display: flex; align-items: center; justify-content: center;
  transition: background .16s ease;
}
.so-faq-ic .so-v { transition: opacity .16s ease; }
.so-faq details[open] .so-faq-ic { background: var(--r-brand); color: #FFFFFF; }
.so-faq details[open] .so-faq-ic .so-v { opacity: 0; }
.so-faq summary:hover .so-faq-ic { background: var(--r-hover); }
.so-faq details[open] summary:hover .so-faq-ic { background: var(--r-brand-2); }
.so-faq p { margin: 10px 0 0; font-size: 15px; color: var(--r-muted); line-height: 1.6; max-width: 760px; }

@media (prefers-reduced-motion: reduce) {
  .so-st, .so-bar span, .so-s4, .so-t4, .so-a0, .so-a1, .so-pop, .so-ok4, .so-hl { animation: none; }
  .so-s4--home { opacity: 1; }
  .so-a0 { opacity: 0; }
  .so-a1 { opacity: 1; }
  .so-st:first-child { background: var(--r-brand-tint); border-color: var(--r-brand-2); }
}

/* ══ Страницы без своего макета ═════════════════════════════════════════
 * Первый экран — общий .r-hero (как PgTerms/PgCard), текст — карточкой
 * .so-body со стилем .r-prose, вопросы — как на /how-it-works/, внизу —
 * плитки «Читать дальше».
 */
.so-art img { width: 260px; height: 260px; }
.so-body-sec { padding-top: 40px; }
.so-body { padding: 44px 56px; }
.so-body .r-prose { max-width: 760px; }
/* Текст + оглавление справа (липкое при прокрутке). */
.so-body--toc { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; overflow: visible; }
.so-toc {
  position: sticky; top: calc(var(--r-hdr-h) + 16px); display: flex; flex-direction: column; gap: 2px;
  padding: 20px; border-radius: 24px; background: var(--r-fill-2); border: 1px solid var(--r-line);
}
.so-toc .r-k { margin: 0 0 10px; padding: 0 10px; }
.so-toc a {
  padding: 9px 10px; border-radius: 12px; font-size: 14px; font-weight: 700; line-height: 1.35;
  color: var(--r-text-2); text-decoration: none;
}
.so-toc a:hover { background: var(--r-hover); color: var(--r-text); }
.so-body .r-prose h2[id] { scroll-margin-top: calc(var(--r-hdr-h) + 16px); }
.so-body .r-prose > :first-child { margin-top: 0; }
.so-body .r-prose > :last-child { margin-bottom: 0; }
.so-body .r-prose h2 { margin-top: 40px; }
.so-body .r-prose h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; color: var(--r-text); }
.so-body .co-warn {
  display: block; margin: 0 0 14px; padding: 18px 20px 18px 56px; border-radius: 20px; border: 0;
  background: var(--r-red-line); color: var(--r-red); font-size: 14px; font-weight: 700; line-height: 1.5; position: relative;
}
.so-body .co-warn::before {
  content: ''; position: absolute; inset-inline-start: 20px; top: 18px; width: 22px; height: 22px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 2 20h20z'/%3E%3Cpath d='M12 10v4M12 17h.01'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 2 20h20z'/%3E%3Cpath d='M12 10v4M12 17h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}
[dir="rtl"] .so-body .co-warn { padding: 18px 56px 18px 20px; }
/* Светлая тема: красный макета (#FF8A8E на розовом) в длинном абзаце не читается
   (контраст ~2:1) — здесь он темнее. На /how-it-works/ плашка короткая и 1 в 1. */
:root[data-theme="light"] .so-body .co-warn { color: #B42318; }
.so-body .co-warn b, .so-body .co-warn a { color: inherit; }
.so-body .co-list { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 10px; }
.so-body .co-list li { position: relative; padding-inline-start: 34px; }
.so-body .co-list li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 2px; width: 22px; height: 22px; border-radius: 8px;
  background: var(--so-green-tint);
}
.so-body .co-list li::after {
  content: ''; position: absolute; inset-inline-start: 7px; top: 7px; width: 8px; height: 5px;
  border-left: 2px solid var(--r-green); border-bottom: 2px solid var(--r-green); transform: rotate(-45deg);
}
/* Карточки цен (card-prices) и таблицы ставок (cashback, paypal, iban-sepa). */
.so-body .sx-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 14px; }
.so-body .sx-card {
  padding: 20px; border-radius: 24px; background: var(--r-surface-3); border: 1px solid var(--r-line);
  display: flex; flex-direction: column; gap: 6px; min-width: 0;
}
.so-body .sx-card h3 { margin: 0; color: var(--r-link); font-size: 20px; }
.so-body .sx-card p { margin: 0; font-size: 14px; color: var(--r-muted); line-height: 1.5; }
.so-body .sx-card .so-price { font-size: 26px; font-weight: 800; color: var(--r-text); letter-spacing: -0.02em; line-height: 1.2; }
.so-body .price-wrap { margin: 0 0 14px; overflow-x: auto; border-radius: 20px; border: 1px solid var(--r-line); background: var(--r-surface-3); }
.so-body .price-tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.so-body .price-tbl th, .so-body .price-tbl td { padding: 14px 18px; text-align: start; border-top: 1px solid var(--r-line); border-bottom: 0; white-space: normal; }
.so-body .price-tbl thead th {
  border-top: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--r-faint);
}
.so-body .price-tbl tbody th { font-weight: 700; color: var(--r-text); }
.so-body .price-tbl td { font-weight: 800; color: var(--r-text); font-variant-numeric: tabular-nums; }

/* Вопросы на страницах без макета: тот же вид, что на /how-it-works/. */
.so-faq-sec { padding-top: 56px; }

/* Плашка «открыть приложение» внутри страницы (paypal, iban-sepa, cashback, card-prices). */
.so-open {
  margin-top: 40px; padding: 28px 32px; border-radius: 24px; background: var(--r-brand-tint); border: 1px solid var(--r-line);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.so-open-txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
/* Кнопка внутри .r-prose: у ссылок прозы цвет и подчёркивание — здесь не нужны. */
.so-body .so-open .r-btn { color: #FFFFFF; text-decoration: none; }
.so-body .so-open .so-open-h { margin: 0; color: var(--r-text); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.so-open-txt p { margin: 0; font-size: 15px; color: var(--r-muted); }

/* «Читать дальше» — плитки. */
.so-next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.so-next a {
  padding: 24px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--r-text);
  transition: border-color .16s ease, transform .16s ease; min-width: 0;
}
.so-next a:hover { border-color: var(--r-brand-2); transform: translateY(-2px); }
.so-next b { font-size: 18px; font-weight: 800; line-height: 1.3; }
.so-next span { font-size: 14px; color: var(--r-muted); line-height: 1.5; }
.so-next a::after {
  content: ''; width: 18px; height: 18px; margin-top: auto; padding-top: 4px; background: var(--r-link); align-self: flex-start;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") bottom / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") bottom / contain no-repeat;
}
[dir="rtl"] .so-next a::after { transform: scaleX(-1); }

/* ══ Планшет и телефон ═══════════════════════════════════════════════════ */
@media (max-width: 1023px) {
  .so-next { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .so-body--toc { display: block; }
  .so-toc { display: none; }
}
@media (max-width: 899px) {
  .so-hero { grid-template-columns: 1fr; padding: 32px 28px; gap: 28px; }
  .so-plane img { width: 180px; height: 180px; }
  .so-demo { padding: 28px; gap: 28px; }
  .so-split, .so-split--faq { grid-template-columns: 1fr; gap: 24px; }
  .so-need { grid-template-columns: 1fr; gap: 12px; }
  .so-body { padding: 32px 28px; }
  .so-body .sx-cards { grid-template-columns: 1fr; }
}
@media (max-width: 719px) {
  .so-hero { padding: 26px 20px; gap: 22px; }
  .so-hero .r-lead { font-size: 16px; }
  .so-hero .r-btns .r-btn { flex: 1; }
  .so-plane { padding-top: 0; margin-top: -6px; }
  .so-plane img { width: 150px; height: 150px; }
  .so-step { grid-template-columns: 44px 1fr; gap: 4px 14px; padding: 14px; border-radius: 18px; }
  .so-step-n { width: 44px; height: 44px; border-radius: 14px; font-size: 18px; grid-row: span 2; align-self: start; }
  .so-step-t { font-size: 16px; }
  .so-step-d { font-size: 13px; }
  .so-step-time { grid-column: 2; justify-self: start; margin-top: 4px; }
  .so-sec-demo { padding-top: 24px; }
  .so-demo { padding: 24px 20px; gap: 24px; }
  .so-st-t { font-size: 16px; }
  .so-sec { padding-top: 40px; gap: 22px; }
  .so-nets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .so-net { padding: 16px; }
  .so-net b { font-size: 18px; }
  .so-need-it { padding: 20px; }
  .so-faq summary { font-size: 16px; }
  .so-faq p { font-size: 14px; }
  .so-body-sec { padding-top: 24px; }
  .so-body { padding: 26px 20px; }
  .so-body .r-prose { font-size: 15px; }
  .so-body .r-prose h2 { font-size: 22px; margin-top: 32px; }
  .so-body .price-tbl th, .so-body .price-tbl td { padding: 12px 14px; font-size: 14px; }
  .so-open { padding: 22px 20px; margin-top: 32px; }
  .so-open .r-btn { width: 100%; }
  .so-faq-sec { padding-top: 40px; }
  .so-next { grid-template-columns: 1fr; gap: 12px; }
  .so-next a { padding: 20px; }
  .so-art img { width: 168px; height: 168px; }
}
/* Узкий телефон: телефон-картинка уменьшается целиком, чтобы влезть в 320. */
@media (max-width: 379px) {
  .so-phone { width: 263px; height: 541px; }
  .so-ph { transform: scale(0.676); }
  .so-demo { padding: 22px 14px; }
  .so-st { padding: 12px; gap: 12px; }
  .so-bar { display: none; }
}
@media (max-width: 359px) {
  .so-hero { padding: 22px 16px; }
  .so-step { padding: 12px; gap: 4px 12px; }
  .so-step-n { width: 40px; height: 40px; }
  .so-step-t { font-size: 15px; }
  .so-nets { gap: 8px; }
  .so-net { padding: 14px; }
  .so-body { padding: 22px 16px; }
}

/* RTL: самолётик в кнопках смотрит по ходу письма (как в шапке). */
[dir="rtl"] .r-hero .r-btn svg, [dir="rtl"] .so-hero .r-btn svg, [dir="rtl"] .so-open .r-btn svg { transform: scaleX(-1); }
