/* vain! — Главная и Магазин, вторая версия (20 ноября). По разбору Linear, Propagande, Dennis Snellenberg и Maxime
   Heckel: живой шейдер на фоне, огромная надпись во всю ширину, нумерованные разделы, настоящие экраны, текст, который
   загорается при прокрутке, магнитные кнопки, свой курсор, шторка между разделами. Магазин (store.js и разметка) не менялся. */
:root {
  --page: #050507; --ink: #f3f1ec; --muted: #8f8e98; --dim: #4d4c55; --hair: rgba(255,255,255,.085); --hair-2: rgba(255,255,255,.15);
  --red: #ff3b47; --lime: #c6f432; --violet: #8f7bff; --gold: #ffd36b;
  --spring: cubic-bezier(.3,1.3,.45,1); --out: cubic-bezier(.16,1,.3,1); --io: cubic-bezier(.76,0,.24,1);
  --gutter: clamp(18px, 3.2vw, 48px);
  background: var(--page);
}
body { background: var(--page); min-height: 100vh; overflow-x: clip; }
body.loading { overflow: hidden; }
::selection { background: var(--red); color: #fff; }
.wrap { width: auto; margin-inline: var(--gutter); }

/* фон: шейдер, запасной градиент, зерно */
.shader { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -3; display: block; }
.shader-fallback { position: fixed; inset: 0; z-index: -4; background:
  radial-gradient(60vmax 50vmax at 20% 10%, rgba(255,59,71,.28), transparent 60%),
  radial-gradient(50vmax 40vmax at 90% 30%, rgba(143,123,255,.16), transparent 60%), var(--page); }
.grain { position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%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");
  animation: grain 1s steps(4) infinite; }
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-1%, 3%); } }

/* заставка: счёт до ста, потом уходит вверх дугой */
.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: #050507; color: var(--ink);
  transition: transform 1s var(--io), border-radius 1s var(--io); }
