/* Orris VPN — касса (pay.html и все её языковые копии) и payment_successful.html.
   Дизайн нового лендинга /v2/ («Couture Glass»): обсидиан, платина, зелёный — только
   для успеха и «подключено». Разметку и id, на которые завязана логика оплаты,
   этот файл не меняет — только вид. */
:root {
  --ink: #050507;
  --ink-2: #0b0c10;
  --ink-3: #14151b;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f3f3f5;
  --mute: #9c9da6;
  --mute-2: #6d6e77;
  --green: #30d158;
  --green-soft: rgba(48, 209, 88, .14);
  --red: #ff6b6b;
  --red-soft: rgba(255, 107, 107, .12);
  --amber: #ffc861;
  --amber-soft: rgba(255, 200, 97, .12);
  --silver: linear-gradient(180deg, #ffffff 0%, #d9dae0 45%, #8f909a 100%);
  --glass: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --isl-top: max(10px, calc(env(safe-area-inset-top) + 6px));
  --isl-h: 56px;
  /* старые имена переменных: их ещё читают инлайновые стили из скрипта кассы */
  --white: #f3f3f5; --white-80: rgba(243,243,245,.8); --white-60: rgba(243,243,245,.6);
  --white-40: rgba(243,243,245,.42); --white-20: rgba(243,243,245,.2); --white-10: rgba(243,243,245,.1);
  --white-05: rgba(243,243,245,.05); --purple: #c9cad2; --bg-3: #14151b; --bg-4: #1a1b22;
  --green-bg: var(--green-soft); --green-border: rgba(48,209,88,.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  background: var(--ink);
  color: var(--text);
  font: 400 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
}
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(55% 40% at 80% 0%, rgba(255,255,255,.06), transparent 70%),
    radial-gradient(40% 30% at 10% 100%, rgba(48,209,88,.05), transparent 70%); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 8px; }
.ms { font-family: "Material Symbols Rounded"; font-weight: 400; font-style: normal; font-size: 22px;
  line-height: 1; display: inline-block; white-space: nowrap; letter-spacing: normal; text-transform: none;
  font-variation-settings: "FILL" 0, "wght" 400, "opsz" 24; -webkit-font-smoothing: antialiased;
  overflow: hidden; width: 1em; flex: none; }
.ms.fill { font-variation-settings: "FILL" 1, "wght" 400, "opsz" 24; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- кнопки (как на лендинге) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px;
  padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 600; font-size: 15.5px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; text-align: center; line-height: 1.25; }
.btn:active { transform: scale(.97); }
.btn-primary { background: #fff; color: #050507;
  box-shadow: 0 0 0 1px rgba(255,255,255,.5) inset, 0 10px 40px -10px rgba(255,255,255,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #fff inset, 0 16px 50px -10px rgba(255,255,255,.5); }
.btn-ghost { background: rgba(255,255,255,.04); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn .ms { font-size: 20px; }

/* ---------- капсула сверху ---------- */
.isl-wrap { position: fixed; inset: 0 0 auto; z-index: 70; pointer-events: none;
  padding: var(--isl-top) max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left)); }
.isl-wrap::before { content: ""; position: absolute; inset: 0 0 auto; height: env(safe-area-inset-top); background: var(--ink); }
.isl { pointer-events: auto; position: relative; margin: 0 auto; width: 100%; max-width: 980px; border-radius: 30px;
  background: rgba(12, 13, 17, .62); border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: 0 18px 50px -18px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.08);
  transition: max-width .5s var(--ease), background .35s; }
.isl.scrolled { background: rgba(10, 11, 14, .84); max-width: 900px; }
.isl-bar { display: flex; align-items: center; gap: 14px; height: var(--isl-h); padding: 0 8px 0 18px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700;
  letter-spacing: -.04em; font-size: 18px; flex: none; }
.logo img { width: 26px; height: 26px; object-fit: contain; }
.logo span { white-space: nowrap; }
.isl-secure { display: inline-flex; align-items: center; gap: 6px; margin: 0 auto; font-size: 13.5px; color: var(--mute); white-space: nowrap; min-width: 0; }
.isl-secure .ms { font-size: 17px; color: var(--green); }
.isl-secure span:last-child { overflow: hidden; text-overflow: ellipsis; }
.isl-loc { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 13px 0 10px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--mute); font-size: 13.5px; font-weight: 500; cursor: pointer; flex: none;
  transition: color .2s, background .2s, border-color .2s, transform .2s var(--ease); }
.isl-loc .ms { font-size: 18px; }
.isl-loc:hover { color: var(--text); background: rgba(255,255,255,.05); border-color: var(--line-2); }
.isl-loc:active { transform: scale(.96); }
.isl-help { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.06); cursor: pointer;
  display: grid; place-items: center; flex: none; transition: background .2s, transform .2s var(--ease); }
.isl-help:hover { background: rgba(255,255,255,.1); }
.isl-help:active { transform: scale(.94); }
.isl-help .ms { font-size: 20px; }

/* ---------- страница ---------- */
.pay-container { position: relative; z-index: 1; width: 100%; max-width: 1080px; margin: 0 auto;
  padding: calc(var(--isl-top) + var(--isl-h) + 36px) max(24px, env(safe-area-inset-right)) 40px max(24px, env(safe-area-inset-left)); }
