/*
 * Flow — главная (минимальная, 2026-11-21). Тёмная, одна гарнитура (Onest), чёрно-белый интерфейс поверх обоев
 * из клиента (assets/game/wall). Иконки — линейный набор клиента в стеклянных плитках.
 */
:root {
  --bg: #08080a;
  --bg2: #101013;
  --fg: #f4f4f5;
  --fg2: rgba(244, 244, 245, .6);
  --fg3: rgba(244, 244, 245, .38);
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .15);
  --accent: #fff;
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --r: 22px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, p, ol { margin: 0; }
ol { padding: 0; list-style: none; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 10px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.ic { width: 100%; height: 100%; }

/* ───── шапка: плавающая капсула ───── */
.bar {
  position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
  height: 50px; padding: 0 7px 0 18px;
  border-radius: 999px;
  background: rgba(12, 12, 15, .42);
  border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  transition: background .4s, border-color .4s, opacity .8s var(--ease), transform .8s var(--ease);
}
.bar.solid { background: rgba(12, 12, 15, .8); border-color: var(--line2); }
.bar-brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; letter-spacing: -.01em; margin-right: 18px; }
.bar-brand svg { width: 13px; height: 18px; }
.bar-links { display: flex; gap: 2px; margin-right: 12px; }
.bar-links a { padding: 8px 12px; border-radius: 999px; font-size: 14px; white-space: nowrap; color: var(--fg2); transition: color .2s, background .2s; }
.bar-links a:hover { color: var(--fg); background: rgba(255, 255, 255, .06); }
.bar-login {
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 16px; border-radius: 999px;
  background: #fff; color: #0a0a0b; font-size: 14px; font-weight: 500;
  transition: transform .2s var(--ease), background .2s;
}
.bar-login:hover { background: #e9e9ea; }
.bar-login:active { transform: scale(.97); }
.bar-login.fa-nav-on { padding: 0 14px 0 4px; }
.bar-login .fa-nav-ava { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

/* выбор языка (кнопку рисует js/i18n.js) */
.lang { position: relative; margin-right: 2px; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 9px 0 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .06em; color: var(--fg2);
  transition: color .2s, background .2s;
}
.lang-btn:hover, .lang.open .lang-btn { color: var(--fg); background: rgba(255, 255, 255, .07); }
.lang-globe { width: 16px; height: 16px; }
.lang-chev { width: 12px; height: 12px; opacity: .6; transition: transform .3s var(--ease); }
.lang.open .lang-chev { transform: rotate(180deg); }
.lang-pop {
  position: absolute; z-index: 5; top: calc(100% + 13px); right: -6px;
  min-width: 196px; padding: 6px; border-radius: 18px;
  background: rgba(16, 16, 19, .96); border: 1px solid var(--line2);
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .75);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.97); transform-origin: 100% 0;
  transition: opacity .2s, transform .28s var(--ease), visibility 0s .28s;
}
.lang.open .lang-pop { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.lang-opt {
  display: flex; align-items: center; gap: 10px;
  width: 100%; height: 40px; padding: 0 10px; border-radius: 12px;
  font-size: 14.5px; color: var(--fg2); text-align: left;
  transition: background .2s, color .2s;
}
.lang-opt small { width: 24px; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--fg3); }
.lang-opt span { flex: 1; }
.lang-opt:hover, .lang-opt:focus-visible { background: rgba(255, 255, 255, .07); color: var(--fg); }
.lang-opt[aria-selected="true"] { color: var(--fg); }
.lang-check { width: 16px; height: 16px; opacity: 0; }
.lang-opt[aria-selected="true"] .lang-check { opacity: 1; }

/* ───── заставка: пока идёт подпись, страница ждёт; потом всё проявляется ───── */
.intro-pending body { overflow: hidden; }
.js .bar { opacity: 0; transform: translate(-50%, -10px); }
.js .hero-in > *, .js .hero-wall { opacity: 0; transform: translateY(18px); filter: blur(6px); }
.js .hero-bg { opacity: 0; }
.lit .bar { opacity: 1; transform: translateX(-50%); transition-delay: .5s; }
.lit .hero-bg { opacity: 1; transition: opacity 1.6s ease; }
.lit .hero-in > *, .lit .hero-wall {
  opacity: 1; transform: none; filter: none;
  transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease);
}
.lit .hero-in > :nth-child(1) { transition-delay: .15s; }
.lit .hero-in > :nth-child(2) { transition-delay: .3s; }
.lit .hero-in > :nth-child(3) { transition-delay: .4s; }
.lit .hero-in > :nth-child(4) { transition-delay: .52s; }
.lit .hero-in > :nth-child(5) { transition-delay: .64s; }
.lit .hero-wall { transition-delay: .9s; }

