:root {
  --bg: #07090d;
  --panel: rgba(255, 255, 255, .045);
  --panel-2: rgba(255, 255, 255, .075);
  --line: rgba(255, 255, 255, .085);
  --line-2: rgba(255, 255, 255, .16);
  --text: #eef1f6;
  --muted: #8d95a8;
  --c1: #3ddc84;
  --c2: #19c3b4;
  --p1: #ff6fae;
  --p2: #ff9a4d;
  --display: 'Unbounded', 'Segoe UI', sans-serif;
  --body: 'Manrope', 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --r: 18px;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }  /* иначе display:grid/flex у окна и блоков перебивает hidden */
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { background: var(--bg); color: var(--text); font: 500 16px/1.6 var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
code { font: 600 .9em Consolas, monospace; background: var(--panel-2); padding: 1px 6px; border-radius: 6px; }
em { font-style: normal; background: linear-gradient(90deg, var(--c1), var(--c2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
em.pink { background-image: linear-gradient(90deg, var(--p1), var(--p2)); }

/* ---------------------------------------------------------------- фон */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.g1 { width: 720px; height: 720px; left: -200px; top: -260px; background: radial-gradient(circle, rgba(61, 220, 132, .55), transparent 65%); }
.g2 { width: 640px; height: 640px; right: -220px; top: 30vh; background: radial-gradient(circle, rgba(25, 195, 180, .35), transparent 65%); }
#px { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------------------------------------------------------------- шапка */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px; padding: 14px max(16px, calc((100vw - 1180px) / 2));
  transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(7, 9, 13, .78); backdrop-filter: blur(16px); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font: 700 18px var(--display); letter-spacing: -.01em; }
.brand b { font-weight: 700; color: var(--c1); }
.links { display: flex; gap: 26px; margin-left: auto; }
.links a { color: var(--muted); font-weight: 600; font-size: 15px; transition: color .2s; white-space: nowrap; }
.links a:hover { color: var(--text); }

/* ---------------------------------------------------------------- кнопки */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px; border-radius: 14px; font: 800 15px var(--body); color: #06110b;
  background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 10px 30px -10px rgba(61, 220, 132, .6);
  transition: transform .25s var(--ease), box-shadow .25s; cursor: pointer; border: 0; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(61, 220, 132, .75); }
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn.sm { padding: 9px 18px; font-size: 14px; border-radius: 12px; }
.btn.big { padding: 16px 26px; font-size: 17px; border-radius: 16px; }
.btn.big span { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.btn.big small { font-weight: 600; font-size: 12px; opacity: .72; }
.btn.ghost { background: var(--panel); color: var(--text); box-shadow: none; border: 1px solid var(--line-2); }
.btn.ghost:hover { background: var(--panel-2); }

/* ---------------------------------------------------------------- главный экран */
main { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; padding: 64px 0 40px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line);
  font-size: 13px; font-weight: 700; color: #cfd6e4; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c1); box-shadow: 0 0 10px var(--c1); flex: none; }
.chip.pink .dot { background: var(--p1); box-shadow: 0 0 10px var(--p1); }
h1 { font: 900 clamp(40px, 6.2vw, 92px)/.95 var(--display); letter-spacing: -.03em; margin: 22px 0 22px; }
h1 span { display: block; }
h1 .l2 { background: linear-gradient(90deg, var(--c1), var(--c2) 60%, #8af5d0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: #c3cad8; max-width: 520px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 22px; }
.meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 14px; font-weight: 600; }
.meta li::before { content: '✓'; color: var(--c1); margin-right: 7px; font-weight: 800; }
.hero-shot { position: relative; perspective: 1400px; }
.hero-shot::before { content: ''; position: absolute; inset: 8% 6%; background: radial-gradient(closest-side, rgba(61, 220, 132, .45), transparent); filter: blur(40px); z-index: -1; }
.win { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9);
  transform: rotateY(-8deg) rotateX(3deg); transition: transform .8s var(--ease); background: #0b0e13; }
.hero-shot:hover .win { transform: rotateY(-2deg) rotateX(1deg); }

/* ---------------------------------------------------------------- цифры */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 24px 0 40px; }
.stats div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.stats b { display: block; font: 800 34px var(--display); letter-spacing: -.02em; }
.stats span { color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.4; }

/* ---------------------------------------------------------------- блоки */
.block { padding: 80px 0 20px; }
h2 { font: 800 clamp(30px, 4.2vw, 46px)/1.1 var(--display); letter-spacing: -.02em; }
.sub { color: var(--muted); font-size: 17px; max-width: 640px; margin-top: 14px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; transition: transform .35s var(--ease), border-color .3s, background .3s; }
.card:hover { transform: translateY(-4px); border-color: rgba(61, 220, 132, .35); background: var(--panel-2); }
.card .ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(61, 220, 132, .2), rgba(25, 195, 180, .12));
  border: 1px solid rgba(61, 220, 132, .3); margin-bottom: 16px; }
.card .ico svg { width: 22px; height: 22px; fill: none; stroke: var(--c1); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font: 700 18px var(--display); letter-spacing: -.01em; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------------------------------------------------------------- Mogg Client */
.client .chip { margin-bottom: 16px; }
.gallery { margin-top: 34px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 14px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs button { font: 700 14px var(--body); color: var(--muted); background: none; border: 1px solid transparent; padding: 9px 16px; border-radius: 11px; cursor: pointer; transition: .2s; }
.tabs button:hover { color: var(--text); background: var(--panel); }
.tabs button.on { color: #1a0710; background: linear-gradient(135deg, var(--p1), var(--p2)); }
.shot img { border-radius: 14px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: opacity .25s; }
.shot img.fade { opacity: 0; }
.shot p { color: #c3cad8; font-size: 15px; padding: 14px 6px 4px; }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pills li { padding: 7px 14px; border-radius: 99px; border: 1px solid rgba(255, 111, 174, .3); background: rgba(255, 111, 174, .08); font-size: 14px; font-weight: 700; color: #ffd0e3; }

/* ---------------------------------------------------------------- установка */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; }
.steps span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font: 800 18px var(--display); color: #06110b;
  background: linear-gradient(135deg, var(--c1), var(--c2)); margin-bottom: 16px; }
.steps h3 { font: 700 19px var(--display); margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; }

/* ---------------------------------------------------------------- вопросы */
.faq { display: grid; gap: 10px; margin-top: 34px; max-width: 860px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; transition: border-color .3s; }
.faq details[open] { border-color: rgba(61, 220, 132, .3); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--c1); font: 700 22px/1 var(--display); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* ---------------------------------------------------------------- финал и подвал */
.final { margin: 90px 0 40px; text-align: center; padding: 56px 24px; border-radius: 28px; border: 1px solid rgba(61, 220, 132, .25);
  background: radial-gradient(120% 140% at 50% 0%, rgba(61, 220, 132, .16), rgba(255, 255, 255, .03) 60%); }
.final img { margin: 0 auto 18px; filter: drop-shadow(0 12px 30px rgba(61, 220, 132, .35)); }
.final p { color: var(--muted); margin: 10px 0 26px; font-size: 17px; }
.foot { max-width: 1180px; margin: 0 auto; padding: 30px 16px 40px; border-top: 1px solid var(--line); display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.foot p { color: var(--muted); font-size: 13px; max-width: 560px; }
.foot .brand { font-size: 15px; }

/* ---------------------------------------------------------------- шапка: язык и аккаунт */
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-right.push { margin-left: auto; }
.links + .nav-right { margin-left: 8px; }
.lang { font: 800 13px var(--body); color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 10px; cursor: pointer; transition: color .2s, border-color .2s; }
.lang:hover { color: var(--text); border-color: var(--line-2); }

/* «С нами уже N игроков» */
.together { display: flex; align-items: center; gap: 12px; margin: -6px 0 18px; }
.together p { color: #c3cad8; font-weight: 600; font-size: 15px; }
.together b { color: var(--c1); font: 800 17px var(--display); }
.faces { display: flex; }
.faces i { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--bg); margin-left: -8px; background-size: cover; image-rendering: pixelated; }
.faces i:first-child { margin-left: 0; background: linear-gradient(135deg, #3ddc84, #19c3b4); }
.faces i:nth-child(2) { background: linear-gradient(135deg, #ff6fae, #ff9a4d); }
.faces i:nth-child(3) { background: linear-gradient(135deg, #8b7bff, #4fb8ff); }

/* ---------------------------------------------------------------- окно входа */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(3, 5, 8, .62);
  backdrop-filter: blur(8px); opacity: 0; transition: opacity .25s; overflow-y: auto; }
.modal.show { opacity: 1; }
.modal-card { position: relative; width: 100%; max-width: 440px; background: #0d1117; border: 1px solid var(--line-2); border-radius: 22px;
  padding: 26px; box-shadow: 0 40px 100px -30px #000; transform: translateY(14px) scale(.98); transition: transform .35s var(--ease); }
.modal.show .modal-card { transform: none; }
.m-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 10px; border: 0; background: var(--panel);
  color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.m-x:hover { color: var(--text); background: var(--panel-2); }
.m-top { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; padding-right: 30px; }
.m-top h3 { font: 700 18px var(--display); }
.m-note { color: var(--muted); font-size: 14px; margin-top: 3px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 16px; }
.seg button { font: 700 14px var(--body); color: var(--muted); background: none; border: 0; border-radius: 9px; padding: 9px; cursor: pointer; }
.seg button.on { background: var(--panel-2); color: var(--text); }
form label { display: block; margin-bottom: 12px; }
form label > span { display: block; font-size: 13px; font-weight: 700; color: #c3cad8; margin-bottom: 6px; }
form input:not([type=checkbox]) { width: 100%; font: 600 15px var(--body); color: var(--text); background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; outline: none; transition: border-color .2s, background .2s; }
form input:focus { border-color: rgba(61, 220, 132, .6); background: rgba(61, 220, 132, .05); }
form input.bad { border-color: #ff5d6c; }
.hint { color: var(--muted); font-size: 12px; margin: -6px 0 12px; }
.cap { display: grid; grid-template-columns: auto 38px 1fr; gap: 8px; align-items: end; margin-bottom: 12px; }
.cap img { width: 150px; height: 52px; border-radius: 10px; border: 1px solid var(--line-2); background: #0b1014; object-fit: cover; }
.cap img.loading { opacity: .4; }
.cap-re { height: 52px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font-size: 18px; cursor: pointer; }
.cap label { margin: 0; }
.cap input { text-transform: uppercase; letter-spacing: .12em; height: 52px; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-size: 14px; color: #c3cad8; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--c1); width: 16px; height: 16px; flex: none; }
.check a, .form-ok a { color: var(--c1); text-decoration: underline; }
.form-err { color: #ff8c97; font-size: 14px; font-weight: 600; min-height: 20px; margin: 4px 0 10px; }
.form-ok { color: var(--c1); font-size: 14px; font-weight: 600; min-height: 20px; margin: 4px 0 10px; }
.btn.full { width: 100%; justify-content: center; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.modal.login .reg-only { display: none !important; }
.foot a { color: #c3cad8; text-decoration: underline; }

/* ---------------------------------------------------------------- личный кабинет и простые страницы */
.page { max-width: 980px; margin: 0 auto; padding: 40px 16px 20px; }
.page h1 { font-size: clamp(32px, 5vw, 48px); margin: 8px 0 24px; }
.back { color: var(--muted); font-weight: 700; font-size: 14px; }
.back:hover { color: var(--text); }
.acc-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.panel h2 { font-size: 20px; margin-bottom: 8px; }
.panel p.d { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.hello { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.ava { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font: 800 24px var(--display); color: #06110b;
  background: linear-gradient(135deg, var(--c1), var(--c2)); flex: none; }
.hello b { display: block; font: 700 18px var(--display); word-break: break-all; }
.hello span { color: var(--muted); font-size: 14px; }
.hello .mail { display: block; word-break: break-all; }
.hello .mail:empty { display: none; }
#navAcc.nick { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }
#navAcc.nick::before { content: '● '; color: var(--c1); }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0 18px; }
.tile { background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.tile b { display: block; font: 800 20px var(--display); }
.tile span { color: var(--muted); font-size: 13px; font-weight: 600; }
.dl-card { background: radial-gradient(120% 140% at 0% 0%, rgba(61, 220, 132, .16), rgba(255, 255, 255, .03) 60%); border-color: rgba(61, 220, 132, .3); }
.span2 { grid-column: 1 / -1; }
.danger { border-color: rgba(255, 93, 108, .25); }
.btn.red { background: linear-gradient(135deg, #ff5d6c, #ff8a5c); color: #1a0508; box-shadow: none; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.legal h2 { font-size: 20px; margin: 26px 0 8px; }
.legal p, .legal li { color: #c3cad8; font-size: 15px; margin-bottom: 8px; }
.legal ul { padding-left: 20px; }
@media (max-width: 760px) { .acc-grid { grid-template-columns: 1fr; } }
html[lang=en] .ru-only, html[lang=ru] .en-only { display: none; }
.legal a { color: var(--c1); text-decoration: underline; }

/* ---------------------------------------------------------------- анимации (anim.js; при «уменьшить движение» не работают) */
.scroll-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--c1), var(--c2), var(--p1)); pointer-events: none; }
.cursor-glow { position: fixed; left: 0; top: 0; width: 600px; height: 600px; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(61, 220, 132, .09), transparent 60%); will-change: transform; }

/* буквы заголовка */
.motion h1 .ch { display: inline-block; opacity: 0; transform: translateY(.45em) rotate(6deg); filter: blur(6px);
  transition: opacity .7s var(--ease), transform .8s var(--ease), filter .7s var(--ease); transition-delay: calc(var(--i) * 45ms + 120ms); }
.motion.ready h1 .ch, .ready h1 .ch { opacity: 1; transform: none; filter: none; }
h1 .l1, h1 .l2 { white-space: nowrap; }
.motion h1 .l2 { opacity: 0; transform: translateY(.35em); filter: blur(8px); transition: opacity .9s var(--ease) .38s, transform .9s var(--ease) .38s, filter .9s var(--ease) .38s; }
.ready h1 .l2 { opacity: 1; transform: none; filter: none; }
.motion h1 .l2 { background-size: 220% 100%; animation: shimmer 6s linear infinite; }
@keyframes shimmer { from { background-position: 0% 0; } to { background-position: -220% 0; } }
.motion h1 .l2 { background-image: linear-gradient(90deg, var(--c1), var(--c2) 30%, #c9ffe9 45%, var(--c2) 60%, var(--c1) 100%); }

/* появление остальных частей главного экрана */
.motion .hero-text > :not(h1) { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.motion.ready .hero-text > :not(h1), .ready .hero-text > :not(h1) { opacity: 1; transform: none; }
.ready .hero-text > .chip { transition-delay: .05s; } .ready .hero-text > .lead { transition-delay: .55s; }
.ready .hero-text > .cta { transition-delay: .7s; } .ready .hero-text > .together { transition-delay: .82s; } .ready .hero-text > .meta { transition-delay: .92s; }
.motion body.ready .hero-text > :not(h1) { opacity: 1; transform: none; }

/* снимок лаунчера плавает */
.motion .hero-shot { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.motion .win { transition: transform .5s var(--ease); }

/* пульсирующая точка в плашках */
.motion .chip .dot { animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .55); } 70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); } }
.motion .chip.pink .dot { animation-name: pulsePink; }
@keyframes pulsePink { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 111, 174, .55); } 70% { box-shadow: 0 0 0 9px rgba(255, 111, 174, 0); } }

/* блик по главной кнопке «Скачать» */
.btn { position: relative; overflow: hidden; }
.motion .btn:not(.ghost):not(.red)::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); animation: shine 5s ease-in-out infinite; }
.motion .btn.sm::after { animation-delay: 1.5s; }
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.motion .btn.big { transition: transform .25s var(--ease), box-shadow .25s; }
.motion .btn svg { transition: transform .3s var(--spring, cubic-bezier(.34, 1.56, .64, 1)); }
.motion .btn:hover svg { transform: translateY(2px); }

/* ссылки в шапке — подчёркивание вырастает */
.links a { position: relative; }
.links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--c1), var(--c2)); transform: scaleX(0); transition: transform .3s var(--ease); }
.links a:hover::after { transform: scaleX(1); }

/* пятно света на карточках под курсором */
.spot { position: relative; isolation: isolate; }
.spot::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(61, 220, 132, .13), transparent 70%); transition: opacity .3s; }
.spot:hover::before { opacity: 1; }
.motion .card .ico { transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.motion .card:hover .ico { transform: translateY(-4px) rotate(-8deg) scale(1.08); }
.motion .card .ico svg { transition: stroke .3s; }

/* шаги установки — цифра качается */
.motion .steps li:hover span { animation: wobble .6s ease; }
@keyframes wobble { 0%, 100% { transform: none; } 30% { transform: rotate(-10deg) scale(1.1); } 60% { transform: rotate(8deg); } }

/* таблетки функций появляются по одной */
.motion .pills li { opacity: 0; transform: translateY(10px) scale(.92); transition: opacity .5s var(--ease), transform .5s var(--ease), background .2s, border-color .2s;
  transition-delay: calc(var(--i, 0) * 45ms); }
.motion .pills.in li { opacity: 1; transform: none; }
.pills li:hover { background: rgba(255, 111, 174, .18); border-color: rgba(255, 111, 174, .55); }

/* полоска под активной вкладкой галереи */
.tabs { position: relative; }
.tabs.has-ind button.on { background: none; color: #1a0710; }
.tabs.has-ind button { position: relative; z-index: 1; }
.tab-ind { position: absolute; left: 0; top: 0; border-radius: 11px; background: linear-gradient(135deg, var(--p1), var(--p2)); z-index: 0;
  transition: transform .45s var(--ease), width .45s var(--ease); }
.motion .shot img { transition: opacity .25s, transform .5s var(--ease); }
.motion .shot img.fade { transform: scale(.985); }

/* вопросы */
.faq details p { overflow: hidden; }
.motion .faq details:hover { border-color: var(--line-2); }

/* финальный блок — иконка покачивается */
.motion .final img { animation: bob 4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(-4deg); } }

/* окно входа: встряхивание при ошибке */
.modal-card.shake { animation: shake .45s cubic-bezier(.36, .07, .19, .97); }
@keyframes shake { 10%, 90% { translate: -1px 0; } 20%, 80% { translate: 3px 0; } 30%, 50%, 70% { translate: -6px 0; } 40%, 60% { translate: 6px 0; } }

/* счётчик «С нами» — лёгкое свечение цифры */
.motion .together b { animation: glowNum 3s ease-in-out infinite; }
@keyframes glowNum { 0%, 100% { text-shadow: 0 0 0 transparent; } 50% { text-shadow: 0 0 14px rgba(61, 220, 132, .7); } }

/* ---------------------------------------------------------------- появление */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .win { transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------- телефоны и планшеты */
@media (max-width: 1080px) {
  .links { display: none; }
  .nav-right { margin-left: auto; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; gap: 36px; }
  .win { transform: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .nav { gap: 10px; }
  .brand span { display: none; }
  .nav-right .btn.ghost { padding: 9px 12px; }
}
@media (max-width: 620px) {
  .grid, .steps { grid-template-columns: 1fr; }
  .stats b { font-size: 28px; }
  .btn.big { width: 100%; justify-content: center; }
  .block { padding-top: 60px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs button { flex: none; }
}