.pay-header { text-align: center; margin: 0 auto 26px; max-width: 640px; }
.pay-logo { display: none; }
.pay-title { font-family: var(--display); font-weight: 600; letter-spacing: -.035em; line-height: 1.08;
  font-size: clamp(26px, 3.4vw, 40px); overflow-wrap: break-word;
  background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pay-subtitle { color: var(--mute); margin-top: 10px; font-size: 16px; }

/* шаги: выбор → оплата → готово */
.steps-bar { display: flex; align-items: flex-start; justify-content: center; gap: 0; margin: 0 auto 30px; max-width: 460px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; width: 112px; }
.step-lbl { font-size: 12.5px; color: var(--mute-2); text-align: center; line-height: 1.25; transition: color .3s; overflow-wrap: anywhere; }
.step-dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,.04); border: 1px solid var(--line-2); color: var(--mute);
  transition: background .35s var(--ease), color .35s, border-color .35s, transform .35s var(--ease), box-shadow .35s; font-variant-numeric: tabular-nums; }
.step-dot.active { background: #fff; color: #050507; border-color: #fff; transform: scale(1.06); box-shadow: 0 0 0 6px rgba(255,255,255,.07); }
#stepDot3.active { background: var(--green); border-color: var(--green); color: #04150a; box-shadow: 0 0 0 6px rgba(48,209,88,.14); }
.step-dot.done { background: var(--green); border-color: var(--green); color: #04150a; font-size: 0; }
.step-dot.done::before { content: "check"; font-family: "Material Symbols Rounded"; font-size: 19px; font-weight: 600; }
.step:has(.step-dot.active) .step-lbl, .step:has(.step-dot.done) .step-lbl { color: var(--text); }
.step-line { flex: 1; height: 2px; margin-top: 16px; border-radius: 2px; background: var(--line-2); position: relative; overflow: hidden; min-width: 20px; }
.step-line::after { content: ""; position: absolute; inset: 0; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.step-line.active::after { transform: scaleX(1); }

/* секции: шаг 1 — две колонки на широком экране */
.pay-section { display: none; }
.pay-section.active { display: block; animation: secIn .5s var(--ease) both; }
@keyframes secIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
#step1.active { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 22px; align-items: start; }
.pay-main { min-width: 0; }
.pay-aside { position: sticky; top: calc(var(--isl-top) + var(--isl-h) + 18px); min-width: 0; }
#step2, #step3, #stepError { max-width: 560px; margin: 0 auto; }

/* ---------- стеклянные карточки ---------- */
.pay-card { position: relative; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; margin-bottom: 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.pay-card-title { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-family: var(--display);
  font-weight: 600; font-size: 17px; letter-spacing: -.02em; color: var(--text); }
.pay-card-title .ms { font-size: 20px; color: var(--mute); }

/* заказ по ссылке: что оплачиваем */
.order-info { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r-md);
  background: rgba(255,255,255,.04); border: 1px solid var(--line); margin-bottom: 18px; }
.order-info-icon { width: 48px; height: 48px; border-radius: 15px; flex: none; display: grid; place-items: center;
  background: rgba(255,255,255,.06); }
.order-info-icon .ms { font-size: 24px; }
.order-info-details { flex: 1; min-width: 0; }
.order-info-plan { font-weight: 600; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.order-info-meta { font-size: 13px; color: var(--mute-2); margin-top: 3px; font-variant-numeric: tabular-nums; }
.order-info-price { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -.03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pay-note { font-size: 13.5px; line-height: 1.45; color: var(--amber); background: var(--amber-soft); border: 1px solid rgba(255,200,97,.18);
  border-radius: var(--r-sm); padding: 10px 14px; margin: 0 0 18px; text-align: left; animation: secIn .4s var(--ease) both; }
#planNote.pay-note { margin: 14px 0 0; }

/* полки устройств — сегменты */
.seg-tabs { display: flex; gap: 4px; padding: 4px; margin: 0 0 14px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.seg-tabs button { flex: 1 1 0; min-width: 0; border: 0; border-radius: 12px; padding: 10px 10px; background: transparent; color: var(--mute);
  font-weight: 600; font-size: 14.5px; cursor: pointer; line-height: 1.25; transition: background .25s var(--ease), color .25s, transform .2s var(--ease); }
.seg-tabs button:hover { color: var(--text); }
.seg-tabs button:active { transform: scale(.97); }
.seg-tabs button.on { background: #fff; color: #050507; }

/* тарифы */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.plan-item { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  padding: 18px 16px 16px; border-radius: var(--r-md); background: rgba(255,255,255,.03); border: 1px solid var(--line);
  cursor: pointer; overflow: hidden; min-width: 0;
  transition: border-color .25s, background .25s, transform .25s var(--ease), box-shadow .25s; }
.plan-item:hover { border-color: var(--line-2); background: rgba(255,255,255,.05); transform: translateY(-2px); }
.plan-item:active { transform: scale(.98); }
.plan-item.selected { border-color: rgba(255,255,255,.55); background: linear-gradient(170deg, rgba(255,255,255,.1), rgba(255,255,255,.025) 70%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset, 0 18px 40px -22px rgba(255,255,255,.35); }
.plan-item::before { content: "check"; position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%;
  font-family: "Material Symbols Rounded"; font-size: 15px; font-weight: 600; line-height: 22px; text-align: center;
  background: #fff; color: #050507; transform: scale(0); transition: transform .35s var(--ease); }
.plan-item.selected::before { transform: scale(1); }
.plan-item.popular::after { content: var(--hit, ""); position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.1); color: var(--text); letter-spacing: .02em;
  transition: opacity .25s, transform .25s var(--ease); }
.plan-item.popular.selected::after { opacity: 0; transform: translateY(-4px); }
.plan-duration { font-size: 14px; color: var(--mute); font-weight: 500; order: 0; padding-right: 26px; overflow-wrap: anywhere; }
.plan-price { order: 1; font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: -.04em; line-height: 1.15;
  margin-top: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan-price sup { font-size: .55em; vertical-align: .35em; margin: 0 1px; letter-spacing: 0; }
.plan-item > div[style*="line-through"] { order: 2; font-size: 13px !important; color: var(--mute-2) !important; margin: 2px 0 0 !important; }
.plan-per { order: 3; font-size: 13px; color: var(--mute); margin-top: 4px; line-height: 1.3; }
.plan-save { order: 4; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--green); background: var(--green-soft);
  padding: 3px 9px; border-radius: 999px; }

/* скелетоны */
.skel { display: block; border-radius: 10px; background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.04) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.skel-tile { height: 128px; border-radius: var(--r-md); }
.skel-line { height: 14px; margin: 8px 0; }
.skel-line.w60 { width: 60%; } .skel-line.w40 { width: 40%; } .skel-line.w80 { width: 80%; }
.skel-big { height: 40px; width: 55%; margin: 12px 0 6px; border-radius: 12px; }
.skeleton { background-image: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.04) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: 8px; }
#paySkel { display: none; }
body.pay-loading #paySkel { display: block; }
body.pay-loading .pay-sum-body { display: none; }
body:not(.pay-loading) .pay-sum-skel { display: none; }

/* страна */
.pay-country-field { margin-bottom: 18px; }
.pay-country-field > label { display: block; font-size: 13px; font-weight: 500; color: var(--mute); margin-bottom: 8px; }
.country-select { position: relative; }
.country-select-btn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 0 16px; border-radius: 16px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line-2); cursor: pointer; font-size: 15.5px; font-weight: 500;
  transition: border-color .2s, background .2s; }
.country-select-btn:hover { background: rgba(255,255,255,.07); }
.country-select.open .country-select-btn { border-color: rgba(255,255,255,.4); }
.country-select-btn > span { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.country-caret { color: var(--mute); flex: none; transition: transform .3s var(--ease); }
.country-select.open .country-caret { transform: rotate(180deg); }
.country-flag { width: 24px; height: 24px; object-fit: cover; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
.country-dropdown { position: absolute; z-index: 50; top: calc(100% + 8px); left: 0; right: 0; max-height: 320px; overflow-y: auto;
  overscroll-behavior: contain; background: #0d0e12; border: 1px solid var(--line-2); border-radius: 20px; padding: 6px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.9); animation: ddIn .25s var(--ease) both; }
@keyframes ddIn { from { opacity: 0; transform: translateY(-6px) scale(.985); } }
.country-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 12px;
  background: transparent; color: var(--text); font-size: 15px; cursor: pointer; text-align: left; transition: background .15s; }
.country-opt:hover { background: rgba(255,255,255,.06); }
.country-opt.active { background: rgba(255,255,255,.09); }
.country-opt > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.country-search-wrap { position: sticky; top: -6px; z-index: 2; background: #0d0e12; padding: 2px 2px 8px; margin: -2px -2px 4px; }
.country-search { width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; background: rgba(255,255,255,.05);
  border: 1px solid var(--line-2); font-size: 15px; }
.country-search::placeholder { color: var(--mute-2); }
.country-search:focus { outline: none; border-color: rgba(255,255,255,.4); }
.country-empty { padding: 16px 12px; text-align: center; color: var(--mute); font-size: 14px; }

/* Apple Pay / Google Pay */
.express-pay-wrap { margin-bottom: 18px; }
#paymentRequestButton { min-height: 48px; }
.express-divider { display: flex; align-items: center; gap: 12px; margin: 16px 2px 2px; color: var(--mute-2); font-size: 13px; }
.express-divider::before, .express-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* способ оплаты: карта / крипта */
.method-tabs { position: relative; display: flex; gap: 4px; padding: 4px; margin-bottom: 16px; border-radius: 16px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.method-tab { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 10px;
  border-radius: 12px; color: var(--mute); font-weight: 600; font-size: 14.5px; cursor: pointer; text-align: center; line-height: 1.2;
  transition: background .3s var(--ease), color .25s, transform .2s var(--ease); }
.method-tab:hover { color: var(--text); }
.method-tab:active { transform: scale(.97); }
.method-tab.active { background: #fff; color: #050507; }
.method-tab .ms { font-size: 19px; }
#fiatMethodSection, #cryptoMethodSection { animation: secIn .35s var(--ease) both; }

.fiat-methods { display: grid; gap: 8px; }
.fiat-item, .crypto-item, .network-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 44px 13px 14px;
  border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid var(--line); cursor: pointer; min-width: 0;
  transition: border-color .2s, background .2s, transform .2s var(--ease), box-shadow .25s; }
.fiat-item:hover, .crypto-item:hover, .network-item:hover { border-color: var(--line-2); background: rgba(255,255,255,.05); }
.fiat-item:active, .crypto-item:active, .network-item:active { transform: scale(.985); }
.fiat-item::after, .crypto-item::after, .network-item::after { content: ""; position: absolute; right: 14px; top: 50%; width: 20px; height: 20px;
  margin-top: -10px; border-radius: 50%; border: 1.5px solid var(--line-2); transition: border-color .2s, background .2s, box-shadow .25s; }
.fiat-item.selected, .crypto-item.selected, .network-item.selected { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.07);
  box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset; }
.fiat-item.selected::after, .crypto-item.selected::after, .network-item.selected::after { border-color: #fff; background: #fff;
  box-shadow: inset 0 0 0 5px #050507; animation: radioPop .35s var(--ease); }
@keyframes radioPop { 0% { transform: scale(.6); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.fiat-item.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.fiat-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: #fff; padding: 5px; }
.fiat-icon img { width: 30px !important; height: 30px !important; object-fit: contain; }
.fiat-label { font-weight: 600; font-size: 15px; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
.fiat-label small { display: block; font-weight: 400; font-size: 13px; color: var(--mute); margin-top: 1px; }
.fiat-badge { margin-left: auto; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.fiat-badge.soon { background: rgba(255,255,255,.08); color: var(--mute); }
.fiat-item:has(.fiat-badge) { padding-right: 14px; }
.fiat-item:has(.fiat-badge)::after { display: none; }

.crypto-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.crypto-icon-wrap { position: relative; width: 36px; height: 36px; flex: none; }
.crypto-icon-wrap .coin { width: 36px; height: 36px; border-radius: 50%; object-fit: contain; }
.crypto-icon-wrap .net-badge { position: absolute; bottom: -2px; right: -4px; width: 17px; height: 17px; border-radius: 50%;
  border: 2px solid #121318; background: #121318; object-fit: contain; }
.crypto-label { font-weight: 600; font-size: 14.5px; line-height: 1.25; min-width: 0; overflow-wrap: anywhere; }
.crypto-label small { display: block; font-weight: 400; font-size: 12.5px; color: var(--mute); margin-top: 1px; }
.crypto-more-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 44px; margin-top: 8px;
  border-radius: 999px; border: 1px dashed var(--line-2); background: transparent; color: var(--mute); font-weight: 500; font-size: 14px;
  cursor: pointer; transition: color .2s, background .2s, border-color .2s; }
.crypto-more-btn:hover { color: var(--text); background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.25); }
.network-picker { margin-top: 10px; animation: secIn .3s var(--ease) both; }
.network-picker-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.network-back-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px 0 10px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--mute); font-size: 14px; font-weight: 500; cursor: pointer; transition: color .2s, background .2s; }
.network-back-btn:hover { color: var(--text); background: rgba(255,255,255,.05); }
.network-back-btn svg { width: 16px; height: 16px; }
.network-coin-info { display: flex; align-items: center; gap: 8px; margin-left: auto; font-weight: 600; }
.network-coin-info img { width: 26px; height: 26px; border-radius: 50%; }
.network-picker-title { font-size: 13px; color: var(--mute); margin-bottom: 10px; }
.network-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.network-item { font-weight: 600; font-size: 14.5px; }
.network-item img { width: 24px; height: 24px; border-radius: 50%; }
.network-item small { font-size: 12px; color: var(--mute); margin-left: auto; }

/* промокод */
.promo-field { display: flex; gap: 8px; margin-top: 18px; }
.promo-input { flex: 1; min-width: 0; height: 50px; padding: 0 16px; border-radius: 999px; background: rgba(255,255,255,.04);
  border: 1px solid var(--line-2); font-size: 15px; letter-spacing: .05em; text-transform: uppercase; transition: border-color .2s, background .2s; }
.promo-input::placeholder { letter-spacing: 0; text-transform: none; color: var(--mute-2); }
.promo-input:focus { outline: none; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.06); }
.promo-field.err .promo-input { border-color: rgba(255,107,107,.6); }
.promo-field.ok .promo-input { border-color: rgba(48,209,88,.6); }
.promo-apply { flex: none; height: 50px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.06);
  font-weight: 600; font-size: 15px; cursor: pointer; transition: background .2s, transform .2s var(--ease); }
.promo-apply:hover { background: rgba(255,255,255,.1); }
.promo-apply:active { transform: scale(.96); }
.promo-msg { display: flex; align-items: flex-start; gap: 6px; min-height: 20px; margin-top: 8px; padding: 0 6px; font-size: 13.5px; color: var(--mute); line-height: 1.4; }
.promo-msg:empty { min-height: 0; margin-top: 0; }
.promo-msg.ok { color: var(--green); }
.promo-msg.err { color: var(--red); }
.promo-msg.ok::before, .promo-msg.err::before { font-family: "Material Symbols Rounded"; font-size: 18px; line-height: 1; flex: none; }
.promo-msg.ok::before { content: "check_circle"; }
.promo-msg.err::before { content: "error"; }
.shake { animation: shake .45s var(--ease); }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.pop { animation: pop .45s var(--ease); }
@keyframes pop { 0% { transform: scale(.96); opacity: .4; } 100% { transform: none; opacity: 1; } }

/* ---------- итог к оплате ---------- */
.pay-summary { padding: 24px; }
.pay-sum-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pay-sum-title { font-size: 14px; color: var(--mute); font-weight: 500; }
.pay-sum-id { font-size: 12.5px; color: var(--mute-2); font-variant-numeric: tabular-nums; }
.pay-sum-plan { font-weight: 600; font-size: 16px; margin-top: 4px; line-height: 1.3; overflow-wrap: anywhere; min-height: 21px; }
.pay-sum-total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 14px 0 4px; }
.pay-sum-amount { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 4vw, 42px); letter-spacing: -.045em; line-height: 1.05;
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.pay-sum-old { color: var(--mute-2); font-size: 16px; text-decoration: line-through; white-space: nowrap; }
.pay-sum-rows { display: grid; gap: 0; margin: 14px 0 6px; border-top: 1px solid var(--line); }
.pay-sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line);
  font-size: 14px; color: var(--mute); animation: rowIn .45s var(--ease) both; }
.pay-sum-row b { color: var(--text); font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pay-sum-row.minus b { color: var(--green); }
.pay-sum-row span { min-width: 0; overflow-wrap: anywhere; }
@keyframes rowIn { from { opacity: 0; transform: translateY(-4px); } }
.pay-sum-rows:empty { display: none; }
.pay-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; margin-top: 16px;
  padding: 12px 24px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 600; font-size: 16px; line-height: 1.25; text-align: center;
  background: #fff; color: #050507; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.5) inset, 0 10px 40px -10px rgba(255,255,255,.35);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), opacity .2s; }
.pay-btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #fff inset, 0 16px 50px -10px rgba(255,255,255,.5); }
.pay-btn:active { transform: scale(.98); }
.pay-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.pay-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(0,0,0,.07) 50%, transparent 65%);
  transform: translateX(-100%); transition: transform .9s var(--ease); pointer-events: none; }
.pay-btn:hover::after { transform: translateX(100%); }
.pay-btn .spinner, .spinner { display: inline-block; width: 18px; height: 18px; border: 2.5px solid rgba(0,0,0,.15); border-top-color: #050507;
  border-radius: 50%; animation: spin .7s linear infinite; vertical-align: middle; margin-right: 4px; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.pay-trust { display: grid; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--mute-2); }
.pay-trust div { display: flex; align-items: center; gap: 8px; }
.pay-trust .ms { font-size: 17px; color: var(--mute); }

/* оплата сейчас недоступна (JS вставляет блок) */
#payUnavailable { margin: 0 0 16px; padding: 18px; border-radius: var(--r-md); background: var(--amber-soft); border: 1px solid rgba(255,200,97,.2);
  text-align: left; line-height: 1.5; }

/* ---------- шаг 2: счёт ---------- */
.invoice { display: none; }
.invoice.active { display: block; }
.invoice-header { text-align: center; margin-bottom: 18px; }
.invoice-plan { font-size: 14px; color: var(--mute); }
.invoice-amount-big { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 7vw, 44px); letter-spacing: -.045em; line-height: 1.1;
  margin-top: 6px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.invoice-currency { font-size: 15px; color: var(--mute); font-weight: 500; margin-top: 2px; }
.wait-track { display: flex; align-items: flex-start; margin: 18px 0 20px; }
.wait-step { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; position: relative;
  font-size: 12.5px; color: var(--mute-2); line-height: 1.3; }
.wait-step + .wait-step::before { content: ""; position: absolute; top: 13px; right: calc(50% + 18px); left: calc(-50% + 18px); height: 2px;
  border-radius: 2px; background: var(--line-2); }
.wait-step.done + .wait-step::before { background: var(--green); }
.wait-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid var(--line-2); position: relative; }
.wait-ic .ms { font-size: 16px; }
.wait-step.done { color: var(--text); }
.wait-step.done .wait-ic { background: var(--green); border-color: var(--green); color: #04150a; }
.wait-step.now { color: var(--text); }
.wait-step.now .wait-ic { background: #fff; color: #050507; border-color: #fff; }
.wait-step.now .wait-ic::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
.invoice-details { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: var(--r-md); padding: 6px 16px; margin-bottom: 18px; }
.invoice-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.invoice-row:last-child { border-bottom: 0; }
.invoice-row-label { font-size: 14px; color: var(--mute); }
.invoice-row-value { font-size: 14.5px; font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.address-section { text-align: center; margin: 18px 0 8px; }
.address-label { font-size: 14px; color: var(--mute); margin-bottom: 14px; line-height: 1.45; }
.qr-wrap { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: 16px; background: #fff; border-radius: 22px;
  min-width: 212px; min-height: 212px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.9), 0 0 0 6px rgba(255,255,255,.05); overflow: hidden;
  animation: qrIn .6s var(--ease) both; }
@keyframes qrIn { from { opacity: 0; transform: scale(.94); } }
.qr-wrap::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40%; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(48,209,88,.16), transparent); animation: scan 2.8s var(--ease) infinite; }
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(250%); } }
.qr-wrap canvas, .qr-wrap img { display: block; width: 180px !important; height: 180px !important; margin: 0 auto; }
.qr-toggle-wrap { text-align: center; margin: 14px 0; }
.qr-toggle-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--mute); font-size: 13.5px; cursor: pointer; transition: color .2s, background .2s; }
.qr-toggle-btn:hover, .qr-toggle-btn.active { color: var(--text); background: rgba(255,255,255,.06); }
.qr-toggle-btn svg { width: 15px; height: 15px; flex: none; }
.address-box { padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 13.5px; line-height: 1.5; color: var(--text); word-break: break-all; cursor: pointer; transition: background .2s, border-color .2s; }
.address-box:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.3); }
.copy-btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.copy-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.04); font-weight: 500; font-size: 14px; cursor: pointer; line-height: 1.25; text-align: center;
  transition: background .2s, transform .2s var(--ease); }
