/* VPN-Ulama: стили сайта. Источник: Design/vpn-ulama-design-source/src (base.css, scene.css). */
@font-face{font-family:'Geologica';font-style:normal;font-display:swap;font-weight:400;src:url(fonts/geologica-cyrillic-400-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Geologica';font-style:normal;font-display:swap;font-weight:400;src:url(fonts/geologica-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Geologica';font-style:normal;font-display:swap;font-weight:500;src:url(fonts/geologica-cyrillic-500-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Geologica';font-style:normal;font-display:swap;font-weight:500;src:url(fonts/geologica-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Geologica';font-style:normal;font-display:swap;font-weight:600;src:url(fonts/geologica-cyrillic-600-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Geologica';font-style:normal;font-display:swap;font-weight:600;src:url(fonts/geologica-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Geologica';font-style:normal;font-display:swap;font-weight:700;src:url(fonts/geologica-cyrillic-700-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Geologica';font-style:normal;font-display:swap;font-weight:700;src:url(fonts/geologica-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-display:swap;font-weight:400;src:url(fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-display:swap;font-weight:500;src:url(fonts/jetbrains-mono-latin-500-normal.woff2) format('woff2')}
/* VPN-Ulama — дизайн-система макетов.
   Одна гарнитура (Geologica), моноширинный JetBrains Mono — только для строк-ключей и ссылок.
   Фирменный мотив — линия маршрута «устройство → узел → страна выхода». */

:root,
[data-theme="light"] {
  --paper: #F3F5F8;
  --surface: #FFFFFF;
  --well: #EBEEF3;
  --line: #DCE1E8;
  --line-strong: #C5CCD7;
  --text: #121A2B;
  --muted: #5A6578;
  --brand: #2346D3;
  --on-brand: #FFFFFF;
  --brand-soft: #E7ECFF;
  --ok: #12805C;
  --ok-soft: #E0F2EA;
  --warn: #9A5A06;
  --warn-soft: #FBEFD8;
  --danger: #B42318;
  --band: #13203B;
  --on-band: #F3F5F8;
  --on-band-muted: #AEB8CC;
  --elev: 0 1px 2px rgba(18, 26, 43, .06), 0 24px 48px -24px rgba(18, 26, 43, .28);
}

[data-theme="dark"] {
  --paper: #0D1424;
  --surface: #141D30;
  --well: #1B2640;
  --line: #26324D;
  --line-strong: #34436A;
  --text: #E8EDF7;
  --muted: #9AA6BD;
  --brand: #8EA6FF;
  --on-brand: #0D1424;
  --brand-soft: rgba(142, 166, 255, .14);
  --ok: #4ADE9B;
  --ok-soft: rgba(74, 222, 155, .13);
  --warn: #F2B65A;
  --warn-soft: rgba(242, 182, 90, .14);
  --danger: #F28B82;
  --band: #18233B;
  --on-band: #E8EDF7;
  --on-band-muted: #9AA6BD;
  --elev: 0 0 0 1px rgba(142, 166, 255, .06), 0 24px 48px -24px rgba(0, 0, 0, .6);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Geologica", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
img, svg { display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

/* ---------- Типографика ---------- */
.h1 { font-size: 56px; line-height: 1.04; letter-spacing: -0.035em; font-weight: 600; }
.h2 { font-size: 36px; line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; }
.h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; }
.h4 { font-size: 17px; line-height: 1.35; font-weight: 600; }
.lead { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 34em; }
.body { font-size: 16px; color: var(--muted); }
.small { font-size: 14px; line-height: 1.5; color: var(--muted); }
.tiny { font-size: 13px; line-height: 1.45; color: var(--muted); }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; letter-spacing: 0; }
.strong { font-weight: 600; color: var(--text); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Каркас ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.gap-20 { gap: 20px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; }
.wrapx { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.ml-auto { margin-left: auto; }
.section { padding-top: 112px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; margin-bottom: 40px; }
.band-surface { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Иконки ---------- */
.ic { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ic-box {
  width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ---------- Логотип ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; color: var(--text); }
.logo-mark {
  width: 32px; height: 32px; border-radius: 10px; background: var(--brand); color: var(--on-brand);
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font-size: 16px; font-weight: 500; white-space: nowrap; line-height: 1;
}
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 17px; border-radius: 14px; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 15px; border-radius: 10px; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--line-strong); }
.btn-block { width: 100%; }
.btn-icon { width: 44px; min-height: 44px; padding: 0; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- Статусы ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 500; line-height: 1.3; white-space: nowrap;
}
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-brand { background: var(--brand-soft); color: var(--brand); }
.pill-neutral { background: var(--well); color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

/* ---------- Поверхности ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.card-tight { padding: 20px; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; }
.btns > .btn { flex: 1 1 150px; }
.well { background: var(--well); border-radius: 12px; padding: 12px 14px; }
.elev { box-shadow: var(--elev); }

/* ---------- Поля ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 14px; font-weight: 500; color: var(--text); }
.input {
  height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); font-size: 16px; width: 100%;
}
.input::placeholder { color: var(--muted); }
.copyfield {
  display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 6px 0 14px;
  border-radius: 12px; border: 1px solid var(--line-strong); background: var(--paper); min-width: 0;
}
.copyfield .mono { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); flex-shrink: 0; }

/* ---------- Сегментированный переключатель ---------- */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: var(--well); }
.seg button {
  min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--muted);
  font-size: 14px; font-weight: 500; padding: 0 10px; white-space: nowrap;
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* ---------- Чипы ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; font-weight: 500;
}
.chip[aria-pressed="true"] { background: var(--text); color: var(--paper); border-color: var(--text); }
.cc {
  width: 32px; height: 32px; border-radius: 50%; background: var(--well); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; letter-spacing: .02em; flex-shrink: 0;
}

/* ---------- Выбор (радио-карточки) ---------- */
.opt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; width: 100%;
  padding: 16px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
}
.opt[aria-pressed="true"] { border: 2px solid var(--brand); padding: 15px; background: var(--brand-soft); }
.opt-row { flex-direction: row; align-items: center; gap: 14px; }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); flex-shrink: 0; }
.opt[aria-pressed="true"] .radio { border: 6px solid var(--brand); }

/* ---------- Мотив маршрута ---------- */
.route { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 0; }
.route-node { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; width: 92px; }
.route-dot {
  width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1.5px solid var(--line-strong); color: var(--text);
}
.route-dot.is-exit { background: var(--brand); border-color: var(--brand); color: var(--on-brand); font-size: 12px; font-weight: 600; }
.route-line { height: 2px; background: repeating-linear-gradient(90deg, var(--brand) 0 8px, transparent 8px 14px); margin: 0 -18px 30px; }
.route-label { font-size: 12px; line-height: 1.3; color: var(--muted); }

/* ---------- Сайт: шапка ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { height: 72px; display: flex; align-items: center; gap: 32px; }
.nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; color: var(--muted); }
.nav a[aria-current="page"] { color: var(--text); }
.only-mobile { display: none !important; }

/* ---------- Сайт: герой ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-top: 80px; }
.badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.badge .pill { padding: 2px 8px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; color: var(--muted); }
.checks li { display: inline-flex; align-items: center; gap: 8px; }
.checks .ic { color: var(--ok); }

/* ---------- Сайт: сетки ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-countries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.grid-periods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feat { display: flex; flex-direction: column; gap: 14px; padding-top: 20px; border-top: 2px solid var(--text); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; position: relative; }
.step:not(:last-child)::after { content: ""; position: absolute; left: 56px; right: -20px; top: 21px; height: 2px; background: repeating-linear-gradient(90deg, var(--brand) 0 8px, transparent 8px 14px); }
.step { position: relative; display: flex; flex-direction: column; gap: 12px; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: var(--on-brand);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 16px;
  box-shadow: 0 0 0 6px var(--surface);
}
.plan { display: flex; flex-direction: column; gap: 18px; padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.plan.is-best { border: 2px solid var(--brand); padding: 23px; }
.price { font-size: 34px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.proto { display: grid; grid-template-columns: 300px minmax(0, 1fr) 240px; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.proto:first-child { border-top: 1px solid var(--line); }
.loc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.loc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.pay-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 64px; align-items: start; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; background: none; border: 0; text-align: left; font-size: 17px; font-weight: 500; }
.faq-a { padding: 0 48px 22px 0; color: var(--muted); }
.faq-sign { width: 32px; height: 32px; border-radius: 50%; background: var(--well); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cta-band { background: var(--band); color: var(--on-band); border-radius: 24px; padding: 64px 48px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.cta-band .lead { color: var(--on-band-muted); }
.btn-on-band { background: var(--on-band); color: var(--band); }
.btn-on-band-outline { background: transparent; color: var(--on-band); border-color: var(--on-band-muted); }
.site-footer { border-top: 1px solid var(--line); margin-top: 112px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding: 56px 0 32px; }
.foot-grid a { color: var(--text); }

/* ---------- Чат (бот / мок Telegram-блока) ---------- */
.chat { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--surface); border-bottom: 1px solid var(--line); }
.chat-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.msg { align-self: flex-start; max-width: 86%; background: var(--surface); border: 1px solid var(--line); border-radius: 16px 16px 16px 6px; padding: 11px 14px; font-size: 15px; line-height: 1.45; }
.msg-me { align-self: flex-end; background: var(--brand); color: var(--on-brand); border-color: var(--brand); border-radius: 16px 16px 6px 16px; }
.msg-btns { align-self: flex-start; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; width: 86%; }
.msg-btn { padding: 10px 8px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); text-align: center; font-size: 14px; font-weight: 500; color: var(--brand); }
.msg-btn-wide { grid-column: 1 / -1; }
.chat-date { align-self: center; font-size: 12px; color: var(--muted); padding: 4px 0; }

/* ---------- Кабинет ---------- */
.cab-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.cab-header .wrap { min-height: 68px; display: flex; align-items: center; gap: 28px; }
.tabs { display: flex; gap: 4px; font-size: 15px; font-weight: 500; }
.tabs a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; color: var(--muted); }
.tabs a[aria-current="page"] { background: var(--well); color: var(--text); }
.account { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.cab-main { padding: 36px 0 72px; }
.cab-title { margin-bottom: 24px; display: flex; flex-direction: column; gap: 4px; }
.cab-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.cab-grid-narrow { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.meta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.progress { height: 6px; border-radius: 999px; background: var(--well); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 999px; background: var(--ok); }
.device { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); }
.device.is-open { border-color: var(--brand); background: var(--brand-soft); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.device-panel { border: 1px solid var(--brand); border-top: 0; border-radius: 0 0 14px 14px; padding: 20px; display: flex; flex-direction: column; gap: 20px; background: var(--surface); }
.qr {
  width: 168px; height: 168px; border-radius: 14px; border: 1.5px dashed var(--line-strong); color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 13px; text-align: center; flex-shrink: 0;
}
.connect { display: grid; grid-template-columns: minmax(0, 1fr) 168px; gap: 20px; align-items: start; }
.tabbar { display: none; }
.dl { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.dl > div { display: flex; justify-content: space-between; gap: 12px; }
.dl dt { color: var(--muted); }
.dl dd { font-weight: 500; text-align: right; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.mobile-paybar { display: none; }
.stat-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.stat-list > div { display: flex; flex-direction: column; gap: 4px; }
.stat-val { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.center-page { min-height: calc(100vh - 69px); display: flex; align-items: center; justify-content: center; padding: 40px 16px 64px; }
.auth-card { width: 100%; max-width: 440px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .only-desktop { display: none !important; }
  .only-mobile { display: inline-flex !important; }
  .hero, .split, .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .grid-4, .loc-grid, .grid-periods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pay-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .proto { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cab-grid, .cab-grid-narrow { grid-template-columns: minmax(0, 1fr); }
  .cta-band { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .h1 { font-size: 38px; }
  .h2 { font-size: 28px; }
  .lead { font-size: 17px; }
  .section { padding-top: 72px; }
  .section-head { margin-bottom: 28px; }
  .hero { padding-top: 40px; }
  .grid-4, .grid-3, .grid-2, .steps { grid-template-columns: minmax(0, 1fr); }
  .steps { gap: 24px; }
  .step:not(:last-child)::after { left: 21px; right: auto; top: 56px; bottom: -18px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--brand) 0 8px, transparent 8px 14px); }
  .step { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 6px; }
  .step > :not(.step-num) { grid-column: 2; }
  .step-num { grid-row: span 2; }
  .pay-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .loc-grid { grid-template-columns: minmax(0, 1fr); }
  .grid-countries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-countries .cc { display: none; }
  .seg button { font-size: 13px; padding: 0 6px; }
  .cta-row > .btn { flex: 1 1 100%; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .cta-band { padding: 40px 24px; border-radius: 20px; }
  .site-header .wrap { height: 64px; gap: 12px; }
  .route-node { width: 74px; }
  .route-dot { width: 40px; height: 40px; }
  .cab-header .tabs, .cab-header .account { display: none; }
  .cab-header .wrap { min-height: 60px; }
  .cab-main { padding: 20px 0 32px; }
  .meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .connect { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 20px; border-radius: 16px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px 14px; font-size: 12px; font-weight: 500; z-index: 5;
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; color: var(--muted); }
  .tabbar a[aria-current="page"] { color: var(--brand); }
  .mobile-paybar {
    display: flex; align-items: center; gap: 12px;
    background: var(--surface); border-top: 1px solid var(--line); padding: 12px 16px 18px;
  }
  .hide-mobile { display: none !important; }
  .stat-list { display: flex; flex-direction: column; gap: 0; }
  .stat-list > div { flex-direction: row; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .stat-list > div:last-child { border-bottom: 0; }
  .stat-val { font-size: 20px; }
}

/* Сцена для первого экрана варианта Б: фото человека с телефоном, орбита стран выхода, маршрут к активной стране.
   Фон, маршрут и флаги — SVG; карточки и подписи — HTML, чтобы в Figma оставались редактируемым текстом.
   Размеры внутри сцены — в долях её ширины (cqw), сцена масштабируется целиком. */

.hero-alt-band { border-bottom: 1px solid var(--line); }
.hero-alt { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: 48px; align-items: end; padding-top: 40px; }
.hero-alt > .stack { align-self: center; padding-bottom: 40px; }

.scene { position: relative; width: 100%; aspect-ratio: 640 / 560; container-type: inline-size; }
.scene > * { --s: calc(100cqw / 640); }
.scene-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Фон и орбиты */
.scene-svg .ring { fill: none; stroke: var(--brand); stroke-width: 1.5; opacity: .16; }
.scene-svg .ring-2 { opacity: .11; }
.scene-svg .orbit { fill: none; stroke: var(--brand); stroke-width: 1.5; stroke-dasharray: 2 7; stroke-linecap: round; opacity: .45; }
.scene-svg .dots { fill: var(--line-strong); }

/* Фото человека с телефоном (вырезано из фона, PNG с прозрачностью) */
.sc-person { position: absolute; display: block; height: auto; max-width: none; user-select: none; pointer-events: none; }

/* Маршрут */
.scene-svg .route-glow { fill: none; stroke: var(--brand); stroke-width: 14; stroke-linecap: round; opacity: .12; }
.scene-svg .route { fill: none; stroke: var(--brand); stroke-width: 4; stroke-linecap: round; }
.scene-svg .route-flow { fill: none; stroke: var(--surface); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 3 12; animation: scene-flow 1.4s linear infinite; }
@keyframes scene-flow { to { stroke-dashoffset: -15; } }
@media (prefers-reduced-motion: reduce) { .scene-svg .route-flow { animation: none; } }

/* Флаги на орбите */
.scene-svg .bub-base { fill: var(--surface); filter: drop-shadow(0 6px 10px rgba(13, 20, 36, .22)); }
.scene-svg .bub-ring { fill: none; stroke: var(--surface); stroke-width: 3.5; }
.scene-svg .bub-pulse { fill: none; stroke: var(--brand); stroke-width: 2; opacity: .4; }
.scene-svg .bub-pulse-2 { opacity: .18; }

/* Подписи и карточки */
.sc-label { position: absolute; transform: translate(-50%, 0); font-size: calc(12 * var(--s)); font-weight: 500; color: var(--muted); white-space: nowrap; }
.sc-label.up { transform: translate(-50%, -100%); }
.sc-card {
  position: absolute; background: var(--surface); border: calc(1 * var(--s)) solid var(--line); border-radius: calc(16 * var(--s));
  box-shadow: var(--elev); padding: calc(12 * var(--s)) calc(14 * var(--s)); display: flex; flex-direction: column; gap: calc(8 * var(--s));
  font-size: calc(12 * var(--s)); color: var(--text); line-height: 1.25;
}
.sc-card .k { font-size: calc(11 * var(--s)); color: var(--muted); }
.sc-card .v { font-size: calc(15 * var(--s)); font-weight: 600; letter-spacing: -0.01em; }
.sc-row { display: flex; align-items: center; gap: calc(8 * var(--s)); }
.sc-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: calc(5 * var(--s)); padding: calc(3 * var(--s)) calc(9 * var(--s)); border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: calc(11 * var(--s)); font-weight: 500; }
.sc-pill i { width: calc(6 * var(--s)); height: calc(6 * var(--s)); border-radius: 50%; background: currentColor; }
.flag { display: inline-block; border-radius: 50%; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.flag-nl { background: linear-gradient(#AE1C28 0 33.4%, #FFFFFF 33.4% 66.6%, #21468B 66.6%); }
.sc-card .flag { width: calc(24 * var(--s)); height: calc(24 * var(--s)); }
.sc-dev { width: calc(36 * var(--s)); height: calc(36 * var(--s)); border-radius: calc(10 * var(--s)); background: var(--well); color: var(--text); display: inline-flex; align-items: center; justify-content: center; position: relative; }
.sc-dev svg { width: calc(18 * var(--s)); height: calc(18 * var(--s)); }
.sc-dev .chk { position: absolute; right: calc(-4 * var(--s)); bottom: calc(-4 * var(--s)); width: calc(15 * var(--s)); height: calc(15 * var(--s)); border-radius: 50%; background: var(--ok); color: var(--surface); display: flex; align-items: center; justify-content: center; border: calc(2 * var(--s)) solid var(--surface); }
.sc-dev .chk svg { width: calc(9 * var(--s)); height: calc(9 * var(--s)); stroke-width: 3; }
.sc-dev.empty { background: transparent; border: calc(1.5 * var(--s)) dashed var(--line-strong); color: var(--muted); }
.sc-seg { display: grid; grid-template-columns: repeat(3, auto); gap: calc(3 * var(--s)); padding: calc(3 * var(--s)); background: var(--well); border-radius: calc(9 * var(--s)); }
.sc-seg span { padding: calc(5 * var(--s)) calc(9 * var(--s)); border-radius: calc(7 * var(--s)); font-size: calc(11 * var(--s)); font-weight: 500; color: var(--muted); text-align: center; }
.sc-seg span.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.sc-lock {
  position: absolute; width: calc(30 * var(--s)); height: calc(30 * var(--s)); border-radius: 50%; background: var(--surface);
  border: calc(2 * var(--s)) solid var(--brand); color: var(--brand); display: flex; align-items: center; justify-content: center;
  transform: translate(-50%, -50%); box-shadow: var(--elev);
}
.sc-lock svg { width: calc(14 * var(--s)); height: calc(14 * var(--s)); }

/* Телефон: карточки под сценой в обычном размере */
.scene-col { display: flex; flex-direction: column; }
.scene-cards { display: none; gap: 10px; }
.scene-cards .card { padding: 14px 16px; flex: 1 1 0; min-width: 0; }

@media (max-width: 1080px) {
  .hero-alt { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-alt .scene-col { max-width: 680px; }
}
@media (max-width: 720px) {
  .hero-alt { padding-top: 40px; }
  .scene .sc-card, .scene .sc-label { display: none; }
  .scene-cards { display: flex; order: -1; }
  .scene { margin-top: 12px; }
}

/* ---------- Поведение сайта (не видно на статичных макетах) ---------- */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 80px; }
.site-header { position: sticky; top: 0; z-index: 20; }
.ic.i-sun { display: none; }
[data-theme="dark"] .ic.i-sun { display: block; }
[data-theme="dark"] .ic.i-moon { display: none; }
.faq-q[aria-expanded="true"] .i-plus, .faq-q[aria-expanded="false"] .i-minus { display: none; }
.faq-q { cursor: pointer; color: var(--text); }
.mobile-menu { border-top: 1px solid var(--line); background: var(--paper); padding: 12px 0 20px; }
.mobile-menu a:not(.btn) { display: block; padding: 10px 0; font-size: 17px; font-weight: 500; color: var(--text); }
.plan h3 { margin: 0; }
