/* Morphyx — лендинг */

:root { --gut: clamp(20px, 4vw, 56px); --maxw: 1240px; }
section[id] { scroll-margin-top: 96px; }

/* ───────── NAV ───────── */
.nav-wrap { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; padding: 0 12px; pointer-events: none; }
.nav { pointer-events: auto; display: flex; align-items: center; gap: 28px; height: 60px; padding: 0 10px 0 22px; border-radius: 999px;
  width: min(100%, 1040px); transition: background .4s var(--ease), box-shadow .4s var(--ease); }
.nav-wrap.scrolled .nav { background: linear-gradient(165deg, rgba(28,26,25,.62), rgba(14,13,12,.55)); }
.nav-links { display: flex; gap: 4px; margin: 0 auto; }
.nav-links a { position: relative; font-size: 14px; color: var(--ink-2); padding: 8px 14px; border-radius: 999px; transition: color .25s var(--ease), background .25s var(--ease); }
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.nav-links a.cur { color: var(--ink); }
.nav-r { display: flex; align-items: center; gap: 6px; }
.nav-account { font-size: 14px; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; transition: color .25s; }
.nav-account:hover { color: var(--ink); }
.lang { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 4px; font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--ink-2); padding: 8px 10px; border-radius: 999px; }
.lang-btn:hover { color: var(--ink); }
.lang-btn svg { width: 12px; height: 12px; }
.lang-menu { position: absolute; top: calc(100% + 10px); right: 0; min-width: 150px; padding: 6px; border-radius: 16px; display: flex; flex-direction: column;
  opacity: 0; transform: translateY(-6px) scale(.97); transform-origin: top right; pointer-events: none; transition: opacity .25s var(--ease), transform .35s var(--spring); }
.lang-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.lang-option { text-align: left; font-size: 14px; color: var(--ink-2); padding: 9px 12px; border-radius: 10px; transition: background .2s, color .2s; position: relative; z-index: 2; }
.lang-option:hover { background: rgba(255,255,255,.06); color: var(--ink); }
.lang-option.active { color: var(--ink); }
.burger { display: none; width: 40px; height: 40px; border-radius: 50%; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .4s var(--spring), top .3s var(--ease); }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 23px; }
.nav-wrap.open .burger span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav-wrap.open .burger span:last-child { top: 19.5px; transform: rotate(-45deg); }
.mnav { background: linear-gradient(165deg, rgba(30,28,27,.94), rgba(16,15,14,.92)) !important; pointer-events: auto; display: none; flex-direction: column; width: min(100%, 1040px); margin-top: 8px; padding: 10px; border-radius: 24px;
  opacity: 0; transform: translateY(-10px); transition: opacity .3s var(--ease), transform .45s var(--spring); }
.mnav a { position: relative; z-index: 2; padding: 14px 14px; font-size: 17px; border-radius: 14px; }
.mnav a:active { background: rgba(255,255,255,.06); }
.mnav-lang { position: relative; z-index: 2; display: flex; gap: 6px; padding: 10px 8px 4px; border-top: 1px solid var(--line); margin-top: 6px; }
.mnav-lang .lang-option { font-family: var(--mono); font-size: 13px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; }
.mnav-lang .lang-option.active { border-color: var(--line-2); background: rgba(255,255,255,.06); }

/* ───────── HERO ───────── */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 120px var(--gut) 40px; }
.hero-flow { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-vignette { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 70% at 20% 55%, rgba(10,9,9,.0) 0%, rgba(10,9,9,.0) 40%, rgba(10,9,9,.85) 100%),
    linear-gradient(90deg, rgba(10,9,9,.92) 0%, rgba(10,9,9,.55) 30%, rgba(10,9,9,0) 55%),
    linear-gradient(180deg, rgba(10,9,9,0) 70%, var(--bg) 100%); }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 40px; }
.hero-status { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-2); padding: 7px 14px 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(10,9,9,.4); margin-bottom: 32px; }
.hero-title { font-size: clamp(40px, 4.8vw, 72px); line-height: .98; font-weight: 500; letter-spacing: -.045em; margin-bottom: 30px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.3s var(--ease-out); }
.hero-title .line:nth-child(2) > span { color: var(--ink-2); transition-delay: .08s; }
.ready .hero-title .line > span { transform: none; }
.hero-desc { max-width: 500px; font-size: 18px; line-height: 1.55; color: var(--ink-2); margin-bottom: 40px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.rise { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.ready .rise { opacity: 1; transform: none; }
.ready .hero-desc { transition-delay: .25s; } .ready .hero-cta { transition-delay: .35s; } .ready .slab-wrap { transition-delay: .2s; } .ready .hero-specs { transition-delay: .55s; }

/* Стеклянная плита */
.slab-wrap { display: flex; justify-content: center; perspective: 1400px; }
.slab { width: 320px; height: 440px; border-radius: 44px; padding: 26px; display: flex; flex-direction: column;
  transform: rotateY(-8deg) rotateX(3deg); transform-style: preserve-3d; transition: transform 1.2s var(--ease-out);
  background: linear-gradient(160deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.02) 40%, rgba(255,255,255,.05) 100%); }
.slab > * { position: relative; z-index: 2; }
.slab-top { display: flex; justify-content: space-between; align-items: center; }
.slab-brand { font-weight: 600; letter-spacing: -.03em; font-size: 15px; }
.slab-pill { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; color: var(--ink-2); padding: 6px 11px 6px 10px; border-radius: 999px; background: rgba(0,0,0,.25); border: 1px solid var(--line); }
.slab-pill .pulse-dot { width: 6px; height: 6px; }
.slab-loc { margin-top: 34px; }
.slab-city { font-size: 34px; font-weight: 500; letter-spacing: -.035em; line-height: 1.1; overflow: hidden; height: 1.15em; }
.slab-city span { display: inline-block; transition: transform .7s var(--ease-out), opacity .5s var(--ease); }
.slab-city span.out { transform: translateY(-100%); opacity: 0; }
.slab-city span.in { transform: translateY(100%); opacity: 0; transition: none; }
.slab-sub { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.slab-power { margin: auto; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 50% 35%, #E04452 0%, #B92634 70%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -6px 14px rgba(0,0,0,.35), 0 0 0 10px rgba(208,49,63,.10), 0 0 0 22px rgba(208,49,63,.05), 0 20px 40px -10px rgba(208,49,63,.5); }
.slab-power svg { width: 34px; height: 34px; }
.slab-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.slab-stats .eyebrow { font-size: 12px; display: block; margin-bottom: 4px; color: var(--ink-3); }
.slab-stats b { font-size: 15px; font-weight: 500; }

.hero-specs { position: relative; z-index: 2; max-width: var(--maxw); width: 100%; margin: 72px auto 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.hero-specs span { display: inline-flex; align-items: center; height: 34px; padding: 0 15px; border-radius: 999px; font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--ink-2);
  border: 1px solid var(--line-2); background: rgba(255,255,255,.025); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero-specs i { display: none; }

/* ───────── Секции ───────── */
.sec { position: relative; max-width: var(--maxw); margin: 0 auto; padding: clamp(96px, 13vw, 168px) var(--gut) 0; }
.sec-head { margin-bottom: 64px; }
.sec-head.center { text-align: center; }
.sec-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.sec-head .eyebrow { margin-bottom: 22px; }
h2 { font-size: clamp(36px, 4.8vw, 68px); line-height: 1.02; font-weight: 500; letter-spacing: -.04em; }
h2 .dim { color: var(--ink-3); }
.sec-desc { max-width: 460px; font-size: 17px; color: var(--ink-2); margin-top: 24px; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ───────── LOCATIONS ───────── */
.loc-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: start; }
.board { border-top: 1px solid var(--line); }
.brow { position: relative; display: grid; grid-template-columns: 44px 1fr auto 72px; align-items: center; gap: 16px; width: 100%; text-align: left;
  padding: 18px 8px; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease-out), color .3s; color: var(--ink-2); }
.brow::before { content: ""; position: absolute; inset: 4px -8px; border-radius: 14px; background: rgba(255,255,255,.035); opacity: 0; transition: opacity .3s var(--ease); }
.brow:hover::before { opacity: 1; }
.brow > * { position: relative; }
.brow .code { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--ink-3); }
.brow .city { font-size: 19px; letter-spacing: -.02em; color: var(--ink); }
.brow .city small { font-size: 14px; color: var(--ink-3); margin-left: 10px; letter-spacing: 0; }
.brow .bars { display: flex; gap: 3px; align-items: flex-end; height: 14px; }
.brow .bars i { width: 3px; border-radius: 1px; background: var(--ink-4); }
.brow .bars i:nth-child(1) { height: 5px } .brow .bars i:nth-child(2) { height: 8px } .brow .bars i:nth-child(3) { height: 11px } .brow .bars i:nth-child(4) { height: 14px }
.brow .bars i.on { background: var(--ink-2); }
.brow .ms { font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 500; text-align: right; color: var(--ink-2); }
.brow.active { padding-left: 20px; }
.brow.active .code { color: var(--red-ink); }
.brow.active .bars i.on { background: var(--ink); }
.brow.active .ms { color: var(--ink); }
.brow.active::after { content: ""; position: absolute; left: 4px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--red); }

.loc-card { position: sticky; top: 110px; border-radius: var(--r-xl); padding: 32px; overflow: hidden; }
.loc-card > * { position: relative; z-index: 2; }
.loc-card-top { display: flex; justify-content: space-between; align-items: center; }
.loc-code { font-size: 13px; font-weight: 600; padding: 5px 9px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--ink-2); }
.loc-city { font-size: 44px; font-weight: 500; letter-spacing: -.04em; line-height: 1.05; margin-top: 30px; }
.loc-sub { font-size: 14px; color: var(--ink-3); margin-top: 8px; }
.loc-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.loc-metrics .m { padding: 16px 18px; border-radius: 18px; background: rgba(0,0,0,.22); border: 1px solid var(--line); }
.m-big { font-size: 40px; font-weight: 400; letter-spacing: -.04em; line-height: 1; margin-top: 10px; }
.m-big small { font-size: 14px; color: var(--ink-3); margin-left: 4px; letter-spacing: 0; }
.m-status { display: flex; align-items: center; gap: 12px; font-size: 18px; margin-top: 18px; }