/* ───── первый экран ───── */
.hero {
  position: relative; isolation: isolate;
  min-height: 640px; height: 100vh; height: 100svh;
  display: grid; place-items: center; text-align: center;
  overflow: hidden; background: #050507;
}
.hero-bg { position: absolute; inset: 0; z-index: -3; }
.hero-bg img, .hero-sky { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-bg img { filter: brightness(.7); }
.hero-sky { opacity: 0; transition: opacity 1.2s ease; }
.hero-sky.on { opacity: 1; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(90% 70% at 50% 46%, rgba(8, 8, 10, .1) 0%, rgba(8, 8, 10, .5) 70%, rgba(8, 8, 10, .82) 100%),
    linear-gradient(to bottom, rgba(8, 8, 10, .5) 0%, rgba(8, 8, 10, 0) 24%, rgba(8, 8, 10, 0) 58%, var(--bg) 100%);
}
.hero-in { padding: 90px 24px 70px; max-width: 1080px; }
/* знак F: большой, объёмный (js/f3d.js рисует его в canvas; без WebGL остаётся плоский SVG) */
.hero-mark {
  position: relative; isolation: isolate;
  width: clamp(200px, 36svh, 340px); aspect-ratio: 1; margin: -26px auto -2px;
}
.hero-mark::before {
  content: ''; position: absolute; inset: 8%; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(120, 150, 255, .34), rgba(120, 150, 255, .1) 55%, rgba(120, 150, 255, 0));
  filter: blur(14px);
}
.hero-f {
  position: absolute; left: 50%; top: 50%; width: 44.6%; height: 62%; transform: translate(-50%, -50%);
  color: #fff; transition: opacity .4s;
  filter: drop-shadow(0 0 26px rgba(255, 255, 255, .35)) drop-shadow(0 14px 34px rgba(0, 0, 0, .5));
}
.hero-f3d {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  opacity: 0; transition: opacity .5s; cursor: grab; touch-action: pan-y;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.hero-f3d.grab { cursor: grabbing; }
.hero-mark.gl .hero-f { opacity: 0; }
.hero-mark.on .hero-f3d { opacity: 1; }
.hero h1 {
  /* фон-градиент (background-clip: text) кончается там же, где строка: без нижнего отступа хвост «y» обрезан */
  margin-top: 0; padding: .04em .06em .16em; margin-bottom: -.12em;
  font-size: clamp(46px, 8.4vw, 112px); font-weight: 600; line-height: .96; letter-spacing: -.045em;
  background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, .72) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, .35));
}
.hero-sub { margin: 22px auto 34px; max-width: 480px; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .8); text-shadow: 0 2px 20px rgba(0, 0, 0, .5); }
.hero-btns { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 26px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -.005em;
  transition: transform .25s var(--ease), background .25s, border-color .25s;
}
.btn:active { transform: scale(.97); }
.btn-w { background: #fff; color: #0a0a0b; }
.btn-w:hover { background: #e9e9ea; }
.btn-g {
  background: rgba(255, 255, 255, .09); color: #fff; border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.btn-g:hover { background: rgba(255, 255, 255, .16); }


/* ───── секции ───── */
.sec { padding: clamp(96px, 12vw, 150px) 0 0; }
.sec-head { text-align: center; }
.sec-head h2 { font-size: clamp(36px, 4.8vw, 58px); font-weight: 600; line-height: 1.02; letter-spacing: -.04em; }
.sec-head p { margin: 16px auto 0; max-width: 440px; color: var(--fg2); font-size: 16px; }

/* вкладки */
.tabs {
  position: relative; display: flex; width: max-content; max-width: 100%;
  margin: 40px auto 0; padding: 4px; gap: 2px;
  border-radius: 999px; background: var(--bg2); border: 1px solid var(--line);
}
.tab {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 18px 0 14px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; color: var(--fg2); white-space: nowrap;
  transition: color .3s;
}
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { color: #0a0a0b; }
.tab .ic { width: 17px; height: 17px; }
.tab-ind {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0;
  border-radius: 999px; background: #fff;
  transition: transform .45s var(--ease), width .45s var(--ease);
}
.tab-note { margin: 22px auto 0; max-width: 580px; min-height: 48px; text-align: center; color: var(--fg2); font-size: 15px; }
.tab-note b { color: var(--fg); font-weight: 500; }

/* карточки тарифов */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.cards.duo { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 744px; margin-left: auto; margin-right: auto; }
.card {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--r); overflow: hidden;
  background: var(--bg2); border: 1px solid var(--line);
  /* объём: js/min.js ведёт наклон (--rx/--ry), блик (--gx/--gy) и сдвиг слоёв (--px/--py) за курсором */
  transform: perspective(1000px) translateY(var(--lift, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease), border-color .3s;
  animation: cardIn .7s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 80ms);
}
.card:hover { --lift: -4px; border-color: var(--line2); }
.card.tilting, [data-tilt].tilting { transition: transform .16s ease-out, border-color .3s; }
.card.hit { border-color: rgba(255, 255, 255, .24); }
.card::after, [data-tilt]::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background: radial-gradient(380px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .11), rgba(255, 255, 255, 0) 62%);
  opacity: 0; transition: opacity .35s;
}
.card.tilting::after, [data-tilt].tilting::after { opacity: 1; }
.card .art { translate: calc(var(--px, 0) * 10px) calc(var(--py, 0) * 8px); transition: translate .3s ease-out; }
/* карточки встают из глубины: каждая поворачивается к зрителю */
@keyframes cardIn { from { opacity: 0; transform: perspective(1000px) translateY(26px) rotateX(-16deg) scale(.96); } }

.card-vis { position: relative; height: 168px; display: grid; place-items: center; }

/* стеклянная плитка с иконкой клиента */
.tile {
  display: grid; place-items: center;
  width: 76px; height: 76px; border-radius: 22px; padding: 20px;
  color: #fff;
  background: linear-gradient(160deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .05));
  border: 1px solid rgba(255, 255, 255, .26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 18px 40px -10px rgba(0, 0, 0, .6);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
}
.art { position: relative; display: grid; place-items: center; animation: float 6s ease-in-out infinite; }
.art .tile { grid-area: 1 / 1; }
.art.two .tile:first-child { transform: translate(-26px, -8px) rotate(-8deg); }
.art.two .tile:nth-child(2) { transform: translate(26px, 8px) rotate(6deg); }
@keyframes float { 50% { transform: translateY(-7px); } }
/* «Навсегда»: блик по плитке */
.art.shine .tile { position: relative; overflow: hidden; border-color: rgba(255, 255, 255, .42); }
.art.shine .tile::after {
  content: ''; position: absolute; inset: -40%;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .55) 50%, transparent 60%);
  animation: sheen 3.6s ease-in-out infinite;
}
@keyframes sheen { 0% { transform: translateX(-60%); } 55%, 100% { transform: translateX(60%); } }

