/* ==========================================================================
   u.stin vpn — базовые стили (все страницы)
   Сброс, типографика, кнопки, шапка, меню, подвал, модалка, тост,
   интро, система появления, 3D-карта доступа. Всё — на токенах tokens.css.
   ========================================================================== */

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  background: var(--bg);
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--text);
  font-family: var(--f-body); font-size: 16px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  overflow-x: clip;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p, h1, h2, h3, h4, h5, figure, dl, dd, blockquote { margin: 0; }
h1, h2, h3, h4 { font-weight: inherit; font-size: inherit; }
b, strong { font-weight: 600; }
em { font-style: normal; }
[hidden] { display: none !important; }
::selection { background: rgba(var(--sky-rgb), .32); color: #fff; }
:focus-visible { outline: 2px solid rgba(var(--sky-rgb), .9); outline-offset: 3px; border-radius: 6px; }

/* ---------- Каркас ---------- */
.page { position: relative; overflow-x: clip; } /* clip не мешает position: sticky */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { position: relative; padding-block: var(--section-y); }
.visually-hidden, .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-link {
  position: fixed; left: 16px; top: 12px; z-index: calc(var(--z-intro) + 1);
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--ice); color: var(--bg); font-weight: 600; font-size: 14px;
  translate: 0 -200%; transition: translate .4s var(--ease-out);
}
.skip-link:focus { translate: 0 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Типографика ---------- */
.h1, .display, .h2, .h3 { font-family: var(--f-display); color: var(--text); text-wrap: balance; }
.h1, .display {
  font-size: clamp(40px, 6.6vw, 104px); font-weight: 350;
  letter-spacing: -.045em; line-height: 1.02;
}
.h2 {
  font-size: clamp(32px, 4.7vw, 70px); font-weight: 350;
  letter-spacing: -.042em; line-height: 1.06;
}
.h3 {
  font-size: clamp(19px, 1.55vw, 23px); font-weight: 400;
  letter-spacing: -.025em; line-height: 1.22;
}
.lead {
  font-size: clamp(16px, 1.3vw, 19px); line-height: 1.62; color: var(--text-2);
  max-width: 36em; text-wrap: pretty;
}
.mono { font-family: var(--f-mono); font-feature-settings: "zero" 0; }

/* Градиентное акцентное слово (у Unbounded нет курсива — только цвет) */
.grad, .h1 em, .h2 em, .h3 em, .display em {
  font-style: normal;
  background: var(--grad-text); background-size: 200% 100%; background-position: 0 0;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: gradShift 9s ease-in-out infinite alternate;
  padding-bottom: .06em; /* нижние выносные элементы не обрезаются */
}
@keyframes gradShift { to { background-position: 100% 0; } }

/* Надзаголовок-«пилюля» */
.eyebrow, .label {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: var(--r-pill);
  font-family: var(--f-mono); font-size: 11px; font-weight: 500; line-height: 1;
  letter-spacing: .16em; text-transform: uppercase; color: var(--sky);
  background: linear-gradient(180deg, rgba(var(--sky-rgb), .09), rgba(var(--sky-rgb), .03));
  box-shadow: inset 0 0 0 1px rgba(var(--sky-rgb), .2), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.eyebrow::before, .label::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: var(--sky); box-shadow: 0 0 10px 1px rgba(var(--sky-rgb), .8);
  animation: dotPulse 2.6s ease-in-out infinite;
}
.label b { color: var(--text-3); font-weight: 400; }
@keyframes dotPulse { 50% { opacity: .35; box-shadow: 0 0 4px rgba(var(--sky-rgb), .4); } }

/* Заголовки секций */
.section-head { display: grid; gap: 22px; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head .eyebrow { justify-self: start; }
.section-head--center { justify-items: center; text-align: center; }
.section-head--center .eyebrow { justify-self: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head--center .h2 { max-width: 15em; }
.section-head--split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; column-gap: clamp(32px, 6vw, 96px); }
.section-head--split > div { display: grid; gap: 22px; }
.section-head--split .lead { padding-bottom: .5em; }

/* Чипы */
.chip {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px;
  border-radius: var(--r-pill); font-size: 12.5px; font-weight: 500; color: var(--text-2); white-space: nowrap;
  background: rgba(var(--navy-rgb), .6); box-shadow: inset 0 0 0 1px var(--line-2);
}
.chip .i { width: 15px; height: 15px; margin-right: 8px; color: var(--sky); }
.chip b { font-weight: 600; color: var(--text); }

/* ---------- Кнопки ---------- */
.btn {
  --btn-h: 50px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  height: var(--btn-h); padding: 0 26px; border-radius: var(--r-pill);
  font-family: var(--f-body); font-size: 15px; font-weight: 650; line-height: 1; letter-spacing: -.005em;
  white-space: nowrap; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: box-shadow .6s var(--ease-out), background-color .4s, color .4s, scale .35s var(--ease-out), opacity .3s;
}
.btn__label { position: relative; z-index: 2; display: inline-flex; align-items: center; pointer-events: none; }
/* отступы у иконок, а не gap: текст, разбитый на узлы («Смотреть&nbsp;<span>…»), не разъезжается */
.btn .i { width: 18px; height: 18px; stroke-width: 1.8; }
.btn__label > .i { margin-left: 10px; }
.btn__label > .i--lead { margin-left: 0; margin-right: 10px; }
.btn .i--arrow { transition: translate .6s var(--ease-out); }
.btn:hover .i--arrow { translate: 4px 0; }
.btn:active { scale: .965; transition-duration: .12s; }
.btn[disabled], .btn.is-disabled { opacity: .45; cursor: not-allowed; }
.btn--sm { --btn-h: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { --btn-h: 60px; padding: 0 32px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }

/* Главная — светящаяся «ледяная» капсула */
.btn--primary, .btn--solid {
  color: #051331;
  background: linear-gradient(180deg, #ffffff 0%, #e4f2ff 48%, #bcdcff 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -2px 6px rgba(var(--azure-rgb), .22),
    0 0 0 1px rgba(var(--sky-rgb), .45),
    0 10px 30px -10px rgba(var(--azure-rgb), .75),
    0 0 44px -10px rgba(var(--sky-rgb), .55);
}
/* блик-перелив при наведении */
.btn--primary::before, .btn--solid::before {
  content: ""; position: absolute; inset: -2px -40%; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .95) 48%, rgba(var(--sky-rgb), .55) 52%, transparent 62%);
  translate: -70% 0; opacity: 0;
  transition: translate 1s var(--ease-out), opacity .3s;
}
.btn--primary:hover::before, .btn--solid:hover::before { translate: 70% 0; opacity: 1; }
/* мягкий ореол, «дышит» у крупных кнопок */
.btn--primary::after, .btn--solid::after {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 140% at 50% 120%, rgba(var(--sky-rgb), .55), transparent 60%);
  opacity: .5; transition: opacity .6s;
}
.btn--primary:hover, .btn--solid:hover {
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -2px 6px rgba(var(--azure-rgb), .25),
    0 0 0 1px rgba(var(--sky-rgb), .7),
    0 16px 44px -12px rgba(var(--azure-rgb), .95),
    0 0 70px -8px rgba(var(--sky-rgb), .7);
}
.btn--primary:hover::after, .btn--solid:hover::after { opacity: 1; }

/* Вторичная — стекло с тонкой гранью */
.btn--ghost, .btn--line {
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)), rgba(var(--bg-rgb), .55);
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.btn--ghost::before, .btn--line::before {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--sky-rgb), .22), transparent 70%);
  opacity: 0; transition: opacity .5s;
}
.btn--ghost:hover, .btn--line:hover { box-shadow: inset 0 0 0 1px var(--line-3), inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 36px -12px rgba(var(--sky-rgb), .6); }
.btn--ghost:hover::before, .btn--line:hover::before { opacity: 1; }
.btn--ghost .i, .btn--line .i { color: var(--sky); }

