/* ══════════════════════════════════════════════════════════════════════════
   BatTunnel VPN — сайт (ребрендинг, этап E). Лендинг, покупка, после оплаты.
   Стиль — как новый вид Mini App (styles.v2.css, лист «Стиль» макетов):
   • фон ВСЕГДА белый, тема системы не читается (color-scheme: light);
   • только ч/б и серые: #000 (текст, главные кнопки) · #3A3A3A (описания) · #6B6B6B (подписи) ·
     #E6E6E6 (рамки) · #EEEEEE (разделители) · #F4F4F4 (плашки) · #FFF; ни красного, ни зелёного —
     статус значком ✓ / ✕ и словом;
   • Unbounded 600 — заголовки и цены (.display, .price), остальное — Inter; шрифты свои
     (/site/static/fonts = каталог шрифтов Mini App, OFL);
   • ни одного style-атрибута в разметке (CSP style-src 'self'): всё здесь.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Шрифты (подмножества latin + cyrillic, те же файлы, что у Mini App) ── */
@font-face {
  font-family: 'Unbounded'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/site/static/fonts/unbounded-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: 'Unbounded'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/site/static/fonts/unbounded-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: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/site/static/fonts/inter-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: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/site/static/fonts/inter-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: 'Inter'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/site/static/fonts/inter-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: 'Inter'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/site/static/fonts/inter-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: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/site/static/fonts/inter-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: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/site/static/fonts/inter-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: 'Inter'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/site/static/fonts/inter-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: 'Inter'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/site/static/fonts/inter-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;
}

/* ── Токены ── */
:root {
  color-scheme: light;
  --ink: #000000;
  --ink2: #3A3A3A;
  --muted: #6B6B6B;
  --line: #E6E6E6;
  --line2: #EEEEEE;
  --fill: #F4F4F4;
  --bg: #FFFFFF;
  --f-display: 'Unbounded', 'Inter', system-ui, sans-serif;
  --f-text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --f-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --gutter: 24px;
  --sec-gap: 120px;
}

/* ── База ── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body {
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--ink2); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.display { font-family: var(--f-display); font-weight: 600; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 10; padding: 10px 14px; border-radius: 10px;
  background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; color: var(--bg); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.main { flex: 1 0 auto; }
.ic { flex-shrink: 0; }

/* ── Кнопки ── */
.btn {
  height: 52px; padding: 0 24px; border-radius: 14px; border: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-text); font-size: 15px; font-weight: 600; line-height: 1.2;
  text-decoration: none; text-align: center; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, opacity .15s ease;
}
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: var(--ink2); color: var(--bg); }
.btn--secondary { background: var(--bg); color: var(--ink); border: 1.5px solid var(--ink); }
.btn--secondary:hover { background: var(--fill); color: var(--ink); }
.btn--m { height: 46px; padding: 0 20px; }
.btn--s { height: 44px; padding: 0 22px; border-radius: 12px; }
.btn--inline { align-self: flex-start; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: default; pointer-events: none; }
.btn.is-busy { opacity: .7; }
.link-btn {
  padding: 0; border: 0; background: transparent; color: var(--ink);
  font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px;
}
.link-btn:hover { color: var(--ink2); }

/* ── Шапка ── */
.hdr { border-bottom: 1px solid var(--line); background: var(--bg); }
.hdr__in {
  max-width: 1200px; margin: 0 auto; padding: 14px var(--gutter); min-height: 76px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px;
}
.hdr__logo { display: flex; align-items: center; margin-right: auto; }
.hdr__logo img { width: 120px; height: auto; }
.hdr__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.hdr__nav a { text-decoration: none; }
.hdr__nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hdr__acts { display: flex; align-items: center; gap: 20px; }
.hdr__login { font-size: 15px; font-weight: 600; text-underline-offset: 4px; }