.copy-btn:hover { background: rgba(255,255,255,.08); }
.copy-btn:active { transform: scale(.97); }
.copy-btn svg { width: 16px; height: 16px; flex: none; }
.timer-bar { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; margin-top: 16px; border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: 14px; color: var(--mute); text-align: center; flex-wrap: wrap; }
.timer-icon { color: var(--mute); flex: none; }
.timer-text strong { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.timer-text a { color: var(--text) !important; }
.timer-bar.warning { background: var(--amber-soft); border-color: rgba(255,200,97,.25); color: var(--amber); }
.timer-bar.expired { background: var(--red-soft); border-color: rgba(255,107,107,.25); color: var(--red); }
.status-checking { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 6px 0; font-size: 13.5px; color: var(--mute); text-align: center; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); position: relative; flex: none; }
.status-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--green); animation: ping 2.2s var(--ease) infinite; }
.wait-hint { font-size: 13px; color: var(--mute-2); text-align: center; margin-top: 8px; line-height: 1.45; }
.sbp-actions { display: grid; gap: 8px; margin-top: 16px; }
.sbp-actions .pay-btn { margin-top: 0; }
.back-btn { width: 100%; margin-top: 4px; }

/* ---------- шаг 3: успех ---------- */
.success-card { text-align: center; padding: 44px 28px 36px; border-radius: var(--r-lg); position: relative; overflow: hidden;
  background: radial-gradient(70% 60% at 50% 0%, rgba(48,209,88,.14), transparent 70%), var(--glass); border: 1px solid rgba(48,209,88,.25); }