/* Загрузка */
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn__label { opacity: 0; }
.btn.is-loading::after {
  content: ""; position: absolute; left: 50%; top: 50%; z-index: 3; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  background: none; opacity: 1; animation: spin .8s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }

/* Текстовая ссылка */
.link {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; color: var(--text);
}
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--grad-line); transform: scaleX(.3); transform-origin: 0 50%; opacity: .6;
  transition: transform .7s var(--ease-out), opacity .4s;
}
.link:hover::after { transform: none; opacity: 1; }
.link .i { width: 16px; height: 16px; color: var(--sky); transition: translate .5s var(--ease-out); }
.link:hover .i { translate: 3px 0; }

/* ---------- Логотип ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; line-height: 1; }
.logo__mark { width: 30px; height: 30px; flex: none; transition: rotate 1.2s var(--ease-out); }
.logo:hover .logo__mark { rotate: -25deg; }
.logo__word { font-family: var(--f-display); font-weight: 500; font-size: 19px; letter-spacing: -.04em; color: var(--text); }
.logo__word b { color: var(--sky); font-weight: 500; text-shadow: 0 0 12px rgba(var(--sky-rgb), .8); }
.logo__sep { display: none; }
.logo__tag {
  font-family: var(--f-mono); font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-3); padding: 4px 7px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-2);
}

/* ---------- Прогресс прокрутки ---------- */
.scroll-progress {
  position: fixed; left: 0; right: 0; top: 0; z-index: calc(var(--z-header) + 1); height: 2px; pointer-events: none;
  background: linear-gradient(90deg, rgba(var(--azure-rgb), 0), var(--azure) 40%, var(--sky) 85%, #fff);
  transform: scaleX(var(--p, 0)); transform-origin: 0 50%;
  box-shadow: 0 0 12px rgba(var(--sky-rgb), .8);
  opacity: .85;
}
.is-travelling .scroll-progress { opacity: 1; box-shadow: 0 0 18px 2px rgba(var(--sky-rgb), 1); }

/* ---------- Шапка ---------- */
.header {
  position: fixed; left: 0; right: 0; top: 0; z-index: var(--z-header);
  padding-top: 14px; pointer-events: none;
  transition: translate .9s var(--ease-out), opacity .6s;
}
/* пока идёт интро, шапка спрятана и выезжает вместе со «шторкой» */
.intro-lock .header { translate: 0 -130%; opacity: 0; }
.header.is-hidden, .is-travelling .header { translate: 0 calc(-100% - 20px); }
.menu-open .header { z-index: calc(var(--z-menu) + 1); translate: none; }
.header .header__bar {
  pointer-events: auto; position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: min(calc(100% - var(--gutter) * 2 + 16px), calc(var(--container) + 16px));
  max-width: none; height: 62px; margin-inline: auto; padding: 0 9px 0 20px;
  border-radius: var(--r-pill);
  background: rgba(var(--bg-rgb), 0); box-shadow: inset 0 0 0 1px rgba(150, 190, 255, 0);
  transition: background-color .6s, box-shadow .6s, -webkit-backdrop-filter .6s, backdrop-filter .6s;
}
.header.is-scrolled .header__bar, .menu-open .header .header__bar {
  background: rgba(5, 10, 23, .62);
  -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .05), 0 18px 50px -24px rgba(0, 0, 0, .9);
}
.nav { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative; z-index: 1; padding: 9px 15px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500; color: var(--text-2); transition: color .35s;
}
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
  background: var(--sky); box-shadow: 0 0 8px var(--sky);
}
.nav__pill {
  position: absolute; left: 0; top: 50%; z-index: 0; height: 36px; margin-top: -18px; border-radius: var(--r-pill);
  background: rgba(var(--sky-rgb), .08); box-shadow: inset 0 0 0 1px rgba(var(--sky-rgb), .14);
  opacity: 0; pointer-events: none;
  transition: translate .55s var(--ease-out), width .55s var(--ease-out), opacity .35s;
}
.header__actions { display: flex; align-items: center; gap: 8px; }
.header__link {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500; color: var(--text-2); transition: color .3s, background-color .3s;
}
.header__link:hover { color: var(--text); background: rgba(var(--sky-rgb), .06); }
.header__link .i { width: 17px; height: 17px; color: var(--sky); }
.header__back {
  display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--text-2); transition: color .3s;
}
.header__back:hover { color: var(--text); }
.header__back .i { width: 17px; height: 17px; transition: translate .4s var(--ease-out); }
.header__back:hover .i { translate: -3px 0; }

