/* ============ A11Y / AI-SEARCH HELPER ============ */
/* Keeps content in the DOM & accessibility tree for crawlers/AI search,
   while removing it from the visual layout (no space, not painted). */
.visually-hidden {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important; white-space: nowrap !important;
  border: 0 !important;
}

/* ============ FONTS ============ */
/* Display font 'Unbounded' (Google Fonts, OFL license) loaded via <link>
   in <head> (see index.html / instrukciya.html). */

:root {
  /* light theme — Vercel / Apple / Fireblocks clean */
  --bg:        #ffffff;
  --surface:   #ffffff;
  --alt:       #f6f6f7;
  --line:      rgba(10, 10, 10, 0.10);
  --text:      #0a0a0a;
  --muted:     #54545a;
  --faint:     #6b6b70;   /* AA-safe on white (~4.6:1) */
  /* single accent — acid lime */
  --accent:    #F7482F;
  --accent-2:  #ff5e45;
  --accent-deep:#d63a26;
  --accent-ink:#ffffff;   /* text sitting on accent */

  --display: 'Unbounded', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, sans-serif;
  --body: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --r-sm: 8px; --r-md: 14px; --r-lg: 24px; --r-xl: 36px;
  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* white-fill SVG logos → render dark on light surfaces */
.logo-dark { filter: invert(1) brightness(0.06); }

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--accent); z-index: 100; transition: width .1s linear;
}

/* ============ BUTTONS ============ */
.btn {
  --pad-y: 13px; --pad-x: 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--r-sm); border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
  transition: transform .25s cubic-bezier(.16,1,.3,1), background .25s, border-color .25s, box-shadow .25s, color .25s;
  white-space: nowrap;
}
/* primary = near-black (Vercel) with lime on hover */
.btn--primary { background: var(--text); color: #fff; }
.btn--primary:hover { background: #000; transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(0,0,0,.5); }
/* lime accent button */
.btn--lime { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn--lime:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 10px 28px -10px var(--accent-deep); }
/* ghost = dark surfaces (header over hero) */
.btn--ghost { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.25); }
.btn--ghost:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }
/* light = neutral on dark hero */
.btn--light { background: #fff; color: #0a0a0a; }
.btn--light:hover { background: #f0f0f0; transform: translateY(-2px); }
.btn--sm { --pad-y: 9px; --pad-x: 16px; font-size: 14px; }
.btn--lg { --pad-y: 16px; --pad-x: 28px; font-size: 16px; }
.btn--block { width: 100%; }

/* ============ HEADER ============ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  transition: background .3s, backdrop-filter .3s, border-color .3s,
              transform .4s cubic-bezier(.22,1,.36,1), opacity .4s ease;
  border-bottom: 1px solid transparent;
}
/* Hidden over the hero; slides in only after the hero is scrolled past. */
.header--hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.header__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; gap: 32px;
}
.header__brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 18px; width: auto; }
.brand-logo--asterium { height: 13px; }
.brand-x { color: var(--faint); font-size: 18px; font-weight: 300; }
.header__brand img { filter: none; transition: filter .3s; }
.header__nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.header__nav a { font-size: 14px; color: rgba(255,255,255,0.75); transition: color .2s; }
.header__nav a:hover { color: #fff; }
.header__cta { margin-left: 8px; }
.header.is-scrolled {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: var(--line);
}
.header.is-scrolled .header__brand img { filter: invert(1) brightness(0.06); }
.header.is-scrolled .brand-x { color: var(--faint); }
.header.is-scrolled .header__nav a { color: var(--muted); }
.header.is-scrolled .header__nav a:hover { color: var(--text); }
.header.is-scrolled .btn--ghost { background: var(--alt); color: var(--text); border-color: var(--line); }
.header__right { display: flex; align-items: center; gap: 14px; margin-left: auto; }

/* language switcher */
.lang { display: inline-flex; gap: 2px; padding: 3px; border-radius: 100px; background: rgba(255,255,255,0.1); }
.header.is-scrolled .lang { background: var(--alt); }
.lang__btn {
  border: none; background: transparent; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: rgba(255,255,255,0.65); padding: 5px 10px; border-radius: 100px; transition: color .2s, background .2s;
}
.header.is-scrolled .lang__btn { color: var(--muted); }
.lang__btn.is-active { background: var(--accent); color: var(--accent-ink); }
.header.is-scrolled .lang__btn.is-active { color: var(--accent-ink); }

/* burger */
.burger {
  display: none; width: 40px; height: 40px; border: none; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.burger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s, background .3s; }
.header.is-scrolled .burger span { background: var(--text); }
.menu.is-open ~ * .burger span,
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .header__nav { display: none; }
  .header .lang { display: none; }      /* lang lives in the menu on mobile */
  .header__cta { display: none; }
  .burger { display: flex; }
}