.spark { width: 100%; height: 26px; margin-top: 12px; color: var(--ink-2); overflow: visible; }
.meter { height: 4px; border-radius: 4px; background: var(--line); margin-top: 22px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ink); transition: width 1s var(--ease-out); }
.loc-protos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.loc-note { font-size: 13px; color: var(--ink-3); margin-top: 22px; line-height: 1.5; }
.swap { transition: opacity .35s var(--ease), transform .5s var(--ease-out), filter .35s var(--ease); }
.swap.out { opacity: 0; transform: translateY(8px); filter: blur(4px); }

/* ───────── INSIDE ───────── */
.inside { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.inside-head { position: sticky; top: 130px; }
.feat-list { list-style: none; border-top: 1px solid var(--line); }
.feat { display: grid; grid-template-columns: 56px 1fr auto; gap: 20px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: start; }
.feat-n { font-size: 14px; font-weight: 500; color: var(--ink-3); padding-top: 4px; font-variant-numeric: tabular-nums; }
.feat h3 { font-size: 22px; font-weight: 500; letter-spacing: -.025em; margin-bottom: 8px; }
.feat p { font-size: 15px; color: var(--ink-2); max-width: 440px; }
.feat-tag { font-size: 13px; font-weight: 500; color: var(--ink-2); padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; margin-top: 4px; white-space: nowrap; }
.feat:hover .feat-n { color: var(--red-ink); }

/* ───────── PRICING ───────── */
.seg-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 48px; }
.seg { position: relative; display: flex; padding: 5px; border-radius: 999px; }
.seg-thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; border-radius: 999px; z-index: 1;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.07));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -1px 0 rgba(255,255,255,.06), 0 6px 16px -6px rgba(0,0,0,.6);
  transition: transform .6s var(--spring), width .6s var(--spring); }
.seg-btn { position: relative; z-index: 2; height: 44px; padding: 0 22px; border-radius: 999px; font-size: 14px; color: var(--ink-2); transition: color .3s; }
.seg-btn b { font-weight: 600; color: inherit; font-family: var(--mono); }
.seg-btn.active { color: var(--ink); }
.seg-tier { font-size: 14px; font-weight: 500; color: var(--ink-2); }

.plans { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
/* Ровный пучок линий из hero проходит за тарифами: тёмные карточки его скрывают, стеклянная — преломляет */
.plans::before { content: ""; position: absolute; z-index: 0; left: 50%; width: 100vw; transform: translateX(-50%); top: 26%; height: 46%; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(242,239,234,.16) 0 1px, transparent 1px 8px);
  -webkit-mask: linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%); mask: linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%); }
.plans::after { content: ""; position: absolute; z-index: 0; left: 50%; width: 100vw; transform: translateX(-50%); top: calc(26% + 8px * 11); height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,90,102,.9) 50%, transparent) 0 0 / 40% 100% no-repeat, linear-gradient(90deg, transparent, rgba(208,49,63,.45) 25%, rgba(208,49,63,.45) 75%, transparent);
  animation: packet 5s linear infinite; }