.burger { display: none; position: relative; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); }
.burger span {
  position: absolute; left: 14px; right: 14px; height: 1.5px; border-radius: 2px; background: var(--text);
  transition: translate .6s var(--ease-out), rotate .6s var(--ease-out), width .6s var(--ease-out);
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; right: 19px; }
.burger[aria-expanded="true"] span:nth-child(1) { translate: 0 3.5px; rotate: 45deg; }
.burger[aria-expanded="true"] span:nth-child(2) { translate: 0 -3.5px; rotate: -45deg; right: 14px; }

/* ---------- Мобильное меню (полноэкранное) ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 48px) var(--gutter) calc(28px + env(safe-area-inset-bottom));
  background: radial-gradient(120% 60% at 100% 0%, rgba(var(--cobalt-rgb), .28), transparent 60%), var(--bg);
  clip-path: circle(0 at calc(100% - 44px) 44px);
  transition: clip-path .9s var(--ease-in-out);
  overflow-y: auto; overscroll-behavior: contain;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 44px) 44px); }
.mobile-menu__glow {
  position: absolute; left: -30%; bottom: -30%; width: 120%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--azure-rgb), .18), transparent);
}
.mobile-menu__links { position: relative; display: grid; }
.mobile-menu__links a {
  display: flex; align-items: baseline; gap: 16px; padding: 12px 0; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.mobile-menu__links a span {
  font-family: var(--f-display); font-weight: 350; font-size: clamp(30px, 8.6vw, 44px); letter-spacing: -.04em; line-height: 1.15; color: var(--text);
}
.mobile-menu__links a small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--sky); }
.mobile-menu__links a > * { display: inline-block; translate: 0 110%; transition: translate .9s var(--ease-out); }
.mobile-menu.is-open .mobile-menu__links a > * { translate: 0 0; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(1) > * { transition-delay: .18s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(2) > * { transition-delay: .24s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(3) > * { transition-delay: .30s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(4) > * { transition-delay: .36s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(5) > * { transition-delay: .42s; }
.mobile-menu__foot { position: relative; display: grid; gap: 18px; margin-top: 40px; opacity: 0; translate: 0 20px; transition: opacity .6s, translate .9s var(--ease-out); }
.mobile-menu.is-open .mobile-menu__foot { opacity: 1; translate: 0 0; transition-delay: .45s; }
.mobile-menu__meta { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.mobile-menu__meta a { color: var(--sky); }
body.menu-open { overflow: hidden; }

/* ---------- Зерно и свет курсора ---------- */
.grain {
  position: fixed; inset: 0; z-index: calc(var(--z-header) - 1); pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: 0; width: 640px; height: 640px; margin: -320px 0 0 -320px;
  border-radius: 50%; pointer-events: none; opacity: 0; will-change: transform;
  background: radial-gradient(closest-side, rgba(var(--azure-rgb), .11), rgba(var(--sky-rgb), .035) 45%, transparent);
  transition: opacity .8s;
}
.cursor-glow.is-on { opacity: 1; }