/* mobile menu overlay */
.menu {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(0,0,0,0.97); backdrop-filter: blur(12px);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 28px;
  padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s ease;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__nav { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.menu__nav a {
  font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -0.02em; color: #fff;
  transition: color .2s;
}
.menu__nav a:hover { color: var(--accent); }
.menu__lang { display: inline-flex; gap: 4px; padding: 4px; border-radius: 100px; background: rgba(255,255,255,0.12); }
.menu__lang .lang__btn { color: rgba(255,255,255,0.7); font-size: 14px; padding: 8px 16px; }
.menu__lang .lang__btn.is-active { background: var(--accent); color: var(--accent-ink); }
.menu .btn--block { max-width: 320px; }

/* ============ TERMS SECTION — bento cards ============ */
.terms-section { background: var(--bg); padding: clamp(40px,7vw,80px) 0; }
/* black rounded container, all 4 corners 32px — clips cards so nothing escapes the frame */
.terms-box {
  max-width: 1240px; margin: 0 auto;
  background: #000; border-radius: 32px; overflow: hidden;
  padding: clamp(40px,6vw,72px) clamp(20px,3vw,40px) clamp(48px,6vw,72px);
}
.terms-box .eyebrow { color: rgba(255,255,255,0.55); }
.terms-box .section__title { color: #fff; }

/* CARD: bento image as full visual, text overlaid at top. NO border (it clipped shadow). */
.terms-card {
  position: relative;
  aspect-ratio: 738 / 898;
  border-radius: 28px;
  background-image: var(--img);
  background-size: cover; background-position: center;
  background-color: #0d0d0d;
  overflow: hidden;
}
/* contrast scrim behind the text (top of card) */
.terms-card::before {
  content: ''; position: absolute; inset: 0 0 50% 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 45%, transparent 100%);
  pointer-events: none;
}
.terms-card__text {
  position: absolute; top: 0; left: 0; right: 0;
  padding: 28px 26px 0;
  z-index: 2;
}
.terms-card__text h3 {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(20px, 1.7vw, 24px); line-height: 1.1; color: #fff; margin: 0 0 8px;
}
.terms-card__text p {
  font-family: var(--body); font-size: 13.5px; line-height: 1.45;
  color: rgba(255,255,255,0.92); max-width: 26ch;
}

/* ---- DESKTOP carousel ---- */
.terms-desktop { display: none; }
@media (min-width: 768px) { .terms-desktop { display: block; } }
.terms-swiper-d { overflow: visible !important; padding: 8px 0 !important; }
.terms-swiper-d .swiper-slide.terms-card {
  width: 320px !important;
  opacity: 0.45; transition: opacity .45s ease, transform .45s ease;
  transform: scale(0.94);
}
.terms-swiper-d .swiper-slide-active.terms-card { opacity: 1; transform: scale(1); }

.terms-d-controls {
  display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 36px;
}
.terms-d-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: none; cursor: pointer; color: #fff;
  display: grid; place-items: center; transition: background .2s, transform .2s;
}
.terms-d-btn:hover { background: var(--accent); color: var(--accent-ink); transform: scale(1.05); }
.terms-d-dots { display: flex; gap: 8px; align-items: center; }
.terms-d-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.25);
  border: none; cursor: pointer; padding: 0; transition: background .25s, transform .25s;
}
.terms-d-dot.is-active { background: var(--accent); transform: scale(1.3); }

/* ---- MOBILE swiper cards ---- */
.terms-mobile { display: flex; flex-direction: column; align-items: center; gap: 22px; }
@media (min-width: 768px) { .terms-mobile { display: none; } }
.terms-swiper-m {
  width: min(330px, calc(100vw - 72px));
  aspect-ratio: 738 / 898;
  overflow: visible !important;
}
.terms-swiper-m .terms-card { width: 100%; height: 100%; aspect-ratio: auto; }
.terms-m-hint {
  font-family: var(--body); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255,255,255,0.4); text-align: center;
}