.ok-mark { width: 88px; height: 88px; margin: 0 auto 22px; position: relative; }
.ok-mark svg { width: 88px; height: 88px; display: block; }
.ok-mark circle { fill: rgba(48,209,88,.12); stroke: var(--green); stroke-width: 2.5; stroke-dasharray: 252; stroke-dashoffset: 252; }
.ok-mark path { fill: none; stroke: var(--green); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; }
.ok-mark::before, .ok-mark::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(48,209,88,.5); opacity: 0; }
.is-done .ok-mark circle, .pay-section.active .ok-mark circle { animation: draw .7s .1s var(--ease) forwards; }
.is-done .ok-mark path, .pay-section.active .ok-mark path { animation: draw .45s .65s var(--ease) forwards; }
.is-done .ok-mark::before, .pay-section.active .ok-mark::before { animation: burst 1.1s .8s var(--ease) both; }
.is-done .ok-mark::after, .pay-section.active .ok-mark::after { animation: burst 1.1s 1s var(--ease) both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes burst { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.success-title { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 4vw, 30px); letter-spacing: -.035em; line-height: 1.15; margin-bottom: 10px; }
.success-sub { color: var(--mute); font-size: 15.5px; line-height: 1.55; }
.success-btn { margin-top: 24px; }
.rise { opacity: 0; transform: translateY(10px); }
.is-done .rise, .pay-section.active .rise { animation: rise .6s var(--ease) forwards; }
.rise.d1 { animation-delay: .5s !important; } .rise.d2 { animation-delay: .65s !important; } .rise.d3 { animation-delay: .8s !important; } .rise.d4 { animation-delay: .95s !important; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- ошибка ---------- */
.error-card { text-align: center; padding: 40px 26px 32px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid rgba(255,107,107,.22); }
.error-card-icon { width: 64px; height: 64px; border-radius: 50%; display: inline-grid; place-items: center; margin-bottom: 18px;
  background: var(--red-soft); color: var(--red); animation: pop .5s var(--ease); }
.error-card-icon .ms { font-size: 32px; }
.error-card-title { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -.03em; line-height: 1.2; margin-bottom: 10px; overflow-wrap: anywhere; }
.error-card-sub { color: var(--mute); font-size: 15px; line-height: 1.55; max-width: 400px; margin: 0 auto; }
.error-actions { display: grid; gap: 10px; margin-top: 24px; }
#errorCta { background: #fff !important; color: #050507; }
#errorAltLink a { color: var(--mute) !important; }

/* ---------- уведомления ---------- */
.toast { position: fixed; top: calc(var(--isl-top) + var(--isl-h) + 12px); left: 0; right: 0; margin: 0 auto; width: max-content; z-index: 999; max-width: min(calc(100vw - 24px), 460px);
  display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 500; line-height: 1.35;
  background: rgba(16,17,22,.92); border: 1px solid var(--line-2); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px -15px rgba(0,0,0,.9); opacity: 0; pointer-events: none;
  transform: translateY(-12px) scale(.97); transition: opacity .3s, transform .4s var(--ease); }
.toast.show { opacity: 1; transform: none; }
.toast::before { font-family: "Material Symbols Rounded"; font-size: 20px; flex: none; }
.toast.success::before { content: "check_circle"; color: var(--green); }
.toast.error { border-color: rgba(255,107,107,.35); }
.toast.error::before { content: "error"; color: var(--red); }

/* ---------- подвал ---------- */
.pay-footer { position: relative; z-index: 1; max-width: 1080px; margin: 24px auto 0; padding: 26px 24px calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.pay-footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--mute-2); }
.pay-footer-links a:hover { color: var(--text); }
.pay-secure { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mute-2); }
.pay-secure .ms { font-size: 17px; }
.foot-loc { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--text); font-size: 14px; cursor: pointer; transition: background .2s; }
.foot-loc .ms { font-size: 19px; color: var(--mute); }
.foot-loc:hover { background: rgba(255,255,255,.05); }