/* ---------- Интро ---------- */
.intro {
  position: fixed; inset: 0; z-index: var(--z-intro);
  align-items: center; justify-content: center;
  background: var(--bg); color: var(--text);
  will-change: transform;
}
.intro.is-out {
  translate: 0 -100%; border-radius: 0 0 50% 50% / 0 0 14vh 14vh; pointer-events: none;
  transition: translate 1.25s cubic-bezier(.76, 0, .24, 1), border-radius 1.25s cubic-bezier(.76, 0, .24, 1);
}
.intro__glow {
  position: absolute; left: 50%; top: 50%; width: min(900px, 140vw); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--azure-rgb), .16), rgba(var(--cobalt-rgb), .06) 50%, transparent);
  animation: introGlow 3.2s ease-in-out infinite alternate;
}
@keyframes introGlow { from { scale: .85; opacity: .7; } to { scale: 1.05; opacity: 1; } }
.intro__inner { position: relative; display: grid; justify-items: center; gap: 26px; transition: translate 1.25s cubic-bezier(.76, 0, .24, 1), opacity .8s; }
.intro.is-out .intro__inner { translate: 0 30vh; opacity: 0; }
.intro__word {
  display: flex; overflow: hidden; padding: .04em .06em .12em;
  font-family: var(--f-display); font-weight: 300; font-size: clamp(56px, 11vw, 150px); letter-spacing: -.06em; line-height: 1;
}
.intro__word span { display: inline-block; translate: 0 110%; animation: introChar 1.15s var(--ease-out) forwards; animation-delay: calc(var(--i) * .07s + .15s); }
.intro__word span.dot { color: var(--sky); text-shadow: 0 0 30px rgba(var(--sky-rgb), .9); }
@keyframes introChar { to { translate: 0 0; } }
.intro__meta {
  display: flex; gap: 18px; justify-content: space-between; width: min(320px, 70vw);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-3);
  opacity: 0; animation: introFade .8s var(--ease-out) .6s forwards;
}
.intro__pct { color: var(--sky); font-variant-numeric: tabular-nums; }
.intro__bar { position: relative; width: min(320px, 70vw); height: 1px; margin-top: -12px; background: rgba(var(--sky-rgb), .14); overflow: hidden; opacity: 0; animation: introFade .8s var(--ease-out) .6s forwards; }
.intro__bar i {
  position: absolute; inset: 0; background: linear-gradient(90deg, var(--azure), var(--sky), #fff);
  transform: scaleX(var(--p, 0)); transform-origin: 0 50%; box-shadow: 0 0 10px var(--sky);
}
.intro__edge {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(var(--sky-rgb), .9) 30%, #fff 50%, rgba(var(--sky-rgb), .9) 70%, transparent);
  box-shadow: 0 0 40px 8px rgba(var(--azure-rgb), .55), 0 0 120px 30px rgba(var(--sky-rgb), .25);
  transition: opacity .4s;
}
.intro.is-out .intro__edge { opacity: 1; }
@keyframes introFade { to { opacity: 1; } }
.intro-lock body { overflow: hidden; } /* ставит и снимает motion.js — без JS ничего не блокируется */

/* ---------- Система появления (только при .js) ---------- */
.js [data-reveal] {
  opacity: 0; translate: 0 34px;
  transition: opacity 1.3s var(--ease-out), translate 1.5s var(--ease-out), scale 1.5s var(--ease-out), clip-path 1.6s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }
.js [data-reveal="fade"] { translate: none; }
.js [data-reveal="scale"] { translate: none; scale: .92; }
.js [data-reveal="scale"].is-in { scale: 1; }
.js [data-reveal="left"] { translate: -48px 0; }
.js [data-reveal="right"] { translate: 48px 0; }
.js [data-reveal="left"].is-in, .js [data-reveal="right"].is-in { translate: 0 0; }
.js [data-reveal="clip"] { opacity: 1; translate: none; clip-path: inset(10% 8% 10% 8% round var(--r-lg)); scale: 1.04; }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round var(--r-lg)); scale: 1; }
.js [data-line] { transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.4s var(--ease-out) var(--d, 0s); }
.js [data-line].is-in { transform: none; }