/* ============ SECTIONS ============ */
.section { padding: clamp(44px, 7vw, 88px) 0; background: var(--bg); }
.section--alt { background: var(--alt); }
.section--tight { padding: 40px 0 90px; }
.eyebrow {
  display: block; font-family: var(--body);
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
}
.eyebrow--center { display: block; }
/* all section headings centered */
.section__title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(30px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -0.025em;
  text-align: center;
}
.section__title--center { text-align: center; }
.section__head { margin-bottom: 56px; max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center { margin-left: auto; margin-right: auto; }

/* ============ HOW ============ */
/* sticky stacking step cards (Skiper16-style) */
.howstack__list { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.hcard {
  position: sticky; top: calc(120px + var(--i) * 22px);
  margin-bottom: 24px;
  display: flex; gap: 28px; align-items: flex-start;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 28px; background: #0e0e10; color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.5);
  transform-origin: top center; will-change: transform;
}
.hcard--lime { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.hcard__num {
  font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4vw, 44px);
  line-height: 1; flex-shrink: 0; opacity: .9;
}
.hcard--lime .hcard__num { opacity: 1; }
.hcard__body { display: flex; flex-direction: column; align-items: flex-start; }
.hcard__body h3 {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(20px, 2.4vw, 30px); line-height: 1.1; margin-bottom: 10px;
}
.hcard__body p { font-size: clamp(14px, 1.4vw, 17px); line-height: 1.5; margin-bottom: 18px; opacity: .8; }
.hcard--lime .hcard__body p { opacity: .75; }
/* pill inside dark cards → light variant */
.hcard .pill { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.18); color: #fff; }
.hcard .pill svg { background: rgba(255,255,255,0.16); color: #fff; }
.hcard .pill:hover { border-color: #fff; }
.hcard--lime .pill { background: rgba(0,0,0,0.1); border-color: rgba(0,0,0,0.18); color: var(--accent-ink); }
.hcard--lime .pill svg { background: rgba(0,0,0,0.14); color: var(--accent-ink); }
@media (max-width: 600px){ .hcard{ flex-direction: column; gap: 12px; top: calc(96px + var(--i) * 16px);} }

/* pill button per step — animated arrow on hover */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px; padding: 9px 8px 9px 18px;
  border-radius: 100px; border: 1px solid var(--line); background: var(--surface);
  font-size: 14px; font-weight: 600; color: var(--text);
  transition: border-color .25s, background .25s, box-shadow .25s, transform .25s;
}
.pill svg {
  width: 16px; height: 16px; flex-shrink: 0;
  padding: 5px; box-sizing: content-box; border-radius: 50%;
  background: var(--alt); color: var(--text);
  transition: transform .3s cubic-bezier(.16,1,.3,1), background .25s, color .25s;
}
.pill:hover { border-color: var(--text); transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(0,0,0,.3); }
.pill:hover svg { transform: translateX(3px); }
.pill--lime { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pill--lime svg { background: rgba(0,0,0,0.12); color: var(--accent-ink); }
.pill--lime:hover { background: var(--accent-2); border-color: var(--accent-2); box-shadow: 0 12px 28px -12px var(--accent-deep); }

@media (max-width: 820px){ .how{ grid-template-columns: 1fr; } }

/* ============ TERMS ============ */
.terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.terms__feature {
  display: flex; gap: 16px; padding: 28px; border-radius: var(--r-md);
  background: var(--bg); border: 1px solid var(--line);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.section--alt .terms__feature { background: var(--bg); }
.terms__feature:hover { transform: translateY(-4px); border-color: var(--text); box-shadow: 0 12px 30px -16px rgba(0,0,0,0.18); }
.terms__check {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 7px;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 15px; font-weight: 700;
}
.terms__feature h4 { font-size: 16px; margin-bottom: 6px; }
.terms__feature p { font-size: 13.5px; color: var(--faint); line-height: 1.45; }
@media (max-width: 880px){ .terms{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 560px){ .terms{ grid-template-columns: 1fr;} }

/* ============ MARKET ============ */
.market { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.market__item {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 44px 24px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.market__item:hover { transform: translateY(-6px); border-color: var(--text); box-shadow: 0 16px 40px -20px rgba(0,0,0,0.22); }
.market__logo { width: 64px; height: 64px; object-fit: contain; }
.market__name { font-family: var(--display); font-weight: 700; font-size: 22px; }
@media (max-width: 760px){ .market{ grid-template-columns: 1fr; } }

/* ============ FORM ============ */
.formcard {
  max-width: 720px; margin: 0 auto; padding: clamp(32px, 5vw, 56px);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-xl);
}
.form { margin-top: 24px; display: flex; flex-direction: column; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-size: 13px; color: var(--muted); }
.field input {
  font: inherit; font-size: 16px; color: var(--text);
  padding: 15px 16px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: var(--faint); }
.field input:focus { outline: none; border-color: var(--accent-deep); box-shadow: 0 0 0 3px rgba(247,72,47,0.3); }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--faint); }
.agree input { accent-color: var(--accent-deep); margin-top: 3px; }
.form__success { color: var(--accent-deep); font-size: 14px; text-align: center; font-weight: 600; }
@media (max-width: 520px){ .form__row{ grid-template-columns: 1fr;} }

/* ============ CONTACT ============ */
.contact {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
  padding: clamp(32px, 5vw, 56px); border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.contact__heading { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.02em; }
.contact__list { display: flex; gap: 40px; flex-wrap: wrap; }
.contact__item { display: flex; align-items: center; gap: 14px; transition: transform .25s; }
.contact__item:hover { transform: translateY(-2px); }
.contact__icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 20px;
}
.contact__icon--tg { background: none; padding: 0; }
.contact__icon--tg img { width: 52px; height: 52px; display: block; }
.contact__item strong { display: block; font-family: var(--display); font-size: 18px; }
.contact__item small { color: var(--muted); font-size: 14px; }

/* ============ FOOTER — clean white, 4 columns + brand row ============ */
.footer { background: #fff; border-top: 1px solid var(--line); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(48px,7vw,72px) 24px 32px; }

/* link columns */
.footer__cols {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__label {
  font-family: var(--body); font-weight: 700; font-size: 16px; color: #000; margin-bottom: 2px;
}
.footer__col a { font-size: 15px; color: var(--muted); width: max-content; transition: color .2s, transform .2s; }
.footer__col a:hover { color: var(--text); transform: translateX(2px); }

/* brand + socials row */
.footer__brandrow {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: clamp(40px,6vw,64px); padding-top: 28px; border-top: 1px solid var(--line);
}
.footer__logos { display: flex; align-items: center; gap: 12px; }
.footer__logos img { height: 22px; }
.footer__logos img:first-child { height: 15px; }
.footer__logos .brand-x { color: var(--faint); font-size: 18px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 12px; color: var(--text);
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.footer__social a:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }
.footer__social svg { width: 18px; height: 18px; }

.footer__disclaimer {
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line);
  color: var(--faint); font-size: 12px; line-height: 1.55; max-width: 92ch;
}
.footer__bottom { margin-top: 22px; }
.footer__bottom p { color: var(--faint); font-size: 13px; }

@media (max-width: 720px){
  .footer__cols { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .footer__brandrow { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* ============ REVEAL ============ */
[data-reveal] { opacity: 0; transform: translateY(28px); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal]{ opacity:1 !important; transform:none !important; }
}

/* ============ V2.0 — TOUCH TARGETS & STATES ============ */
.btn { min-height: 44px; }
.btn:active { transform: scale(.97); }
:where(.btn, a, input, button):focus-visible {
  outline: 2px solid var(--accent-deep); outline-offset: 2px; border-radius: 4px;
}
.market__item, .contact__item, .how__step { min-height: 44px; }
.market__item:active, .how__step:active { background: var(--alt); }
.footer__social a { width: 44px; height: 44px; }
/* on touch devices, default (non-hover) state must already read as finished */
@media (hover: none) {
  .market__item, .terms__feature { border-color: var(--line); }
}

/* ============ HERO ============ */
/* Single hero markup is used at ALL widths (mobile-style composition). */
/* tall scroll-track; the inner pin sticks for the reveal duration */
.hero-mob { display: block; background: var(--bg); height: 180svh; position: relative; }
.hero-mob__pin {
  position: sticky; top: 0;
  height: 100svh; width: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  background: #000; overflow: hidden;
  border-radius: 0 0 32px 32px;
}
/* desktop refinement: keep the centered mobile composition, cap widths, bigger video frame */
@media (min-width: 768px) {
  .hero-mob__top { padding-top: clamp(120px, 18vh, 200px); }
  .hero-mob__title { font-size: clamp(44px, 5vw, 72px) !important; max-width: 18ch !important; }
  .hero-mob__sub { font-size: 18px !important; max-width: 46ch !important; }
  .hero-mob__btn { font-size: 16px !important; min-height: 52px !important; padding: 14px 28px !important; }
  .hero-mob__visual { max-height: min(78vh, calc(100svh - 330px)) !important; }   /* ~1.7x bigger, always fully visible */
  .hero-mob__pos { max-width: min(560px, 42vw) !important; }
  .hero-mob__phone { width: min(620px, 64vw) !important; border-radius: 28px 28px 0 0; }
}

/* ── TOP: centered smaller text — pushed below the fixed header ── */
.hero-mob__top {
  padding: clamp(84px, 11vh, 120px) 28px 4px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  flex-shrink: 0;
  position: relative; z-index: 10;   /* keep title/CTA above the card layer */
}

/* headline — smaller + centered */
.hero-mob__title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(26px, 7.6vw, 34px); line-height: 1.06; letter-spacing: -0.025em;
  color: #fff; margin: 0; max-width: 14ch;
}
.hero-mob__title em { font-style: normal; color: var(--accent); }

/* subtitle */
.hero-mob__sub {
  font-size: 14px; line-height: 1.55; color: rgba(255,255,255,0.78);
  max-width: 30ch;
}

/* pill buttons — centered row */
.hero-mob__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-mob__btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 100px; font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; min-height: 46px; transition: transform .2s, background .2s;
}
.hero-mob__btn:active { transform: scale(.97); }
.hero-mob__btn--ghost { background: rgba(255,255,255,0.10); color: #fff; }
.hero-mob__btn--lime  { background: var(--accent); color: var(--accent-ink); }

/* ── VISUAL: phone-frame at bottom, video fills it ── */
/* Matches reference: Frame 13 — 402×674 shape, bottom border-radius 33.5px */
.hero-mob__visual {
  position: relative;             /* anchor for the desktop card layer */
  flex: 1; min-height: 0;
  /* big terminal — as large as the space allows, but always fully visible.
     Box is extended 150px upward (margin/padding cancel out so the terminal
     stays put) and the top is a soft mask-fade instead of a hard clip — the
     card emerges/parks with a gradient edge, never a sharp cut. */
  max-height: calc(min(clamp(460px, 70vh, 680px), calc(100svh - 280px)) + 150px);
  margin-top: -150px; padding-top: 150px;
  display: flex; justify-content: center; align-items: flex-end;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 150px);
          mask-image: linear-gradient(to bottom, transparent 0, #000 150px);
}
/* pos.png — rises fully into view from below on scroll (replaces the video) */
.hero-mob__pos {
  width: auto; height: 100%; max-width: 100%;
  object-fit: contain; object-position: center bottom;
  transform: translateY(82%);     /* JS drives this 82% → 0 on scroll (see main.js) */
  will-change: transform;
  filter: drop-shadow(0 -10px 60px rgba(247,72,47,0.18));
  position: relative; z-index: 1;
}

/* ── DESKTOP-ONLY: bank card slides up to the terminal's NFC zone (separate layer) ── */
.hero-mob__card { display: none; }            /* mobile: animation disabled entirely */
@media (min-width: 769px) and (pointer: fine) {
  .hero-mob__card {
    display: block; position: absolute;
    left: 50%; top: 0; z-index: 2;             /* above terminal, below text/CTA */
    width: clamp(195px, 25vw, 345px); height: auto;   /* ~terminal width (0.75× previous) */
    /* JS sets translateY (px) so the card tracks the terminal's NFC zone on any screen */
    transform: translateX(-50%) translateY(-130%);
    transform-origin: center bottom;
    filter: drop-shadow(0 26px 44px rgba(0,0,0,0.45));
    pointer-events: none; will-change: transform;
  }
}

/* ============ QR PAYMENTS — scroll-morph (circle → bottom arc) ============ */
.qr-section { position: relative; background: var(--bg); }
.qr-pin { height: 100svh; overflow: hidden; }
.qr-stage { position: relative; width: 100%; height: 100%; }
/* centered title */
.qr-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 1; text-align: center; padding: 0 24px; width: 100%; max-width: 720px;
  pointer-events: none;
}
.qr-center .eyebrow { margin: 0 0 14px; }
.qr-title {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.03em;
  font-size: clamp(30px, 5.5vw, 70px); line-height: 1.04; color: var(--text); margin: 0 auto;
  max-width: 16ch;
}
.qr-hint { margin-top: 16px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
/* orbit container — icons absolutely positioned, moved by JS from circle → arc */
.qr-orbit { position: absolute; inset: 0; z-index: 2; }
.qr-icon {
  position: absolute; left: 50%; top: 50%;
  width: clamp(50px, 6vw, 78px); height: clamp(50px, 6vw, 78px);
  margin-left: calc(clamp(50px, 6vw, 78px) / -2);
  margin-top: calc(clamp(50px, 6vw, 78px) / -2);
  border-radius: 26px; overflow: hidden; will-change: transform;
  box-shadow: 0 16px 36px -16px rgba(0,0,0,0.4);
}
.qr-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* reduced-motion / no-JS fallback: simple centered row under the title */
.qr-section.no-morph .qr-orbit { position: static; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; padding-top: 24px; }
.qr-section.no-morph .qr-icon { position: static; margin: 0; }
.qr-section.no-morph .qr-center { position: static; transform: none; margin: 0 auto; padding-top: 12vh; }
.qr-section.no-morph .qr-pin { height: auto; padding: 90px 24px; }

/* ============ PURCHASE MODAL ============ */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(6px); }
.modal__card {
  position: relative; z-index: 2; width: 100%; max-width: 460px;
  background: var(--surface); border-radius: 28px; padding: 40px 32px 32px;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.5);
  transform: translateY(16px) scale(0.98); transition: transform .35s cubic-bezier(.16,1,.3,1);
}
.modal.is-open .modal__card { transform: none; }
.modal__close {
  position: absolute; top: 18px; right: 18px; width: 36px; height: 36px;
  border: none; border-radius: 50%; background: var(--alt); color: var(--text);
  display: grid; place-items: center; cursor: pointer; transition: background .2s;
}
.modal__close:hover { background: #e6e6e8; }
.modal__eyebrow { font-family: var(--body); font-size: 13px; color: var(--accent-deep); font-weight: 600; margin-bottom: 8px; }
.modal__title { font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: -0.02em; margin-bottom: 8px; }
.modal__sub { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.modal__list { display: flex; flex-direction: column; gap: 10px; }
.modal__option {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line);
  transition: border-color .2s, background .2s, transform .2s;
}
.modal__option:hover { border-color: var(--text); background: var(--alt); transform: translateX(2px); }
.modal__option img { width: 40px; height: 40px; object-fit: contain; }
.modal__option-name { font-family: var(--display); font-weight: 700; font-size: 17px; flex: 1; }
.modal__arrow { color: var(--faint); }
.modal__option:hover .modal__arrow { color: var(--text); }
/* mobile-adaptive modal */
@media (max-width: 600px) {
  .modal { padding: 16px; align-items: flex-end; }
  .modal__card {
    max-width: 100%; max-height: 88vh; overflow-y: auto;
    border-radius: 24px; padding: 32px 20px 24px;
    transform: translateY(40px);
  }
  .modal__title { font-size: 23px; }
  .modal__sub { font-size: 13px; margin-bottom: 18px; }
  .modal__option { padding: 12px 14px; gap: 12px; }
  .modal__option img { width: 34px; height: 34px; }
  .modal__option-name { font-size: 15px; }
}


/* ============ TRUST BAND ============ */
.trust { padding: 56px 0; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.trust__num { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.4vw, 46px); line-height: 1; color: var(--accent); letter-spacing: -0.02em; }
.trust__label { margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
@media (max-width: 720px){ .trust__grid{ grid-template-columns: repeat(2,1fr); gap: 28px 16px; } }

/* ============ FAQ ============ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow: hidden; transition: border-color .2s; }
.faq__item[open] { border-color: var(--accent); }
.faq__item summary { list-style: none; cursor: pointer; padding: 20px 24px; font-family: var(--display); font-weight: 700; font-size: clamp(16px,1.8vw,19px); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; font-weight: 400; font-size: 26px; color: var(--accent); transition: transform .25s; line-height: 1; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 24px 22px; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ============ FLOATING TELEGRAM ============ */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  display: inline-flex; align-items: center; gap: 0; overflow: hidden;
  height: 56px; padding: 0 16px; border-radius: 100px;
  background: var(--accent); color: #fff; box-shadow: 0 12px 30px -8px rgba(247,72,47,.5);
  transition: transform .25s, box-shadow .25s, gap .3s, padding .3s;
}
.fab svg { width: 24px; height: 24px; flex-shrink: 0; }
/* Telegram-logo FAB: the brand circle is the button; hover expands a blue pill */
.fab--tg { background: transparent; box-shadow: none; padding: 0; gap: 0; }
.fab--tg .fab__logo { width: 56px; height: 56px; flex-shrink: 0; display: block; border-radius: 50%; box-shadow: 0 12px 30px -8px rgba(34,158,217,.55); }
.fab--tg:hover { transform: translateY(-2px); background: linear-gradient(#2AABEE,#229ED9); padding-right: 20px; gap: 10px; box-shadow: 0 14px 34px -8px rgba(34,158,217,.6); }
.fab--tg .fab__label { color: #fff; }
.fab__label { max-width: 0; opacity: 0; white-space: nowrap; font-weight: 600; font-size: 15px; transition: max-width .35s, opacity .25s, margin .3s; }
.fab:hover { transform: translateY(-2px); gap: 10px; }
.fab:hover .fab__label { max-width: 220px; opacity: 1; }
@media (max-width: 600px){ .fab{ right: 16px; bottom: 16px; } .fab:hover .fab__label{ max-width: 0; opacity: 0; } }

/* ============ AUDIT FIXES: a11y, callback option ============ */
.modal__option--call { background: rgba(247,72,47,0.06); border-color: rgba(247,72,47,0.25); }
.modal__callicon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 18px; flex-shrink: 0; }
.modal__option--call .modal__option-name { color: var(--accent-deep); font-weight: 700; }

/* global reduced-motion safety net — kill all transitions/animations & GPU loops */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ============ LEGITIMACY STRIP ============ */
.legit { background: var(--alt); border-bottom: 1px solid var(--line); padding: 18px 0; }
.legit__inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 36px; }
.legit__item { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--muted); }
.legit__item svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.legit__item b { color: var(--text); }
@media (max-width: 720px){ .legit__inner{ flex-direction: column; align-items: center; gap: 10px; text-align: center; } }

/* ============ CLIENT LOGOS MARQUEE ============ */
.clients { padding: 48px 0 8px; background: var(--bg); overflow: hidden; }
.clients__label { text-align: center; font-size: 14px; color: var(--faint); margin-bottom: 26px; }
.clients__marquee { position: relative; width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.clients__track { display: flex; gap: 18px; width: max-content; will-change: transform; }
.client-chip { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 28px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--text); white-space: nowrap; }
.client-chip--humo { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ============ ECOSYSTEM ============ */
.eco { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.eco__card { position: relative; padding: 28px; border-radius: var(--r-lg); background: var(--surface);
  border: 1px solid var(--line); transition: transform .25s, border-color .25s, box-shadow .25s; }
.eco__card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 16px 40px -22px rgba(0,0,0,.22); }
.eco__card h3 { font-family: var(--display); font-weight: 700; font-size: 22px; margin-bottom: 8px; }
.eco__card p { font-size: 14px; color: var(--muted); line-height: 1.45; max-width: 22ch; }
.eco__arrow { position: absolute; top: 24px; right: 24px; color: var(--accent); font-size: 20px; transition: transform .25s; }
.eco__card:hover .eco__arrow { transform: translate(3px,-3px); }
@media (max-width: 880px){ .eco{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px){ .eco{ grid-template-columns: 1fr; } }

/* ============ PAYMENT METHODS STRIP ============ */
.paystrip { padding: 8px 0 56px; background: var(--bg); overflow: hidden; }
.paystrip__label { text-align: center; font-size: 14px; color: var(--faint); margin-bottom: 22px; }
.client-chip--pay { height: 50px; padding: 0 24px; font-size: 17px; background: var(--alt); }

/* ============ PROOF — unified trust block (title + stats + logos) ============ */
.proof { padding: clamp(44px, 7vw, 88px) 0; background: var(--bg); }
.proof__card {
  background: #fff; border: none; border-radius: var(--r-xl);
  padding: clamp(36px, 5vw, 60px) 0; overflow: hidden;
  box-shadow: none;
}
.proof__title {
  text-align: center; font-family: var(--display); font-weight: 700;
  font-size: clamp(24px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.02em;
  color: var(--text); margin: 0 auto clamp(28px, 4vw, 44px); max-width: 18ch;
  padding: 0 24px;
}
.proof__title span { color: var(--accent); }
.proof__nums {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 24px; text-align: center; padding: 0 clamp(24px, 5vw, 56px);
  margin-bottom: clamp(32px, 4.5vw, 52px);
}
.proof__num { position: relative; }
.proof__num + .proof__num::before {
  content: ''; position: absolute; left: -12px; top: 6px; bottom: 6px; width: 1px; background: var(--line);
}
.proof__num b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(30px,3.6vw,50px); line-height: 1; color: var(--accent); letter-spacing: -0.02em; }
.proof__num span { display: block; margin-top: 10px; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
@media (max-width: 720px){
  .proof__nums{ grid-template-columns: repeat(2,1fr); gap: 30px 16px; }
  .proof__num:nth-child(odd)::before { display: none; }   /* dividers only between columns visually */
}

/* ============ STICKY CTA DOCK ============ */
.cta-dock {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(20px);
  z-index: 80; display: flex; align-items: center; gap: 14px;
  padding: 8px 8px 8px 20px; border-radius: 100px;
  background: #0a0a0a; box-shadow: 0 16px 40px -10px rgba(0,0,0,.5);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
}
.cta-dock.show { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.cta-dock__price { color: #fff; font-size: 15px; white-space: nowrap; }
.cta-dock__price b { font-family: var(--display); font-weight: 700; }
.cta-dock__price span { color: rgba(255,255,255,.6); }
@media (max-width: 600px){
  .cta-dock { left: 12px; right: 12px; bottom: 12px; transform: translateY(20px); justify-content: space-between; padding: 8px 8px 8px 18px; }
  .cta-dock.show { transform: translateY(0); }
  .cta-dock__price span { display: none; }
  .fab { bottom: 78px; }   /* lift Telegram FAB above the dock */
}

/* sticky-dock button → pill */
.cta-dock__btn { border-radius: 100px !important; }

/* proof marquee — 3 rows of partner logos, no frames */
.clients__rows { display: flex; flex-direction: column; gap: 22px; }
.clients__rows .clients__marquee::before,
.clients__rows .clients__marquee::after { content: none; }   /* drop edge fades if any */
.client-chip--logo {
  height: auto; padding: 0 34px; border: none; background: none;   /* no frame */
}
.client-chip--logo img { height: 46px; width: auto; max-width: 180px; object-fit: contain; opacity: .85; }
@media (max-width: 600px){
  .clients__rows { gap: 16px; }
  .client-chip--logo { padding: 0 22px; }
  .client-chip--logo img { height: 34px; }
}

/* ============ AI-SEARCH ANSWER BLOCK ============ */
.answer { background: var(--bg); }
.answer__lead { text-align: center; margin-bottom: 44px; }
.answer__h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em;
  font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; margin-bottom: 18px; }
.answer__p { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6; color: var(--muted); max-width: 70ch; margin: 0 auto; }
.answer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.answer__item { padding: 26px; border-radius: var(--r-md); background: var(--alt); border: 1px solid var(--line); }
.answer__item h3 { font-family: var(--display); font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.answer__item h3::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); margin-right: 9px; vertical-align: middle; }
.answer__item p { font-size: 15px; line-height: 1.55; color: var(--muted); }
@media (max-width: 640px){ .answer__grid{ grid-template-columns: 1fr; } }

/* ============ PROMO — benefit cards ============ */
.promo__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px;
}
.promo__card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 32px; border-radius: var(--r-lg);
  background: #14151a; color: #fff; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform .25s, border-color .25s;
}
.promo__card:hover { transform: translateY(-4px); border-color: var(--accent); }
.promo__card--accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.promo__eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
}
.promo__card--accent .promo__eyebrow { color: var(--accent-ink); opacity: .8; }
.promo__title {
  font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.12; letter-spacing: -0.02em; margin: 0;
}
.promo__tag { font-size: 15px; line-height: 1.45; color: rgba(255,255,255,0.72); margin: 0; }
.promo__card--accent .promo__tag { color: var(--accent-ink); opacity: .85; }
.promo__more {
  margin-top: auto; padding-top: 14px; font-size: 13px; letter-spacing: .02em;
  color: rgba(255,255,255,0.5);
}
.promo__card--accent .promo__more { color: var(--accent-ink); opacity: .7; }
@media (max-width: 720px){
  .promo__grid { grid-template-columns: 1fr; gap: 14px; }
  .promo__card { padding: 24px; }
}

/* ============ HOW-TO — step-by-step article ============ */
.howto__lead {
  font-size: 17px; line-height: 1.6; color: var(--muted);
  text-align: center; max-width: 64ch; margin: 0 auto 40px;
}
.howto__steps { list-style: none; counter-reset: howto; display: flex; flex-direction: column; gap: 28px; }
.howto__step {
  position: relative; counter-increment: howto;
  padding: 28px 28px 28px 76px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.howto__step::before {
  content: counter(howto); position: absolute; left: 24px; top: 28px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 16px;
}
.howto__step h3 { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.25; margin: 0 0 10px; }
.howto__step p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0 0 8px; }
.howto__step p:last-child { margin-bottom: 0; }
.howto__step ul { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.howto__step ul li { font-size: 15px; line-height: 1.55; color: var(--muted); }
.howto__hint { font-size: 14px !important; color: var(--text) !important; background: var(--alt); padding: 12px 14px; border-radius: 12px; }
.howto__note {
  margin-top: 28px; padding: 24px 28px; border-radius: var(--r-lg);
  background: var(--alt); border: 1px dashed var(--line);
}
.howto__note strong { display: block; font-family: var(--display); font-weight: 700; font-size: 16px; margin-bottom: 8px; color: var(--accent-deep); }
.howto__note p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; }
@media (max-width: 600px){
  .howto__lead { font-size: 15px; margin-bottom: 28px; }
  .howto__step { padding: 22px 20px 22px 20px; }
  .howto__step::before { position: static; margin-bottom: 12px; }
}

/* ============ utility ============ */
.nbr { white-space: nowrap; }

/* ============ DOC PAGE (instrukciya) ============ */
.page-doc { background: var(--bg); }
.doc-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.85); backdrop-filter: blur(14px) saturate(160%); border-bottom: 1px solid var(--line); }
.doc-header__inner { max-width: var(--maxw); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 20px; }
.doc-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.doc-back svg { width: 18px; height: 18px; }
.doc-back:hover { color: var(--accent); }
.doc-brand { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.doc-brand .brand-logo { height: 18px; width: auto; }
.doc-brand .brand-logo--asterium { height: 13px; }
.doc-brand img { filter: invert(1) brightness(0.06); }
.howto--page { padding-top: clamp(40px, 7vh, 72px); padding-bottom: clamp(60px, 10vh, 110px); }
.howto--page .howto__steps { opacity: 1; }
.howto__cta { margin-top: 40px; text-align: center; }
@media (max-width: 480px){
  .doc-header__inner { gap: 12px; padding: 12px 16px; }
  .doc-back span { display: none; }            /* keep just the arrow on narrow screens */
  .doc-brand .brand-logo { height: 16px; }
  .doc-brand .brand-logo--asterium { height: 11px; }
}


/* ============ anti-flicker: promote animated layers, stop image repaint jitter ============ */
.clients__track {
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transform: translateZ(0); perspective: 1000px;
}
.client-chip--logo img, .qr-icon img, .hero-mob__pos {
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  -webkit-transform: translateZ(0); image-rendering: auto;
}