/* картинка карточки тарифа (js/min.js): знак F у Flow, замочек у беты, иконка клиента у сброса HWID. Без фона. */
.art-f { width: 58px; height: 80px; color: #fff; overflow: visible; }
.art-f.art-lock { width: 66px; height: 92px; }
.lock-bow { transition: transform .5s var(--ease); }
.card:hover .lock-bow { transform: translateY(-40px); }
.art-ic .ic { width: 66px; height: 66px; color: #fff; stroke-width: 1.35; transition: rotate .7s var(--ease); }
.card:hover .art-ic .ic { rotate: 180deg; }
.nw { white-space: nowrap; }

.card-body { display: flex; flex-direction: column; flex: 1; padding: 6px 24px 24px; }
.card-term { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--fg2); }
.card-tag { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; background: #fff; color: #0a0a0b; }
.card-price { margin-top: 10px; margin-bottom: 26px; font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.card-price small { font-size: 22px; font-weight: 500; color: var(--fg2); margin-left: 4px; letter-spacing: 0; }
.card-buy {
  margin-top: auto; height: 48px; border-radius: 14px;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--line);
  font-size: 15px; font-weight: 500;
  transition: background .25s, transform .25s var(--ease);
}
.card-buy:hover { background: rgba(255, 255, 255, .13); }
.card-buy:active { transform: scale(.98); }
.card.hit .card-buy { background: #fff; color: #0a0a0b; border-color: #fff; }
.card.hit .card-buy:hover { background: #e9e9ea; }

/* срок проходки PvE */
.seg { display: flex; gap: 2px; margin-top: 14px; padding: 3px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.seg button { flex: 1; height: 34px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--fg2); transition: background .25s, color .25s; }
.seg button:hover { color: var(--fg); }
.seg button[aria-checked="true"] { background: #fff; color: #0a0a0b; }
.seg + .card-price { margin-top: 18px; }

.pay-line { margin-top: 26px; text-align: center; font-size: 14px; color: var(--fg3); }
.pay-line a { color: var(--fg2); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
.pay-line a:hover { color: var(--fg); }

/* как начать */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; counter-reset: s; }
.steps li {
  position: relative; counter-increment: s; overflow: hidden;
  padding: 28px 26px 26px; border-radius: var(--r);
  background: var(--bg2); border: 1px solid var(--line);
}
.steps li::before {
  content: ''; position: absolute; top: -60px; left: -40px; width: 200px; height: 160px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .07), transparent);
}
/* номер шага — на b::before (li::after занят бликом [data-tilt]: там inset 0 растягивал номер и сдвигал блик) */
.steps b::before {
  content: '0' counter(s); position: absolute; top: 24px; right: 26px; z-index: 2;
  font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--fg3); font-variant-numeric: tabular-nums;
}
.steps .tile {
  width: 52px; height: 52px; padding: 14px; border-radius: 16px; margin-bottom: 26px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
  translate: calc(var(--px, 0) * 7px) calc(var(--py, 0) * 5px); transition: translate .3s ease-out;
}
.steps b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.steps p { margin-top: 6px; font-size: 15px; color: var(--fg2); }
.steps li > i.glare { display: none; }

/* медиа-партнёрство: текст слева, три «экрана» в объёме справа */
.media-in {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 24px 40px;
  padding: clamp(28px, 4.4vw, 56px); border-radius: 28px;
  background: radial-gradient(70% 110% at 100% 0%, rgba(90, 125, 255, .14), rgba(90, 125, 255, 0) 60%), var(--bg2);
  border: 1px solid var(--line);
}
.media-text h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 600; line-height: 1.04; letter-spacing: -.04em; }
.media-text > p { margin-top: 14px; max-width: 420px; color: var(--fg2); }
.media-list { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.media-list li { display: flex; align-items: center; gap: 14px; }
.media-list .tile { flex: none; width: 44px; height: 44px; padding: 12px; border-radius: 14px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
.media-list b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.media-list p { font-size: 14.5px; color: var(--fg2); }
.media-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.media-stage { height: 380px; display: grid; place-items: center; perspective: 1000px; }
.stage3d {
  position: relative; width: 320px; height: 300px; transform-style: preserve-3d;
  transform: rotateX(calc(9deg - var(--my, 0) * 9deg)) rotateY(calc(-24deg + var(--mx, 0) * 18deg + var(--sc, 0) * -26deg));
  transition: transform .5s var(--ease);
}
.scr {
  position: absolute; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: 13px; border-radius: 18px;
  background: #15151a center / cover no-repeat; border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 34px 60px -22px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .16);
  animation: bob 7s ease-in-out infinite;
}
.scr::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10, 10, 13, .05) 25%, rgba(10, 10, 13, .88) 100%); }
.scr-bar { position: relative; height: 6px; width: 68%; border-radius: 3px; background: rgba(255, 255, 255, .55); }
.scr-bar.s { width: 40%; background: rgba(255, 255, 255, .24); }
.scr-ic {
  position: absolute; left: 50%; top: 42%; width: 46px; height: 46px; margin: -23px 0 0 -23px; padding: 13px; border-radius: 50%;
  color: #fff; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .32);
}
.scr em {
  position: absolute; top: 10px; left: 11px; padding: 3px 8px; border-radius: 999px;
  font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .05em; color: #fff;
  background: rgba(10, 10, 13, .55); border: 1px solid rgba(255, 255, 255, .18);
}
.scr-a { left: -6px; top: 4px; width: 250px; height: 150px; transform: translateZ(60px); background-image: url(../assets/game/wall/aurora.jpg); }
.scr-b { right: -14px; top: 54px; width: 132px; height: 222px; transform: translateZ(150px) rotateY(-5deg); background-image: url(../assets/game/wall/nebula.jpg); animation-delay: -2.4s; }
.scr-c { left: -26px; bottom: -16px; width: 226px; height: 138px; transform: translateZ(10px); animation-delay: -4.7s; }
/* купон с промокодом: скидка зрителю и столько же автору */
.scr-promo {
  justify-content: flex-end; gap: 2px; padding: 14px 18px 16px 30px;
  background: radial-gradient(120% 140% at 100% 0%, rgba(90, 125, 255, .38), rgba(90, 125, 255, 0) 60%), linear-gradient(135deg, #1c2036, #121218);
}
.scr-promo::before { inset: 0 auto 0 15px; width: 0; background: none; border-left: 1.5px dashed rgba(255, 255, 255, .26); }
.scr-promo::after {
  content: ''; position: absolute; left: -9px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%;
  background: var(--bg2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.scr-promo em { left: 30px; top: 14px; }
.scr-promo b { position: relative; font-size: 46px; font-weight: 600; line-height: 1; letter-spacing: -.04em; color: #fff; font-variant-numeric: tabular-nums; }
.scr-promo span { position: relative; font-size: 12.5px; font-weight: 600; letter-spacing: .2em; color: rgba(255, 255, 255, .62); }
@keyframes bob { 50% { translate: 0 -10px; } }

/* подвал */
.foot { margin-top: clamp(96px, 12vw, 150px); border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; padding-top: 34px; padding-bottom: 40px; }
.foot-brand { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.foot-brand svg { width: 12px; height: 17px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--fg2); }
.foot-links a:hover { color: var(--fg); }
.foot-fine { width: 100%; font-size: 13px; color: var(--fg3); }
.foot-fine button { margin-left: 6px; color: var(--fg3); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; transition: color .2s; }
.foot-fine button:hover { color: var(--fg2); }

/* окно настроек cookie (js/cookies.js) */
.ck {
  position: fixed; z-index: 60; left: 16px; bottom: 16px; width: min(380px, calc(100vw - 32px));
  padding: 20px; border-radius: 22px;
  background: rgba(16, 16, 19, .96); border: 1px solid var(--line2);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .8);
  opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .3s, transform .4s var(--ease);
}
.ck.show { opacity: 1; transform: none; }
.ck-h { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.ck-p { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--fg2); }
.ck-p a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
.ck-row { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
label.ck-row { cursor: pointer; }
.ck-row > span { flex: 1; min-width: 0; }
.ck-row b { display: block; font-size: 14.5px; font-weight: 500; }
.ck-row small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--fg3); }
.ck-row em { font-style: normal; font-size: 12.5px; color: var(--fg3); }
.ck-in { position: absolute; opacity: 0; pointer-events: none; }
.ck-sw { flex: none; position: relative; width: 40px; height: 24px; border-radius: 999px; background: rgba(255, 255, 255, .14); transition: background .25s; }
.ck-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); }
.ck-in:checked + .ck-sw { background: #fff; }
.ck-in:checked + .ck-sw::after { transform: translateX(16px); background: #0a0a0b; }
.ck-in:focus-visible + .ck-sw { outline: 2px solid var(--fg); outline-offset: 3px; }
.ck-btns { display: flex; gap: 8px; margin-top: 16px; }
.ck-b { flex: 1; height: 40px; border-radius: 999px; font-size: 14px; font-weight: 500; background: rgba(255, 255, 255, .07); border: 1px solid var(--line2); transition: background .2s; }
.ck-b:hover { background: rgba(255, 255, 255, .13); }
.ck-b.ck-w { background: #fff; color: #0a0a0b; border-color: #fff; }
.ck-b.ck-w:hover { background: #e9e9ea; }

/* появление при прокрутке */
.js [data-r] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-r].in { opacity: 1; transform: none; }
/* плитки шагов и блок партнёрства поднимаются из глубины; шаги потом наклоняются за курсором, как карточки */
.js .steps li[data-r], .js .media-in[data-r] { transform: perspective(1000px) translateY(30px) rotateX(-14deg) scale(.97); transform-origin: 50% 100%; }
.js .steps li[data-r].in { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.js .media-in[data-r].in { transform: none; }
.js .steps li[data-r].in.tilting { transition: transform .16s ease-out; }
.steps li[data-r]:nth-child(2) { transition-delay: .08s; }
.steps li[data-r]:nth-child(3) { transition-delay: .16s; }
.steps li[data-r].tilting { transition-delay: 0s; }

/* телефон */
@media (max-width: 900px) {
  .bar { left: 12px; right: 12px; justify-content: space-between; padding-left: 16px; }
  .js .bar { transform: translateY(-10px); }
  .lit .bar { transform: none; }
  .bar-links { display: none; }
  .lang { margin-left: auto; }
  .cards, .cards.duo, .steps { grid-template-columns: minmax(0, 1fr); max-width: 440px; margin-left: auto; margin-right: auto; }
  .card-vis { height: 150px; }
  .media-in { grid-template-columns: minmax(0, 1fr); }
  .media-stage { order: -1; height: 300px; }
  .stage3d { scale: .82; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .hero-sub { font-size: 16px; }
  .btn { height: 48px; padding: 0 22px; }
  .tab { padding: 0 12px 0 10px; gap: 6px; font-size: 13.5px; height: 40px; }
  .tab .ic { width: 15px; height: 15px; }
  .card-price { font-size: 40px; }
  .hero-wall { bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg img { transition: opacity .6s; transform: none !important; }
  .art, .art.shine .tile::after, .card, .hero-wall .live, .scr { animation: none !important; }
  .js [data-r] { transition: none; opacity: 1; transform: none; }
}