/* Заголовки с разбивкой на строки (SplitText в motion.js) или слова (запасной вариант) */
.js [data-split]:not(.split-ready) { visibility: hidden; animation: splitFailsafe .01s linear 3s forwards; }
@keyframes splitFailsafe { to { visibility: visible; } }
.sl-mask { padding-bottom: .14em; margin-bottom: -.14em; }
.js [data-split] .sl {
  translate: 0 108%; rotate: 4deg; transform-origin: 0 100%;
  transition: translate 1.45s var(--ease-out), rotate 1.45s var(--ease-out);
  transition-delay: calc(var(--li, 0) * .1s + var(--d, 0s));
}
.js [data-split].is-in .sl { translate: 0 0; rotate: 0deg; }
.w { display: inline-block; overflow: clip; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.w > * { display: inline-block; }
.js [data-split] .w > * { translate: 0 108%; transition: translate 1.1s var(--ease-out); transition-delay: calc(var(--wi, 0) * .045s + var(--d, 0s)); }
.js [data-split].is-in .w > * { translate: 0 0; }

/* ---------- Подвал ---------- */
.footer { position: relative; padding: clamp(72px, 9vw, 120px) 0 28px; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg) 70%); overflow: hidden; }
.footer::before {
  content: ""; position: absolute; left: 50%; top: -1px; width: min(900px, 90vw); height: 1px; translate: -50% 0;
  background: var(--grad-line); box-shadow: 0 0 30px 2px rgba(var(--sky-rgb), .35);
}
.footer__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 60px; }
.footer__brand { display: grid; align-content: start; justify-items: start; gap: 20px; }
.footer__brand p { max-width: 24em; color: var(--text-2); font-size: 15px; }
.footer__status { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.footer__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: dotPulse 2.4s ease-in-out infinite; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer__cols > div { display: grid; align-content: start; gap: 12px; }
.footer__cols h4 { margin-bottom: 8px; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.footer__cols a { justify-self: start; font-size: 15px; color: var(--text-2); transition: color .3s, translate .4s var(--ease-out); }
.footer__cols a:hover { color: var(--text); translate: 3px 0; }
.footer__giant {
  display: flex; justify-content: center; margin: clamp(48px, 7vw, 100px) 0 clamp(20px, 3vw, 36px); overflow: hidden;
  font-family: var(--f-display); font-weight: 300; font-size: clamp(88px, 25vw, 380px); line-height: .9; letter-spacing: -.07em;
  user-select: none; pointer-events: none;
}
.footer__giant span {
  display: inline-block; padding: 0 .015em .06em;
  background: linear-gradient(180deg, rgba(var(--ice-rgb), .9) 0%, rgba(var(--sky-rgb), .5) 45%, rgba(var(--azure-rgb), .06) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.footer__giant span.dot { background: none; color: var(--sky); -webkit-text-fill-color: var(--sky); text-shadow: 0 0 40px rgba(var(--sky-rgb), .8), 0 0 90px rgba(var(--azure-rgb), .6); }
.js .footer__giant[data-reveal] { opacity: 1; translate: none; }
.js .footer__giant[data-reveal] span { translate: 0 100%; transition: translate 1.5s var(--ease-out); }
.js .footer__giant[data-reveal] span:nth-child(2) { transition-delay: .06s; }
.js .footer__giant[data-reveal] span:nth-child(3) { transition-delay: .12s; }
.js .footer__giant[data-reveal] span:nth-child(4) { transition-delay: .18s; }
.js .footer__giant[data-reveal] span:nth-child(5) { transition-delay: .24s; }
.js .footer__giant[data-reveal] span:nth-child(6) { transition-delay: .30s; }
.js .footer__giant[data-reveal].is-in span { translate: 0 0; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; padding-top: 24px; border-top: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3);
}
.footer__bottom a:hover { color: var(--text); }

/* ---------- Модальное окно ---------- */
.modal {
  position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: 20px;
  background: rgba(var(--bg-rgb), .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .45s var(--ease-out);
}
.modal.is-open { opacity: 1; }
.modal__box {
  position: relative; width: min(460px, 100%); padding: 40px 34px 30px; border-radius: var(--r-lg); text-align: center;
  background: linear-gradient(180deg, rgba(22, 40, 84, .9), rgba(8, 16, 36, .95));
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, .08), 0 40px 120px -30px rgba(0, 0, 0, .9), 0 0 80px -30px rgba(var(--azure-rgb), .5);
  translate: 0 24px; scale: .96; transition: translate .7s var(--ease-out), scale .7s var(--ease-out);
}
.modal__box::before { content: ""; position: absolute; left: 15%; right: 15%; top: -1px; height: 1px; background: var(--grad-line); }
.modal.is-open .modal__box { translate: 0 0; scale: 1; }
.modal__close { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--text-3); transition: color .3s, background-color .3s; }
.modal__close:hover { color: var(--text); background: rgba(var(--sky-rgb), .08); }
.modal__icon {
  width: 58px; height: 58px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; color: var(--sky);
  background: radial-gradient(circle at 50% 30%, rgba(var(--sky-rgb), .22), rgba(var(--sky-rgb), .04)); box-shadow: inset 0 0 0 1px rgba(var(--sky-rgb), .3), 0 0 30px -6px rgba(var(--sky-rgb), .5);
}
.modal__icon .i { width: 26px; height: 26px; }
.modal__box h3 { font-family: var(--f-display); font-weight: 400; font-size: 22px; letter-spacing: -.03em; line-height: 1.2; }
.modal__box p { margin-top: 12px; color: var(--text-2); font-size: 15px; }
.modal__actions { display: grid; gap: 10px; margin-top: 26px; }

/* ---------- Тост ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: var(--z-modal);
  display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500; color: var(--text); white-space: nowrap;
  background: rgba(10, 22, 51, .85); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 50px -20px rgba(0, 0, 0, .9);
  translate: -50% 30px; opacity: 0; pointer-events: none; transition: translate .6s var(--ease-out), opacity .4s;
}
.toast.is-show { translate: -50% 0; opacity: 1; }
.toast .i { width: 18px; height: 18px; color: var(--ok); }

/* ==========================================================================
   3D-карта доступа (главная #how, страница успешной оплаты)
   ========================================================================== */
.card3d { position: relative; width: min(520px, 100%); aspect-ratio: 1.586; perspective: 1400px; touch-action: pan-y; }
.card3d__body {
  position: absolute; inset: 0; border-radius: 5.2% / 8.2%; overflow: hidden; isolation: isolate;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  background:
    radial-gradient(120% 90% at 8% -12%, rgba(var(--ice-rgb), .2), transparent 46%),
    radial-gradient(90% 80% at 108% 112%, rgba(var(--azure-rgb), .45), transparent 58%),
    linear-gradient(135deg, #17336c 0%, #0c1b40 38%, #060d22 66%, #0e2250 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(var(--sky-rgb), .18),
    0 60px 110px -40px rgba(0, 0, 0, 1), 0 30px 90px -40px rgba(var(--azure-rgb), .55);
  color: var(--text);
}
.card3d__brush { position: absolute; inset: 0; z-index: -1; opacity: .6; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px), repeating-linear-gradient(0deg, rgba(0, 0, 0, .1) 0 1px, transparent 1px 6px); }
.card3d__lines {
  position: absolute; right: -14%; top: -34%; width: 72%; aspect-ratio: 1; border-radius: 50%; z-index: -1;
  background: repeating-radial-gradient(circle, transparent 0 13px, rgba(var(--sky-rgb), .12) 13px 14px);
  -webkit-mask-image: radial-gradient(circle, #000 25%, transparent 70%); mask-image: radial-gradient(circle, #000 25%, transparent 70%);
}
.card3d__top { position: absolute; left: 7%; right: 7%; top: 10%; display: flex; justify-content: space-between; align-items: flex-start; }
.card3d__brand {
  font-family: var(--f-display); font-weight: 400; font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -.05em; line-height: 1;
  background: var(--grad-text); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradShift 7s ease-in-out infinite alternate;
}
.card3d__type { font-family: var(--f-mono); font-size: clamp(8px, .72vw, 10px); letter-spacing: .28em; text-transform: uppercase; color: var(--text-2); text-align: right; line-height: 1.7; }
.card3d__chip {
  position: absolute; left: 7%; top: 35%; width: 12.5%; aspect-ratio: 1.3; border-radius: 16%;
  background:
    linear-gradient(90deg, transparent 32%, rgba(10, 30, 70, .45) 32% 34%, transparent 34% 66%, rgba(10, 30, 70, .45) 66% 68%, transparent 68%),
    linear-gradient(0deg, transparent 30%, rgba(10, 30, 70, .45) 30% 33%, transparent 33% 67%, rgba(10, 30, 70, .45) 67% 70%, transparent 70%),
    linear-gradient(135deg, #f2f8ff 0%, #a9cff5 40%, #eaf4ff 60%, #7fa9d6 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), 0 2px 8px rgba(0, 0, 0, .6);
}
.card3d__wave { position: absolute; left: 23%; top: 36.5%; width: 6%; height: auto; aspect-ratio: 1; color: rgba(var(--ice-rgb), .6); }
.card3d__key {
  position: absolute; left: 7%; top: 58%; font-family: var(--f-mono); font-size: clamp(14px, 1.75vw, 22px); letter-spacing: .14em;
  color: #e6f2ff; text-shadow: 0 1px 0 rgba(0, 0, 0, .9), 0 0 18px rgba(var(--sky-rgb), .45); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.card3d__bottom { position: absolute; left: 7%; right: 7%; bottom: 9%; display: flex; align-items: flex-end; gap: 9%; }
.card3d__bottom small { display: block; margin-bottom: 5px; font-family: var(--f-mono); font-size: clamp(7px, .62vw, 9px); letter-spacing: .24em; text-transform: uppercase; color: var(--text-3); }
.card3d__bottom b { font-family: var(--f-mono); font-weight: 500; font-size: clamp(11px, .95vw, 13.5px); letter-spacing: .06em; color: var(--text); text-transform: uppercase; }
.card3d__mark { margin-left: auto; width: clamp(34px, 3.8vw, 46px); height: clamp(34px, 3.8vw, 46px); }
.card3d__shine { position: absolute; inset: -20%; z-index: 3; pointer-events: none; mix-blend-mode: screen; background: linear-gradient(105deg, transparent 38%, rgba(var(--sky-rgb), .12) 45%, rgba(255, 255, 255, .2) 50%, rgba(var(--sky-rgb), .1) 55%, transparent 62%); transform: translateX(var(--sx, 0%)); }
/* Перелив: только screen. color-dodge на отдельном слое Safari считает неверно —
   карта становится ярко-синей, а по углам видны резкие полосы самого слоя */
.card3d__holo {
  position: absolute; inset: -60%; z-index: 2; pointer-events: none; mix-blend-mode: screen; opacity: .7;
  background: linear-gradient(115deg, transparent 18%, rgba(var(--azure-rgb), .2) 30%, rgba(40, 110, 255, .36) 43%, rgba(90, 200, 230, .16) 54%, rgba(var(--azure-rgb), .24) 66%, transparent 82%);
  transform: translate3d(11%, 12%, 0); will-change: transform;
}
.card3d__glare { position: absolute; inset: -50%; z-index: 4; pointer-events: none; mix-blend-mode: soft-light; background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .4), transparent 25%); transform: translate3d(-10%, -15%, 0); will-change: transform; }
.card3d__shadow { position: absolute; left: 4%; right: 4%; bottom: -14%; height: 22%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .7), rgba(0, 0, 0, .32) 45%, rgba(0, 0, 0, .08) 75%, transparent); transform: translateX(var(--shx, 0px)); z-index: -1; will-change: transform; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .nav a { padding: 9px 11px; font-size: 13.5px; }
  .header__link span { display: none; }
}
@media (max-width: 960px) {
  .nav, .header__link { display: none; }
  .burger { display: block; }
  .section-head--split { grid-template-columns: minmax(0, 1fr); }
  .footer__top { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 600px) {
  .header { padding-top: 10px; }
  .header .header__bar { height: 58px; padding: 0 7px 0 16px; }
  .header__actions .btn { display: none; }
  .logo__tag { display: none; }
  .btn--lg { --btn-h: 56px; padding: 0 26px; }
  .footer__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px 20px; }
  .footer__cols > div:last-child { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; }
  .modal__box { padding: 36px 22px 22px; }
  .cursor-glow, .grain { display: none; }
  .js [data-reveal] { translate: 0 22px; }
}

/* ---------- Уменьшенное движение ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-split] .sl, .js [data-split] .w > *, .js .footer__giant[data-reveal] span { opacity: 1 !important; translate: none !important; rotate: none !important; scale: none !important; filter: none !important; clip-path: none !important; }
  .js [data-split] { visibility: visible !important; }
  .js [data-line] { transform: none; }
  .intro { display: none !important; }
  .grain { display: none; }
}
