/* ==========================================================================
   ROIL — стили. Премиальный монохром: графит, металл, свет.
   Сначала мобильная версия, ниже — правки для планшета и ПК.
   ========================================================================== */

/* ---------- Шрифты: лежат на сайте в assets/fonts (лицензия SIL OFL, тексты лицензий там же) ----------
   Один файл = все начертания (переменный шрифт). Браузер скачивает только нужный алфавит.
   Расширенную латиницу не подключаем: из неё на сайте нужен только знак ₽ (это ~170 КБ) — его рисует системный шрифт. */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 200 600; font-display: swap; src: url(assets/fonts/inter-tight-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 200 600; font-display: swap; src: url(assets/fonts/inter-tight-latin.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 600; font-display: swap; src: url(assets/fonts/inter-cyrillic.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 600; font-display: swap; src: url(assets/fonts/inter-latin.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 {
  --bg: #050506;
  --bg-2: #0a0a0c;
  --card: rgba(255, 255, 255, .025);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --line-3: rgba(255, 255, 255, .28);
  --text: #f3f4f6;
  --muted: #9a9da5;
  --dim: #63666e;

  --ok: #6ee7a8;
  --bad: #ff5d5d;
  --wait: #d9dbe0;

  --silver: linear-gradient(180deg, #ffffff 0%, #d9dce1 45%, #8f949c 100%);
  --metal: linear-gradient(115deg, #8a8f97 0%, #eef0f2 28%, #a7acb3 52%, #fafbfc 74%, #91969e 100%);

  --font-d: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-b: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 20px;
  --maxw: 1200px;
  --radius: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --intro: 1.7s; /* длительность заставки — на столько сдвигается старт анимаций первого экрана */

  color-scheme: dark;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-b); font-size: 16px; line-height: 1.6; letter-spacing: -.005em;
  overflow-x: hidden; overflow-x: clip;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-d); margin: 0; font-weight: 400; letter-spacing: -.03em; line-height: 1.05; }
p, dl, dd, figure, blockquote { margin: 0; }
em {
  font-style: normal; font-weight: 500;
  background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent;
}
::selection { background: #fff; color: #000; }
:focus-visible { outline: 1px solid #fff; outline-offset: 4px; border-radius: 6px; }
section[id] { scroll-margin-top: 72px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* Металл для логотипов */
.metal { fill: url(#gMetal); }
.edge { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1.2; }
.word { fill: url(#gWord); }
.glass { fill: url(#gGlass); stroke: rgba(255, 255, 255, .55); stroke-width: .9; }
.facet { fill: rgba(255, 255, 255, .1); }

/* ---------- Фон ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg); }
.bg__spot {
  position: absolute; left: 50%; top: -30vh; width: 140vmax; height: 90vh; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, .09), transparent 70%);
}
.bg__rule { position: absolute; top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .05) 20%, rgba(255, 255, 255, .05) 80%, transparent); }
.bg__rule--l { left: calc(var(--gutter) / 2); }
.bg__rule--r { right: calc(var(--gutter) / 2); }
.bg__rule--c { left: 50%; display: none; }
.bg__beam {
  position: absolute; top: 0; bottom: 0; right: 7%; width: 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, .7) 12%, rgba(255, 255, 255, .22) 45%, transparent 85%);
  box-shadow: 0 0 18px 2px rgba(255, 255, 255, .25), 0 0 80px 10px rgba(255, 255, 255, .06);
  opacity: .5; animation: beam 9s ease-in-out infinite;
}
@keyframes beam { 0%, 100% { opacity: .3; } 50% { opacity: .65; } }
.dust i { position: absolute; bottom: -10px; width: 2px; height: 2px; border-radius: 50%; background: #fff; animation: dust linear infinite; }
@keyframes dust {
  0% { transform: translate(0, 0); opacity: 0; }
  15% { opacity: var(--o, .4); }
  100% { transform: translate(var(--x), -105vh); opacity: 0; }
}
.grain {
  position: absolute; inset: -8%; opacity: .07; animation: grain .9s steps(6) infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%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; transition: opacity .5s;
  background: radial-gradient(circle, rgba(255, 255, 255, .045), transparent 62%);
}
.has-cursor .cursor-glow { opacity: 1; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 1px; z-index: 60; background: linear-gradient(90deg, rgba(255, 255, 255, .2), #fff); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Кнопки ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-family: var(--font-b); font-weight: 500; font-size: 15px; white-space: nowrap; user-select: none;
  transition: transform .35s var(--ease), box-shadow .35s, background-color .35s, border-color .35s, color .35s, background-position .8s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--primary {
  color: #0a0a0b; background: var(--metal); background-size: 220% 100%; background-position: 0% 0;
  box-shadow: 0 14px 34px -16px rgba(255, 255, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(0, 0, 0, .25);
}
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .95) 50%, transparent 65%);
  transform: translateX(-130%); --sheen-from: -130%; --sheen-to: 130%; animation: sheen 5.5s var(--ease-io) infinite;
}
/* Блик: полоска света проходит по элементу. Откуда/куда и наклон задаёт сам элемент
   через --sheen-from, --sheen-to, --sheen-skew. Первые 60% времени — пауза, потом проход. */
@keyframes sheen {
  0%, 60% { transform: translateX(var(--sheen-from, -130%)) skewX(var(--sheen-skew, 0deg)); }
  100% { transform: translateX(var(--sheen-to, 130%)) skewX(var(--sheen-skew, 0deg)); }
}
.btn--primary:hover { background-position: 100% 0; box-shadow: 0 18px 44px -14px rgba(255, 255, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(0, 0, 0, .25); }
.btn--ghost { color: var(--text); background: rgba(255, 255, 255, .02); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: var(--line-3); background: rgba(255, 255, 255, .06); }
.btn--lg { height: 58px; padding: 0 32px; font-size: 16px; }
.btn--sm { height: 38px; padding: 0 18px; font-size: 13.5px; }
.btn__arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn__tg { width: 20px; height: 20px; fill: currentColor; }
.ripple { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; background: rgba(255, 255, 255, .5); transform: scale(0); animation: ripple .8s ease-out forwards; }
.btn--primary .ripple { background: rgba(0, 0, 0, .12); }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* ---------- Шапка ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid transparent;
  transition: background-color .4s, border-color .4s, -webkit-backdrop-filter .4s, backdrop-filter .4s;
}
.header.is-scrolled, .menu-open .header {
  background: rgba(5, 5, 6, .72); border-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
}
.header__in { height: 64px; display: flex; align-items: center; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.logo__mark { width: 34px; height: auto; overflow: visible; transition: transform .6s var(--ease); }
.logo__word { width: 72px; height: auto; }
.logo:hover .logo__mark { transform: rotate(-6deg) scale(1.06); }
.nav { display: none; }
.burger { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); }
.burger span { position: absolute; left: 12px; right: 12px; height: 1px; background: var(--text); transition: transform .45s var(--ease), top .45s var(--ease); }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 23px; }
.menu-open .burger span:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 19.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; justify-content: center;
  padding: 90px 28px calc(32px + env(safe-area-inset-bottom));
  background: radial-gradient(80% 50% at 50% 0%, rgba(255, 255, 255, .07), transparent 70%), rgba(5, 5, 6, .98);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .8s var(--ease-io), visibility 0s .8s;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .8s var(--ease-io); }
.menu-open { overflow: hidden; }
.menu__nav { display: flex; flex-direction: column; margin-bottom: 40px; border-top: 1px solid var(--line); }
.menu__nav a {
  display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-d); font-weight: 300; font-size: 30px; letter-spacing: -.03em;
}
.menu__nav small { font-family: var(--font-b); font-size: 12px; color: var(--dim); letter-spacing: .1em; }
.menu__nav a, .menu__cta { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .8s var(--ease); }
.menu-open .menu__nav a, .menu-open .menu__cta { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i) * .06s); }

/* ---------- Первый экран ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(72px + env(safe-area-inset-top)) 0 56px; }
.hero__grid { display: grid; gap: 4px; align-items: center; }

.hero__visual { position: relative; height: 230px; display: grid; place-items: center; }
.hero__halo {
  position: absolute; left: 50%; top: 50%; width: 360px; height: 360px; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .12), transparent 70%);
  transition: opacity .6s;
}
.shards--bg { position: absolute; left: 50%; top: 50%; height: 150%; width: auto; transform: translate(-30%, -50%); opacity: .14; pointer-events: none; }
.mark { overflow: visible; }
.mark--hero { position: relative; z-index: 2; width: 150px; height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .7)) drop-shadow(0 0 30px rgba(255, 255, 255, .12)); }
.sweep { transform: translateX(0) skewX(-18deg); --sheen-from: 0px; --sheen-to: 520px; --sheen-skew: -18deg; }
.mark--hero .sweep { animation: sheen 6s var(--ease-io) calc(var(--intro) + .5s) infinite; }

/* «Сборка» знака при загрузке */
.js .mark__p1 { animation: p1In 1.4s var(--ease) calc(var(--intro) + .1s) both; }
.js .mark__p2 { animation: p2In 1.4s var(--ease) calc(var(--intro) + .25s) both; }
@keyframes p1In { from { transform: translate(-60px, -30px); opacity: 0; } }
@keyframes p2In { from { transform: translate(60px, 40px); opacity: 0; } }

/* Линия сигнала: шум → ровная линия с бегущим светом */
.signal {
  position: absolute; left: calc(var(--gutter) * -1); top: 50%; z-index: 1;
  width: calc(100% + var(--gutter) * 2); height: 120px; transform: translateY(-50%); overflow: visible;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.signal path { fill: none; vector-effect: non-scaling-stroke; transition: opacity .6s, stroke .4s; }
.signal__noise { stroke: var(--wait); stroke-width: 1.2; opacity: 0; }
.signal__calm { stroke: url(#gLine); stroke-width: 1; opacity: 0; }
.signal__pulse { stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 40 560; opacity: 0; }
.hero[data-state="connecting"] .signal__noise { opacity: .55; }
.hero[data-state="lost"] .signal__noise { opacity: .9; stroke: var(--bad); }
.hero[data-state="ok"] .signal__calm { opacity: 1; }
.hero[data-state="ok"] .signal__pulse { opacity: .9; animation: pulse 3.2s linear infinite; }
@keyframes pulse { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }
.hero[data-state="lost"] .mark--hero { animation: markShake .28s steps(2) infinite; }
.hero[data-state="lost"] .hero__halo { opacity: .25; }
@keyframes markShake { 50% { transform: translate(2px, -1px); } }

.status {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; letter-spacing: .02em; color: var(--wait);
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  transition: color .4s, border-color .4s;
}
.status__dot { position: relative; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid currentColor; opacity: 0; }
.status[data-state="connecting"] .status__dot { animation: blinkDot .6s steps(2) infinite; }
.status[data-state="lost"] { color: var(--bad); border-color: rgba(255, 93, 93, .4); }
.status[data-state="ok"] { color: var(--text); }
.status[data-state="ok"] .status__dot { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.status[data-state="ok"] .status__dot::after { border-color: var(--ok); animation: ping 2s var(--ease) infinite; }
@keyframes blinkDot { 50% { opacity: .2; } }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }

.hero__title { font-size: clamp(46px, 13.4vw, 104px); font-weight: 200; line-height: .98; letter-spacing: -.045em; margin: 20px 0; }
.hero__title em { display: block; font-weight: 500; }
.hero[data-state="lost"] .hero__title { animation: flicker .9s steps(1) infinite; }
@keyframes flicker {
  0%, 100% { opacity: 1; transform: none; filter: none; }
  12% { opacity: .55; transform: translateX(-3px); }
  18% { opacity: 1; transform: none; }
  40% { opacity: .8; filter: blur(1.5px); }
  46% { opacity: 1; filter: none; }
  70% { transform: translateX(2px) skewX(-3deg); }
  76% { transform: none; }
}
.hero__lead { font-size: 16.5px; color: var(--muted); max-width: 40ch; }
.hero__cta { display: grid; gap: 10px; margin-top: 28px; }
.hero__note { margin-top: 14px; font-size: 13px; color: var(--dim); }
.facts-row { display: flex; flex-wrap: wrap; gap: 8px 0; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.facts-row li { display: inline-flex; align-items: center; font-size: 13px; color: var(--muted); }
.facts-row li + li::before { content: ""; width: 1px; height: 12px; margin: 0 14px; background: var(--line-2); }
.scroll-hint { display: none; }

.js .hero__text { animation: rise 1.2s var(--ease) calc(var(--intro) + .15s) both; }
.js .hero__halo, .js .shards--bg, .js .hero__net { animation: fade 2s ease calc(var(--intro) + .1s) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Разделитель с бегущим светом ---------- */
.divider { position: relative; height: 1px; max-width: calc(var(--maxw) - var(--gutter) * 2); margin: 0 var(--gutter); background: var(--line); overflow: hidden; }
.divider i { position: absolute; top: 0; left: 0; width: 30%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent); animation: travel 7s var(--ease-io) infinite; }
@keyframes travel { from { transform: translateX(-100%); } to { transform: translateX(340%); } }

/* ---------- Секции ---------- */
.section { position: relative; padding: 84px 0; }
.section__head { margin-bottom: 40px; }
.section__head--center { text-align: center; }
.section__head--center .sub { margin-left: auto; margin-right: auto; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.kicker[data-n]::before { content: attr(data-n); color: var(--text); letter-spacing: .1em; padding-right: 12px; border-right: 1px solid var(--line-2); }
.h2 { font-size: clamp(34px, 9.4vw, 68px); font-weight: 200; letter-spacing: -.04em; margin: 16px 0; }
.sub { font-size: 16px; color: var(--muted); max-width: 52ch; }

/* Появление при прокрутке */
.js .reveal { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); transition-delay: calc(var(--d, 0) * 100ms); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .03em .14em; margin-bottom: -.14em; }
.split .w > span { display: inline-block; transition: transform 1.2s var(--ease); transition-delay: calc(var(--i) * 80ms); }
/* «Металл» в выезжающих заголовках наносим на каждое слово, а не на <em> целиком:
   иначе слово в движении прозрачное и появляется только после окончания анимации */
.split em { background: none; color: inherit; }
.split em .w > span { padding-bottom: .12em; margin-bottom: -.12em; background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.js .split .w > span { transform: translateY(110%); }
.js .split.in .w > span { transform: none; }

/* Карточки */
.card {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
  border: 1px solid var(--line);
  transition: border-color .4s, opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .07), transparent 60%);
}
.card::after { content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); }
.card:hover { border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card.is-tilting { transition: border-color .4s, transform .15s linear; }

/* ---------- Знакомо? ---------- */
.pains { display: grid; gap: 12px; }
.pain { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
.pain h3 { font-size: 18px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 6px; line-height: 1.25; }
.pain p { font-size: 15px; color: var(--muted); }
.ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); }
.ico svg { width: 30px; height: 30px; overflow: visible; }
.ico .i-track { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 2.5; }
.ico .i-spin { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 22 100; transform-origin: 24px 24px; animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ico .i-tog { fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: 2; animation: togTrack 2.6s ease-in-out infinite; }
.ico .i-knob { fill: #fff; animation: togKnob 2.6s var(--ease) infinite; }
@keyframes togKnob { 0%, 35% { transform: translateX(0); } 50%, 85% { transform: translateX(16px); } 100% { transform: translateX(0); } }
@keyframes togTrack { 0%, 35%, 100% { fill: rgba(255, 255, 255, 0); } 50%, 85% { fill: rgba(255, 255, 255, .18); } }
.ico .i-line { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 2; stroke-linecap: round; }
.ico .i-k { fill: var(--bg); stroke: #fff; stroke-width: 2; }
.ico .k1 { animation: slideK 2.4s ease-in-out infinite alternate; }
.ico .k2 { animation: slideK 1.9s ease-in-out infinite alternate-reverse; }
.ico .k3 { animation: slideK 2.8s ease-in-out infinite alternate; animation-delay: -.8s; }
@keyframes slideK { from { transform: translateX(-6px); } to { transform: translateX(10px); } }
.ico .i-bubble { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: 2; stroke-linejoin: round; }
.ico .i-dot { fill: #fff; animation: typing 1.3s ease-in-out infinite; }
.ico .d2 { animation-delay: .15s; }
.ico .d3 { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .3; } 30% { transform: translateY(-3px); opacity: 1; } }

/* ---------- Что по-другому ---------- */
.feats { display: grid; gap: 12px; }
.feat { padding: 26px 24px 28px; }
.feat__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.feat__instead { position: relative; font-size: 12.5px; color: var(--dim); }
.feat__instead::after { content: ""; position: absolute; left: 0; right: 0; top: 55%; height: 1px; background: var(--muted); transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s var(--ease) .5s; }
.feat.in .feat__instead::after { transform: scaleX(1); }
.feat__num { font-family: var(--font-d); font-weight: 300; font-size: 14px; letter-spacing: .12em; color: var(--dim); }
.feat__icon { width: 46px; height: 46px; margin-bottom: 22px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); }
.feat__icon svg { width: 24px; height: 24px; overflow: visible; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font-size: 22px; font-weight: 400; letter-spacing: -.03em; margin-bottom: 10px; }
.feat p { color: var(--muted); font-size: 15px; }
.feat__icon .bar { fill: #fff; stroke: none; animation: bars 2s ease-in-out infinite; }
.feat__icon .bar:nth-child(2) { animation-delay: .15s; }
.feat__icon .bar:nth-child(3) { animation-delay: .3s; }
.feat__icon .bar:nth-child(4) { animation-delay: .45s; }
@keyframes bars { 0%, 100% { opacity: .25; } 40%, 70% { opacity: 1; } }
.feat__icon .pw-ring { stroke: rgba(255, 255, 255, .5); stroke-dasharray: 3 6; transform-origin: 16px 16px; animation: spin 10s linear infinite; }
.feat__icon .key-shine { animation: twinkle 2.2s ease-in-out infinite; transform-origin: 6px 6px; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1); } }
.feat__icon .hs-wave { animation: bars 1.5s ease-in-out infinite; }
.feat__icon .hs-wave + .hs-wave { animation-delay: .25s; }

/* ---------- Без вранья ---------- */
.quote {
  position: relative; overflow: hidden; margin-bottom: 40px; padding: 44px 24px 34px; border-radius: var(--radius);
  border: 1px solid var(--line); background: radial-gradient(120% 100% at 100% 0%, rgba(255, 255, 255, .06), transparent 60%), var(--bg-2);
}
.quote blockquote p { position: relative; z-index: 1; font-family: var(--font-d); font-weight: 200; font-size: clamp(30px, 8.4vw, 64px); line-height: 1.08; letter-spacing: -.04em; max-width: 14ch; }
.quote blockquote p::before { content: "«"; color: var(--dim); }
.quote blockquote p::after { content: "»"; color: var(--dim); }
.quote figcaption { position: relative; z-index: 1; margin-top: 22px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); }
.shards--quote { position: absolute; right: -8%; top: 50%; height: 130%; width: auto; transform: translateY(-50%); opacity: .3; }
.honesty__grid { display: grid; gap: 22px; }
.promise { display: grid; gap: 12px; }
.promise__col { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.promise__h { font-family: var(--font-b); font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--text); margin-bottom: 18px; }
.promise__col--no .promise__h { color: var(--dim); }
.promise__list { display: grid; gap: 14px; }
.promise__list li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; font-size: 15.5px; }
.promise__list li i { width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-3); }
.promise__list li i svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.promise__list--no li { color: var(--muted); }
.promise__list--no li i { border-color: var(--line-2); }
.promise__list--no li i svg { stroke: var(--dim); }
.honesty__note { margin-top: 22px; font-size: 14px; color: var(--dim); }

/* ---------- 3 шага ---------- */
.how { display: grid; gap: 36px; align-items: center; }
.phone {
  position: relative; width: min(224px, 60vw); aspect-ratio: 9 / 16; margin: 0 auto; padding: 8px; border-radius: 38px;
  background: linear-gradient(150deg, #2a2b30, #0c0c0e 45%, #1c1d21);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 60px 100px -50px rgba(255, 255, 255, .25), 0 0 0 1px #000, inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.phone::before { content: ""; position: absolute; inset: -40px; z-index: -1; border-radius: 80px; background: radial-gradient(closest-side, rgba(255, 255, 255, .1), transparent); }
.phone__screen { position: relative; height: 100%; border-radius: 31px; overflow: hidden; background: radial-gradient(120% 60% at 50% 0%, #1a1b20, #060607 70%); }
.phone__notch { position: absolute; top: 9px; left: 50%; z-index: 4; width: 74px; height: 21px; border-radius: 20px; background: #000; transform: translateX(-50%); }
.scr { position: absolute; inset: 0; padding: 50px 12px 20px; display: flex; flex-direction: column; opacity: 0; transform: translateX(36px); transition: opacity .6s, transform .8s var(--ease); pointer-events: none; }
.scr.is-left { transform: translateX(-36px); }
.scr.is-active { opacity: 1; transform: none; }
.scr__title { font-family: var(--font-d); font-weight: 500; font-size: 17px; letter-spacing: -.02em; margin: 6px 4px 16px; }
.apps { display: grid; gap: 8px; }
.app { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 8px; padding: 8px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.app__ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-family: var(--font-d); font-weight: 600; font-size: 14px; color: #0a0a0b; background: var(--metal); background-size: 200% 100%; }
.app:nth-child(2) .app__ico { background: #2a2b30; color: #fff; }
.app:nth-child(3) .app__ico { background: #fff; }
.app__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; font-size: 11.5px; }
.app__get { position: relative; overflow: hidden; height: 26px; min-width: 56px; padding: 0 8px; border-radius: 99px; display: grid; place-items: center; font-size: 10.5px; font-weight: 600; color: #fff; border: 1px solid var(--line-2); }
.app__get b { position: absolute; inset: 0; background: rgba(255, 255, 255, .25); transform: scaleX(0); transform-origin: 0 50%; }
.app__get span { position: relative; }
.app__get .g2 { position: absolute; opacity: 0; }
.scr--apps.is-active .app:first-child { border-color: var(--line-3); }
.scr--apps.is-active .app:first-child .app__get b { animation: dl 1.6s var(--ease) .5s forwards; }
.scr--apps.is-active .app:first-child .g1 { animation: fadeOut .2s 2.1s forwards; }
.scr--apps.is-active .app:first-child .g2 { animation: fadeIn .3s 2.1s forwards; }
.scr--apps.is-active .app:first-child .app__get { animation: getDone .3s 2.1s forwards; }
@keyframes dl { to { transform: scaleX(1); } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes getDone { to { background: #fff; color: #0a0a0b; border-color: #fff; } }

.keycard { margin-top: 36px; padding: 18px 14px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); text-align: center; }
.keycard__mark { width: 26px; height: auto; margin: 0 auto 10px; }
.keycard__label { font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.keycard__val { font-size: 13px; letter-spacing: .08em; margin-bottom: 14px; }
.keycard__btn { position: relative; display: grid; place-items: center; height: 36px; border-radius: 99px; font-size: 12.5px; font-weight: 600; color: #0a0a0b; background: var(--metal); background-size: 200% 100%; }
.kb { display: inline-flex; align-items: center; gap: 6px; grid-area: 1 / 1; }
.kb svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.kb--done { opacity: 0; }
.scr--key.is-active .keycard__btn { animation: press .3s 1s; }
.scr--key.is-active .kb--copy { animation: fadeOut .2s 1.15s forwards; }
.scr--key.is-active .kb--done { animation: fadeIn .2s 1.15s forwards; }
@keyframes press { 50% { transform: scale(.95); } }
.toast {
  position: absolute; top: 40px; left: 12px; right: 12px; display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border-radius: 12px; font-size: 12px; font-weight: 500; background: rgba(255, 255, 255, .1); border: 1px solid var(--line-2);
  opacity: 0; transform: translateY(-14px);
}
.toast svg { width: 14px; height: 14px; fill: none; stroke: var(--ok); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.scr--key.is-active .toast { animation: toast .6s var(--ease) 1.8s forwards; }
@keyframes toast { to { opacity: 1; transform: none; } }
.hand { position: absolute; left: 50%; top: 196px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .25); border: 1px solid rgba(255, 255, 255, .7); opacity: 0; }
.scr--key.is-active .hand { animation: tap 1.4s var(--ease) .2s forwards; }
@keyframes tap {
  0% { opacity: 0; transform: translate(30px, 60px) scale(1); }
  45% { opacity: 1; transform: translate(-15px, 0) scale(1); }
  60% { opacity: 1; transform: translate(-15px, 0) scale(.75); }
  100% { opacity: 0; transform: translate(-15px, 0) scale(1.3); }
}

.scr--go { align-items: center; justify-content: center; text-align: center; }
.power { position: relative; width: 128px; height: 128px; display: grid; place-items: center; }
.power__btn {
  position: relative; z-index: 2; width: 100px; height: 100px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 30%, #2a2b30, #0e0e10); border: 1px solid var(--line-2);
  box-shadow: 0 14px 40px -12px #000, inset 0 1px 0 rgba(255, 255, 255, .1);
  transition: background .6s, border-color .6s, box-shadow .6s;
}
.power__btn svg { width: 36px; height: 36px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; transition: stroke .5s; }
.power__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid transparent; }
.scr--go.is-wait .power__ring { border-top-color: #fff; animation: spin .9s linear infinite; }
.scr--go.is-wait .power__ring--2 { inset: -10px; border-top-color: transparent; border-bottom-color: rgba(255, 255, 255, .4); animation-duration: 1.5s; animation-direction: reverse; }
.scr--go.is-on .power__btn { background: radial-gradient(circle at 50% 30%, #ffffff, #b9bdc4); border-color: #fff; box-shadow: 0 0 0 10px rgba(255, 255, 255, .06), 0 0 60px rgba(255, 255, 255, .35); }
.scr--go.is-on .power__btn svg { stroke: #0a0a0b; }
.scr--go.is-on .power__ring { border-color: rgba(255, 255, 255, .35); animation: ping 2s var(--ease) infinite; }
.scr--go.is-on .power__ring--2 { animation-delay: .7s; }
.power__label { position: relative; display: grid; margin-top: 22px; font-weight: 500; font-size: 13.5px; }
.pl { grid-area: 1 / 1; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .4s var(--ease); }
.scr--go .pl--tap, .scr--go.is-wait .pl--wait, .scr--go.is-on .pl--on { opacity: 1; transform: none; }
.scr--go.is-wait .pl--tap, .scr--go.is-on .pl--tap { opacity: 0; transform: translateY(-6px); }
.pl--tap { color: var(--muted); }
.power__timer { margin-top: 6px; font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: .08em; color: var(--dim); opacity: 0; transition: opacity .4s; }
.scr--go.is-on .power__timer { opacity: 1; color: var(--ok); }

.steps { display: grid; border-top: 1px solid var(--line); }
.step { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 16px; width: 100%; text-align: left; padding: 22px 0; border-bottom: 1px solid var(--line); transition: opacity .5s; }
.step:not(.is-active) { opacity: .42; }
.step__num { font-family: var(--font-d); font-weight: 200; font-size: 28px; line-height: 1; letter-spacing: -.02em; }
.step__h { display: block; font-family: var(--font-d); font-weight: 400; font-size: 20px; letter-spacing: -.03em; line-height: 1.2; margin: 2px 0 6px; }
.step__p { display: block; font-size: 14.5px; color: var(--muted); }
.step__apps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.step__apps span { padding: 4px 11px; border-radius: 99px; font-size: 12px; font-weight: 500; border: 1px solid var(--line-2); }
.step__bar { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; }
.step__bar b { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: 0 50%; }
.step.is-active .step__bar b { animation: stepFill var(--dur, 4s) linear forwards; }
@keyframes stepFill { to { transform: scaleX(1); } }

/* ---------- Локации: ленты флагов ---------- */
.locs { position: relative; isolation: isolate; overflow: hidden; padding: 64px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* точечная сетка — как карта мира, тает к краям */
.locs::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .11) 1px, transparent 1.5px); background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(70% 80% at 50% 55%, #000, transparent 75%);
  mask-image: radial-gradient(70% 80% at 50% 55%, #000, transparent 75%);
}
.locs__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.locs__label { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.globe { width: 18px; height: 18px; fill: none; stroke: var(--text); stroke-width: 1.2; overflow: visible; }
.globe__m { transform-origin: 12px 12px; animation: globeSpin 6s linear infinite; }
.globe__m + .globe__m { animation-delay: -3s; }
@keyframes globeSpin { 0% { transform: scaleX(1); } 50% { transform: scaleX(0); } 100% { transform: scaleX(-1); } }
.locs__count { font-family: var(--font-d); font-weight: 200; font-size: clamp(22px, 5.6vw, 36px); letter-spacing: -.03em; }
.locs__row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.locs__row { padding: 6px 0 22px; } /* место под тень и подъём плиток */
.locs__row + .locs__row { margin-top: -8px; }
.locs__track { display: flex; width: max-content; animation: locs 64s linear infinite; }
.locs__row--rev .locs__track { animation-duration: 76s; animation-direction: reverse; }
.locs__set { display: flex; gap: 12px; padding-right: 12px; }
@keyframes locs { to { transform: translateX(-50%); } }
@media (hover: hover) { .locs__row:hover .locs__track { animation-play-state: paused; } }   /* наведи — лента остановится */
/* плитка локации: тёмное стекло, рамка светлее сверху — будто свет падает на край */
.loc {
  position: relative; display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 16px 0 11px;
  border-radius: 18px; white-space: nowrap; border: 1px solid transparent;
  background:
    linear-gradient(180deg, #151518, #0b0b0d) padding-box,
    linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .05) 55%, rgba(255, 255, 255, .12)) border-box;
  box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: transform .45s var(--ease), box-shadow .45s;
}
/* флаг — глянцевая сфера: блик сверху, тень снизу, тонкое кольцо */
.loc__flag {
  position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 6px 14px -4px rgba(0, 0, 0, .85);
}
.loc__flag img { display: block; width: 100%; height: 100%; transform: scale(1.06); transition: transform .6s var(--ease); }
.loc__flag::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 70% 88%, rgba(0, 0, 0, .4), transparent 60%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 -3px 6px rgba(0, 0, 0, .25);
}
.loc__name { font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.loc__code { margin-left: 4px; padding-left: 12px; border-left: 1px solid var(--line-2); font-size: 11px; font-weight: 500; letter-spacing: .16em; color: var(--dim); }
@media (hover: hover) {
  .loc:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .1); }
  .loc:hover .loc__flag img { transform: scale(1.16) rotate(-8deg); }
  .loc:hover .loc__code { color: var(--muted); }
}

/* ---------- Тарифы ---------- */
.pricing__ctrl { display: grid; justify-items: center; gap: 18px; max-width: 460px; margin: 0 auto 36px; text-align: center; }
.seg { position: relative; width: 100%; display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); padding: 4px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); }
.seg__thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n, 2)); border-radius: 999px;
  background: var(--metal); background-size: 200% 100%; box-shadow: 0 8px 24px -10px rgba(255, 255, 255, .6), inset 0 1px 0 #fff;
  transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .7s var(--ease);
}
.seg__btn { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 11px 4px; border-radius: 999px; transition: color .4s; }
.seg__btn b { font-family: var(--font-d); font-size: 18px; font-weight: 500; line-height: 1; letter-spacing: .01em; }
.seg__btn small { font-size: 12px; color: var(--muted); transition: color .4s; }
.seg__btn[aria-checked="true"], .seg__btn[aria-checked="true"] small { color: #0a0a0b; }
.slots { display: flex; gap: 6px; }
.slots i { width: 12px; height: 34px; clip-path: polygon(0 32%, 100% 0, 100% 68%, 0 100%); background: rgba(255, 255, 255, .08); transition: background .5s, transform .6s var(--ease); transition-delay: calc(var(--k, 0) * 50ms); }
.slots i.on { background: linear-gradient(180deg, #fff, #9a9fa7); transform: translateY(-3px); }
.pricing__caption { font-size: 13px; color: var(--dim); }

.plans { display: grid; gap: 12px; }
.plan[hidden] { display: none; }
.plan:not(.is-popular) .plan__badge { display: none; }
.plan {
  position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "term badge" "price price" "per per" "save save" "btn btn";
  align-items: center; padding: 26px 24px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012)); border: 1px solid var(--line);
  transition: border-color .4s, opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease);
}
.plan:hover { border-color: var(--line-2); }
.plan__term { grid-area: term; font-family: var(--font-b); font-size: 12.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.plan__badge { grid-area: badge; justify-self: end; padding: 5px 11px; border-radius: 99px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #0a0a0b; background: var(--metal); background-size: 200% 100%; }
.plan__price { grid-area: price; display: flex; align-items: baseline; gap: 8px; margin: 18px 0 6px; font-family: var(--font-d); }
.plan__price .num { display: inline-block; font-size: 52px; font-weight: 200; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.plan__price .cur { font-size: 22px; font-weight: 300; color: var(--muted); }
.plan__per { grid-area: per; font-size: 14px; color: var(--muted); }
.plan__save { grid-area: save; justify-self: start; margin: 14px 0 22px; padding: 5px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 500; color: var(--text); border: 1px solid var(--line-3); }
.plan__save.is-muted { color: var(--dim); border-color: var(--line); }
.plan__btn { grid-area: btn; width: 100%; }

@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
/* Популярный тариф — «инверсия»: светлый металл и тёмный текст среди тёмных карточек */
.plan.is-popular {
  z-index: 1; overflow: hidden; color: #0a0a0b;
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, #fbfbfc 0%, #e4e6e9 38%, #c9ccd1 62%, #eef0f2 100%) padding-box,
    conic-gradient(from var(--ang), #8f949c, #ffffff 10%, #8f949c 22%, #8f949c 60%, #ffffff 70%, #8f949c 80%) border-box;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 30px 90px -28px rgba(255, 255, 255, .5), 0 0 60px -10px rgba(255, 255, 255, .18);
  animation: rotAng 7s linear infinite;
}
@keyframes rotAng { to { --ang: 360deg; } }
.plan.is-popular .plan__term { color: #0a0a0b; }
.plan.is-popular .plan__price { color: #0a0a0b; }
.plan.is-popular .plan__price .cur { color: #5a5d63; }
.plan.is-popular .plan__per { color: #46494f; }
.plan.is-popular .plan__badge { color: #fff; background: #0a0a0b; }
.plan.is-popular .plan__save { color: #fff; background: #0a0a0b; border-color: #0a0a0b; }
.plan.is-popular .plan__btn {
  color: #fff; background: #0b0b0d;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.plan.is-popular .plan__btn:hover { background: #1c1c20; box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .18); }
.plan.is-popular .plan__btn::after { background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%); }
.plan.is-popular .ripple { background: rgba(255, 255, 255, .25); }
/* блик раз в несколько секунд пробегает по карточке */
.plan.is-popular::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 45%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent);
  transform: translateX(-160%) skewX(-18deg); --sheen-from: -160%; --sheen-to: 330%; --sheen-skew: -18deg; animation: sheen 6s var(--ease-io) 1s infinite;
}
/* на телефоне популярный тариф — первым в списке */
@media (max-width: 639px) { .plan.is-popular { order: -1; } }

.pricing__trial { margin-top: 30px; text-align: center; }
.pricing__trial a { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; padding-bottom: 3px; border-bottom: 1px solid var(--line-3); transition: border-color .3s; }
.pricing__trial a:hover { border-color: #fff; }
.pricing__trial svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.pricing__trial a:hover svg { transform: translateX(4px); }
.pricing__note { margin-top: 12px; text-align: center; font-size: 13px; color: var(--dim); }

/* ---------- Приведи друга ---------- */
.ref { display: grid; gap: 48px; align-items: center; }
.ref__stage { position: relative; display: grid; place-items: center; padding: 34px 0; }

/* волны расходятся от билета — «приглашение отправлено» */
.ref__ring {
  position: absolute; left: 50%; top: 50%; width: 112%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .16); opacity: 0; transform: translate(-50%, -50%) scale(.45);
  animation: ring 6s var(--ease-io) infinite;
}
.ref__ring:nth-child(2) { animation-delay: 2s; }
.ref__ring:nth-child(3) { animation-delay: 4s; }
@keyframes ring { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.45); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.12); } }

/* билет */
.ticket {
  position: relative; z-index: 1; display: flex; width: min(calc(100% - 18px), 620px); aspect-ratio: 2.2 / 1; margin-right: 18px;
  rotate: -3deg; /* лёгкий наклон; отдельное свойство — сохраняется и при наклоне за курсором, и при покачивании */
  transition: transform .3s ease-out;
}
/* мягкая тень на «полу» — отдельным пятном, без CSS-фильтра (фильтр размывал билет при наклоне) */
.ref__stage::after {
  content: ""; position: absolute; z-index: 0; left: 12%; right: 16%; bottom: 4%; height: 22%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .75), transparent);
}
/* фон частей билета — векторный (svg.ticket__bg): края и вырезы сглажены даже при наклоне */
.ticket__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; overflow: visible; }
.ticket__outline { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ticket__perf { stroke: rgba(10, 10, 11, .3); stroke-width: 2; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.ticket__sheen { transform: translateX(0) skewX(-18deg); --sheen-from: 0px; --sheen-to: 1150px; --sheen-skew: -18deg; animation: sheen 7s var(--ease-io) 2s infinite; }
.ticket__main {
  position: relative; isolation: isolate; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(16px, 4.5vw, 32px);
}
.ticket__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ticket__mark { width: 26px; height: auto; }
.ticket__label { font-size: 10.5px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.ticket__bonus { display: flex; align-items: baseline; gap: 12px; }
.ticket__num {
  font-family: var(--font-d); font-weight: 200; font-size: clamp(56px, 16.5vw, 128px); line-height: .9; letter-spacing: -.05em;
  font-variant-numeric: tabular-nums; background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ticket__unit { font-size: clamp(13px, 3.6vw, 16px); color: var(--muted); }
.ticket__link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, .2); font-size: 11px; color: var(--muted); white-space: nowrap;
}
.ticket__link b { font-weight: 500; letter-spacing: .14em; color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.ticket__stub {
  position: relative; isolation: isolate; width: 31%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  color: #0a0a0b; transform-origin: 0 100%; transition: transform 1.1s cubic-bezier(.34, 1.56, .64, 1);
}
.ticket__num--stub { font-size: clamp(40px, 11.5vw, 84px); background: linear-gradient(180deg, #34363c, #0a0a0b); -webkit-background-clip: text; background-clip: text; }
.ticket__stub .ticket__unit { font-size: 12px; color: #46494f; }
.ticket.is-torn .ticket__stub { transform: translateX(10px) rotate(4deg); }   /* корешок «отрывается» — для друга */
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (hover: none) { .ticket { animation: floatY 5s ease-in-out infinite; } }

/* шаги — таймлайн с иконками */
.ref__steps { position: relative; display: grid; gap: 28px; }
.ref__steps::before, .ref__steps::after { content: ""; position: absolute; left: 23.5px; top: 24px; bottom: 24px; width: 1px; background: var(--line-2); }
.ref__steps::after { background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .35)); transform: scaleY(0); transform-origin: 50% 0; transition: transform 1.8s var(--ease) .3s; }
.ref__steps.in::after { transform: scaleY(1); }
.ref__step { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start; }
.ref__icon {
  position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: #0d0d10; border: 1px solid var(--line-3); box-shadow: 0 0 0 6px var(--bg);
}
.ref__icon svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ref__step:last-child .ref__icon { background: var(--metal); background-size: 200% 100%; border-color: #fff; box-shadow: 0 0 0 6px var(--bg), 0 0 30px rgba(255, 255, 255, .25); }
.ref__step:last-child .ref__icon svg { stroke: #0a0a0b; }
.ref__step.in .ref__icon { animation: iconPulse 1s var(--ease) both; animation-delay: calc(.4s + var(--d, 0) * .4s); }
@keyframes iconPulse { 50% { transform: scale(1.12); } }
.ref__n { display: block; margin: 3px 0 6px; font-family: var(--font-d); font-weight: 300; font-size: 12.5px; letter-spacing: .16em; color: var(--dim); }
.ref__step h3 { margin-bottom: 6px; font-size: 20px; font-weight: 400; letter-spacing: -.03em; }
.ref__step p { font-size: 15px; color: var(--muted); }

/* ---------- Поддержка ---------- */
.support { display: grid; gap: 40px; align-items: center; }
.facts { display: grid; margin: 28px 0 30px; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); padding-top: 2px; }
.facts dd { font-weight: 500; }
.chat { width: 100%; max-width: 420px; margin: 0 auto; border-radius: 24px; overflow: hidden; background: linear-gradient(180deg, #111114, #08080a); border: 1px solid var(--line-2); box-shadow: 0 50px 100px -50px rgba(255, 255, 255, .2); }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat__ava { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); }
.chat__ava svg { width: 18px; height: auto; }
.chat__head b { display: block; font-size: 14.5px; font-weight: 500; }
.chat__head small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.chat__head small i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.chat__body { display: flex; flex-direction: column; gap: 8px; min-height: 310px; padding: 18px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.45; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .6s var(--ease); }
.msg.show { opacity: 1; transform: none; }
.msg--me { align-self: flex-end; color: #0a0a0b; background: var(--metal); background-size: 220% 100%; border-bottom-right-radius: 6px; font-weight: 500; }
.msg--sup { align-self: flex-start; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg--typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1.1s ease-in-out infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }
.chat__caption { padding: 0 18px 16px; font-size: 12px; color: var(--dim); text-align: center; }

/* ---------- Вопросы ---------- */
.faq { max-width: 900px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); }
.faq__q { display: grid; grid-template-columns: 1fr 28px; gap: 16px; align-items: center; width: 100%; padding: 22px 0; text-align: left; font-family: var(--font-d); font-weight: 400; font-size: 18px; letter-spacing: -.02em; }
.plus { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .5s var(--ease), background-color .3s, border-color .3s; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1px; margin: 0 0 0 -5px; background: var(--text); transition: transform .5s var(--ease), background-color .3s; }
.plus::after { transform: rotate(90deg); }
.faq__q:hover .plus { border-color: var(--line-3); }
.is-open .plus { transform: rotate(180deg); background: #fff; border-color: #fff; }
.is-open .plus::before, .is-open .plus::after { background: #0a0a0b; }
.is-open .plus::after { transform: rotate(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 44px 24px 0; color: var(--muted); font-size: 15.5px; }
.is-open .faq__a { grid-template-rows: 1fr; }

/* ---------- Финальный призыв ---------- */
.final { padding-bottom: 110px; }
.final__card {
  position: relative; overflow: hidden; isolation: isolate; display: grid; justify-items: center; text-align: center;
  padding: 56px 22px 44px; border-radius: 28px; border: 1px solid var(--line-2);
  background: radial-gradient(90% 70% at 50% 0%, rgba(255, 255, 255, .1), transparent 70%), linear-gradient(180deg, #0f0f12, #070708);
}
.final__beam {
  position: absolute; z-index: -1; top: -20%; bottom: -20%; left: 50%; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .8), transparent);
  box-shadow: 0 0 30px 4px rgba(255, 255, 255, .25);
  animation: beamSweep 8s var(--ease-io) infinite;
}
@keyframes beamSweep { 0%, 100% { transform: translateX(-60vw); opacity: 0; } 15% { opacity: 1; } 50% { transform: translateX(60vw); opacity: 1; } 65% { opacity: 0; } }
.mark--final { width: 96px; height: auto; margin-bottom: 30px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .8)) drop-shadow(0 0 24px rgba(255, 255, 255, .15)); }
.mark--final .sweep { animation: sheen 5s var(--ease-io) 1s infinite; }
.final__text .h2 { margin-top: 0; }
.final__text .sub { margin: 0 auto 30px; }
.final__text .btn { width: 100%; max-width: 360px; }

/* ---------- Подвал ---------- */
.footer { padding: 40px 0 calc(110px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer__in { display: grid; gap: 16px; }
.footer .logo__mark { width: 24px; }
.footer .logo__word { width: 56px; }
.footer__about { color: var(--dim); font-size: 14px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.footer__nav a { color: var(--muted); transition: color .3s; }
.footer__nav a:hover { color: #fff; }
.footer__copy { font-size: 13px; color: var(--dim); }

/* ---------- Липкая панель (телефон) ---------- */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 6px; border-radius: 999px;
  background: rgba(14, 14, 16, .82); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px -20px #000;
  transform: translateY(160%); transition: transform .7s var(--ease);
}
.dock.is-visible { transform: none; }
.dock .btn { height: 48px; }
.dock__alt { padding: 0 20px; }

/* ---------- Юридические заглушки ---------- */
.legal__in { max-width: 760px; padding-top: 40px; padding-bottom: 80px; }
.legal__back { display: inline-flex; gap: 8px; margin-bottom: 48px; color: var(--muted); font-weight: 500; }
.legal__back:hover { color: #fff; }
.legal h1 { font-size: clamp(30px, 7vw, 48px); font-weight: 200; margin-bottom: 20px; }
.legal p { color: var(--muted); margin-bottom: 12px; }

/* ==========================================================================
   ЭФФЕКТЫ
   ========================================================================== */

.no-intro { --intro: 0s; }

/* ---------- Заставка ---------- */
.intro { position: fixed; inset: 0; z-index: 100; display: none; place-content: center; justify-items: center; gap: 26px; background: var(--bg); }
.js:not(.no-intro) .intro { display: grid; animation: introOut 1s var(--ease-io) 1.7s forwards; }
@keyframes introOut { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
.intro__mark { width: 92px; overflow: visible; filter: drop-shadow(0 0 24px rgba(255, 255, 255, .18)); }
.intro__stroke { fill: none; stroke: #fff; stroke-width: 1.4; stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: drawR 1.1s var(--ease-io) .1s forwards; }
@keyframes drawR { to { stroke-dashoffset: 0; } }
.intro__fill { opacity: 0; animation: fadeIn .7s ease .85s forwards; }
.intro__word { width: 118px; clip-path: inset(0 100% 0 0); animation: wordIn 1s var(--ease) .9s forwards; }
@keyframes wordIn { to { clip-path: inset(0 0 0 0); } }
.intro__line { position: relative; width: 140px; height: 1px; overflow: hidden; background: rgba(255, 255, 255, .12); }
.intro__line::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: 0 50%; animation: lineFill 1.55s var(--ease-io) forwards; }
@keyframes lineFill { to { transform: scaleX(1); } }

/* ---------- Свой курсор ---------- */
.cursor { display: none; }
.cursor-on .cursor { display: block; }
.cursor-on, .cursor-on * { cursor: none !important; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; border-radius: 50%; mix-blend-mode: difference; will-change: transform; transition: opacity .3s; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
.cursor__ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid #fff; transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .45s, opacity .3s; }
.cursor.is-link .cursor__ring { width: 72px; height: 72px; margin: -36px 0 0 -36px; background: #fff; }
.cursor.is-link .cursor__dot { opacity: 0; }
.cursor.is-down .cursor__ring { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.cursor.is-out .cursor__ring, .cursor.is-out .cursor__dot { opacity: 0; }

/* ---------- Первый экран: сеть, блик, строки заголовка ---------- */
.hero__net { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.hero > .container { position: relative; z-index: 1; }
.mark__light .hi { opacity: .5; }
.hero__title .ln { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.hero__title .ln > * { display: block; }
.js .hero__title .ln > * { animation: lnIn 1.3s var(--ease) both; animation-delay: calc(var(--intro) + .25s + var(--l, 0) * .12s); }
@keyframes lnIn { from { transform: translateY(108%); } }
.hero__title em {
  background: linear-gradient(100deg, #8f949c 0%, #ffffff 16%, #c9ccd2 30%, #8f949c 50%, #ffffff 66%, #c9ccd2 80%, #8f949c 100%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text;
}
.js .hero__title .ln > em { animation: lnIn 1.3s var(--ease) calc(var(--intro) + .37s) both, shimmer 7s linear calc(var(--intro) + 1.6s) infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Бегущая строка ---------- */
.marquee { position: relative; overflow: hidden; padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee__track { display: flex; align-items: center; width: max-content; font-family: var(--font-d); font-size: clamp(46px, 12.5vw, 140px); will-change: transform; }
.marquee__item { padding: 0 .32em; font-weight: 200; line-height: 1; letter-spacing: -.045em; white-space: nowrap; }
.marquee__item:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .38); }
.marquee__sep { flex: none; width: .16em; height: .56em; clip-path: polygon(0 32%, 100% 0, 100% 68%, 0 100%); background: linear-gradient(180deg, #fff, #8f949c); }

/* ---------- Цитата проявляется по словам ---------- */
.qw { opacity: .14; transition: opacity .3s linear; }

/* ---------- Подсветка рамки у курсора ---------- */
@property --ga { syntax: "<number>"; inherits: false; initial-value: 0; }
.glow {
  border: 1px solid transparent;
  background:
    var(--glow-fill, linear-gradient(180deg, #0f0f11, #09090a)) padding-box,
    radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, calc(var(--ga) * .7)), transparent 70%) border-box,
    linear-gradient(var(--line), var(--line)) border-box;
  transition: --ga .5s, opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease);
}
.glow:hover { border-color: transparent; }
@media (hover: hover) { .glow:hover { --ga: 1; } }
.chat.glow { --glow-fill: linear-gradient(180deg, #111114, #08080a); }

/* ---------- Текст кнопок «перекатывается» ---------- */
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; height: 1.3em; line-height: 1.3em; }
.roll > span { display: block; transition: transform .6s var(--ease); }
@media (hover: hover) { .btn:hover .roll > span { transform: translateY(-100%); } }

/* ---------- Цены-одометр ---------- */
.plan__price { align-items: flex-end; }
.plan__price .cur { padding-bottom: .08em; }
.odo { display: inline-flex; height: 1em; line-height: 1em; overflow: hidden; }
.odo__col { display: inline-block; height: 1em; overflow: hidden; }
.odo__strip { display: flex; flex-direction: column; transition: transform 1.1s var(--ease); transition-delay: calc(var(--c, 0) * 70ms); }
.odo__strip span { display: block; height: 1em; }
.odo__sep { display: inline-block; width: .26em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Телефон наклоняется при прокрутке ---------- */
.how__device { perspective: 1200px; }
.how__device .phone { will-change: transform; transform-style: preserve-3d; }

/* ---------- Огромные номера разделов ---------- */
.section__head[data-n] { position: relative; isolation: isolate; }
.section__head[data-n]::after {
  content: attr(data-n); position: absolute; z-index: -1; right: -.03em; top: -.42em;
  font-family: var(--font-d); font-weight: 200; font-size: clamp(130px, 36vw, 300px); line-height: 1; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .07);
  translate: 0 calc(var(--p, 0) * 80px); pointer-events: none;
}

/* ---------- Огромная надпись в подвале ---------- */
.footer__giant { margin-top: 56px; overflow: hidden; }
.footer__giant svg { width: 100%; height: auto; opacity: 0; transform: translateY(45%); transition: transform 1.8s var(--ease), opacity 1.8s var(--ease); }
.footer__giant.in svg { opacity: 1; transform: none; }
.giant { fill: url(#gGiant); stroke: url(#gGiantStroke); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
/* блик изредка проходит по буквам */
.giant__sweep { opacity: .22; transform: translateX(0) skewX(-18deg); --sheen-from: 0px; --sheen-to: 680px; --sheen-skew: -18deg; animation: sheen 9s var(--ease-io) 1.5s infinite; }

/* ---------- «Живое» зерно ---------- */
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  17% { transform: translate(-3%, 2%); }
  33% { transform: translate(2%, -3%); }
  50% { transform: translate(-2%, 3%); }
  67% { transform: translate(3%, 1%); }
  83% { transform: translate(-1%, -2%); }
}

/* ---------- Телефон: карточки «Знакомо?» складываются стопкой ---------- */
@media (max-width: 639px) {
  .pain { position: sticky; top: calc(84px + var(--i, 0) * 12px); transform-origin: 50% 0; }
  .pain::before, .pain:hover::before { background: #000; opacity: calc(var(--stack, 0) * 1); transition: none; }
}

/* ==========================================================================
   ПЛАНШЕТ
   ========================================================================== */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .hero__cta { display: flex; flex-wrap: wrap; }
  .hero__visual { height: 300px; }
  .mark--hero { width: 190px; }
  .pains { grid-template-columns: repeat(2, 1fr); }
  .pain { grid-template-columns: 1fr; }
  .feats { grid-template-columns: repeat(2, 1fr); }
  .promise { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .plans--odd .plan:first-child:not([hidden]) { grid-column: 1 / -1; } /* нечётное число карточек: первая — во всю ширину */
  .quote { padding: 56px 48px 44px; }
  .final__card { padding: 72px 48px 60px; }
}

/* ==========================================================================
   ПК
   ========================================================================== */
@media (min-width: 1000px) {
  .nav { display: flex; gap: 4px; margin-right: 18px; }
  .nav a { position: relative; padding: 8px 14px; font-size: 14px; color: var(--muted); transition: color .3s; }
  .nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 1px; background: #fff; transform: scaleX(0); transform-origin: 100% 50%; transition: transform .5s var(--ease); }
  .nav a:hover { color: #fff; }
  .nav a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
  .burger, .menu { display: none; }
  .header__in { height: 76px; }
  .logo__mark { width: 40px; }
  .logo__word { width: 82px; }
  .btn--sm { height: 42px; padding: 0 22px; }
  .bg__rule--c { display: block; }
  .bg__rule--l { left: max(16px, calc(50% - var(--maxw) / 2)); }
  .bg__rule--r { right: max(16px, calc(50% - var(--maxw) / 2)); }
  .divider { margin: 0 auto; max-width: calc(var(--maxw) - var(--gutter) * 2); }

  .section { padding: 130px 0; }
  .section__head { margin-bottom: 64px; }

  .hero { padding-top: 110px; }
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 40px; }
  .hero__visual { order: 2; height: 560px; }
  .hero__halo { width: 620px; height: 620px; }
  .mark--hero { width: 300px; }
  .signal { left: -20%; width: 140%; height: 200px; }
  .hero__title { font-size: min(7.4vw, 108px); margin-top: 26px; }
  .hero__lead { font-size: 18px; }
  .scroll-hint { display: block; position: absolute; left: 50%; bottom: 28px; width: 1px; height: 56px; margin-left: -.5px; background: var(--line); overflow: hidden; }
  .scroll-hint span { position: absolute; left: 0; top: 0; width: 1px; height: 18px; background: #fff; animation: scrollLine 2.2s var(--ease-io) infinite; }
  @keyframes scrollLine { from { transform: translateY(-100%); } to { transform: translateY(320%); } }

  .pains { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .pain { padding: 28px; }
  .feats { gap: 14px; }
  .feat { padding: 36px; }

  .quote { padding: 80px 72px 64px; margin-bottom: 56px; }
  .shards--quote { right: 6%; height: 150%; opacity: .45; }
  .honesty__grid { grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }

  .how { grid-template-columns: 1.1fr .9fr; gap: 80px; }
  .how__device { order: 2; }
  .how .phone { width: 290px; aspect-ratio: 9 / 18.5; border-radius: 44px; }
  .step { padding: 28px 0; cursor: pointer; }
  .step:hover { opacity: .85; }
  .step__num { font-size: 34px; }
  .step__h { font-size: 24px; }

  .pricing__ctrl { margin-bottom: 56px; }
  .plans { grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 14px; align-items: stretch; }
  .plans--odd .plan:first-child:not([hidden]) { grid-column: auto; }
  .plan { grid-template-areas: "badge badge" "term term" "price price" "per per" "save save" "btn btn"; align-content: start; padding: 30px 22px; }
  .plan__price .num { font-size: clamp(34px, 3.2vw, 52px); } /* 5 карточек в ряд — цена чуть компактнее */
  .plan__price .cur { font-size: 18px; }
  .plan__badge { justify-self: start; margin-bottom: 16px; }
  .plan:not(.is-popular) .plan__term { margin-top: 38px; }
  .plan.is-popular, .js .plan.is-popular.in { transform: translateY(-16px) scale(1.04); }
  .js .plan.in:hover { transform: translateY(-6px); }
  .js .plan.is-popular.in:hover { transform: translateY(-22px) scale(1.04); }

  .ref { grid-template-columns: 1.25fr .75fr; gap: 72px; }
  .ticket { rotate: -4deg; }
  .ref__stage { padding: 60px 0; }

  .support { grid-template-columns: 1fr 1fr; gap: 90px; }

  .final__card { grid-template-columns: auto 1fr; text-align: left; padding: 90px 96px; gap: 72px; align-items: center; }
  .mark--final { width: 220px; margin: 0; }
  .final__text .sub { margin-left: 0; }

  .footer { padding-bottom: 44px; }
  .footer__in { grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
  .footer__copy { grid-column: 1 / -1; }
  .dock { display: none; }
}

/* ==========================================================================
   ТЕЛЕФОНЫ И ПЛАНШЕТЫ: облегчённый режим
   Размытие фона (backdrop-filter) и размытие при появлении блоков — самое тяжёлое
   для слабых видеочипов. На сенсорных устройствах заменяем их плотным фоном.
   ========================================================================== */
@media (hover: none) {
  .header.is-scrolled, .menu-open .header { background: rgba(5, 5, 6, .94); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .dock { background: rgba(16, 16, 18, .97); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .btn--ghost, .toast { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .js .reveal { filter: none; transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 100ms); }
}
/* знак на первом экране — отдельный слой: параллакс при прокрутке не перерисовывает его */
.hero__visual { will-change: translate; }

/* Анимации блоков за пределами экрана стоят на паузе — бережём батарею и плавность */
.is-off, .is-off *, .is-off *::before, .is-off *::after { animation-play-state: paused !important; }

/* Уважение к настройке «уменьшить движение» */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .split .w > span { opacity: 1; transform: none; filter: none; }
}