@keyframes packet { from { background-position: -40% 0, 0 0; } to { background-position: 140% 0, 0 0; } }
.plan { position: relative; z-index: 1; border-radius: var(--r-l); padding: 28px 26px 26px; display: flex; flex-direction: column; min-height: 400px;
  border: 1px solid var(--line); background: linear-gradient(180deg, #131211, #0D0C0C);
  transition: transform .6s var(--ease-out), border-color .3s; }
.plan:hover { transform: translateY(-4px); border-color: var(--line-2); }
.plan.featured { border-color: transparent; background: linear-gradient(165deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.03) 45%, rgba(255,255,255,.06) 100%); }
.plan > * { position: relative; z-index: 2; }
.plan-top { display: flex; justify-content: space-between; align-items: center; min-height: 26px; }
.plan-name { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.plan-badge { font-size: 11px; font-weight: 500; color: #fff; background: var(--red); padding: 4px 10px; border-radius: 999px; box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.plan-period { font-size: 14px; color: var(--ink-3); margin-top: 4px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-top: 44px; font-size: 60px; font-weight: 400; letter-spacing: -.05em; line-height: 1; font-family: var(--sans); }
.plan-price .cur { font-size: 22px; color: var(--ink-3); letter-spacing: 0; }
.plan-pm { font-size: 14px; color: var(--ink-3); margin-top: 12px; min-height: 20px; }
.plan-save { display: flex; align-items: center; gap: 10px; margin-top: 18px; min-height: 22px; }
.plan-save .bar { flex: 1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.plan-save .bar i { display: block; height: 100%; background: var(--ink-2); border-radius: inherit; width: 0; transition: width 1.1s var(--ease-out) .15s; }
.plan.featured .plan-save .bar i { background: var(--red-ink); }
.plan-save .pct { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.plan-sp { flex: 1; min-height: 28px; }
.plan .btn { width: 100%; }
.plan:not(.featured) .btn { background: rgba(255,255,255,.06); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.plan:not(.featured) .btn:hover { background: rgba(255,255,255,.1); }
.plans.switching .plan { animation: planIn .7s var(--ease-out) both; animation-delay: calc(var(--i) * 50ms); }
@keyframes planIn { from { opacity: .0; transform: translateY(14px) scale(.985); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.pricing-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 28px; font-size: 14px; color: var(--ink-3); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); transition: color .25s; }
.link-arrow svg { width: 14px; height: 14px; transition: transform .4s var(--spring); }
.link-arrow:hover { color: var(--ink); } .link-arrow:hover svg { transform: translateX(3px); }

/* ───────── APPS ───────── */
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.app { border-radius: var(--r-xl); padding: 32px; display: flex; flex-direction: column; min-height: 360px; overflow: hidden; }
.app > * { position: relative; z-index: 2; }
.app-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; }
.app-icon { width: 60px; height: 60px; border-radius: 17px; display: grid; place-items: center; font-weight: 600; font-size: 26px; letter-spacing: -.04em; color: #0A0909;
  background: linear-gradient(160deg, #FBF9F6, #CFCAC2); box-shadow: inset 0 1px 0 #fff, inset 0 -2px 4px rgba(0,0,0,.15), 0 10px 24px -10px rgba(0,0,0,.8); }
.app-icon.alt { color: #fff; background: linear-gradient(160deg, #2C2A28, #151413); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 0 0 1px rgba(255,255,255,.06), 0 10px 24px -10px rgba(0,0,0,.8); }
.app h3 { font-size: 30px; font-weight: 500; letter-spacing: -.035em; }
.app-plat { font-size: 14px; color: var(--ink-3); margin-top: 8px; }
.app p { font-size: 15px; color: var(--ink-2); margin-top: 18px; max-width: 420px; }
.app-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 32px; }
.app-links a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .25s; }
.app-links a:hover { background: rgba(255,255,255,.1); }
.app-links svg { width: 14px; height: 14px; color: var(--ink-3); }

/* ───────── SETUP ───────── */
.setup { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.setup-phone-col { position: sticky; top: max(100px, calc(50vh - 310px)); padding-top: 170px; display: flex; justify-content: center; }
.phone { width: 300px; height: 620px; border-radius: 52px; padding: 10px; position: relative;
  background: linear-gradient(150deg, #3a3735, #141312 40%, #22201f);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), inset 0 0 0 4px #0b0b0b, 0 50px 100px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.6); }
.phone-screen { position: relative; height: 100%; border-radius: 43px; overflow: hidden; background: #0D0C0C; }
.ps-bar { display: flex; justify-content: space-between; align-items: center; padding: 16px 26px 0; font-size: 12px; color: var(--ink); height: 46px; }
.ps-island { width: 92px; height: 26px; border-radius: 20px; background: #000; }
.pscreen { position: absolute; inset: 60px 18px 24px; display: flex; flex-direction: column; gap: 10px;
  opacity: 0; transform: translateY(20px) scale(.98); filter: blur(6px); transition: opacity .55s var(--ease), transform .8s var(--ease-out), filter .55s var(--ease); pointer-events: none; }
.pscreen.active { opacity: 1; transform: none; filter: none; }
.ps-head { font-size: 24px; font-weight: 500; letter-spacing: -.03em; margin: 14px 0 8px; }
.ps-plan { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); font-size: 14px; }
.ps-plan div { display: flex; flex-direction: column; } .ps-plan span { font-size: 12px; color: var(--ink-3); }
.ps-plan.sel { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.05); }
.ps-btn { margin-top: auto; height: 50px; border-radius: 16px; display: grid; place-items: center; font-size: 14px; font-weight: 500; background: var(--ink); color: #0A0909; }
.ps-btn.ghost { margin-top: 18px; background: rgba(255,255,255,.08); color: var(--ink); }
.ps-app { display: flex; gap: 14px; align-items: center; margin-top: 20px; }
.ps-app .app-icon { width: 70px; height: 70px; border-radius: 18px; font-size: 30px; }
.ps-app b { display: block; font-size: 20px; font-weight: 500; } .ps-app span { font-size: 13px; color: var(--ink-3); }
.ps-rating { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.ps-progress { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 8px; }
.ps-progress i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: inherit; }
.pscreen.active .ps-progress i { animation: dl 2.4s var(--ease-out) .4s forwards; }
@keyframes dl { to { width: 100%; } }
.ps-hint { font-size: 12px; color: var(--ink-3); margin-top: auto; text-align: center; line-height: 1.5; }
.ps-key { padding: 16px; border-radius: 16px; border: 1px dashed var(--line-2); font-size: 12px; color: var(--ink-2); line-height: 1.6; word-break: break-all; }
.ps-toast { align-self: center; font-size: 12px; padding: 8px 14px; border-radius: 999px; background: rgba(127,209,163,.12); color: var(--ok); opacity: 0; transform: translateY(6px); }
.pscreen.active .ps-toast { animation: toast .5s var(--ease-out) 1.2s forwards; }
@keyframes toast { to { opacity: 1; transform: none; } }
.ps-conn { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.ps-ring { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; color: #fff; margin-bottom: 20px;
  background: radial-gradient(circle at 50% 35%, #E04452, #B12331 75%); box-shadow: inset 0 2px 0 rgba(255,255,255,.35), 0 0 0 14px rgba(208,49,63,.10), 0 0 0 30px rgba(208,49,63,.05); }
.pscreen.active .ps-ring { animation: ringIn 1s var(--spring) both; }
@keyframes ringIn { from { transform: scale(.7); opacity: 0; } }
.ps-ring svg { width: 46px; height: 46px; }
.ps-conn b { font-size: 22px; font-weight: 500; } .ps-conn span { font-size: 12px; color: var(--ink-3); }

.setup-steps .sec-head { margin-bottom: 40px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 30px 0; border-top: 1px solid var(--line); min-height: 34vh; opacity: .35; transition: opacity .5s var(--ease); }
.step.active { opacity: 1; }
.step-n { font-size: 14px; font-weight: 500; color: var(--ink-3); padding-top: 6px; font-variant-numeric: tabular-nums; }
.step.active .step-n { color: var(--red-ink); }
.step h3 { font-size: 26px; font-weight: 500; letter-spacing: -.03em; margin-bottom: 10px; }
.step p { font-size: 16px; color: var(--ink-2); max-width: 420px; }

/* ───────── REVIEWS ───────── */
.rev-nav { display: flex; gap: 8px; }
.rev-arrow { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; transition: opacity .3s; }
.rev-arrow svg { width: 16px; height: 16px; position: relative; z-index: 2; }
.rev-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rev-track::-webkit-scrollbar { display: none; }
.rev { flex: 0 0 min(380px, 85%); scroll-snap-align: start; border-radius: var(--r-l); padding: 28px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0)); display: flex; flex-direction: column; gap: 22px; }
.rev-stars { display: flex; gap: 3px; } .rev-stars svg { width: 14px; height: 14px; color: var(--ink); }
.rev-stars svg.off { color: var(--ink-4); }
.rev-text { font-size: 16px; line-height: 1.6; color: var(--ink); flex: 1; }
.rev-name { font-size: 14px; color: var(--ink-3); }

/* ───────── CTA ───────── */
.cta { position: relative; margin-top: clamp(110px, 14vw, 180px); padding: 0 var(--gut); }
.cta-inner { max-width: var(--maxw); margin: 0 auto; text-align: center; padding: clamp(72px, 9vw, 120px) 24px; border-radius: 48px; position: relative; overflow: hidden;
  border: 1px solid var(--line); background: radial-gradient(80% 120% at 50% 120%, rgba(208,49,63,.16), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0)); }
.cta h2 { font-size: clamp(40px, 6vw, 84px); }
.cta p { color: var(--ink-2); font-size: 17px; margin: 22px auto 36px; max-width: 460px; }
.cta-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ───────── FOOTER ───────── */
.foot { max-width: var(--maxw); margin: 0 auto; padding: 96px var(--gut) 28px; overflow: hidden; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 28px; flex-wrap: wrap; }
.foot-links a { font-size: 14px; color: var(--ink-2); transition: color .2s; }
.foot-links a:hover { color: var(--ink); }
.foot-mark { font-size: clamp(90px, 21vw, 300px); font-weight: 600; letter-spacing: -.065em; line-height: 1; padding-bottom: .05em; margin: 64px 0 20px; text-align: center;
  color: transparent; background: linear-gradient(180deg, rgba(242,239,234,.15), rgba(242,239,234,.03) 100%); -webkit-background-clip: text; background-clip: text; user-select: none; }
.foot-copy { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); padding-top: 22px; border-top: 1px solid var(--line); }

/* ───────── MODALS ───────── */
.overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(6,6,6,.5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s linear .4s; }
.overlay.show { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
.modal { width: min(100%, 460px); border-radius: 32px; padding: 36px; transform: translateY(24px) scale(.94); opacity: 0;
  transition: transform .7s var(--spring), opacity .4s var(--ease); max-height: calc(100svh - 40px); overflow-y: auto; scrollbar-width: none; }
.overlay.show .modal { transform: none; opacity: 1; }
.modal > * { position: relative; z-index: 2; }
.modal-x { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); background: rgba(255,255,255,.05); z-index: 3; transition: background .2s, color .2s; }
.modal-x:hover { background: rgba(255,255,255,.1); color: var(--ink); }
.modal-x svg { width: 14px; height: 14px; }
.modal h3, .modal h2 { font-size: 30px; font-weight: 500; letter-spacing: -.035em; line-height: 1.1; margin: 14px 0 12px; }
.modal-desc { font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.modal-form { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.modal-form .btn { width: 100%; }
.modal-hint { font-size: 13px; color: var(--ink-3); margin-top: 14px; }
.modal-hint.error { color: var(--red-ink); }
.modal-pane.hide { display: none; }
.modal-pane.success { display: none; text-align: center; padding: 10px 0; }
.modal-pane.success.show { display: block; animation: planIn .7s var(--ease-out) both; }
.ok-mark { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; color: var(--ok); background: rgba(127,209,163,.1); box-shadow: inset 0 0 0 1px rgba(127,209,163,.25); }
.ok-mark svg { width: 28px; height: 28px; }
.ok-mark.warn { color: var(--warn); background: rgba(226,184,102,.1); box-shadow: inset 0 0 0 1px rgba(226,184,102,.25); }
body.shop-open, body.modal-open { overflow: hidden; }

/* shop */
.shop-sum { padding: 18px 20px; border-radius: 20px; background: rgba(0,0,0,.28); border: 1px solid var(--line); margin: 22px 0 24px; }
.shop-sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.shop-sum-name { font-weight: 500; font-size: 16px; }
.shop-sum-price { font-size: 26px; letter-spacing: -.03em; }
.shop-sum-sub { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.shop-label { font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }
.shop-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 22px; }
.shop-method { text-align: left; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(0,0,0,.2); transition: border-color .25s, background .25s; }
.shop-method b { display: flex; justify-content: space-between; align-items: center; font-weight: 500; font-size: 15px; }
.shop-method b i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--ink-4); transition: border .25s var(--spring); }
.shop-method small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.shop-method.active { border-color: rgba(242,239,234,.42); background: rgba(255,255,255,.05); }
.shop-method.active b i { border: 5px solid var(--ink); }
.shop-hint { font-size: 13px; color: var(--ink-3); margin: 10px 0 20px; }
.shop-hint.error { color: var(--red-ink); }
.shop-terms { font-size: 12.5px; line-height: 1.5; color: var(--ink-3); text-align: center; margin: 14px 4px 0; text-wrap: pretty; }
.shop-terms a { color: var(--ink-2); text-decoration: underline; text-decoration-color: rgba(242,239,234,.25); text-underline-offset: 2px; }
.shop-terms a:hover { color: var(--ink); }
.shop-center { text-align: center; padding: 10px 0; }
.shop-center .spin { margin: 10px auto 20px; width: 30px; height: 30px; }
.shop-key { font-family: var(--mono); font-size: 12px; color: var(--ink-2); word-break: break-all; padding: 14px 16px; border-radius: 16px; border: 1px dashed var(--line-2); margin: 18px 0 12px; }
.shop-sec { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; margin-top: 8px; border-radius: 999px; font-size: 14px; color: var(--ink); background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .2s; }
.shop-sec:hover { background: rgba(255,255,255,.09); }
.shop-steps { margin: 22px 0 0 18px; font-size: 14px; color: var(--ink-2); display: flex; flex-direction: column; gap: 8px; }
.shop-steps b { color: var(--ink); font-weight: 500; }

/* ───────── RESPONSIVE ───────── */
@media (min-width: 901px) { .hero-title .line { white-space: nowrap; } }
@media (max-width: 1080px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .inside { grid-template-columns: 1fr; gap: 24px; } .inside-head { position: static; }
}
@media (max-width: 900px) {
  .nav-links, .nav-account, .lang { display: none; }
  .burger { display: block; }
  .nav { gap: 12px; justify-content: space-between; }
  .mnav { display: flex; pointer-events: none; }
  .nav-wrap.open .mnav { opacity: 1; transform: none; pointer-events: auto; }
  .hero { padding-top: 110px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero-vignette { background: linear-gradient(180deg, rgba(10,9,9,.7) 0%, rgba(10,9,9,.35) 40%, rgba(10,9,9,.6) 75%, var(--bg) 100%); }
  .slab { transform: none; width: 100%; max-width: 340px; height: 400px; }
  .loc-grid { grid-template-columns: 1fr; } .loc-card { position: relative; top: 0; order: -1; }
  .apps { grid-template-columns: 1fr; }
  .setup { grid-template-columns: 1fr; gap: 40px; }
  .setup-phone-col { position: sticky; top: 84px; z-index: 0; }
  .phone { width: 220px; height: 450px; border-radius: 40px; padding: 8px; }
  .phone-screen { border-radius: 33px; }
  .pscreen { inset: 54px 14px 18px; } .ps-head { font-size: 19px; } .ps-ring { width: 110px; height: 110px; }
  .setup-steps { position: relative; z-index: 1; }
  .step { min-height: 0; padding: 22px 18px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 22px; background: rgba(14,13,12,.82); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); opacity: 1; }
  .setup-phone-col { display: none; }
}
@media (max-width: 600px) {
  .nav-cta { display: none; }
  .hero-title { font-size: 44px; }
  .hero-desc { font-size: 16px; }
  .hero-cta .btn { flex: 1; }
  .plans { grid-template-columns: 1fr; }
  .plan { min-height: 0; } .plan-price { margin-top: 26px; font-size: 52px; } .plan-sp { min-height: 22px; }
  .seg-btn { padding: 0 14px; font-size: 13px; }
  .brow { grid-template-columns: 34px 1fr 56px; } .brow .bars { display: none; } .brow .city small { display: none; }
  .loc-card { padding: 24px; } .loc-city { font-size: 36px; }
  .m-big { font-size: 32px; } .loc-metrics .m { padding: 14px; }
  .slab { padding: 22px; height: 380px; } .slab-city { font-size: 30px; }
  .slab-stats b { font-size: 14px; } .slab-stats .eyebrow { font-size: 11px; }
  .plan-price { font-size: 48px; } .plan-price .cur { font-size: 20px; }
  .seg-btn b { font-family: var(--sans); }
  .hero-specs { gap: 6px; margin-top: 44px; } .hero-specs span { height: 30px; padding: 0 12px; font-size: 13px; }
  .shop-sum-price { font-size: 22px; }
  .feat { grid-template-columns: 1fr; gap: 8px; } .feat-tag { justify-self: start; }
  .modal { padding: 28px 22px; border-radius: 28px; }
  .sec-head.row { flex-direction: column; align-items: flex-start; }
  .foot-copy { flex-direction: column; gap: 6px; }
}

/* Красное свечение вводимых символов (почта) */
.modal .field { text-shadow: 0 0 12px rgba(255,90,102,.65), 0 0 1px rgba(255,90,102,.5); }
.modal .field::placeholder { text-shadow: none; }
.modal .field:focus { border-color: rgba(255,90,102,.45); box-shadow: 0 0 0 4px rgba(208,49,63,.12); }

/* ── Вертикальный ритм в окнах ── */
.modal-hint { margin-top: 16px; line-height: 1.5; }
.shop-hint { margin: 12px 0 22px; line-height: 1.5; }
.shop-key { margin: 22px 0 14px; }
.shop-sec { margin-top: 10px; }
.shop-steps { margin-top: 26px; }
.shop-center .modal-desc { margin-top: 4px; }
.modal-form { gap: 12px; }
.pricing-foot { margin-top: 32px; row-gap: 14px; }
.app p { margin-top: 20px; }
.step p { margin-top: 2px; }
@media (max-width: 600px) {
  .hero-cta { gap: 10px; }
  .sec-head { margin-bottom: 44px; }
  .pricing-foot { flex-direction: column; align-items: flex-start; }
  .app-links { padding-top: 28px; }
  .cta p { margin: 18px auto 30px; }
}
.shop-method b { gap: 10px; }
.shop-method b i { flex-shrink: 0; }
@media (max-width: 600px) { .shop-method { padding: 14px; } .shop-method b { font-size: 14px; } }

/* Способы оплаты */
.pay-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.pay-label { font-size: 14px; color: var(--ink-3); margin-right: 6px; }
.pay-mark { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px 0 14px; border-radius: 16px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); color: var(--ink); }
.pay-mark svg { width: 20px; height: 20px; color: var(--ink-2); }
.pay-mark b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.pay-mark small { font-size: 13px; color: var(--ink-3); }
.pm-ic { display: inline-flex; align-items: center; gap: 8px; }
.pm-ic svg { width: 18px; height: 18px; color: var(--ink-2); }
@media (max-width: 600px) { .pay-row { flex-direction: column; align-items: stretch; } .pay-mark { width: 100%; } .pay-label { margin: 0 0 2px; } }

.pay-mark img { height: 22px; width: auto; display: block; }
.pay-mark img.r, .pm-ic img.r { border-radius: 6px; }
.pm-ic img { height: 18px; width: auto; display: block; }
.shop-methods { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.shop-method b { min-width: 0; } .pm-ic { min-width: 0; overflow-wrap: anywhere; }

/* ───────── Флаги: блик и складки только через transform (GPU), без перерисовки ───────── */
.flag { position: relative; display: inline-block; flex-shrink: 0; overflow: hidden; border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 6px 14px -6px rgba(0,0,0,.8); }
.flag img { display: block; width: 100%; height: 100%; object-fit: cover; }
.flag.lg { width: 56px; height: 42px; border-radius: 10px; transform-origin: left center; will-change: transform;
  animation: flagWave 5s ease-in-out infinite; }
.flag.lg::before, .flag.lg::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 300%; pointer-events: none; will-change: transform; }
.flag.lg::before { background: repeating-linear-gradient(100deg, rgba(0,0,0,.20) 0, rgba(255,255,255,.14) 28px, rgba(0,0,0,.20) 56px); animation: flagFold 3.2s linear infinite; }
.flag.lg::after { background: linear-gradient(110deg, transparent 38%, rgba(255,255,255,.45) 47%, rgba(255,255,255,0) 56%); animation: flagSheen 3.8s ease-in-out infinite; }
@keyframes flagFold { from { transform: translate3d(0,0,0); } to { transform: translate3d(-56px,0,0); } }
@keyframes flagSheen { 0% { transform: translate3d(-66%,0,0); } 65%, 100% { transform: translate3d(10%,0,0); } }
@keyframes flagWave { 0%, 100% { transform: perspective(300px) rotateY(0deg); } 50% { transform: perspective(300px) rotateY(-12deg); } }
.flag.sm { width: 22px; height: 16px; border-radius: 4px; margin-right: 12px; }
.brow .city { display: flex; align-items: center; }
.loc-card-top { align-items: flex-start; }
.loc-top-r { display: flex; align-items: center; gap: 12px; }
.loc-slide { perspective: 900px; transform-origin: center; will-change: transform, opacity; }
.loc-slide > * { will-change: transform, opacity; }
@media (prefers-reduced-motion: reduce) { .flag.lg, .flag.lg::before, .flag.lg::after { animation: none; } }

/* ───────── Переключатель локаций: стрелки с переливающимся ободком ───────── */
.loc-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; }
.loc-arrow { position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); overflow: hidden; isolation: isolate;
  box-shadow: 0 10px 24px -12px rgba(0,0,0,.8), 0 0 18px -6px rgba(255,90,102,.35); transition: transform .45s var(--spring); }
/* переливающийся ободок: вращается сам градиент (transform), внутренний круг его перекрывает */
.loc-arrow::before { content: ""; position: absolute; inset: -40%; z-index: -2; will-change: transform;
  background: conic-gradient(#FF5A66, #FFB38A, #FFF1E2, #F2EFEA, #FF8A96, #D0313F, #FF5A66); animation: spin 4s linear infinite; }
.loc-arrow::after { content: ""; position: absolute; inset: 1.5px; border-radius: 50%; z-index: -1;
  background: radial-gradient(120% 120% at 30% 20%, #2a2726, #141312 70%); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.loc-arrow svg { width: 20px; height: 20px; position: relative; z-index: 1; }
.loc-arrow:hover { transform: scale(1.06); } .loc-arrow:active { transform: scale(.92); }
.loc-count { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-2); }
.loc-count #locIdx { color: var(--ink); font-weight: 600; }
.loc-count .sep { width: 28px; height: 1px; background: var(--line-2); }

@media (max-width: 900px) {
  .board { display: none; }
  .loc-card { touch-action: pan-y; }
}

/* Карточка локаций анимируется изнутри — без backdrop-filter, иначе фон пересчитывается каждый кадр */
.loc-card.solid { -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  background: linear-gradient(165deg, rgba(40,37,35,.92) 0%, rgba(20,19,18,.94) 45%, rgba(26,24,23,.94) 100%); contain: layout paint; }

/* ═════════ MOTION ═════════ */
/* Заголовки по словам */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.wi { display: inline-block; transform: translate3d(0, 108%, 0) rotate(5deg); transform-origin: 0 100%;
  transition: transform 1.15s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i, 0) * 55ms + .05s); }
.m-in .wi, .in .wi { transform: none; }

/* Варианты появления */
.reveal[data-a] { transition: opacity .9s var(--ease-out), transform 1.25s cubic-bezier(.16,1.12,.3,1); transition-delay: var(--d, 0s); }
.reveal[data-a="tilt"] { transform: perspective(1100px) translate3d(0, 70px, 0) rotateX(16deg) scale(.95); transform-origin: 50% 100%; }
.reveal[data-a="slide"] { transform: translate3d(56px, 0, 0); }
.reveal[data-a="rise"] { transform: translate3d(0, 40px, 0); }
.reveal[data-a="scale"] { transform: perspective(1100px) translate3d(0, 50px, 0) rotateX(10deg) scale(.93); transform-origin: 50% 0; }
.reveal[data-a="zoom"] { transform: scale(.88); }
.reveal[data-a="fade"] { transform: none; }
.reveal[data-a].in { transform: none; }

/* Доска локаций: строки каскадом */
.board .brow { opacity: 0; transform: translate3d(-24px, 0, 0); transition: opacity .7s var(--ease-out), transform .9s cubic-bezier(.16,1.12,.3,1), padding .5s var(--ease-out), color .3s;
  transition-delay: calc(var(--r, 0) * 40ms), calc(var(--r, 0) * 40ms), 0s, 0s; }
.board.in .brow { opacity: 1; transform: none; }

/* Тарифы: каскад с 3D при первом появлении */
#plans:not(.m-in) .plan { opacity: 0; transform: perspective(1100px) translate3d(0, 80px, 0) rotateX(18deg); }
#plans.m-in:not(.switching) .plan { transition: opacity .9s var(--ease-out), transform 1.3s cubic-bezier(.16,1.12,.3,1), border-color .3s; transition-delay: calc(var(--i) * 90ms); }
.plan.tilting, .app.tilting { transition: transform .18s linear, border-color .3s !important; will-change: transform; }
.app { transform-style: preserve-3d; }

/* Плашки протоколов на первом экране */
.hero-specs span { opacity: 0; transform: translate3d(0, 14px, 0) scale(.94); transition: opacity .7s var(--ease-out), transform .9s cubic-bezier(.16,1.2,.3,1); }
.ready .hero-specs span { opacity: 1; transform: none; }
.hero-specs span:nth-child(1) { transition-delay: .55s } .hero-specs span:nth-child(3) { transition-delay: .61s } .hero-specs span:nth-child(5) { transition-delay: .67s }
.hero-specs span:nth-child(7) { transition-delay: .73s } .hero-specs span:nth-child(9) { transition-delay: .79s } .hero-specs span:nth-child(11) { transition-delay: .85s }
.hero-copy, .slab-wrap { will-change: transform; }

/* Шаги: линия прогресса */
.setup-steps { position: relative; }
.steps-line { position: absolute; left: -28px; width: 2px; border-radius: 2px; background: var(--line); pointer-events: none; }
.steps-line i { display: block; width: 100%; height: 100%; border-radius: inherit; transform-origin: 50% 0; transform: scaleY(0);
  background: linear-gradient(180deg, var(--red-ink), var(--red)); box-shadow: 0 0 12px rgba(255,90,102,.5); }
.step h3, .step p { transition: transform .7s cubic-bezier(.16,1.12,.3,1), opacity .5s; }
.step:not(.active) h3 { transform: translate3d(-6px, 0, 0); }
.step.active .step-n { animation: stepPulse .9s var(--ease-out); }
@keyframes stepPulse { 0% { transform: scale(.6); opacity: .3; } 60% { transform: scale(1.25); } 100% { transform: none; opacity: 1; } }
.phone { will-change: transform; }

/* Отзывы — карточки каскадом (класс .reveal добавляется в JS) */
.rev { transition: transform .5s var(--ease-out), border-color .3s; }

/* Подвал: буквы надписи */
.foot-mark span { display: inline-block; transform: translate3d(0, 60%, 0); opacity: 0;
  transition: transform 1.2s cubic-bezier(.16,1.12,.3,1), opacity .9s var(--ease-out); transition-delay: calc(var(--i) * 70ms); }
.foot-mark.in span { transform: none; opacity: 1; }

@media (max-width: 900px) {
  .steps-line { display: none; }
  .reveal[data-a="slide"] { transform: translate3d(32px, 0, 0); }
}
.foot-mark { white-space: nowrap; font-size: clamp(80px, 19vw, 280px); }
.foot-mark span { background: linear-gradient(180deg, rgba(242,239,234,.15), rgba(242,239,234,.03)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot-mark span { padding: 0 .08em .06em; margin: 0 -.08em -.06em; }
/* Способы оплаты в окне: иконка сверху, название одной строкой, переключатель в углу */
.shop-method { position: relative; padding: 14px 16px 14px; }
.shop-method b { display: block; padding-right: 26px; }
.shop-method b i { position: absolute; top: 14px; right: 14px; }
.shop-method .pm-ic { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; overflow-wrap: normal; white-space: nowrap; font-size: 15px; }
.shop-method .pm-ic img { height: 22px; }
.shop-method small { margin-top: 4px; line-height: 1.35; }
@media (max-width: 600px) { .shop-method { padding: 13px 14px; } .shop-method .pm-ic { font-size: 15px; } }
.shop-method b { padding-right: 0; }
@media (max-width: 380px) { .shop-method .pm-ic { font-size: 14px; letter-spacing: -.01em; } .shop-method { padding: 12px; } .shop-method b i { top: 12px; right: 12px; } }

/* ───────── Иконки приложений: стекло, глянец и перелив (только transform) ───────── */
.app-icon.gloss { position: relative; overflow: hidden; padding: 0; background: #111; isolation: isolate;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 14px 30px -12px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.5); transform: translateZ(0); }
.app-icon.gloss img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-icon.gloss::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,.06) 42%, rgba(255,255,255,0) 50%, rgba(0,0,0,.12) 100%); }
.app-icon.gloss::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 300%; z-index: 2; pointer-events: none; will-change: transform;
  background: linear-gradient(110deg, transparent 38%, rgba(255,214,190,.0) 40%, rgba(255,255,255,.55) 46%, rgba(255,170,160,.35) 49%, rgba(255,255,255,0) 54%);
  animation: iconSheen 4.2s ease-in-out infinite; }
.app:nth-child(2) .app-icon.gloss::after { animation-delay: 1.4s; }
.ps-app .app-icon.gloss::after { animation-delay: .7s; }
@keyframes iconSheen { 0% { transform: translate3d(-66%, 0, 0); } 55%, 100% { transform: translate3d(12%, 0, 0); } }
.app .app-icon.gloss { width: 64px; height: 64px; border-radius: 18px; animation: iconFloat 6s ease-in-out infinite; }
@keyframes iconFloat { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); } 50% { transform: translate3d(0, -3px, 0) rotate(-1.5deg); } }
.app:hover .app-icon.gloss { box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 18px 36px -12px rgba(0,0,0,.9), 0 0 24px -6px rgba(255,90,102,.35); }
@media (prefers-reduced-motion: reduce) { .app-icon.gloss, .app-icon.gloss::after { animation: none; } }
.app .app-icon.gloss { width: 76px; height: 76px; border-radius: 21px; }

/* ───────── Подвал v2: стеклянная плашка без водяного знака ───────── */
.foot { padding: 72px var(--gut) 28px; }
.foot-card { position: relative; display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 48px; padding: 36px 40px; border-radius: 32px;
  border: 1px solid var(--line); background: linear-gradient(165deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.015) 50%, rgba(255,255,255,.03) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08); overflow: hidden; }
.foot-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,90,102,.55), transparent); }
.foot-brand .logo { font-size: 20px; }
.foot-brand p { margin-top: 14px; max-width: 320px; font-size: 14px; color: var(--ink-3); line-height: 1.6; }
.foot-status { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; height: 36px; padding: 0 16px 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; color: var(--ink-2); transition: border-color .25s, color .25s; }
.foot-status:hover { color: var(--ink); border-color: rgba(127,209,163,.4); }
.foot-status .pulse-dot { width: 7px; height: 7px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot-cols div { display: flex; flex-direction: column; gap: 12px; }
.foot-cols b { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.foot-cols a { font-size: 14px; color: var(--ink-3); width: fit-content; position: relative; transition: color .25s; }
.foot-cols a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: var(--red-ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease-out); }
.foot-cols a:hover { color: var(--ink); } .foot-cols a:hover::after { transform: scaleX(1); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px 8px 0; font-size: 13px; color: var(--ink-3); }
.foot-pay { display: inline-flex; align-items: center; gap: 12px; }
.foot-pay img { height: 17px; width: auto; opacity: .85; } .foot-pay img:nth-child(2) { border-radius: 5px; }
.foot-row, .foot-mark, .foot-copy { display: none !important; }
@media (max-width: 760px) {
  .foot { padding-top: 56px; }
  .foot-card { grid-template-columns: 1fr; gap: 32px; padding: 28px 24px; border-radius: 28px; }
  .foot-cols { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .foot-cols div:last-child { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 10px 22px; }
  .foot-cols div:last-child b { width: 100%; margin-bottom: 0; }
  .foot-bottom { flex-direction: column-reverse; align-items: flex-start; gap: 12px; }
}
/* Отзывы: только горизонтальное листание со снапом, без вертикального «люфта» */
.rev-track { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; overscroll-behavior-y: auto;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; scroll-padding-left: 0; padding: 4px 0 8px; }
.rev { scroll-snap-align: start; scroll-snap-stop: always; }
.rev.reveal[data-a] { transform: none !important; }   /* внутри прокрутки — только появление по прозрачности */

/* ───────── Калькулятор выгоды ───────── */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 18px; padding: 30px 34px; border-radius: 28px;
  border: 1px solid var(--line); background: linear-gradient(165deg, rgba(255,255,255,.045), rgba(255,255,255,.012)); position: relative; overflow: hidden; }
.calc::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,90,102,.5), transparent); }
.calc-desc { font-size: 15px; color: var(--ink-2); margin: 12px 0 20px; max-width: 360px; line-height: 1.55; }
.calc-seg { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.025); }
.calc-seg button { position: relative; z-index: 1; height: 40px; padding: 0 18px; border-radius: 999px; font-size: 14px; color: var(--ink-3); transition: color .3s; }
.calc-seg button b { font-weight: 600; } .calc-seg button.on { color: var(--ink); }
.calc-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28); transition: transform .55s cubic-bezier(.34,1.4,.5,1), width .55s cubic-bezier(.34,1.4,.5,1); }
.calc-r { display: flex; flex-direction: column; gap: 12px; }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.calc-row s { color: var(--ink-3); text-decoration-color: rgba(255,90,102,.7); font-size: 17px; }
.calc-row.strong { color: var(--ink-2); } .calc-row.strong b { font-size: 22px; font-weight: 500; color: var(--ink); letter-spacing: -.02em; }
.calc-bar { height: 6px; border-radius: 6px; background: rgba(255,90,102,.18); overflow: hidden; }
.calc-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ink-2), var(--ink)); transition: width .9s cubic-bezier(.16,1.12,.3,1); }
.calc-save { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.calc-save b { font-size: 34px; font-weight: 500; letter-spacing: -.035em; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-save .pct { margin-left: auto; font-size: 13px; font-weight: 600; color: #fff; background: var(--red); padding: 4px 10px; border-radius: 999px; box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.calc .btn { margin-top: 8px; }

/* ───────── FAQ ───────── */
.faq { padding-bottom: 0; }
.faq-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.faq-grid .sec-head { position: sticky; top: 120px; margin-bottom: 0; }
.faq-sup { margin-top: 22px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 4px; text-align: left; font-size: 18px; font-weight: 500; letter-spacing: -.015em; color: var(--ink); transition: color .25s; }
.faq-q:hover { color: #fff; }
.faq-ic { position: relative; width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; border: 1px solid var(--line-2); transition: transform .55s cubic-bezier(.34,1.4,.5,1), background .3s, border-color .3s; }
.faq-ic::before, .faq-ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--ink); border-radius: 2px; transition: transform .45s cubic-bezier(.34,1.4,.5,1); }
.faq-ic::after { transform: rotate(90deg); }
.faq-item.open .faq-ic { transform: rotate(180deg); background: var(--red); border-color: var(--red); }
.faq-item.open .faq-ic::after { transform: rotate(0deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s cubic-bezier(.16,1,.3,1); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 52px 24px 4px; font-size: 16px; line-height: 1.65; color: var(--ink-2); opacity: 0; transform: translate3d(0, -8px, 0); transition: opacity .4s, transform .55s cubic-bezier(.16,1.12,.3,1); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item.open .faq-a p { opacity: 1; transform: none; transition-delay: .08s; }

@media (max-width: 900px) {
  .calc { grid-template-columns: 1fr; gap: 24px; padding: 24px 22px; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-grid .sec-head { position: static; }
  .faq-q { font-size: 16px; padding: 20px 2px; }
  .faq-a p { padding-right: 8px; font-size: 15px; }
}

/* FAQ внутри подвала */
.foot-faq { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 48px; padding-top: 30px; border-top: 1px solid var(--line); }
.foot-faq-h b { display: block; font-size: 18px; font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
.foot-faq-h p { margin-top: 10px; font-size: 14px; color: var(--ink-3); line-height: 1.6; max-width: 320px; }
.foot-faq .faq-list { border-top: 0; }
.foot-faq .faq-item:last-child { border-bottom: 0; }
.foot-faq .faq-q { font-size: 15px; padding: 16px 0; }
.foot-faq .faq-ic { width: 28px; height: 28px; }
.foot-faq .faq-ic::before, .foot-faq .faq-ic::after { width: 10px; margin-left: -5px; }
.foot-faq .faq-a p { font-size: 14px; padding: 0 40px 18px 0; color: var(--ink-3); }
@media (max-width: 760px) { .foot-faq { grid-template-columns: 1fr; gap: 14px; padding-top: 24px; } .foot-faq .faq-a p { padding-right: 4px; } }

/* ═════════ BENTO «Архитектура сервиса» ═════════ */
#features .sec-head { margin-bottom: 44px; }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bx { position: relative; display: flex; flex-direction: column; min-height: 300px; padding: 22px 24px 24px; border-radius: 28px; overflow: hidden; isolation: isolate;
  border: 1px solid var(--line); background: linear-gradient(165deg, rgba(255,255,255,.055) 0%, rgba(255,255,255,.015) 55%, rgba(255,255,255,.03) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08); transition: border-color .3s; }
.bx:hover { border-color: var(--line-2); }
.bx::after { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 70%; z-index: -1; background: radial-gradient(50% 60% at 50% 0%, rgba(208,49,63,.10), transparent 70%); opacity: 0; transition: opacity .6s; }
.bx:hover::after { opacity: 1; }
.bx-net { grid-column: span 2; }
.bx-sup { grid-column: span 3; min-height: 0; flex-direction: row; align-items: center; gap: 26px; padding: 22px 26px; }
.bx-vis { position: relative; flex: 1; display: grid; place-items: center; min-height: 150px; margin-bottom: 18px; }
.bx h3 { font-size: 20px; font-weight: 500; letter-spacing: -.025em; }
.bx p { font-size: 14px; color: var(--ink-3); margin-top: 6px; line-height: 1.5; }

/* сеть */
.net { width: 100%; max-width: 420px; height: auto; overflow: visible; }
.net .links path { stroke: rgba(242,239,234,.22); stroke-width: 1.2; fill: none; stroke-dasharray: 4 6; }
.bento.play .net .links path { animation: dash 2.4s linear infinite; }
.net .links path:nth-child(2n) { stroke: rgba(255,90,102,.45); }
@keyframes dash { to { stroke-dashoffset: -40; } }
.net .nodes circle { fill: var(--ink); transform-box: fill-box; transform-origin: center; }
.bento.play .net .nodes circle { animation: nodeP 2.6s ease-in-out infinite; }
.net .nodes circle:nth-child(2) { animation-delay: .3s } .net .nodes circle:nth-child(3) { animation-delay: .6s } .net .nodes circle:nth-child(4) { animation-delay: .9s }
.net .nodes circle:nth-child(5) { animation-delay: 1.2s } .net .nodes circle:nth-child(6) { animation-delay: 1.5s } .net .nodes circle:nth-child(7) { animation-delay: 1.8s } .net .nodes circle:nth-child(8) { animation-delay: 2.1s }
@keyframes nodeP { 0%, 100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.5); opacity: 1; } }
.net .hub { fill: var(--red); }
.net .hub-ring { fill: none; stroke: var(--red-ink); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; opacity: .6; }
.bento.play .net .hub-ring { animation: hubR 2.2s var(--ease-out) infinite; }
@keyframes hubR { from { transform: scale(.5); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
.net-count { position: absolute; left: 0; bottom: 0; display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: var(--ink-3); }
.net-count b { font-size: 34px; font-weight: 500; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }

/* протоколы */
.protos { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.protos span:not(.pthumb) { position: relative; z-index: 1; height: 34px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-3); transition: color .4s; }
.protos span.on { color: var(--ink); }
.pthumb { position: absolute; left: 0; top: 0; height: 34px; width: 140px; border-radius: 999px; z-index: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.05)); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 1px rgba(255,90,102,.35), 0 6px 18px -8px rgba(255,90,102,.6);
  transition: transform .6s cubic-bezier(.34,1.4,.5,1), width .6s cubic-bezier(.34,1.4,.5,1); }

/* замок */
.lock { position: relative; width: 120px; height: 120px; display: grid; place-items: center; color: var(--ink); }
.lock svg { width: 40px; height: 40px; position: relative; z-index: 1; filter: drop-shadow(0 0 12px rgba(255,90,102,.4)); }
.lock i { position: absolute; inset: 0; border-radius: 50%; border: 1.2px dashed rgba(242,239,234,.25); }
.lock i.r2 { inset: 18px; border-style: solid; border-color: rgba(255,90,102,.45); border-left-color: transparent; border-bottom-color: transparent; }
.bento.play .lock i.r1 { animation: spin 14s linear infinite; }
.bento.play .lock i.r2 { animation: spin 3.2s linear infinite reverse; }
.lock-tag { position: absolute; bottom: 0; font-size: 12px; font-weight: 500; color: var(--ink-2); padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; }

/* чат */
.chat { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 240px; }
.msg { max-width: 85%; padding: 9px 13px; border-radius: 16px; font-size: 13px; line-height: 1.3; opacity: 0; transform: translate3d(0, 10px, 0) scale(.96); }
.msg.me { align-self: flex-end; background: var(--red); color: #fff; border-bottom-right-radius: 5px; }
.msg.bot { align-self: flex-start; background: rgba(255,255,255,.08); color: var(--ink); border-bottom-left-radius: 5px; box-shadow: inset 0 0 0 1px var(--line); }
.bento.play .msg { animation: msgIn 6s cubic-bezier(.34,1.4,.5,1) infinite; }
.bento.play .msg:nth-child(2) { animation-delay: .9s; } .bento.play .msg:nth-child(3) { animation-delay: 1.8s; }
@keyframes msgIn { 0% { opacity: 0; transform: translate3d(0, 10px, 0) scale(.96); } 8%, 82% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translate3d(0, -4px, 0); } }

/* партнёрка */
.ref { position: relative; width: 200px; height: 120px; }
.av { position: absolute; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 16px; color: #0A0909;
  background: linear-gradient(160deg, #FBF9F6, #CFCAC2); box-shadow: 0 8px 20px -8px rgba(0,0,0,.8), inset 0 1px 0 #fff; }
.av.a1 { left: 18px; top: 34px; } .av.a2 { left: 76px; top: 8px; background: linear-gradient(160deg, #3a3634, #1c1a19); color: var(--ink); box-shadow: 0 8px 20px -8px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.12); }
.av.a3 { left: 134px; top: 34px; background: linear-gradient(160deg, #E04452, #B12331); color: #fff; }
.bento.play .av { animation: avB 3.6s ease-in-out infinite; } .bento.play .av.a2 { animation-delay: .4s } .bento.play .av.a3 { animation-delay: .8s }
@keyframes avB { 0%, 100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(0,-5px,0); } }
.ref-chip { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--ok);
  padding: 6px 12px; border-radius: 999px; background: rgba(127,209,163,.1); box-shadow: inset 0 0 0 1px rgba(127,209,163,.3); }

/* поддержка */
.bx-sup .bx-vis { flex: 0 0 auto; min-height: 0; margin: 0; }
.bx-sup .bx-txt { flex: 1; }
.typing { display: flex; align-items: center; gap: 12px; }
.sup-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; color: #fff; background: linear-gradient(160deg, #E04452, #B12331); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.bubble { display: inline-flex; gap: 5px; padding: 12px 14px; border-radius: 16px 16px 16px 5px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px var(--line); }
.bubble i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); }
.bento.play .bubble i { animation: typing 1.2s ease-in-out infinite; } .bubble i:nth-child(2) { animation-delay: .15s !important; } .bubble i:nth-child(3) { animation-delay: .3s !important; }
@keyframes typing { 0%, 60%, 100% { transform: translate3d(0,0,0); opacity: .5; } 30% { transform: translate3d(0,-4px,0); opacity: 1; } }

@media (max-width: 900px) {
  /* телефон: листалка вместо простыни */
  .bento { display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; margin: 0 calc(var(--gut) * -1); padding: 4px var(--gut) 10px;
    scrollbar-width: none; overscroll-behavior-x: contain; }
  .bento::-webkit-scrollbar { display: none; }
  .bx, .bx-net, .bx-sup { flex: 0 0 82%; min-height: 330px; scroll-snap-align: center; grid-column: auto; flex-direction: column; align-items: stretch; gap: 0; padding: 22px; }
  .bx.reveal[data-a] { transform: none !important; }
  .bx-sup .bx-vis { flex: 1; min-height: 150px; margin-bottom: 18px; }
  .bx-sup .btn { margin-top: 16px; align-self: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .bento * { animation: none !important; } .msg { opacity: 1; transform: none; } }

/* Схема сети с флагами */
.netwrap { position: relative; width: 100%; max-width: 460px; aspect-ratio: 320 / 170; }
.netwrap .net { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.net-flags { position: absolute; inset: 0; }
.nf { position: absolute; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; overflow: hidden; will-change: transform;
  box-shadow: 0 0 0 1.5px rgba(242,239,234,.85), 0 6px 14px -4px rgba(0,0,0,.9); }
.nf img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.35); }
.nf::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 300%; pointer-events: none;
  background: linear-gradient(110deg, transparent 38%, rgba(255,255,255,.6) 47%, rgba(255,255,255,0) 56%); transform: translate3d(-66%,0,0); }
.bento.play .nf { animation: nfP 3.2s ease-in-out infinite; animation-delay: var(--d); }
.bento.play .nf::after { animation: flagSheen 3.6s ease-in-out infinite; animation-delay: var(--d); }
@keyframes nfP { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.16); } }
@media (max-width: 900px) { .nf { width: 20px; height: 20px; margin: -10px 0 0 -10px; } }

@media (max-width: 900px) { .bx-net .bx-vis { margin-bottom: 44px; } .net-count { bottom: -34px; } }

/* ═════════ Протоколы: мини-сцены ═════════ */
.bx-vis.pv { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 12px; }
.stage { position: relative; height: 92px; border-radius: 18px; background: rgba(0,0,0,.28); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; container-type: inline-size; }
.end { position: absolute; top: 50%; width: 14px; height: 14px; margin-top: -7px; z-index: 3; }
.end.l { left: 12px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px rgba(242,239,234,.08); }
.end.r { right: 12px; border-radius: 4px; background: var(--red); box-shadow: 0 0 0 4px rgba(208,49,63,.15); }
.scene { position: absolute; inset: 0; opacity: 0; transition: opacity .5s var(--ease); }
.scene.on { opacity: 1; }
.scene .track { position: absolute; left: 26px; right: 26px; top: 50%; height: 1px; background: repeating-linear-gradient(90deg, rgba(242,239,234,.22) 0 4px, transparent 4px 9px); }
.pcap { font-size: 13px; color: var(--ink-2); min-height: 18px; }
.protos { flex-direction: row !important; flex-wrap: wrap; gap: 4px !important; }
.protos span[data-p] { cursor: pointer; height: 30px !important; padding: 0 11px !important; font-size: 13px !important; }
.pthumb { height: 30px !important; }

/* Reality: пакет «data» проходит через маску и выходит как обычный HTTPS */
.s0 .mask { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 12px;
  border: 1px dashed rgba(255,90,102,.55); background: rgba(208,49,63,.06); }
.s0 .pk { position: absolute; left: 26px; top: 50%; height: 24px; margin-top: -12px; }
.s0 .pk b { position: absolute; left: 0; top: 0; height: 24px; display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border-radius: 7px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.s0 .pk .a { background: var(--red); color: #fff; }
.s0 .pk .b { background: #F2EFEA; color: #0A0909; opacity: 0; }
.s0 .pk .b svg { width: 11px; height: 11px; }
.bento.play .s0.on .pk { animation: pkMove 2.8s cubic-bezier(.45,.05,.55,.95) infinite; }
.bento.play .s0.on .pk .a { animation: pkA 2.8s linear infinite; }
.bento.play .s0.on .pk .b { animation: pkB 2.8s linear infinite; }
.bento.play .s0.on .mask { animation: maskP 2.8s ease-in-out infinite; }
@keyframes pkMove { 0% { transform: translate3d(0,0,0); } 100% { transform: translate3d(calc(100cqw - 52px - 66px), 0, 0); } }
@keyframes pkA { 0%, 44% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes pkB { 0%, 46% { opacity: 0; transform: scale(.8); } 54%, 100% { opacity: 1; transform: none; } }
@keyframes maskP { 0%, 38%, 62%, 100% { transform: scale(1); border-color: rgba(255,90,102,.55); } 50% { transform: scale(1.12); border-color: #FF5A66; } }

/* XHTTP: поток дробится на HTTP-запросы по трём дорожкам */
.s1 .lane { position: absolute; left: 26px; right: 26px; height: 1px; background: rgba(242,239,234,.12); }
.s1 .l1 { top: 28%; } .s1 .l2 { top: 50%; } .s1 .l3 { top: 72%; }
.s1 .rq { position: absolute; left: 26px; height: 18px; margin-top: -9px; padding: 0 6px; border-radius: 5px; font-size: 9.5px; font-weight: 700; letter-spacing: .02em;
  display: inline-flex; align-items: center; color: #0A0909; background: #F2EFEA; opacity: 0; }
.s1 .q1, .s1 .q4 { top: 28%; } .s1 .q2, .s1 .q5 { top: 50%; } .s1 .q3, .s1 .q6 { top: 72%; }
.s1 .q2, .s1 .q5 { background: rgba(255,90,102,.9); color: #fff; }
.bento.play .s1.on .rq { animation: rqMove 2.4s cubic-bezier(.3,.1,.3,1) infinite; }
.s1 .q2 { animation-delay: .25s !important } .s1 .q3 { animation-delay: .5s !important } .s1 .q4 { animation-delay: 1.2s !important } .s1 .q5 { animation-delay: 1.45s !important } .s1 .q6 { animation-delay: 1.7s !important }
@keyframes rqMove { 0% { opacity: 0; transform: translate3d(0,0,0) scale(.8); } 12% { opacity: 1; transform: translate3d(12px,0,0) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate3d(calc(100cqw - 52px - 46px),0,0); } }

/* gRPC: несколько потоков внутри одного соединения */
.s2 .tube { position: absolute; left: 26px; right: 26px; top: 50%; height: 30px; margin-top: -15px; border-radius: 15px; overflow: hidden;
  background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255,255,255,.08); }
.s2 .st { position: absolute; left: 0; width: 200%; height: 3px; border-radius: 3px; }
.s2 .st.a { top: 7px; background: repeating-linear-gradient(90deg, #F2EFEA 0 18px, transparent 18px 40px); }
.s2 .st.b { top: 13.5px; background: repeating-linear-gradient(90deg, #FF5A66 0 26px, transparent 26px 48px); }
.s2 .st.c { top: 20px; background: repeating-linear-gradient(90deg, rgba(242,239,234,.5) 0 12px, transparent 12px 30px); }
.bento.play .s2.on .st.a { animation: stream 1.6s linear infinite; }
.bento.play .s2.on .st.b { animation: stream 1.1s linear infinite; }
.bento.play .s2.on .st.c { animation: stream 2.1s linear infinite; }
@keyframes stream { from { transform: translate3d(-50%,0,0); } to { transform: translate3d(0,0,0); } }

/* Hysteria2: ускорение по UDP + стрелка спидометра */
.s3 .bolt { position: absolute; left: 26px; height: 2px; width: 34px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255,90,102,.4) 40%, #FF5A66 85%, #fff); }
.s3 .b1 { top: 36%; } .s3 .b2 { top: 50%; } .s3 .b3 { top: 64%; } .s3 .b4 { top: 44%; }
.bento.play .s3.on .bolt { animation: bolt 1.2s cubic-bezier(.7,0,.9,.6) infinite; }
.s3 .b2 { animation-delay: .3s !important } .s3 .b3 { animation-delay: .6s !important } .s3 .b4 { animation-delay: .9s !important }
@keyframes bolt { 0% { opacity: 0; transform: translate3d(0,0,0) scaleX(.4); } 15% { opacity: 1; } 100% { opacity: 1; transform: translate3d(calc(100cqw - 52px - 34px),0,0) scaleX(1.6); } }
.s3 .gauge { position: absolute; left: 50%; top: 10px; width: 46px; height: 23px; margin-left: -23px; border-radius: 46px 46px 0 0; overflow: hidden;
  border: 1.5px solid rgba(242,239,234,.25); border-bottom: 0; }
.s3 .needle { position: absolute; left: 50%; bottom: -1px; width: 2px; height: 19px; margin-left: -1px; border-radius: 2px; background: #FF5A66; transform-origin: 50% 100%; transform: rotate(-70deg); }
.bento.play .s3.on .needle { animation: needle 2.4s cubic-bezier(.4,0,.2,1) infinite; }
@keyframes needle { 0% { transform: rotate(-70deg); } 55%, 80% { transform: rotate(62deg); } 100% { transform: rotate(-70deg); } }
.s3 .udp { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--ink-3); }
.pcap { min-height: 2.9em; line-height: 1.45; }

/* Полоса протоколов на первом экране убрана */
.hero { padding-bottom: 72px; }
@media (max-width: 900px) { .hero { padding-bottom: 56px; } }

/* ───────── Иконки под номерами шагов: глянцевые, внахлёст ───────── */
.step-side { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.step-ic { display: flex; padding-left: 2px; }
.step-ic .si { position: relative; width: 34px; height: 34px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: #111; isolation: isolate;
  box-shadow: 0 0 0 2px #0E0D0C, inset 0 0 0 1px rgba(255,255,255,.16), 0 10px 20px -8px rgba(0,0,0,.9); transform: rotate(-6deg); transition: transform .5s var(--ease); }
.step-ic .si + .si { margin-left: -11px; transform: rotate(5deg) translateY(3px); z-index: 1; }
.step-ic .si img { width: 100%; height: 100%; object-fit: cover; display: block; }
.step-ic .si-w { background: linear-gradient(160deg, #fff, #ECE7E0); }
.step-ic .si-w img { width: 62%; height: 70%; object-fit: contain; }
.step-ic .si::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.34) 0%, rgba(255,255,255,.08) 44%, rgba(255,255,255,0) 52%, rgba(0,0,0,.14) 100%); }
.step:hover .step-ic .si, .step.active .step-ic .si { transform: rotate(-3deg) translateX(-1px); }
.step:hover .step-ic .si + .si, .step.active .step-ic .si + .si { transform: rotate(3deg) translate(2px, 1px); }
.step:not(.active) .step-ic { opacity: .7; }
@media (prefers-reduced-motion: reduce) { .step-ic .si { transition: none; } }
.step-ic .si-g { color: #F3EEE7; background: linear-gradient(160deg, #34312E, #161514); }
.step-ic .si-g svg { width: 58%; height: 58%; display: block; position: relative; z-index: 1; }
.step-ic .si-red { color: #fff; background: linear-gradient(160deg, #FF6B75, #C8323E); }
.step-ic .si-on { color: #0B1F14; background: linear-gradient(160deg, #B8F5CF, #4FCB84); }

/* ───────── Отзывы: сводка рейтинга и подпись с аватаром ───────── */
#reviews .sec-head.row { align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.rev-score { display: flex; align-items: center; gap: 16px; padding: 14px 22px 14px 18px; border-radius: 22px; margin-left: auto; }
.rev-avg { font-size: 44px; font-weight: 500; letter-spacing: -.04em; line-height: 1; position: relative; z-index: 2;
  background: linear-gradient(180deg, #FFFFFF 0%, #F3EEE7 45%, #B9B0A4 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rev-sc-r { display: flex; flex-direction: column; gap: 6px; position: relative; z-index: 2; }
.rev-big { position: relative; display: inline-block; line-height: 0; }
.rev-big svg { width: 18px; height: 18px; margin-right: 3px; }
.rev-big-bg { color: var(--ink-4); display: inline-flex; }
.rev-big-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; display: inline-flex; color: #FFD27A; filter: drop-shadow(0 0 6px rgba(255,190,90,.35)); width: 100%; }
.rev-big-fill svg { flex: 0 0 auto; }
.rev-sc-l { font-size: 13px; color: var(--ink-3); }
.rev-foot { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.rev-av { position: relative; overflow: hidden; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 600; font-size: 16px; color: #0A0909;
  background: linear-gradient(150deg, var(--a), var(--b)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 8px 18px -8px rgba(0,0,0,.9); transform: rotate(-4deg); }
.rev-av::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.45) 0%, rgba(255,255,255,.08) 46%, rgba(255,255,255,0) 54%, rgba(0,0,0,.12) 100%); }
.rev-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rev-who .rev-name { color: var(--ink); font-size: 14px; font-weight: 500; }
.rev-date { font-size: 12.5px; color: var(--ink-3); }
.rev:hover .rev-av { transform: rotate(0deg) scale(1.04); transition: transform .5s cubic-bezier(.16,1.12,.3,1); }
@media (max-width: 600px) { .rev-score { margin-left: 0; width: 100%; } .rev-avg { font-size: 38px; } }
@media (max-width: 600px) {
  #reviews .sec-head.row { flex-direction: column; align-items: stretch; }
  #reviews .rev-nav { display: none; }
}
.rev-big { width: 102px; height: 18px; overflow: hidden; }
.rev-big svg { margin-right: 0; }
.rev-big-bg, .rev-big-fill { gap: 3px; width: 102px; }
.rev-big-fill { width: 100%; }
.rev-big { overflow: visible; }

/* ───────── Подарок: глянцевая 3D-карта ───────── */
.gift-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.gift-copy h2 { margin-bottom: 22px; }
.gift-desc { color: var(--ink-2); font-size: 17px; max-width: 470px; }
.gift-pts { list-style: none; margin: 26px 0 34px; padding: 0; display: grid; gap: 12px; }
.gift-pts li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-2); }
.gift-pts i { width: 8px; height: 8px; border-radius: 3px; flex: 0 0 auto; background: linear-gradient(150deg, #FF8F9A, #C8323E); box-shadow: 0 0 10px rgba(255,90,102,.45); transform: rotate(45deg); }
.gift-stage { position: relative; display: grid; place-items: center; min-height: 380px; perspective: 1100px; touch-action: pan-y; }
.gift-glow { position: absolute; width: 70%; height: 46%; bottom: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,90,102,.28), rgba(255,90,102,0)); filter: blur(30px); z-index: 0; pointer-events: none; }
.gift-card { --rx: -6deg; --ry: 14deg; --mx: 50%; --my: 50%; position: relative; z-index: 1; width: min(400px, 86vw); aspect-ratio: 1.586; transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); will-change: transform; }
.gc-face { position: absolute; inset: 0; border-radius: 26px; overflow: hidden; padding: 24px 26px; display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255,255,255,.10), rgba(255,255,255,0) 55%),
    linear-gradient(145deg, #2A2624 0%, #151312 46%, #0D0C0B 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), inset 0 1px 0 rgba(255,255,255,.28), 0 40px 80px -30px rgba(0,0,0,.95), 0 18px 40px -20px rgba(200,50,62,.35); }
.gc-face::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55; mix-blend-mode: screen;
  background: linear-gradient(115deg, rgba(255,143,154,0) 20%, rgba(255,143,154,.20) 38%, rgba(255,241,207,.22) 50%, rgba(201,241,228,.18) 60%, rgba(255,208,214,0) 78%);
  background-size: 220% 220%; background-position: var(--mx) var(--my); }
.gc-sheen { position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: radial-gradient(60% 50% at var(--mx) var(--my), rgba(255,255,255,.22), rgba(255,255,255,0) 60%); }
.gc-ribbon { position: absolute; top: -20%; bottom: -20%; right: 7%; width: 30px; transform: rotate(18deg); z-index: 1;
  background: linear-gradient(90deg, #8E1F2A, #E2414E 35%, #FF8F9A 50%, #E2414E 65%, #8E1F2A); box-shadow: 0 0 24px rgba(226,65,78,.35); opacity: .92; }
.gc-top, .gc-mid, .gc-bot { position: relative; z-index: 2; }
.gc-top { display: flex; justify-content: space-between; align-items: center; }
.gc-logo { border-radius: 11px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 6px 14px -6px rgba(0,0,0,.9); }
.gc-tag { font-size: 11.5px; letter-spacing: .14em; color: var(--ink-3); }
.gc-mid { display: flex; flex-direction: column; gap: 6px; }
.gc-brand { font-size: 34px; font-weight: 600; letter-spacing: -.04em; background: linear-gradient(180deg, #FFFFFF, #E6DFD5 55%, #A89F93); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gc-brand .x { background: linear-gradient(180deg, #FF8F9A, #C8323E); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gc-sub { font-size: 14px; color: var(--ink-2); }
.gc-bot { display: flex; gap: 8px; font-size: 13px; color: var(--ink-3); letter-spacing: .06em; }
@media (max-width: 900px) { .gift-grid { grid-template-columns: 1fr; } .gift-stage { min-height: 300px; order: -1; } }
@media (prefers-reduced-motion: reduce) { .gift-card { --rx: -4deg; --ry: 10deg; } }

/* ───────── Mini App: телефон с настоящими экранами ───────── */
.ash { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.ash-copy .sec-head { margin-bottom: 36px; }
.ash-desc { color: var(--ink-2); font-size: 17px; max-width: 460px; margin-top: 22px; }
.ash-rows { display: grid; gap: 10px; margin-bottom: 30px; }
.ash-row { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 10px; text-align: left; padding: 18px 20px 20px; border-radius: 22px; border: 1px solid var(--line); background: rgba(255,255,255,.015); color: inherit; font: inherit; cursor: pointer; overflow: hidden;
  transition: background .4s, border-color .4s, transform .6s cubic-bezier(.16,1.12,.3,1); }
.ash-row:hover { background: rgba(255,255,255,.03); }
.ash-row.active { background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02)); border-color: rgba(255,255,255,.14); transform: translateX(6px); }
.ash-n { font-size: 13px; color: var(--ink-3); padding-top: 3px; }
.ash-row.active .ash-n { color: var(--red-ink); }
.ash-t { display: flex; flex-direction: column; gap: 4px; }
.ash-t b { font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.ash-t span { font-size: 14.5px; color: var(--ink-3); line-height: 1.5; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .4s; }
.ash-row.active .ash-t span { max-height: 90px; opacity: 1; }
.ash-bar { position: absolute; left: 20px; right: 20px; bottom: 10px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.06); opacity: 0; transition: opacity .3s; }
.ash-bar i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); border-radius: 2px; background: linear-gradient(90deg, #C8323E, #FF8F9A); }
.ash-row.active .ash-bar { opacity: 1; }
.ash-row.run .ash-bar i { animation: ashBar var(--dur, 4200ms) linear forwards; }
@keyframes ashBar { to { transform: scaleX(1); } }
.ash-stage { position: relative; display: grid; place-items: center; min-height: 640px; }
.ash-glow { position: absolute; width: 60%; height: 50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,90,102,.22), rgba(255,90,102,0)); filter: blur(40px); pointer-events: none; }
.aphone { position: relative; z-index: 1; width: 300px; height: 620px; border-radius: 52px; padding: 10px; transform: rotate(-3deg);
  background: linear-gradient(150deg, #3a3735, #141312 40%, #22201f);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), inset 0 0 0 4px #0b0b0b, 0 50px 100px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.6);
  animation: aphoneFloat 7s ease-in-out infinite; }
@keyframes aphoneFloat { 0%, 100% { transform: rotate(-3deg) translate3d(0, 0, 0); } 50% { transform: rotate(-1.5deg) translate3d(0, -10px, 0); } }
.aphone-screen { position: relative; height: 100%; border-radius: 43px; overflow: hidden; background: #0A0909; }
.ash-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: translate3d(0, 6%, 0) scale(.96);
  transition: opacity .55s var(--ease), transform .9s cubic-bezier(.16,1.12,.3,1); }
.ash-img.prev { transform: translate3d(0, -4%, 0) scale(.98); }
.ash-img.active { opacity: 1; transform: none; z-index: 1; }
.aphone-glare { position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background: linear-gradient(125deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 32%, rgba(255,255,255,0) 70%, rgba(255,255,255,.04) 100%); }
@media (max-width: 640px) {
  .ash { grid-template-columns: 1fr; }
  .ash-stage { min-height: 500px; order: -1; }
  .aphone { width: 230px; height: 476px; border-radius: 42px; padding: 8px; }
  .aphone-screen { border-radius: 35px; }
  .ash-row.active { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .aphone { animation: none; } .ash-img { transition: opacity .3s; transform: none; } }

/* ───────── Тарифы: глянцевые иконки устройств ───────── */
.seg-devs { display: flex; justify-content: center; align-items: center; min-height: 40px; margin: 18px 0 2px; }
.seg-devs .dv { position: relative; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; overflow: hidden; color: #F3EEE7; font-style: normal;
  background: linear-gradient(160deg, #36322F, #161514); margin-left: -9px;
  box-shadow: 0 0 0 2px #0A0909, inset 0 0 0 1px rgba(255,255,255,.16), 0 10px 20px -8px rgba(0,0,0,.9);
  animation: dvIn .7s cubic-bezier(.16,1.3,.3,1) both; animation-delay: var(--d, 0ms); }
.seg-devs .dv:first-child { margin-left: 0; }
.seg-devs .dv:nth-child(odd) { transform: rotate(-5deg); }
.seg-devs .dv:nth-child(even) { transform: rotate(4deg) translateY(2px); }
.seg-devs .dv svg { width: 58%; height: 58%; position: relative; z-index: 1; }
.seg-devs .dv::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.30) 0%, rgba(255,255,255,.07) 44%, rgba(255,255,255,0) 52%, rgba(0,0,0,.14) 100%); }
.seg-devs .dv-phone { color: #fff; background: linear-gradient(160deg, #FF6B75, #C8323E); }
.seg-devs .dv-more { font-size: 12.5px; font-weight: 600; color: #0A0909; background: linear-gradient(160deg, #FFFFFF, #D9D2C8); }
@keyframes dvIn { from { opacity: 0; translate: 0 10px; scale: .6; } to { opacity: 1; translate: 0 0; scale: 1; } }
@media (prefers-reduced-motion: reduce) { .seg-devs .dv { animation: none; } }

/* ───────── Mini App на телефоне: переключатель прямо над экраном ───────── */
.ash-cap { display: none; }
@media (max-width: 640px) {
  .ash { display: flex; flex-direction: column; gap: 0; }
  .ash-copy { display: contents; }
  .ash-copy .sec-head { order: 1; margin-bottom: 26px; }
  .ash-rows { order: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0; padding: 5px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
  .ash-row { display: block; text-align: center; padding: 11px 6px 13px; border-radius: 999px; border: 0; background: transparent; }
  .ash-row.active { background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 8px 18px -10px rgba(0,0,0,.9); }
  .ash-n, .ash-t span { display: none; }
  .ash-t b { font-size: 15px; }
  .ash-bar { left: 22%; right: 22%; bottom: 5px; }
  .ash-cap { order: 3; display: block; min-height: 3em; margin: 16px 4px 4px; text-align: center; font-size: 14.5px; line-height: 1.5; color: var(--ink-3); }
  .ash-stage { order: 4; min-height: 0; padding: 18px 0 8px; }
  .ash-btn { order: 5; align-self: center; margin-top: 26px; }
}

/* Средние экраны (окно браузера на ПК, планшет): телефон сбоку от текста */
@media (min-width: 641px) and (max-width: 1100px) {
  .ash { grid-template-columns: minmax(0, 1fr) auto; gap: 40px; }
  .ash-stage { min-height: 0; }
  .aphone { width: 240px; height: 496px; border-radius: 42px; padding: 8px; }
  .aphone-screen { border-radius: 35px; }
  .ash-glow { width: 120%; }
}
@media (min-width: 1101px) {
  .ash { grid-template-columns: minmax(0, 560px) auto; justify-content: center; gap: clamp(64px, 7vw, 120px); }
}

/* ───────── Фон «Потоки»: продолжение линий трафика из первого экрана ───────── */
.bgflow { position: fixed; left: -4%; right: -8%; top: 0; height: 135vh; z-index: -1; pointer-events: none; opacity: 0;
  background: url(/assets/bg-flow.svg) center / cover no-repeat; will-change: transform, opacity; transition: opacity .2s linear;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%); }
@media (max-width: 640px) { .bgflow { left: -30%; right: -30%; } }

/* Подписи разделов без номеров: короткая красная черта вместо цифр */
.sec-head .eyebrow::before, .gift-copy > .eyebrow::before { content: ""; width: 20px; height: 1.5px; border-radius: 2px; background: linear-gradient(90deg, #C8323E, #FF8F9A); box-shadow: 0 0 8px rgba(255,90,102,.35); }
/* Экраны mini-app: без лишнего пересэмплирования */
.ash-img.active { transform: none; will-change: auto; }
.aphone-screen { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