.loader-word { font-size: clamp(56px, 12vw, 160px); font-weight: 820; letter-spacing: -.08em; }
.loader-word b { color: var(--red); display: inline-block; animation: bang 1s var(--spring) .2s both; }
@keyframes bang { from { transform: translateY(-80%) rotate(-25deg) scale(.5); opacity: 0; } }
.loader-n { position: absolute; right: var(--gutter); bottom: calc(var(--gutter) + env(safe-area-inset-bottom)); font-size: 14px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.loader.done { transform: translateY(-100%); border-radius: 0 0 50% 50% / 0 0 18vh 18vh; pointer-events: none; }
.loader.gone { display: none; }

/* шторка между Главной и Магазином */
.curtain { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; pointer-events: none; background: var(--red);
  transform: translateY(100%); border-radius: 50% 50% 0 0 / 18vh 18vh 0 0; }
.curtain[hidden], .cursor[hidden] { display: none !important; }
.curtain-word { font-size: clamp(48px, 9vw, 130px); font-weight: 820; letter-spacing: -.07em; color: #120305; }
.curtain.in { transition: transform .55s var(--io), border-radius .55s var(--io); transform: none; border-radius: 0; }
.curtain.out { transition: transform .6s var(--io), border-radius .6s var(--io); transform: translateY(-100%); border-radius: 0 0 50% 50% / 0 0 18vh 18vh; }

/* курсор (только мышь) */
.cursor { position: fixed; z-index: 80; left: 0; top: 0; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.cursor i { position: absolute; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--ink); mix-blend-mode: difference;
  transition: width .35s var(--out), height .35s var(--out), margin .35s var(--out), background .3s; }
.cursor.big i { width: 84px; height: 84px; margin: -42px; background: var(--red); mix-blend-mode: normal; }
.cursor-label { position: absolute; transform: translate(-50%, -50%); font-size: 12px; font-weight: 700; color: #fff; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor.big .cursor-label { opacity: 1; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.has-cursor input { cursor: text; }

/* линейка прокрутки 0.00 → 1.00 */
.ruler { position: fixed; z-index: 15; right: 10px; top: 50%; height: 34vh; width: 1px; transform: translateY(-50%); background: var(--hair-2); }
.ruler-fill { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--ink); transform-origin: top; transform: scaleY(var(--p, 0)); }
.ruler-n { position: absolute; right: 8px; top: calc(var(--p, 0) * 100%); transform: translateY(-50%); font-size: 10px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .ruler { display: none; } }

/* верхняя строка */
.topbar { position: fixed; inset: 0 0 auto; z-index: 20; padding-top: env(safe-area-inset-top); }
.topbar::before { content: ""; position: absolute; inset: 0; background: rgba(5,5,7,.7); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--hair); opacity: 0; transition: opacity .4s ease; }
body.scrolled .topbar::before { opacity: 1; }
.bar { position: relative; display: flex; align-items: center; gap: 18px; height: 68px; margin-inline: var(--gutter); width: auto; }
.wordmark { font-weight: 820; font-size: 25px; letter-spacing: -.08em; line-height: 1; transition: opacity .4s; }
.wordmark span { display: inline-block; color: var(--red); transition: transform .5s var(--spring); }
.wordmark:hover span { transform: rotate(14deg) translateY(-2px) scale(1.2); }
body:not(.scrolled)[data-view=home] .bar > .wordmark { opacity: 0; pointer-events: none; }
.views { position: relative; display: flex; margin-inline: auto; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.05);
  border: 1px solid var(--hair); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.views a { position: relative; z-index: 1; padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 640; color: var(--muted); transition: color .3s ease; }
.views a[aria-current=page] { color: #0b0b0e; }
.views-pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: 0; border-radius: 999px; background: var(--ink);
  transition: transform .6s var(--spring), width .6s var(--spring); }
.bar-cta { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 6px; border-radius: 999px; font-size: 13px; font-weight: 640;
  border: 1px solid var(--hair-2); background: rgba(255,255,255,.04); transition: background .25s, border-color .25s; }
.bar-cta img { width: 26px; height: 26px; border-radius: 50%; }
.bar-cta:hover { background: rgba(255,59,71,.14); border-color: rgba(255,59,71,.5); }

/* разделы и общие детали */
.view { display: none; }
body[data-view=home] .view[data-view=home], body[data-view=shop] .view[data-view=shop] { display: block; }
.num { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
.label { display: flex; gap: 14px; align-items: baseline; padding-top: 18px; border-top: 1px solid var(--hair); font-size: 13px; font-weight: 640; color: var(--ink); }
.big-title { font-size: clamp(64px, 11vw, 190px); font-weight: 820; letter-spacing: -.075em; line-height: .86; }
.big-title span { color: var(--red); }
.big-title.lime { background: linear-gradient(95deg, var(--ink) 30%, var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .05em; }
.fade { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--out), transform 1s var(--out); transition-delay: calc(var(--k, 0) * 80ms); }
.fade.seen { opacity: 1; transform: none; }

/* кнопки: магнит, заливка из точки входа, пружина */
.btn { --bg: rgba(255,255,255,.06); position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 999px; font-size: 15px; font-weight: 680; letter-spacing: -.01em; white-space: nowrap;
  background: var(--bg); border: 1px solid var(--hair-2); transition: transform .5s var(--spring), background .25s, border-color .25s, color .25s; }
.btn > * { position: relative; z-index: 1; }
.btn::before { content: ""; position: absolute; z-index: 0; left: var(--hx, 50%); top: var(--hy, 50%); width: 0; height: 0; border-radius: 50%;
  transform: translate(-50%, -50%); background: var(--fill, var(--red)); transition: width .6s var(--out), height .6s var(--out); }
.btn:hover::before { width: 260%; height: 600%; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--spring); }
.btn:hover svg { transform: translateX(3px); }
.btn.primary { --bg: var(--ink); color: #09090c; border-color: transparent; --fill: var(--red); }
.btn.primary:hover { color: #fff; }
.btn.ghost { --fill: rgba(255,255,255,.14); }
.btn.red { --bg: var(--red); color: #fff; border-color: transparent; --fill: #ff6b74; }
.btn.lime { --bg: var(--lime); color: #11150a; border-color: transparent; --fill: #e2ff7a; }
.btn:active { transform: scale(.95); }
.pressed::after { content: ""; position: absolute; z-index: 2; left: var(--px, 50%); top: var(--py, 50%); width: 10px; height: 10px; margin: -5px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.6), transparent 70%); animation: press-ring .7s var(--out) forwards; pointer-events: none; }
@keyframes press-ring { 0% { opacity: .9; transform: scale(0); } 100% { opacity: 0; transform: scale(50); } }

/* /01 первый экран: надпись во всю ширину */
.hero { position: relative; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; padding-top: 68px; }
.hero-meta { display: grid; grid-template-columns: 1fr 1fr auto; gap: 24px; align-items: start; padding-top: clamp(22px, 5vh, 54px); }
.meta-col { display: flex; gap: 16px; font-size: 14px; line-height: 1.45; color: #cfcdd5; font-weight: 560; }
.session { display: grid; grid-template-columns: auto auto auto; column-gap: 12px; align-items: center; padding: 12px 16px 12px 14px;
  border-radius: 18px; border: 1px solid rgba(255,59,71,.3); background: rgba(20,8,10,.45); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: border-color .3s; }
.session:hover { border-color: rgba(255,59,71,.7); }
.session .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: pulse 1.8s ease-out infinite; }
.session.live .dot { background: #ff1f3d; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,59,71,.6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255,59,71,0); } }
.session-text { display: grid; }
.session-name { font-size: 14px; font-weight: 700; }
.session-when { font-size: 12px; color: var(--muted); }
.session-clock { display: flex; align-items: baseline; gap: 1px; margin-left: 8px; font-size: 22px; font-weight: 760; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.session-clock .u { margin: 0 6px 0 2px; font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.session-clock .d { display: inline-block; min-width: .6em; text-align: center; }
.session-clock .d.flip { animation: digit .45s var(--out); }
@keyframes digit { from { opacity: 0; transform: translateY(50%); filter: blur(3px); } }
.mega { margin: auto 0 0; padding-top: 3vh; line-height: .8; font-weight: 840; letter-spacing: -.085em; font-size: min(44.5vw, calc(100svh - 330px)); white-space: nowrap; margin-left: -.035em; }
.mega-word { display: inline-flex; overflow: hidden; padding-top: .42em; margin-top: -.42em; }
/* the gradient paints only inside each letter's box: the box reaches above the dot of «i» and the top of «!» */
.mega-word i, .mega-word b { padding: .4em .005em .05em; margin: -.4em -.005em 0; }
.mega-word i, .mega-word b { display: inline-block; font-style: normal; font-weight: 840; transform-origin: 50% 85%;
  background: linear-gradient(180deg, #fff 10%, #e9e6ef 45%, #8d8a99 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(105%); transition: transform 1.25s var(--out); transition-delay: calc(var(--n) * 70ms + .05s); }
.ready .mega-word i, .ready .mega-word b { transform: none; }
.mega-word i:nth-child(1) { --n: 0; } .mega-word i:nth-child(2) { --n: 1; } .mega-word i:nth-child(3) { --n: 2; } .mega-word i:nth-child(4) { --n: 3; }
.mega-word b { --n: 5; background: linear-gradient(180deg, #ff7a82, #ff3b47 55%, #a8103f); -webkit-background-clip: text; background-clip: text; }
.ready .mega-word .hop { animation: hop .7s var(--spring); }
@keyframes hop { 40% { transform: translateY(-12%) rotate(-6deg); } }
.hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0 calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hair); }
.scroll-hint { font-size: 13px; font-weight: 620; color: var(--muted); animation: hint 2.4s ease-in-out infinite; }
@keyframes hint { 50% { transform: translateY(4px); opacity: .6; } }
.hero-actions { display: flex; gap: 10px; }

/* /02 коротко: слова загораются при прокрутке */
.statement { padding: clamp(80px, 16vh, 200px) 0 clamp(60px, 12vh, 160px); }
.say { margin-top: clamp(26px, 4vw, 54px); max-width: 22ch; font-size: clamp(34px, 5.4vw, 92px); line-height: 1.02; font-weight: 720; letter-spacing: -.05em; }
.say .wd { color: #2c2b32; transition: color .4s ease; }
.say .wd.lit { color: var(--ink); }
.say .w-off .wd.lit { color: #8f8e98; }

/* /03 sundays.: телефон с настоящими экранами, шаги листают экраны */
.show { padding-bottom: clamp(60px, 10vh, 140px); }
.show-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: clamp(30px, 6vw, 110px); margin-top: clamp(26px, 4vw, 54px); }
.show-lead { max-width: 40ch; margin: 26px 0 clamp(40px, 8vh, 90px); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: #c7c5cd; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 10px; min-height: 52vh; align-content: center; padding: 26px 0; border-top: 1px solid var(--hair);
  opacity: .3; transition: opacity .6s var(--out); }
.step.on { opacity: 1; }
.step-n { font-size: 13px; font-weight: 640; color: var(--muted); padding-top: 10px; }
.step h3 { font-size: clamp(30px, 3.6vw, 56px); font-weight: 760; letter-spacing: -.05em; line-height: 1; }
.step p { max-width: 38ch; margin-top: 14px; font-size: 16px; line-height: 1.55; color: #b9b7c1; }
.step-shot { display: none; }
.step-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 30px; }
.phone-wrap { position: sticky; top: max(96px, calc(50vh - min(40vh, 400px))); align-self: start; display: grid; justify-items: center; gap: 16px; }
.phone { position: relative; width: min(100%, 380px, 34vh); aspect-ratio: 620 / 1342; border-radius: 46px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1.5px #2a2a31, 0 0 0 9px #0d0d10, 0 0 0 10.5px #33333b, 0 60px 120px rgba(0,0,0,.7), 0 0 140px rgba(255,59,71,.14);
  transform: perspective(1400px) rotateY(var(--ry, -8deg)) rotateX(var(--rx, 3deg)); transition: transform .9s var(--out); }
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.05);
  transition: opacity .6s var(--out), transform 1s var(--out); }
.phone img.on { opacity: 1; transform: none; }
.phone-glare { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.13), transparent 30%, transparent 70%, rgba(255,255,255,.05)); }
.phone-note { font-size: 12px; color: var(--muted); font-weight: 560; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(60px, 10vh, 120px); border-top: 1px solid var(--hair); }
.stat { display: grid; gap: 10px; padding: 26px 20px 4px 0; border-right: 1px solid var(--hair); }
.stat + .stat { padding-left: 20px; }
.stat:last-child { border-right: 0; }
.stat b { font-size: clamp(44px, 6vw, 96px); font-weight: 760; letter-spacing: -.06em; line-height: .9; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--muted); font-weight: 560; }
.stats-note { margin-top: 16px; font-size: 12px; color: var(--dim); }

/* /04 Vain Agent */
.agent-sec { padding: clamp(60px, 10vh, 140px) 0; }
.agent-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(30px, 6vw, 100px); align-items: center; margin-top: clamp(26px, 4vw, 54px); }
.caps { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 30px; padding: 0; list-style: none; border-top: 1px solid var(--hair); }
.caps li { display: grid; gap: 4px; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--hair); }
.caps li:nth-child(odd) { border-right: 1px solid var(--hair); }
.caps li:nth-child(even) { padding-left: 16px; }
.caps b { font-size: 18px; font-weight: 720; letter-spacing: -.02em; }
.caps span { font-size: 14px; color: var(--muted); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 26px; }
.plan { position: relative; display: grid; gap: 10px; align-content: start; padding: 20px; border-radius: 22px; border: 1px solid var(--hair-2); background: rgba(14,15,10,.55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .6s var(--spring), border-color .3s, background .3s; }
.plan:hover { border-color: rgba(198,244,50,.55); background: rgba(198,244,50,.07); transform: translateY(-4px); }
.plan-name { font-size: 26px; font-weight: 780; letter-spacing: -.04em; }
.plan.max .plan-name { color: var(--lime); }
.plan-what { font-size: 14px; line-height: 1.45; color: #bdbbc4; }
.plan-price { margin-top: 6px; font-size: 14px; font-weight: 700; }
.chat-art { position: relative; display: grid; place-items: center; padding: 30px 0; }
.chat { position: relative; display: flex; flex-direction: column; gap: 9px; width: min(100%, 380px); padding: 20px 18px 22px; border-radius: 28px;
  background: rgba(10,11,8,.72); border: 1px solid rgba(198,244,50,.18); box-shadow: 0 40px 90px rgba(0,0,0,.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.chat-tag { align-self: center; margin-bottom: 4px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.06); font-size: 11px; color: var(--muted); font-weight: 600; }
.msg { max-width: 84%; padding: 10px 13px; border-radius: 17px; font-size: 14px; line-height: 1.4; opacity: 0; transform: translateY(10px) scale(.96); animation: msg 12s var(--out) infinite; }
.msg.me { align-self: flex-end; background: #2a2d22; border-bottom-right-radius: 5px; color: #eef0e8; }
.msg.bot { align-self: flex-start; background: #17190f; border: 1px solid rgba(198,244,50,.2); border-bottom-left-radius: 5px; color: #e5ead6; }
.chat > .msg:nth-of-type(2) { animation-name: typing-life; }
.chat > .msg:nth-of-type(3) { animation-delay: 1.6s; } .chat > .msg:nth-of-type(4) { animation-delay: 3.4s; } .chat > .msg:nth-of-type(5) { animation-delay: 4.8s; }
@keyframes msg { 0% { opacity: 0; transform: translateY(10px) scale(.96); } 5%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes typing-life { 0%, 4% { opacity: 0; } 6%, 12% { opacity: 1; transform: none; } 13%, 100% { opacity: 0; height: 0; padding: 0; margin: -9px 0 0; } }
.msg.typing { display: flex; gap: 4px; align-self: flex-start; background: #17190f; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); animation: dots 1s ease-in-out infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 50% { transform: translateY(-4px); opacity: .5; } }
.file { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; padding: 7px 9px; border-radius: 10px; background: rgba(255,255,255,.06); font-weight: 600; }
.file svg { width: 18px; height: 18px; fill: none; stroke: var(--lime); stroke-width: 1.8; }
.voice { display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.wave { display: flex; align-items: center; gap: 3px; height: 20px; }
.wave i { width: 3px; height: 30%; border-radius: 2px; background: var(--lime); animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(odd) { animation-delay: .2s; } .wave i:nth-child(3n) { animation-delay: .45s; }
@keyframes wave { 50% { height: 100%; } }
.chat-cat { position: absolute; right: -2%; bottom: 0; width: clamp(100px, 10vw, 140px); filter: drop-shadow(0 18px 30px rgba(0,0,0,.5)); animation: cat 6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes cat { 50% { transform: translateY(-8px) rotate(-3deg); } }

/* /05 связь */
.find { padding: clamp(60px, 10vh, 140px) 0 clamp(30px, 6vh, 80px); }
.find .big-title { margin: clamp(26px, 4vw, 54px) 0 clamp(30px, 5vw, 60px); }
.links { display: grid; border-bottom: 1px solid var(--hair); }
.link-row { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 60px 1fr auto auto; align-items: center; gap: 18px;
  padding: clamp(18px, 2.4vw, 30px) 0; border-top: 1px solid var(--hair); transition: padding .6s var(--out), color .3s; }
.link-row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--io); }
.link-row:hover::before, .link-row:focus-visible::before { transform: scaleY(1); transform-origin: top; }
.link-row:hover { padding-left: 20px; padding-right: 20px; color: #0b0b0e; }
.li-n { font-size: 13px; font-weight: 640; color: var(--muted); transition: color .3s; }
.li-text b { font-size: clamp(30px, 4.6vw, 72px); font-weight: 760; letter-spacing: -.055em; line-height: 1; }
.li-handle { font-size: 15px; color: var(--muted); font-weight: 560; transition: color .3s; }
.link-row:hover .li-n, .link-row:hover .li-handle { color: rgba(11,11,14,.7); }
.li-go { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--hair-2); transition: transform .6s var(--spring), background .3s, border-color .3s; }
.li-go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.link-row:hover .li-go { transform: rotate(45deg); background: #0b0b0e; border-color: #0b0b0e; color: var(--c); }

/* бегущая строка: скорость от прокрутки */
.marquee { overflow: hidden; padding: clamp(30px, 6vh, 70px) 0 0; margin-inline: calc(var(--gutter) * -1); }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-track span { padding-right: .3em; font-size: clamp(80px, 14vw, 230px); font-weight: 820; letter-spacing: -.07em; line-height: 1.05; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.22); }

.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; padding: 26px 0 calc(30px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 13px; border-top: 1px solid var(--hair); }
.foot .wordmark.small { font-size: 20px; color: var(--ink); margin-right: auto; }
.to-top { color: var(--ink); font-weight: 640; }

/* магазин поверх шейдера */
#shop { padding-top: 68px; padding-bottom: clamp(40px, 6vw, 90px); }
#shop .intro { padding: clamp(28px, 6vh, 70px) 0 clamp(22px, 4vh, 40px); }
.kicker { margin-bottom: 10px; font-size: 14px; font-weight: 620; color: var(--muted); }
#shop .intro h1 { font-size: clamp(72px, 13vw, 210px); font-weight: 840; letter-spacing: -.08em; line-height: .84; }
.intro-lead { max-width: 52ch; margin-top: 18px; font-size: 16px; line-height: 1.55; color: #c9c7cf; }
#shop .product { background: rgba(14,14,19,.68); border-color: var(--hair-2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px rgba(255,255,255,.06); }
#shop .buy { transition: transform .45s var(--spring), filter .25s; }
#shop .buy:active:not(:disabled) { transform: scale(.96); }
#shop .picks button:active, #shop .tiers button:active, #shop .mobile-tabs button:active { transform: scale(.93); }

/* телефон */
@media (max-width: 860px) {
  .hero-meta { grid-template-columns: 1fr; gap: 16px; }
  .hide-s { display: none; }
  .session { justify-self: start; }
  .mega { font-size: 44vw; padding-top: 6vh; }
  .hero-foot { flex-direction: column; align-items: stretch; }
  .scroll-hint { display: none; }
  .hero-actions .btn { flex: 1; }
  .say { max-width: none; }
  .show-grid { grid-template-columns: 1fr; }
  .phone-wrap { display: none; }
  .step { min-height: 0; grid-template-columns: 1fr; opacity: 1; padding: 30px 0 34px; }
  .step-shot { display: block; width: min(76%, 320px); margin: 24px auto 0; border-radius: 34px; overflow: hidden;
    box-shadow: 0 0 0 1.5px #2a2a31, 0 0 0 7px #0d0d10, 0 0 0 8.5px #33333b, 0 40px 80px rgba(0,0,0,.6); }
  .step-shot img { display: block; width: 100%; height: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .agent-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .link-row { grid-template-columns: 34px 1fr auto; gap: 12px; }
  .li-handle { display: none; }
  .li-go { width: 42px; height: 42px; }
}
@media (max-width: 560px) {
  .bar { gap: 10px; height: 60px; }
  .bar-cta { display: none; }
  .views { margin-left: auto; margin-right: 0; }
  .views a { padding: 8px 14px; font-size: 13.5px; }
  .caps { grid-template-columns: 1fr; }
  .caps li:nth-child(odd) { border-right: 0; }
  .caps li:nth-child(even) { padding-left: 0; }
  .step-actions .btn { flex: 1 1 100%; }
  .foot .wordmark.small { width: 100%; }
}
@media (hover: none) { .link-row:hover { padding-left: 0; padding-right: 0; } .btn:hover::before { width: 0; height: 0; } }

@media (prefers-reduced-motion: reduce) {
  .grain, .msg, .wave i, .chat-cat, .dot, .scroll-hint { animation: none !important; }
  .msg { opacity: 1; transform: none; } .msg.typing { display: none; }
  .fade, .mega-word i, .mega-word b { transform: none !important; opacity: 1 !important; transition: none !important; }
  .loader { display: none; }
}

/* ── 20 ноября, правка владельца: «всё слишком крупно», долго листать. Компактнее везде, телефон в первую очередь ── */
.mega { font-size: min(27vw, 36vh); padding-top: 2vh; }
.mega-word { padding-right: .08em; } /* «!» не обрезается справа */
.hero { min-height: 0; height: auto; padding-bottom: 0; }
.hero-meta { padding-top: clamp(18px, 4vh, 40px); }
.mega { margin-top: clamp(40px, 12vh, 140px); }
.hero-foot { padding: 14px 0 18px; }
.hero-tag { font-size: 13px; font-weight: 620; color: var(--muted); }
.statement { padding: clamp(40px, 8vh, 90px) 0 clamp(30px, 6vh, 70px); }
.say { max-width: 30ch; margin-top: 22px; font-size: clamp(24px, 3vw, 44px); line-height: 1.15; letter-spacing: -.035em; color: var(--ink); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.duo-row { position: relative; display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: start; padding: 18px; border-radius: 20px;
  border: 1px solid var(--hair-2); background: rgba(14,14,19,.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: border-color .3s, background .3s, transform .5s var(--spring); }
.duo-row:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); background: color-mix(in srgb, var(--c) 8%, rgba(14,14,19,.55)); }
.duo-row:active { transform: scale(.98); }
.duo-row img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 60%, transparent); }
.duo-row span { display: grid; gap: 6px; }
.duo-row b { font-size: 20px; font-weight: 760; letter-spacing: -.03em; color: var(--c); }
.duo-row small { font-size: 14.5px; line-height: 1.5; color: #b7b5bf; }
.duo-row i { font-style: normal; color: var(--muted); font-size: 18px; transition: transform .4s var(--spring); }
.duo-row:hover i { transform: translateY(3px); }
.big-title { font-size: clamp(44px, 7vw, 112px); }
.show-grid { margin-top: 24px; }
.show-lead { margin: 16px 0 26px; font-size: 16px; }
.step { min-height: 40vh; padding: 20px 0; }
.step h3 { font-size: clamp(24px, 2.6vw, 38px); }
.step p { font-size: 15px; margin-top: 10px; }
.stats { margin-top: clamp(40px, 7vh, 80px); }
.stat b { font-size: clamp(34px, 4.2vw, 64px); }
.agent-sec { padding: clamp(40px, 8vh, 90px) 0; }
.agent-grid { margin-top: 24px; }
.find { padding: clamp(40px, 8vh, 90px) 0 20px; }
.find .big-title { margin: 22px 0 26px; }
.link-row { padding: 16px 0; }
.li-text b { font-size: clamp(22px, 2.8vw, 40px); }
.li-go { width: 42px; height: 42px; }
.marquee { padding-top: 30px; }
.marquee-track span { font-size: clamp(48px, 8vw, 130px); }
#shop .intro h1 { font-size: clamp(52px, 8.5vw, 132px); }

/* телефон в рамке Telegram: строка статуса и шапка мини-приложения, экран под ними */
.phone { display: flex; flex-direction: column; aspect-ratio: 390 / 844; background: #0e0e12; }
.tg-status { display: flex; justify-content: space-between; align-items: center; height: 5.6%; padding: 0 9% 0 11%; font-size: 12px; font-weight: 650; color: #fff; flex: none; }
.tg-icons { display: flex; gap: 4px; }
.tg-icons i { width: 14px; height: 9px; border-radius: 2px; background: #fff; opacity: .9; }
.tg-icons i:first-child { width: 12px; clip-path: polygon(0 100%, 100% 0, 100% 100%); border-radius: 0; }
.tg-icons i:last-child { width: 20px; border-radius: 3px; }
.tg-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 6.6%; padding: 0 12px; flex: none; background: #121218; border-bottom: 1px solid rgba(255,255,255,.06); }
.tg-close { font-size: 12.5px; font-weight: 560; color: #5aa9ff; }
.tg-title { display: grid; justify-items: center; font-size: 12.5px; font-weight: 700; color: #fff; line-height: 1.15; }
.tg-title small { font-size: 9.5px; font-weight: 500; color: #8e8e98; }
.tg-more { justify-self: end; font-size: 10px; letter-spacing: 1px; color: #fff; padding: 3px 7px; border-radius: 999px; background: rgba(255,255,255,.1); }
.tg-screen { position: relative; flex: 1; overflow: hidden; }
.tg-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone > img { display: none; }

@media (max-width: 860px) {
  .mega { font-size: 30vw; margin-top: 28px; }
  .hero-meta { gap: 12px; }
  .hero-foot { padding: 12px 0 14px; }
  .duo { grid-template-columns: 1fr; }
  .say { font-size: 22px; }
  .step { padding: 22px 0 26px; }
  .step-shot { width: min(64%, 270px); margin-top: 18px; border-radius: 0; box-shadow: none; overflow: visible; }
  .step-shot .phone { width: 100%; border-radius: 30px; transform: none;
    box-shadow: 0 0 0 1.5px #2a2a31, 0 0 0 6px #0d0d10, 0 0 0 7.5px #33333b, 0 30px 60px rgba(0,0,0,.55); }
  .step-shot .tg-status { font-size: 9px; } .step-shot .tg-close, .step-shot .tg-title { font-size: 10px; } .step-shot .tg-title small { font-size: 8px; }
  .step-shot .tg-icons i { width: 10px; height: 7px; } .step-shot .tg-icons i:last-child { width: 15px; }
  .stat { padding: 18px 12px 4px 0; } .stat + .stat { padding-left: 12px; }
  .stat b { font-size: 34px; }
  .stat span { font-size: 13px; }
  .caps li { padding: 14px 12px 14px 0; }
  .caps b { font-size: 16px; }
  .plan { padding: 16px; } .plan-name { font-size: 22px; }
  .chat-art { padding: 10px 0; }
  .chat { padding: 16px 14px; }
  .msg { font-size: 13.5px; }
  .link-row { padding: 14px 0; }
  .li-text b { font-size: 24px; }
  .marquee-track span { font-size: 56px; }
  #shop .intro h1 { font-size: 54px; }
}

/* 3D iPhone (phone3d.js): the canvas replaces the flat phone once it is ready */
.phone3d { position: relative; width: min(100%, 440px); height: min(78vh, 760px); touch-action: pan-y; cursor: grab; display: none; }
.phone3d:active { cursor: grabbing; }
.phone3d-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.has-3d .phone3d { display: block; }
.has-3d .phone-wrap .phone { display: none; }
.phone-wrap { gap: 6px; }

@media (max-width: 860px) {
  /* one phone, the steps are tabs under it: little scrolling */
  .show-grid { display: flex; flex-direction: column; gap: 0; }
  .phone-wrap { display: grid; position: static; order: 1; justify-items: center; width: 100%; align-self: stretch; }
  .steps { display: contents; }
  .steps > h2, .steps > .show-lead { order: 0; }
  .phone3d { width: 100%; height: 66vh; max-height: 560px; }
  .phone-wrap .phone { width: min(70%, 280px); }
  .step { order: 2; min-height: 0; grid-template-columns: 30px 1fr; padding: 14px 4px; opacity: .45; cursor: pointer; transition: opacity .3s; }
  .step.on { opacity: 1; }
  .step h3 { font-size: 20px; }
  .step p { font-size: 14px; margin-top: 6px; }
  .step:not(.on) p { display: none; }
  .step-shot { display: none !important; }
  .step-actions { order: 3; }
}

/* ── iPhone 16 Pro (владелец, 20 ноября): точный контур без 3D, настоящие экраны целиком ──
   корпус 71,5 × 149,6 мм, скругление 12,2 мм, экран 6,3″ (66,6 × 144,8 мм, скругление 9,1 мм), рамка 2,45 мм */
.phone3d, .phone-wrap .phone { display: none !important; }
.iphone { --w: min(320px, 70vw); position: relative; width: var(--w); height: calc(var(--w) * 149.6 / 71.5); margin: 0;
  border-radius: calc(var(--w) * 12.2 / 71.5); background: #050506;
  box-shadow: inset 0 0 0 calc(var(--w) * 0.006) #2b2b30,
    0 0 0 calc(var(--w) * 0.011) #77767b, 0 0 0 calc(var(--w) * 0.016) #3b3b40, 0 0 0 calc(var(--w) * 0.019) #1b1b1f,
    0 40px 90px rgba(0,0,0,.6), 0 0 120px rgba(255,59,71,.12); }
.iphone::after { content: ""; position: absolute; inset: calc(var(--w) * -0.016); border-radius: calc(var(--w) * 13.3 / 71.5); pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.28), transparent 18%, transparent 82%, rgba(255,255,255,.16)) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; border: calc(var(--w) * 0.016) solid transparent; }
.ip-screen { position: absolute; inset: calc(var(--w) * 2.45 / 71.5); border-radius: calc(var(--w) * 9.1 / 71.5); overflow: hidden; background: #000; }
.ip-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; opacity: 0; transition: opacity .5s var(--out); }
.ip-screen img.on { opacity: 1; }
.ip-btn { position: absolute; width: calc(var(--w) * 0.012); border-radius: 2px; background: linear-gradient(90deg, #4a4a50, #8a898f 50%, #4a4a50); }
.ip-action { left: calc(var(--w) * -0.025); top: calc(var(--w) * 26 / 71.5); height: calc(var(--w) * 8 / 71.5); }
.ip-vol-up { left: calc(var(--w) * -0.025); top: calc(var(--w) * 40 / 71.5); height: calc(var(--w) * 14 / 71.5); }
.ip-vol-down { left: calc(var(--w) * -0.025); top: calc(var(--w) * 57 / 71.5); height: calc(var(--w) * 14 / 71.5); }
.ip-side { right: calc(var(--w) * -0.025); top: calc(var(--w) * 44 / 71.5); height: calc(var(--w) * 20 / 71.5); }
.ip-cam { right: calc(var(--w) * -0.022); top: calc(var(--w) * 96 / 71.5); height: calc(var(--w) * 16 / 71.5); background: linear-gradient(90deg, #2a2a2e, #4a4a50); }
[data-phone="sundays"] { touch-action: pan-y; }
.phone-wrap { justify-items: center; }
.phone-note { margin-top: 18px; }
.phone-tabs { display: flex; gap: 6px; margin-top: 22px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--hair); }
.phone-tabs button { padding: 8px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 640; transition: background .3s, color .3s; }
.phone-tabs button[aria-pressed=true] { background: var(--lime); color: #11150a; }
.vain-phone { display: grid; justify-items: center; }
.vain-phone .iphone { box-shadow: inset 0 0 0 calc(var(--w) * 0.006) #2b2b30, 0 0 0 calc(var(--w) * 0.011) #77767b, 0 0 0 calc(var(--w) * 0.016) #3b3b40, 0 0 0 calc(var(--w) * 0.019) #1b1b1f, 0 40px 90px rgba(0,0,0,.6), 0 0 120px rgba(198,244,50,.12); }
.chat-art { display: none !important; }
.lang { min-width: 42px; height: 36px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--hair-2); background: rgba(255,255,255,.04); color: var(--ink);
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em; transition: background .25s, transform .4s var(--spring); }
.lang:hover { background: rgba(255,255,255,.1); }
.lang:active { transform: scale(.92); }
.stats-note { display: none; }
@media (min-width: 861px) {
  .phone-wrap .iphone { --w: min(300px, 24vw, calc((100vh - 200px) * 71.5 / 149.6)); }
  .show .phone-wrap { top: 92px; }
}
@media (max-width: 860px) {
  .iphone { --w: min(270px, 68vw); }
  .phone-wrap { margin: 6px 0 4px; }
  .vain-phone { order: -1; margin-bottom: 18px; }
}
@media (max-width: 560px) { .lang { height: 34px; min-width: 38px; } }

/* магазин: один курсор (без ладошки системы поверх нашего), без подписи «N карточек» */
.has-cursor *, .has-cursor *::before, .has-cursor *::after { cursor: none !important; }
.has-cursor input, .has-cursor textarea { cursor: text !important; }
.gallery-count { display: none !important; }

/* плавность на слабых устройствах: размытие под стеклом только у шапки, зерно неподвижное и одно */
.grain { animation: none; }
body::after { content: none !important; }
#shop .product, .duo-row, .plan, .session, .chat, .views { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
#shop .product { background: rgba(16,16,21,.9); }
.duo-row, .plan { background: rgba(16,16,21,.78); }
.session { background: rgba(24,10,12,.82); }
.views { background: rgba(20,20,26,.8); }
.lite .grain { display: none; }
.lite .cursor { display: none !important; }
.lite.has-cursor *, .lite .has-cursor * { cursor: auto !important; }

@media (max-width: 860px), (pointer: coarse) {
  .shader, .shader-fallback { height: 100lvh; }
  .topbar::before {
    opacity: 1; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none;
    background: linear-gradient(to bottom, #101014, rgba(16,16,20,.86) 35%, transparent);
    bottom: -12px;
  }
  body.scrolled .topbar::before { background: linear-gradient(to bottom, #101014 30%, rgba(16,16,20,.96) 72%, transparent); }
}
.motion-paused, .motion-paused *, .motion-paused::after, .motion-paused *::after, .motion-paused *::before {
  animation-play-state: paused !important;
}