/* ── Подвал ── */
.ftr { margin-top: var(--sec-gap); border-top: 1px solid var(--line); }
.ftr__in {
  max-width: 1200px; margin: 0 auto; padding: 40px var(--gutter) 48px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px;
}
.ftr__logo img { width: 96px; height: auto; }
.ftr__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; font-size: 14px; }
.ftr__doc { color: var(--muted); }
.ftr__bot { font-weight: 500; }
.ftr__copy { font-size: 14px; color: var(--muted); }

/* ── Общие блоки ── */
.sec { padding-top: var(--sec-gap); }
.sec__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.sec__title { margin: 0; font-size: 32px; line-height: 1.2; }
.sec__lead { margin: 12px 0 0; font-size: 17px; color: var(--muted); }
.sec__note { margin: 28px 0 0; font-size: 15px; color: var(--ink2); text-align: center; }
.sec__note a { font-weight: 600; }
.sec__note--left { text-align: left; max-width: 820px; }
.h2 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; }
.h3 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; }
.page-title { margin: 0; font-size: 32px; line-height: 1.2; }
.page-title--c { text-align: center; }
.price { font-family: var(--f-display); font-weight: 600; line-height: 1.1; white-space: nowrap; }
.price--l { font-size: 32px; }
.price--m { font-size: 24px; }
.pill {
  height: 26px; padding: 0 12px; border-radius: 999px; background: var(--ink); color: var(--bg);
  font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; white-space: nowrap;
}
.card {
  border: 1px solid var(--line); border-radius: 20px; padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.code {
  background: var(--fill); border-radius: 14px; padding: 14px 16px;
  font-family: var(--f-mono); font-size: 14px; line-height: 1.5; word-break: break-all;
}
.code--inline { align-self: flex-start; max-width: 100%; border-radius: 10px; padding: 10px 14px; }
.empty {
  margin-top: 32px; border: 1px solid var(--line); border-radius: 20px; padding: 24px;
  display: flex; flex-direction: column; gap: 16px; font-size: 16px; color: var(--ink2);
}
.empty p { margin: 0; }
.msg { border-radius: 14px; background: var(--fill); padding: 14px 16px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.msg a { font-weight: 600; }
.msg--s { font-size: 13px; padding: 10px 12px; }
.spinner {
  width: 28px; height: 28px; border-radius: 999px; border: 3px solid var(--line); border-top-color: var(--ink);
  display: inline-block; animation: bt-spin .9s linear infinite;
}
.spinner--inv { border-color: rgba(255, 255, 255, .35); border-top-color: var(--bg); }
@keyframes bt-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spinner { animation-duration: 2.4s; }
}

/* ── Сегмент срока ── */
.seg { max-width: 100%; background: var(--fill); border-radius: 12px; padding: 4px; display: flex; flex-wrap: wrap; gap: 4px; }
.seg__btn {
  height: 40px; padding: 0 16px; border: 1px solid var(--fill); border-radius: 9px; background: var(--fill);
  font-size: 14px; font-weight: 500; white-space: nowrap;
}
.seg__btn[aria-pressed="true"] { border-color: var(--ink); background: var(--bg); font-weight: 600; }
.seg__save { color: var(--muted); }
.seg--full { align-self: stretch; }
.seg--full .seg__btn { flex: 1 1 auto; }

/* ── Лендинг: первый экран ── */
.hero { padding-top: 88px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__logo { width: 560px; max-width: 100%; height: auto; }
.hero__title { margin: 44px 0 0; max-width: 760px; font-size: 44px; line-height: 1.15; }
.hero__lead { margin: 20px 0 0; max-width: 600px; font-size: 18px; color: var(--muted); }
.hero__acts { margin-top: 36px; width: 100%; max-width: 460px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero__acts .btn { flex: 1 1 200px; }

/* ── Почему мы ── */
.tiles { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tile { background: var(--fill); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.tile__ic { width: 48px; height: 48px; border-radius: 14px; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.tile__txt { display: flex; flex-direction: column; gap: 8px; }
.tile__title { font-size: 18px; font-weight: 600; }
.tile__sub { font-size: 15px; color: var(--ink2); }

/* ── Цены ── */
.plans { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.plan { border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.plan--hot { border: 2px solid var(--ink); padding: 23px; }
.plan.is-off { opacity: .55; }
.plan__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; }
.plan__name { margin: 0; font-size: 18px; font-weight: 600; }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.plan__za { font-size: 14px; color: var(--muted); }
.plan__pm { margin: -8px 0 0; font-size: 14px; color: var(--muted); }
.plan__feats { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.plan__feats li { display: flex; align-items: center; gap: 10px; }
.plan__feats li.is-muted { color: var(--muted); }
.plan__buy { margin-top: auto; width: 100%; }

/* ── Как подключиться ── */
.how { margin: 32px 0 0; padding: 0; list-style: none; max-width: 820px; display: flex; flex-direction: column; }
.how__step { border-top: 1px solid var(--line); padding: 24px 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.how__step:first-child { border-top: 1.5px solid var(--ink); }
.how__step:last-child { border-bottom: 1px solid var(--line); }
.how__num { width: 56px; flex-shrink: 0; font-size: 40px; line-height: 1; }
.how__body { flex: 999 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.how__title { font-size: 19px; font-weight: 600; }
.how__text { font-size: 16px; line-height: 1.55; color: var(--ink2); }
.how__hint { font-size: 15px; line-height: 1.55; color: var(--muted); }
.how__hint a { color: var(--ink2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 40px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 12px;
  font-size: 14px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center;
}
.chip:hover { background: var(--fill); color: var(--ink); }

/* ── Вопросы ── */
.faq { margin-top: 32px; max-width: 820px; border-bottom: 1px solid var(--line); }
.faq__item { border-top: 1px solid var(--line); }
.faq__q {
  min-height: 64px; padding: 18px 0; list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 17px; font-weight: 600;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ''; }
.faq__chev { transition: transform .2s ease; }
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__a { padding: 0 40px 22px 0; font-size: 15px; line-height: 1.6; color: var(--ink2); }
.faq__a p { margin: 0; }
.faq__a p + p { margin-top: 10px; }

/* ── Покупка ── */
.buy { padding-top: 56px; }
.buy__grid { max-width: 1072px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 32px; }
.buy__main { flex: 1 1 560px; max-width: 720px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.buy__form { display: flex; flex-direction: column; gap: 32px; }

.steps { margin: 0; padding: 0; list-style: none; display: flex; align-items: center; gap: 8px; }
.step { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; }
.step--last { flex: 0 0 auto; }
.step__dot {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center;
}
.step__ok { display: none; }
.step__label { font-size: 15px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.step__line { flex: 1 1 16px; min-width: 16px; height: 1px; background: var(--line); }
.step.is-current .step__dot { border: 2px solid var(--ink); color: var(--ink); font-weight: 700; }
.step.is-current .step__label { color: var(--ink); font-weight: 600; }
.step.is-done .step__dot { border: 0; background: var(--ink); color: var(--bg); }
.step.is-done .step__n { display: none; }
.step.is-done .step__ok { display: block; }
.step.is-done .step__label { color: var(--ink); font-weight: 600; }
.step.is-done .step__line { height: 1.5px; background: var(--ink); }

.picked {
  border: 1px solid var(--line); border-radius: 20px; padding: 20px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
}
.picked__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.picked__title { font-size: 17px; font-weight: 600; }
.picked__desc { font-size: 15px; color: var(--muted); }
.picked__side { display: flex; align-items: center; gap: 20px; }

.chooser { display: flex; flex-direction: column; gap: 16px; }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt {
  min-height: 68px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px;
  display: flex; align-items: center; gap: 12px; cursor: pointer;
}
.opt.is-on, .opt:has(input:checked) { border: 2px solid var(--ink); padding: 11px 15px; }
.opt.is-off { opacity: .5; cursor: default; }
.opt input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--ink); }
.opt__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.opt__name { font-size: 15px; font-weight: 600; }
.opt__desc { font-size: 13px; color: var(--muted); }
.opt__price { font-family: var(--f-display); font-weight: 600; font-size: 18px; white-space: nowrap; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { padding: 0; font-size: 15px; font-weight: 600; }
.field__hint { font-size: 13px; line-height: 1.45; color: var(--muted); }
.field__err { font-size: 13px; line-height: 1.45; color: var(--ink); font-weight: 600; }
.field__err::before { content: '✕ '; }
.inp {
  width: 100%; height: 52px; border: 1px solid var(--line); border-radius: 14px; padding: 0 16px;
  background: var(--bg); color: var(--ink); font-size: 16px; -webkit-appearance: none; appearance: none;
}
.inp:focus { outline: none; border-color: var(--ink); }
.inp[aria-invalid="true"] { border: 1.5px solid var(--ink); }
.inp::placeholder { color: var(--muted); }
.inp--m { height: 46px; }

.promo { display: flex; flex-direction: column; }
.promo__toggle {
  width: 100%; height: 52px; padding: 0; border: 0; border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2);
  background: var(--bg); font-size: 15px; font-weight: 500; display: flex; align-items: center; justify-content: space-between;
}
.promo__lbl { display: flex; align-items: center; gap: 10px; }
.promo__chev { transition: transform .2s ease; }
.promo__toggle.is-open .promo__chev { transform: rotate(180deg); }
.promo__box { padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }

.pay { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pay legend { margin-bottom: 12px; }
.pay__opt {
  height: 60px; border: 1px solid var(--line); border-radius: 14px; padding: 0 16px;
  display: flex; align-items: center; gap: 12px; cursor: pointer;
}
.pay__opt.is-on { border: 2px solid var(--ink); padding: 0 15px; }
.pay__opt input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--ink); }
.pay__lbl { flex-grow: 1; font-size: 15px; font-weight: 500; }
.pay__opt.is-on .pay__lbl { font-weight: 600; }

.total { display: flex; flex-direction: column; gap: 16px; }
.total__row { border-top: 1px solid var(--line); padding-top: 24px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.total__lbl { font-size: 15px; color: var(--ink2); }
.total .btn { width: 100%; }
.fine { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); text-align: center; }
.fine a { color: var(--ink2); }

.wait {
  border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
}
.wait__ic { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; }
.wait__fail { width: 48px; height: 48px; border-radius: 999px; border: 1.5px solid var(--ink); display: flex; align-items: center; justify-content: center; }
.wait__text { margin: 0; max-width: 460px; font-size: 15px; color: var(--ink2); }
.wait__sum { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 20px; }
.wait .btn { width: 100%; max-width: 360px; }

.login-card {
  flex: 1 1 300px; max-width: 720px; border: 1px solid var(--line); border-radius: 20px; padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.login-card__title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.login-card .link-btn { align-self: center; font-size: 14px; }
.link-form { display: flex; flex-direction: column; gap: 10px; }
.link-form .btn { width: 100%; }

/* ── После оплаты ── */
.paid { padding-top: 64px; max-width: 768px; display: flex; flex-direction: column; gap: 24px; }
.paid__head { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 16px; }
.paid__badge {
  width: 64px; height: 64px; border-radius: 999px; background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.paid__badge > span { display: inline-flex; }
.paid[data-state="failed"] .paid__badge,
.paid[data-state="missing"] .paid__badge,
.paid[data-state="error"] .paid__badge { background: var(--bg); color: var(--ink); border: 1.5px solid var(--ink); }
.paid .page-title { margin-top: 24px; font-size: 36px; }
.paid__lead { margin: 12px 0 0; max-width: 560px; font-size: 16px; color: var(--ink2); }
.paid__lead b { color: var(--ink); font-weight: 600; }
.linkbox { display: flex; flex-wrap: wrap; gap: 10px; }
.linkbox .code { flex: 999 1 320px; min-width: 0; min-height: 52px; display: flex; align-items: center; }
.linkbox__copy { flex: 1 0 auto; }
.mini-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.mini-steps li { display: flex; align-items: flex-start; gap: 12px; }
.mini-steps li > span:last-child { padding-top: 2px; }
.mini-steps__n {
  width: 28px; height: 28px; flex-shrink: 0; border: 1.5px solid var(--ink); border-radius: 999px;
  font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.stores { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 10px; }
.stores .btn { flex: 1 1 130px; }
.cabinet { background: var(--fill); border-radius: 20px; padding: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.cabinet__ic { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.cabinet__txt { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cabinet__txt p { margin: 0; font-size: 15px; color: var(--ink2); }
.cabinet .btn { flex: 0 0 auto; }
.paid__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.paid__acts .btn { flex: 1 1 220px; max-width: 360px; }
.paid__tg { margin: 0; font-size: 15px; color: var(--ink2); text-align: center; }
.paid__tg a { font-weight: 600; }

/* ── Телефон: всё в колонку, меню переносится ── */
@media (max-width: 760px) {
  :root { --gutter: 16px; --sec-gap: 72px; }
  .hdr__in { padding-top: 12px; padding-bottom: 12px; min-height: 0; gap: 10px 16px; }
  .hdr__logo img { width: 104px; }
  .hdr__acts { gap: 14px; }
  .hdr__nav { order: 3; width: 100%; gap: 6px 20px; font-size: 14px; }
  .hero { padding-top: 48px; }
  .hero__title { margin-top: 32px; font-size: 30px; }
  .hero__lead { font-size: 16px; }
  .hero__acts .btn { flex-basis: 100%; }
  .sec__title, .page-title { font-size: 26px; }
  .paid .page-title { font-size: 28px; }
  .seg { width: 100%; }
  .seg__btn { flex: 1 1 auto; padding: 0 10px; }
  .tiles, .plans { grid-template-columns: 1fr; }
  .how__num { width: 40px; font-size: 32px; }
  .faq__a { padding-right: 0; }
  .buy, .paid { padding-top: 32px; }
  .buy__main { gap: 24px; }
  .buy__form { gap: 24px; }
  .step__label { font-size: 14px; }
  .step__line { min-width: 8px; }
  .price--l { font-size: 28px; }
  .picked__side { width: 100%; justify-content: space-between; }
  .card, .cabinet { padding: 20px; }
  .cabinet .btn { width: 100%; }
  .ftr__in { flex-direction: column; align-items: flex-start; gap: 20px; }
}
@media (max-width: 380px) {
  .step__label { display: none; }
  .step.is-current .step__label { display: inline; }
}

/* Знак рубля из того же шрифта; отдельное подмножество U+20BD (OFL). */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/site/static/fonts/inter-currency-400-normal.woff2') format('woff2'); unicode-range: U+20BD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/site/static/fonts/inter-currency-500-normal.woff2') format('woff2'); unicode-range: U+20BD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/site/static/fonts/inter-currency-600-normal.woff2') format('woff2'); unicode-range: U+20BD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 600; font-display: swap; src: url('/site/static/fonts/unbounded-currency-600-normal.woff2') format('woff2'); unicode-range: U+20BD; }

/* Страница подключения Happ */
.connect { width: min(100%, 520px); margin: auto; padding: 40px 24px; }
.connect__logo { margin: 0 auto 32px; }
.connect h1 { font-size: clamp(24px, 6vw, 32px); line-height: 1.2; text-align: center; }
.connect__intro { color: var(--ink2); text-align: center; margin: 16px 0 28px; }
.connect > .btn { width: 100%; }
.connect__hint { color: var(--muted); font-size: 13px; text-align: center; margin: 12px 0 32px; }
.connect__steps { padding: 24px; border: 1px solid var(--line); border-radius: 16px; }
.connect__steps h2 { font-size: 18px; margin: 0 0 12px; }
.connect__steps ol { padding-left: 20px; margin: 0; }
.connect__steps li + li { margin-top: 10px; }
.connect__manual { margin-top: 24px; }
.connect__manual summary { cursor: pointer; font-weight: 600; }
.connect__link { display: block; overflow-wrap: anywhere; padding: 12px; background: var(--fill); border-radius: 8px; margin: 12px 0; font-size: 12px; user-select: all; }