/* ---------- закреплённая кнопка на телефоне ---------- */
.pay-mbar { display: none; }
@media (max-width: 900px) {
  .pay-mbar { display: flex; align-items: center; gap: 12px; position: fixed; left: 12px; right: 88px; z-index: 60;
    bottom: max(20px, env(safe-area-inset-bottom)); padding: 6px 6px 6px 18px; border-radius: 999px;
    background: rgba(12,13,17,.86); border: 1px solid var(--line-2); backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5);
    box-shadow: 0 20px 50px -10px rgba(0,0,0,.9); transform: translateY(calc(100% + 48px)); visibility: hidden;
    transition: transform .45s var(--ease), visibility 0s .45s; }
  .pay-mbar.show { transform: none; visibility: visible; transition: transform .45s var(--ease), visibility 0s; }
  .pay-mbar-sum { flex: none; max-width: 42%; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
  .pay-mbar-sum small { font-size: 12px; color: var(--mute); }
  .pay-mbar-sum b { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
  .pay-mbar .btn { min-height: 46px; height: 46px; padding: 0 16px; font-size: 15px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; line-height: 46px; }
}

/* ---------- окно «Язык и валюта» (как на лендинге) ---------- */
.loc { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.loc[hidden] { display: none; }
.loc-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.loc-card { position: relative; width: 100%; max-width: 760px; max-height: min(680px, 100%); display: flex; flex-direction: column;
  border-radius: 28px; background: #0d0e12; border: 1px solid var(--line-2); box-shadow: 0 40px 120px -30px rgba(0,0,0,.9);
  opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .25s, transform .3s var(--ease); overflow: hidden; }
.loc.show .loc-scrim { opacity: 1; }
.loc.show .loc-card { opacity: 1; transform: none; }
.loc-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 8px 28px; }
.loc-title { margin: 0; font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -.03em; }
.loc-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.06); cursor: pointer; display: grid; place-items: center; }
.loc-x .ms { font-size: 20px; }
.loc-tabs { display: none; }
.loc-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 8px 28px 28px; overflow: auto; overscroll-behavior: contain; }
.loc-sub { margin: 10px 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--mute-2); text-transform: uppercase; }
.loc-list { display: grid; gap: 2px; }
.loc-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 9px 12px; border-radius: 14px; border: 0;
  background: transparent; cursor: pointer; text-align: left; font-size: 15px; transition: background .15s; }
.loc-opt:hover, .loc-opt:focus-visible { background: rgba(255,255,255,.06); }
.loc-opt.on { background: rgba(255,255,255,.08); }
.loc-opt-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.loc-opt-t small { color: var(--mute-2); font-size: 12.5px; margin-top: 2px; }
.loc-opt-s { color: var(--mute-2); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.loc-opt > .ms { font-size: 20px; color: var(--green); }
.loc-sym { width: 34px; height: 34px; flex: none; border-radius: 10px; background: rgba(255,255,255,.06); display: grid; place-items: center; font-size: 14px; font-weight: 600; }
.loc-sym .ms { font-size: 18px; color: var(--mute); }
.loc-note { margin: 14px 4px 0; font-size: 13px; color: var(--mute-2); line-height: 1.5; }
html.loc-lock, html.loc-lock body { overflow: hidden; }
html.loc-lock .osw-launcher, html.loc-lock .pay-mbar { display: none !important; }
@media (max-width: 700px) {
  .loc { align-items: flex-end; padding: 0; }
  .loc-card { max-width: none; max-height: 88vh; max-height: 88dvh; border-radius: 26px 26px 0 0; border-bottom: 0;
    transform: translateY(100%); padding-bottom: env(safe-area-inset-bottom); }
  .loc.show .loc-card { transform: none; }
  .loc-head { padding: 18px 16px 6px 22px; }
  .loc-head::before { content: ""; position: absolute; top: 8px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 2px; background: rgba(255,255,255,.18); }
  .loc-tabs { display: flex; gap: 4px; margin: 6px 16px 4px; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.05); }
  .loc-tabs button { flex: 1; height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--mute); font-weight: 600; font-size: 14.5px; cursor: pointer; }
  .loc-tabs button[aria-selected="true"] { background: #fff; color: #050507; }
  .loc-body { grid-template-columns: minmax(0, 1fr); padding: 8px 12px 16px; }
  .loc-sub { display: none; }
  .loc[data-tab="lang"] [data-loc-pane="cur"], .loc[data-tab="cur"] [data-loc-pane="lang"] { display: none; }
}

/* ---------- адаптив ---------- */
@media (max-width: 900px) {
  #step1.active { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pay-aside { position: static; }
  .pay-container { max-width: 640px; }
  .pay-footer { max-width: 640px; padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}
@media (max-width: 600px) {
  :root { --isl-h: 52px; }
  .isl-bar { padding: 0 6px 0 16px; gap: 10px; }
  .pay-container { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); padding-top: calc(var(--isl-top) + var(--isl-h) + 26px); }
  .pay-card { padding: 20px 16px; border-radius: 24px; }
  .pay-summary { padding: 20px 18px; }
  .plan-grid { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; }
  .plan-item { padding: 14px 12px 13px; }
  .plan-price { font-size: 22px; }
  .steps-bar { margin-bottom: 22px; }
  .step { width: 76px; }
  .copy-btn-row { grid-template-columns: minmax(0, 1fr); }
  .pay-footer { flex-direction: column; align-items: flex-start; padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 520px) { .isl-secure { display: none; } .isl-bar { justify-content: space-between; } .isl-loc { margin-left: auto; } }
@media (max-width: 420px) {
  .crypto-grid, .network-grid { grid-template-columns: minmax(0, 1fr); }
  .order-info { flex-wrap: wrap; padding: 16px; gap: 12px; }
  .order-info-price { width: 100%; padding-left: 60px; }
  .pay-sum-amount { font-size: 32px; }
}
@media (max-width: 369px) {
  .logo span { display: none; }
  .pay-container { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .pay-card { padding: 18px 12px; }
  .plan-grid { grid-template-columns: minmax(0, 1fr); }
  .plan-item { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
  .plan-price { margin-top: 0; }
  .promo-field { flex-direction: column; }
  .promo-input { flex: none; width: 100%; }
  .promo-apply { width: 100%; }
  .plan-item { padding-right: 42px; }
  .plan-duration { padding-right: 0; }
  .method-tab { flex-direction: column; gap: 2px; font-size: 13px; }
  .step { width: 64px; }
  .step-lbl { font-size: 11.5px; }
  .pay-mbar { left: 8px; right: 80px; padding-left: 14px; }
  .pay-mbar .btn { padding: 0 14px; font-size: 14px; }
  .fiat-item, .crypto-item, .network-item { padding-left: 12px; gap: 10px; }
}
@media (max-width: 300px) {
  .pay-mbar-sum { display: none; }
  .step-lbl { display: none; }
}
/* телефон боком: невысокий экран — шапка и шаги компактнее */
@media (max-height: 480px) and (orientation: landscape) {
  .pay-container { padding-top: calc(var(--isl-top) + var(--isl-h) + 16px); }
  .pay-header { margin-bottom: 14px; }
  .pay-subtitle { display: none; }
  .steps-bar { margin-bottom: 16px; }
}
/* большие мониторы: страница масштабируется целиком */
@media (min-width: 1800px) { html { zoom: 1.2; } }
@media (min-width: 2300px) { html { zoom: 1.45; } }
@media (min-width: 3200px) { html { zoom: 2; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .qr-wrap::after { display: none; }
}
/* на широком экране цена заказа видна в итоге справа — не повторяем её слева */
@media (min-width: 901px) { #orderInfoBlock .order-info-price { display: none; } }
/* значок cookie-настроек не перекрывает закреплённую кнопку оплаты */
@media (max-width: 900px) { .orris-cc-icon { bottom: calc(92px + env(safe-area-inset-bottom)) !important; } }
html.loc-lock .orris-cc-icon { display: none !important; }

/* ---------- payment_successful.html ---------- */
.ok-page { position: relative; z-index: 1; max-width: 560px; margin: 0 auto;
  padding: calc(var(--isl-top) + var(--isl-h) + 32px) max(20px, env(safe-area-inset-right)) calc(48px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
.ok-page .success-card { padding: 40px 28px 30px; }
.ok-order { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 22px 0 0; padding: 14px 18px; border-radius: 16px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: 14.5px; text-align: left; }
.ok-order .lbl { color: var(--mute); }
.ok-order .val { font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; text-align: right; }
.ok-next { margin-top: 26px; text-align: left; }
.ok-next h2 { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -.02em; margin-bottom: 12px; }
.ok-steps { list-style: none; display: grid; gap: 10px; counter-reset: s; }
.ok-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.03);
  border: 1px solid var(--line); font-size: 15px; line-height: 1.45; color: var(--text); counter-increment: s; }
.ok-steps li::before { content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: #050507; font-size: 13px; font-weight: 600; margin-top: -1px; }
.ok-actions { display: grid; gap: 10px; margin-top: 22px; }
.ok-actions .btn { width: 100%; }
.ok-help { margin-top: 18px; font-size: 14px; color: var(--mute); text-align: center; line-height: 1.5; }
.ok-help button { border: 0; background: none; color: var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0; font: inherit; }
@media (max-width: 420px) { .ok-page .success-card { padding: 32px 16px 24px; } .ok-steps li { padding: 12px 14px; } }
