/* /lab/v3/ — «ВАУ»-version of the new home page (README "Lab: home v3"), grown from /lab/v2/. Dark navy only, phone first.
   Components ported from 21st.dev finds (MIT; CREDITS.md): Magic UI — bento grid, magic card, border beam, marquee, blur fade,
   text animate, progressive blur, shiny button; motion-primitives — spotlight, magnetic, tilt. Nothing inline (strict CSP):
   JS only sets classes, CSS variables and transforms through the CSSOM. */

@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #070D19;
  --bg-2: #0B1220;
  --surface: rgba(148, 178, 230, 0.045);
  --surface-2: rgba(148, 178, 230, 0.08);
  --line: rgba(148, 178, 230, 0.14);
  --line-2: rgba(148, 178, 230, 0.26);
  --text: #E8EEF8;
  --muted: #A6B3C9;        /* 8.6:1 on --bg, 7.9:1 on the cards */
  --accent: #6FB0F2;       /* links / eyebrows: 8.1:1 on --bg */
  --brand-a: #3D93EC;
  --brand-b: #1B5FC4;
  --grad: linear-gradient(135deg, #8CC3FA 0%, #4F9BEA 45%, #3D7FE0 100%);
  --btn: linear-gradient(135deg, #2A6FD2, #1F5FC5);   /* white text 4.9–6.0:1, as on the site */
  --radius: 22px;
  --radius-sm: 14px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-mid: 280ms;
  --gutter: max(16px, env(safe-area-inset-left));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; background: var(--bg); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid #9CCBFF; outline-offset: 3px; border-radius: 8px; }
.v3-ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.v3-wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.v3-narrow { max-width: 860px; }

.v3-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 12px 16px; border-radius: 12px; background: #fff; color: #0B1220; font-weight: 700; text-decoration: none; }
.v3-skip:focus { top: 12px; }

/* ---- scroll progress (storytelling pattern: show where you are) ---- */
.v3-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.v3-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-a), #8CC3FA); transform: scaleX(0); transform-origin: 0 50%; }

/* ---- header ---- */
.v3-top { position: sticky; top: 0; z-index: 50; padding-top: env(safe-area-inset-top); background: rgba(7, 13, 25, 0.55);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid transparent;
  transition: background-color var(--t-mid), border-color var(--t-mid); }
.v3-top.is-scrolled { background: rgba(7, 13, 25, 0.86); border-bottom-color: var(--line); }
.v3-top__in { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.v3-top__logo { display: inline-flex; align-items: center; min-height: 44px; flex: none; border-radius: 10px; }
.v3-top__logo img { width: 124px; height: auto; }
/* the «three stripes» menu (phone and computer): a <details> — opens and closes without the script too; v3.js adds Escape, closing on
   a link and on a click outside. The page behind gets a dark veil (the summary's own ::before, so a tap on it closes the menu). */
.v3-top .v3-top__cta { margin-left: auto; flex: none; }
.v3-top__cta-i { display: none; }
/* narrow phones (< 370 px): the call shrinks to a round icon button (its name stays for screen readers) */
@media (max-width: 369px) {
  .v3-top .v3-top__cta { width: 44px; padding: 0; }
  .v3-top__cta-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .v3-top__cta-i { display: block; }
}
.v3-menu { margin-left: auto; }
.v3-top__cta + .v3-menu { margin-left: 10px; }
@media (min-width: 960px) { .v3-top__logo img { width: 148px; } }
.v3-menu__btn { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; cursor: pointer; list-style: none; color: #fff;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.26); -webkit-tap-highlight-color: transparent;
  transition: background-color var(--t-mid), border-color var(--t-mid); }
.v3-menu__btn::-webkit-details-marker { display: none; }
.v3-menu__btn:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.45); }
.v3-menu__btn .v3-ic { width: 22px; height: 22px; }
.v3-menu__close { display: none; }
.v3-menu[open] .v3-menu__open { display: none; }
.v3-menu[open] .v3-menu__close { display: block; }
.v3-menu[open] > .v3-menu__btn { background: rgba(255, 255, 255, 0.16); }
.v3-menu[open] > .v3-menu__btn::before { content: ""; position: fixed; inset: 0; z-index: -1; background: rgba(3, 7, 15, 0.55); cursor: default; }
.v3-menu__panel { position: fixed; z-index: 2; top: calc(64px + env(safe-area-inset-top) + 6px); left: 8px; right: 8px; max-height: calc(100svh - 64px - env(safe-area-inset-top) - 14px);
  overflow-y: auto; overscroll-behavior: contain; padding: 10px; border-radius: 22px; background: rgba(9, 16, 30, 0.95); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.85); }
@media (min-width: 560px) { .v3-menu__panel { left: auto; right: max(var(--gutter), calc((100vw - 1200px) / 2 + 16px)); width: min(580px, calc(100vw - 32px)); padding: 14px; } }
.v3-menu__list { display: grid; gap: 2px; }
@media (min-width: 560px) { .v3-menu__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; } }
.v3-menu__list a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; border-radius: 14px; color: #DCE6F5; text-decoration: none; font-weight: 650; line-height: 1.25;
  transition: background-color var(--t-fast), color var(--t-fast); }
.v3-menu__list a .v3-ic { color: var(--accent); }
.v3-menu__list a:hover { background: var(--surface-2); color: #fff; }
.v3-menu__list a[aria-current] { background: rgba(79, 155, 234, 0.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(111, 176, 242, 0.35); }
.v3-menu__cta { width: 100%; margin-top: 10px; }
html.v3-menu-open { overflow: hidden; }   /* the page under the open menu stays put (v3.js sets the class) */
@media (orientation: landscape) and (max-height: 500px) { .v3-menu__list a { min-height: 44px; padding-block: 6px; } }
@media (prefers-reduced-motion: no-preference) { .v3-menu[open] .v3-menu__panel { animation: v3-menu-in 0.3s var(--ease-out); } }
@keyframes v3-menu-in { from { opacity: 0; transform: translateY(-8px) scale(0.985); } }

/* ---- buttons ---- */
.v3-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 700 1rem/1.2 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; border: 1px solid transparent;
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-mid), background-color var(--t-mid), border-color var(--t-mid); }
.v3-btn--main { background: var(--btn); color: #fff; box-shadow: 0 10px 30px -10px rgba(61, 147, 236, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.v3-btn--main:hover { box-shadow: 0 14px 38px -10px rgba(61, 147, 236, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.v3-btn--main .v3-ic { transition: transform var(--t-mid) var(--ease-out); }
.v3-btn--main:hover .v3-ic { transform: translateX(3px); }
.v3-btn--ghost { color: var(--text); background: var(--surface); border-color: var(--line-2); }
.v3-btn--ghost:hover { background: var(--surface-2); border-color: rgba(148, 178, 230, 0.4); }
.v3-btn--sm { min-height: 44px; padding: 0 16px; font-size: 0.875rem; }
.v3-btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.v3-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.v3-hero .v3-actions .v3-btn { flex: 1 1 auto; }
@media (min-width: 560px) { .v3-hero .v3-actions .v3-btn { flex: 0 0 auto; } }
.v3-actions--center { justify-content: center; }
.v3-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 700; text-decoration: none; }
.v3-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---- type ---- */
.v3-h1 { font-size: clamp(2.125rem, 1.25rem + 4.1vw, 4.125rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; text-wrap: balance; }
.v3-h2 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.875rem); line-height: 1.1; letter-spacing: -0.028em; font-weight: 800; text-wrap: balance; }
.v3-h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.012em; font-weight: 750; }
.v3-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.v3-lead { font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem); line-height: 1.6; color: var(--muted); max-width: 36em; }
.v3-eyebrow { color: var(--accent); font-weight: 750; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; }
.v3-sub { color: var(--muted); font-size: 1.0625rem; max-width: 40em; }
.v3-head { display: grid; gap: 14px; justify-items: center; text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }
.v3-head .v3-sub { margin-inline: auto; }
.v3-head--left { justify-items: start; text-align: left; margin-bottom: 28px; }
.v3-head--left .v3-sub { margin-inline: 0; }

/* ---- hero: a cinematic first screen — the photo pushes in slowly, a beam of light drifts, the heading rises out of a blur ---- */
.v3-hero { position: relative; isolation: isolate; min-height: 100svh; display: grid; align-items: end; overflow: clip;
  padding: calc(88px + env(safe-area-inset-top)) 0 clamp(72px, 12svh, 128px); }
.v3-hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: #0b0f17; }
.v3-photo, .v3-photo img { display: block; width: 100%; height: 100%; }
.v3-photo img { object-fit: cover; }
.v3-hero__media .v3-photo { transform-origin: 62% 40%; }
@media (prefers-reduced-motion: no-preference) {
  .v3-hero__media .v3-photo { animation: v3-push 24s cubic-bezier(0.16, 0.6, 0.3, 1) both; }
}
@keyframes v3-push { from { transform: scale(1.02); } to { transform: scale(1.16) translate3d(-1.5%, 1%, 0); } }
/* the lamp's light: a soft warm beam that breathes, laid over the photo with «screen» (never darkens it) */
.v3-hero__beam { position: absolute; inset: -20% -10% 20% 25%; pointer-events: none; mix-blend-mode: screen; opacity: 0.55;
  background: conic-gradient(from 200deg at 78% 8%, transparent 0deg, rgba(255, 196, 128, 0.0) 6deg, rgba(255, 200, 140, 0.32) 16deg, rgba(255, 210, 160, 0.06) 30deg, transparent 42deg);
  filter: blur(18px); }
@media (prefers-reduced-motion: no-preference) { .v3-hero__beam { animation: v3-breathe 9s ease-in-out infinite alternate; } }
@keyframes v3-breathe { from { opacity: 0.35; transform: rotate(-1.5deg); } to { opacity: 0.7; transform: rotate(1.5deg); } }
/* legibility: dark from the bottom (phones: the text sits low) and from the left (computers) */
.v3-hero__shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 13, 25, 0.55) 0%, rgba(7, 13, 25, 0.08) 22%, rgba(7, 13, 25, 0.5) 46%, rgba(7, 13, 25, 0.9) 66%, #070D19 100%); }
@media (orientation: landscape) and (min-width: 760px) {
  .v3-hero__shade { background: linear-gradient(90deg, rgba(7, 13, 25, 0.92) 0%, rgba(7, 13, 25, 0.72) 32%, rgba(7, 13, 25, 0.12) 62%, rgba(7, 13, 25, 0.05) 100%),
    linear-gradient(180deg, rgba(7, 13, 25, 0.5) 0%, transparent 22%, transparent 70%, #070D19 100%); }
}
/* light after the pointer (motion-primitives «Spotlight», ported): a soft circle that springs after the pointer, computer only */
.v3-spot { position: absolute; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; opacity: 0; z-index: 0;
  background: radial-gradient(circle at center, rgba(160, 205, 255, 0.22), rgba(110, 170, 240, 0.08) 45%, transparent 70%); mix-blend-mode: screen;
  transition: opacity 0.4s; will-change: transform; }
.v3-spot.is-on { opacity: 1; }
/* the bottom edge melts into the page (Magic UI «Progressive Blur», 4 layers instead of 8; computers only — phones get the gradient) */
.v3-pblur { display: none; }
@media (min-width: 760px) and (hover: hover) {
  .v3-pblur { display: block; position: absolute; inset: auto 0 0; height: 22%; z-index: -1; pointer-events: none; }
  .v3-pblur i { position: absolute; inset: 0; }
  .v3-pblur i:nth-child(1) { backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px); -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 50%, transparent 75%); mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 50%, transparent 75%); }
  .v3-pblur i:nth-child(2) { backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); -webkit-mask-image: linear-gradient(to bottom, transparent 25%, #000 50%, #000 75%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 25%, #000 50%, #000 75%, transparent 100%); }
  .v3-pblur i:nth-child(3) { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); -webkit-mask-image: linear-gradient(to bottom, transparent 50%, #000 75%, #000 100%); mask-image: linear-gradient(to bottom, transparent 50%, #000 75%, #000 100%); }
  .v3-pblur i:nth-child(4) { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); -webkit-mask-image: linear-gradient(to bottom, transparent 75%, #000 100%); mask-image: linear-gradient(to bottom, transparent 75%, #000 100%); }
}
.v3-hero__in { display: grid; gap: 18px; justify-items: start; }
.v3-hero .v3-h1 { font-size: clamp(2.375rem, min(1.1rem + 5.6vw, 8.6svh), 5.25rem); line-height: 1.02; max-width: 17ch; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45); }
.v3-hero .v3-lead { color: #C6D2E4; max-width: 34em; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6); }
.v3-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: rgba(7, 13, 25, 0.5); border: 1px solid var(--line-2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #DCE8F8; font-size: 0.875rem; font-weight: 650; }
.v3-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #5FD394; box-shadow: 0 0 0 0 rgba(95, 211, 148, 0.6); }
@media (prefers-reduced-motion: no-preference) { .v3-pill__dot { animation: v3-ping 2.4s var(--ease-out) infinite; } }
@keyframes v3-ping { 0% { box-shadow: 0 0 0 0 rgba(95, 211, 148, 0.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(95, 211, 148, 0); } }
.v3-proof { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.9375rem; }
.v3-hero .v3-proof { color: #C6D2E4; }
.v3-proof .v3-ic { color: #5FD394; }
.v3-proof--center { justify-content: center; }
.v3-hero .v3-actions { width: 100%; }

/* entrance: CSS only (no wait for scripts) */
@media (prefers-reduced-motion: no-preference) {
  .v3-in { animation: v3-rise 0.9s var(--ease-out) backwards; }
  .v3-in--1 { animation-delay: 0.1s; } .v3-in--2 { animation-delay: 0.45s; animation-name: v3-rise-soft; } .v3-in--3 { animation-delay: 0.9s; } .v3-in--4 { animation-delay: 1.05s; }
  /* the hero heading: word by word out of a blur (Magic UI «Text Animate», blurInUp) — CSS, so it never waits for a script */
  .v3-words--now .v3-w { animation: v3-word 0.9s var(--ease-out) backwards; }
}
@keyframes v3-rise { from { opacity: 0; transform: translateY(14px); } }
html.v3-entered .v3-in, html.v3-entered .v3-words--now .v3-w { animation: none; }
/* no opacity: the text is painted from the first frame (soft, then sharp) — so the first screen counts as shown at once (LCP) */
@keyframes v3-word { from { transform: translateY(0.3em); filter: blur(14px); } }
@keyframes v3-rise-soft { from { transform: translateY(14px); filter: blur(8px); } }
.v3-w { display: inline-block; }
.v3-words .v3-w:nth-child(1) { animation-delay: 0.15s; --d: 0ms; } .v3-words .v3-w:nth-child(2) { animation-delay: 0.23s; --d: 40ms; }
.v3-words .v3-w:nth-child(3) { animation-delay: 0.31s; --d: 80ms; } .v3-words .v3-w:nth-child(4) { animation-delay: 0.39s; --d: 120ms; }
.v3-words .v3-w:nth-child(5) { animation-delay: 0.47s; --d: 160ms; } .v3-words .v3-w:nth-child(6) { animation-delay: 0.55s; --d: 200ms; }
.v3-words .v3-w:nth-child(7) { animation-delay: 0.63s; --d: 240ms; } .v3-words .v3-w:nth-child(8) { animation-delay: 0.71s; --d: 280ms; }
.v3-words .v3-w:nth-child(9) { animation-delay: 0.79s; --d: 320ms; } .v3-words .v3-w:nth-child(n + 10) { animation-delay: 0.87s; --d: 360ms; }
/* section headings: the same word reveal when they come into view (v3.js adds .is-in); without the script they simply stand */
@media (prefers-reduced-motion: no-preference) {
  html.v3-js .v3-words:not(.v3-words--now) .v3-w { transition: opacity 0.7s var(--ease-out) var(--d), transform 0.7s var(--ease-out) var(--d), filter 0.7s var(--ease-out) var(--d); }
  html.v3-js .v3-words:not(.v3-words--now):not(.is-in) .v3-w { opacity: 0; transform: translateY(0.35em); filter: blur(10px); }
}

/* the play link under the first screen's buttons (as on the real home page) */
.v3-new { font-size: 0.9375rem; font-weight: 650; }
.v3-new a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #A9D0FA; text-decoration: underline; text-decoration-color: rgba(111, 176, 242, 0.45); text-underline-offset: 4px; }
.v3-new a:hover { color: #fff; text-decoration-color: currentColor; }

/* ---- the home page: one slide = one stop. Without the script the slides follow each other (each stays — sticky — while the next
   slides over it); v3.js turns the deck into a stage (html.v3-steps): one slide on screen, one gesture = one step ---- */
.v3-deck { position: relative; }
.v3-slide { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; background: #0b0f17; }
.v3-slide__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.v3-slide__media .v3-photo { transform-origin: 0 0; }
.v3-slide__shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 13, 25, 0.55) 0%, transparent 18%, transparent 52%, rgba(7, 13, 25, 0.85) 100%); }
.v3-slide__dim { position: absolute; inset: 0; z-index: 10; background: #050a14; opacity: 0; pointer-events: none; }
.v3-scene__glow { position: absolute; left: 0; top: 0; width: 60vmin; height: 60vmin; margin: -30vmin 0 0 -30vmin; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(150, 200, 255, 0.28), transparent); mix-blend-mode: screen; }
.v3-slide--hero { position: sticky; min-height: 0; padding-bottom: max(28px, 6svh, env(safe-area-inset-bottom)); }
.v3-slide--games .v3-slide__media .v3-photo { transform-origin: 62% 38%; }
@media (orientation: landscape) and (max-height: 500px) {
  .v3-slide--hero { padding-top: 72px; padding-bottom: 14px; }
  .v3-hero .v3-h1 { font-size: clamp(1.625rem, 0.6rem + 2.6vw, 2.125rem); max-width: 20ch; }
  .v3-hero__in { gap: 10px; }
  .v3-hero .v3-lead { font-size: 0.9375rem; line-height: 1.5; max-width: 44em; }
  .v3-hero .v3-actions .v3-btn { min-height: 44px; }
  .v3-hero .v3-proof, .v3-new { font-size: 0.875rem; }
  .v3-new a { min-height: 44px; margin-block: -4px; }
}
@media (orientation: portrait) and (max-height: 760px) {
  .v3-slide--hero { padding-top: 76px; padding-bottom: 14px; }
  .v3-hero__in { gap: 10px; }
  .v3-hero .v3-h1 { font-size: clamp(2rem, 1.1rem + 4.6vw, 2.75rem); }
  .v3-hero .v3-lead { font-size: 1rem; line-height: 1.5; }
}
/* the smallest phones: the eyebrow pill steps aside (the heading says the same), the rest gets a little smaller */
@media (orientation: portrait) and (max-height: 600px) {
  .v3-slide--hero { padding-top: 68px; }
  .v3-hero__in { gap: 8px; }
  .v3-hero .v3-h1 { font-size: 1.625rem; }
  .v3-hero .v3-lead { font-size: 0.8125rem; line-height: 1.4; }
  .v3-hero .v3-pill { display: none; }
  .v3-hero .v3-actions { gap: 8px; }
  .v3-hero .v3-actions .v3-btn { min-height: 44px; }
  .v3-hero .v3-proof, .v3-new { font-size: 0.8125rem; }
}
/* phones sideways: the heading (+ the two small lines) on the left, the words and the buttons on the right — the whole first screen fits */
@media (orientation: landscape) and (max-height: 500px) and (min-width: 560px) {
  .v3-hero__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-areas: "pill pill" "h1 lead" "h1 act" "proof act" "new act"; column-gap: 24px; row-gap: 8px; align-items: end; }
  .v3-hero__in > .v3-pill { grid-area: pill; }
  .v3-hero__in > .v3-h1 { grid-area: h1; }
  .v3-hero__in > .v3-lead { grid-area: lead; }
  .v3-hero__in > .v3-actions { grid-area: act; align-self: start; }
  .v3-hero__in > .v3-proof { grid-area: proof; }
  .v3-hero__in > .v3-new { grid-area: new; }
  .v3-hero .v3-lead { font-size: 0.875rem; }
  .v3-hero .v3-actions { gap: 8px; }
  .v3-hero .v3-actions .v3-btn { padding: 0 14px; font-size: 0.875rem; }
  .v3-hero__shade { background: linear-gradient(90deg, rgba(7, 13, 25, 0.9) 0%, rgba(7, 13, 25, 0.72) 55%, rgba(7, 13, 25, 0.55) 100%), linear-gradient(180deg, rgba(7, 13, 25, 0.5) 0%, transparent 30%); }
}
@media (orientation: landscape) and (max-height: 380px) {
  .v3-hero .v3-h1 { font-size: 1.625rem; }
  .v3-hero .v3-lead { font-size: 0.8125rem; line-height: 1.45; }
  .v3-hero .v3-pill { display: none; }
}
@media (orientation: landscape) and (max-height: 340px) { .v3-hero .v3-h1 { font-size: 1.5rem; } }
/* the «Игры» frame upright: the photo a little higher, so the robot is not behind the card */
@media (orientation: portrait) { .v3-slide--games .v3-slide__media { top: -16%; bottom: 16%; } }

/* the story: a glass card at the bottom (upright screens) / on the right (sideways); the whole text, never cut */
.v3-chap__card { position: absolute; left: var(--gutter); right: var(--gutter); bottom: max(16px, env(safe-area-inset-bottom)); max-width: 440px;
  padding: 20px 20px 14px; border-radius: 20px;
  background: rgba(9, 16, 30, 0.76); border: 1px solid rgba(148, 178, 230, 0.22); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7); }
.v3-chap__card .v3-h3 { font-size: clamp(1.3125rem, 1.1rem + 0.8vw, 1.625rem); margin: 10px 0 8px; }
.v3-chap__card > p:not(.v3-kind):not(.v3-chap__n) { color: #C3CFE2; font-size: 0.9875rem; }
.v3-chap__n { float: right; margin-left: 10px; font-weight: 650; font-size: 0.8125rem; line-height: 1.9; color: #A9B8CF; letter-spacing: 0.02em; }
.v3-chap__n > span { font-weight: 800; color: #DCE8F8; letter-spacing: 0.04em; }
.v3-chap__n > span > span { color: #7F90AC; }
.v3-chap__card .v3-link { margin-top: 4px; gap: 8px; }
.v3-chap__card .v3-link .v3-ic { width: 18px; height: 18px; transition: transform var(--t-mid) var(--ease-out); }
.v3-chap__card .v3-link:hover .v3-ic { transform: translateX(3px); }
.v3-kind .v3-ic { width: 16px; height: 16px; margin-right: 6px; }
.v3-chap__card > .v3-chap__note { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; font-size: 0.9375rem; color: #CDEFDB; }
.v3-chap__note .v3-ic { flex: none; margin-top: 2px; color: #6FE0A2; width: 18px; height: 18px; }
.v3-chap__card .v3-actions { margin: 14px 0 6px; gap: 10px; }
@media (orientation: landscape) and (min-width: 560px) {
  .v3-chap__card { left: auto; right: max(calc(var(--gutter) + 30px), calc((100vw - 1200px) / 2 + 16px)); bottom: max(10svh, 28px); width: min(440px, 46vw); }
  .v3-slide--games .v3-chap__card { right: auto; left: max(var(--gutter), calc((100vw - 1200px) / 2 + 16px)); }
  .v3-slide--games .v3-slide__shade { background: linear-gradient(90deg, rgba(7, 13, 25, 0.7) 0%, rgba(7, 13, 25, 0.2) 45%, transparent 70%), linear-gradient(180deg, rgba(7, 13, 25, 0.5) 0%, transparent 20%); }
}
@media (orientation: landscape) and (max-height: 500px) {
  .v3-chap__card { width: min(420px, 52vw); padding: 12px 16px 6px; bottom: 10px; }
  .v3-chap__card .v3-h3 { font-size: 1.125rem; margin: 6px 0 4px; }
  .v3-chap__card > p:not(.v3-kind):not(.v3-chap__n) { font-size: 0.875rem; line-height: 1.45; }
  .v3-chap__card > .v3-chap__note { margin-top: 6px; }
  .v3-chap__card .v3-actions { margin: 8px 0 4px; }
  .v3-chap__card .v3-link { min-height: 40px; }
  .v3-slide__shade { background: linear-gradient(90deg, transparent 40%, rgba(7, 13, 25, 0.9) 100%), linear-gradient(180deg, rgba(7, 13, 25, 0.55) 0%, transparent 25%); }
  .v3-slide--games .v3-slide__shade { background: linear-gradient(90deg, rgba(7, 13, 25, 0.9) 0%, transparent 60%), linear-gradient(180deg, rgba(7, 13, 25, 0.55) 0%, transparent 25%); }
}
@media (orientation: portrait) and (max-height: 700px) {
  .v3-chap__card { padding: 14px 16px 6px; }
  .v3-chap__card .v3-h3 { margin: 6px 0 4px; }
  .v3-chap__card > p:not(.v3-kind):not(.v3-chap__n) { font-size: 0.9375rem; line-height: 1.5; }
}

@media (orientation: landscape) and (max-height: 360px) {
  .v3-chap__card { width: min(460px, 62vw); }
  .v3-slide--games .v3-chap__card { width: min(480px, 74vw); }
  .v3-chap__card > p:not(.v3-kind):not(.v3-chap__n) { font-size: 0.8125rem; line-height: 1.4; }
  .v3-chap__card > .v3-chap__note { font-size: 0.8125rem; line-height: 1.4; }
  .v3-chap__card .v3-actions { margin: 6px 0 2px; }
}

/* the final call over the studio at dusk */
.v3-slide--final { display: grid; align-items: center; padding: calc(72px + env(safe-area-inset-top)) 0 max(16px, env(safe-area-inset-bottom)); }
.v3-final__bg { opacity: 0.42; }
.v3-final__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 120% at 50% 0%, rgba(30, 80, 160, 0.35), rgba(7, 13, 25, 0.9) 70%); }
.v3-slide--final .v3-cta { background: rgba(9, 16, 30, 0.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
@media (orientation: landscape) and (max-height: 500px) {
  .v3-slide--final { padding-top: 68px; }
  .v3-slide--final .v3-cta { gap: 8px; padding: 16px 20px; }
  .v3-slide--final .v3-h2 { font-size: 1.625rem; }
  .v3-slide--final .v3-sub { font-size: 0.9375rem; margin: 0; }
  .v3-slide--final .v3-btn--lg { min-height: 48px; }
}

/* the step dots (as /lab/story/): the current stop is a longer pill; hover / focus shows the stop's name */
.v3-dots { display: none; }
html.v3-steps .v3-dots { display: flex; flex-direction: column; align-items: center; position: absolute; z-index: 20; right: 2px; top: var(--dots-y, 50%); transform: translateY(-50%); transition: top 0.6s var(--ease-out); }
.v3-dot { position: relative; display: grid; place-items: center; width: 24px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.v3-dot::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.42); box-shadow: 0 0 0 1px rgba(5, 10, 20, 0.35);
  transition: height 0.35s var(--ease-out), background-color 0.35s, box-shadow 0.35s; }
.v3-dot:hover::before { background: rgba(255, 255, 255, 0.8); }
.v3-dot[aria-current]::before { height: 20px; background: linear-gradient(180deg, #8CC3FA, #3D93EC); box-shadow: 0 0 0 1px rgba(143, 200, 255, 0.35), 0 0 12px rgba(61, 143, 230, 0.75); }
.v3-dot:focus-visible { outline: none; }
.v3-dot:focus-visible::before { box-shadow: 0 0 0 3px #9CCBFF; }
.v3-dot__label { position: absolute; right: 100%; top: 50%; transform: translate(6px, -50%); margin-right: 2px; padding: 5px 11px; border-radius: 999px; white-space: nowrap;
  font-size: 0.8125rem; font-weight: 650; color: #fff; background: rgba(8, 16, 34, 0.88); box-shadow: 0 0 0 1px rgba(79, 155, 234, 0.35); opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s; }
.v3-dot:hover .v3-dot__label, .v3-dot:focus-visible .v3-dot__label { opacity: 1; transform: translate(0, -50%); }
@media (min-width: 760px) {
  html.v3-steps .v3-dots { right: max(8px, 1.2vw); }
  .v3-dot { width: 32px; height: 30px; }
  .v3-dot::before { width: 8px; height: 8px; }
  .v3-dot[aria-current]::before { height: 24px; }
}

/* the stage: one slide at a time (the next ones wait undisplayed — their pictures are not even fetched until they come near) */
html.v3-steps .v3-deck { height: 100vh; height: 100svh; overflow: hidden; }
html.v3-steps .v3-slide { position: absolute; inset: 0; z-index: 1; }
html.v3-steps .v3-deck:not(.is-measure) .v3-slide:not(.is-cur):not(.is-near) { display: none; }
html.v3-steps .v3-deck.is-measure .v3-slide:not(.is-cur) { visibility: hidden; }
html.v3-steps .v3-slide.is-near:not(.is-cur):not(.is-moving) { visibility: hidden; }
html.v3-steps .v3-slide.is-cur { z-index: 2; }
html.v3-steps .v3-slide.is-top { z-index: 3; }
html.v3-steps .v3-slide.is-moving { will-change: transform; }
html.v3-steps .v3-slide__media .v3-photo { will-change: transform; }
/* the stage leaves room for the dots on narrow screens */
@media (max-width: 759px) { html.v3-steps .v3-slide--hero .v3-hero__in { padding-right: 26px; } }

/* ---- frames for the real screens (as on /lab/v2/) ---- */
.v3-browser { position: relative; border-radius: 14px; background: #121B2D; border: 1px solid var(--line-2); overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.2); }
.v3-browser__bar { display: flex; gap: 6px; align-items: center; height: 26px; padding: 0 12px; background: #172238; border-bottom: 1px solid var(--line); }
.v3-browser__bar i { width: 8px; height: 8px; border-radius: 50%; background: #34405A; }
.v3-browser > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.v3-browser--sm { border-radius: 10px; }
.v3-browser--sm .v3-browser__bar { height: 18px; padding: 0 8px; gap: 4px; }
.v3-browser--sm .v3-browser__bar i { width: 6px; height: 6px; }
.v3-phone { display: block; position: relative; border-radius: 26px; padding: 6px; background: linear-gradient(160deg, #2A3650, #121B2D); border: 1px solid var(--line-2);
  box-shadow: 0 40px 70px -24px rgba(0, 0, 0, 0.85); }
.v3-phone img { width: 100%; border-radius: 20px; aspect-ratio: 300 / 650; object-fit: cover; }

/* ---- header over the photo: clear at the top, glass once the page moves ---- */
/* the glass sits on a pseudo-element: a backdrop filter on the header itself would make it the box of the menu's fixed panel */
.v3-top { position: fixed; inset: 0 0 auto; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.v3-top::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(7, 13, 25, 0.6), rgba(7, 13, 25, 0));
  transition: background-color var(--t-mid); }
.v3-top.is-scrolled { background: none; }
.v3-top.is-scrolled::before { background: rgba(7, 13, 25, 0.82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }

/* ---- glass button (over photos) + the shine that runs over the main button (Magic UI «Shiny Button», ported) ---- */
.v3-btn--glass { color: #fff; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.v3-btn--glass:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.45); }
.v3-shine { overflow: hidden; isolation: isolate; }
.v3-shine::after { content: ""; position: absolute; inset: -2px; z-index: -1; pointer-events: none; border-radius: inherit; transform: translateX(-120%);
  background: linear-gradient(-75deg, transparent 30%, rgba(255, 255, 255, 0.38) 45%, rgba(255, 255, 255, 0.08) 55%, transparent 70%); }
@media (prefers-reduced-motion: no-preference) { .v3-shine::after { animation: v3-shine 4.2s cubic-bezier(0.4, 0, 0.2, 1) 1.6s infinite; } }
@keyframes v3-shine { 0% { transform: translateX(-120%); } 38%, 100% { transform: translateX(120%); } }
.v3-btn--main.v3-shine { background: var(--btn); }
[data-magnetic] { will-change: transform; }

/* ---- cards that tilt toward the pointer (motion-primitives «Tilt»): v3.js sets the rotation, computer only ---- */
[data-tilt] { transform-style: preserve-3d; }

/* ---- the final call over the studio at dusk ---- */
.v3-cta__bg { position: absolute; inset: 0; z-index: -2; opacity: 0.42; }
.v3-cta__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 120% at 50% 0%, rgba(30, 80, 160, 0.35), rgba(7, 13, 25, 0.88) 70%); }
.v3-cta .v3-spot { z-index: -1; }
.v3-cta .v3-h2 { text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5); }

/* ---- sections ---- */
.v3-sec { position: relative; padding-block: clamp(64px, 10vw, 120px); }
.v3-sec--tint { background: linear-gradient(180deg, var(--bg-2), var(--bg) 85%); border-top: 1px solid var(--line); }
.v3-sec--tint::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(111, 176, 242, 0.5), transparent); }

/* ---- cards + the spotlight that follows the pointer (Magic UI «Magic Card», ported) ---- */
.v3-card { position: relative; isolation: isolate; padding: 24px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(148, 178, 230, 0.06), rgba(148, 178, 230, 0.02)); border: 1px solid var(--line);
  transition: border-color var(--t-mid), transform var(--t-mid) var(--ease-out); }
.v3-card > p, .v3-card dd { color: var(--muted); }
.v3-card .v3-h3 { margin: 16px 0 8px; }
.v3-card__ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #CFE6FF;
  background: linear-gradient(135deg, rgba(61, 147, 236, 0.35), rgba(27, 95, 196, 0.25)); border: 1px solid rgba(111, 176, 242, 0.35); }
.v3-card__ic .v3-ic { width: 22px; height: 22px; }
.v3-spot-card::before, .v3-spot-card::after { content: ""; position: absolute; pointer-events: none; opacity: 0; transition: opacity var(--t-mid); }
.v3-spot-card::before { inset: 0; z-index: -1; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(79, 155, 234, 0.16), transparent 60%); }
.v3-spot-card::after { inset: 0; border-radius: inherit; padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(140, 195, 250, 0.75), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
@media (hover: hover) and (pointer: fine) {
  .v3-spot-card:hover::before, .v3-spot-card:hover::after { opacity: 1; }
  .v3-card:hover { border-color: var(--line-2); }
}

/* ---- bento (Magic UI «Bento Grid», ported to plain CSS grid) ---- */
.v3-bento { display: grid; gap: 14px; }
.v3-svc .v3-link { margin-top: 8px; }
.v3-svc--note { background: linear-gradient(135deg, rgba(61, 147, 236, 0.16), rgba(27, 95, 196, 0.06)); border-color: rgba(111, 176, 242, 0.3); }
@media (min-width: 640px) {
  .v3-bento--svc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v3-svc--0, .v3-svc--5 { grid-column: span 2; }
}
@media (min-width: 1040px) {
  .v3-bento--svc { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .v3-svc--0, .v3-svc--5, .v3-svc--6, .v3-svc--note { grid-column: span 2; }
  .v3-svc--0 { background: linear-gradient(160deg, rgba(61, 147, 236, 0.14), rgba(148, 178, 230, 0.02) 60%); }
}

/* ---- product ---- */
.v3-split { display: grid; gap: clamp(36px, 6vw, 72px); align-items: center; }
.v3-points { display: grid; gap: 14px; margin-bottom: 32px; }
.v3-points li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; color: #D3DDEC; }
.v3-points .v3-ic { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: rgba(95, 211, 148, 0.14); color: #6FE0A2; stroke-width: 3; }
.v3-duo { position: relative; padding: 0 12% 14% 0; }
.v3-duo > .v3-duo__phone { position: absolute; right: 0; bottom: 0; width: 30%; }
@media (min-width: 960px) {
  .v3-split { grid-template-columns: 1fr 1.05fr; }
  .v3-split--rev { grid-template-columns: 1.1fr 0.9fr; }
}

/* border beam (Magic UI «Border Beam»): a light that runs along the frame */
.v3-beam__ring { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; border: 1.5px solid transparent; display: none;
  -webkit-mask: linear-gradient(transparent, transparent), linear-gradient(#000, #000); -webkit-mask-clip: padding-box, border-box; -webkit-mask-composite: source-in;
  mask: linear-gradient(transparent, transparent) padding-box intersect, linear-gradient(#000, #000) border-box; }
.v3-beam__ring i { position: absolute; width: 140px; aspect-ratio: 1; background: linear-gradient(to left, #8CC3FA, #3D93EC, transparent);
  offset-path: rect(0 auto auto 0 round 140px); offset-distance: 0%; }
@supports (offset-path: rect(0 auto auto 0)) {
  @media (prefers-reduced-motion: no-preference) {
    .v3-beam__ring { display: block; }
    .v3-beam__ring i { animation: v3-beam 7s linear infinite; }
    .v3-cta .v3-beam__ring i { animation-duration: 9s; }
  }
}
@keyframes v3-beam { to { offset-distance: 100%; } }

/* ---- projects ---- */
.v3-kind { display: inline-flex; padding: 4px 10px; border-radius: 999px; background: rgba(79, 155, 234, 0.14); color: #A9D0FA; font-size: 0.8125rem; font-weight: 700; }
.v3-proj .v3-h3 { font-size: 1.3125rem; margin-top: 14px; }
.v3-story { display: grid; gap: 4px; margin-bottom: 16px; }
.v3-story dt { margin-top: 8px; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 750; color: #8EA0BC; }
.v3-story dd { font-size: 0.9875rem; }
.v3-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.v3-chips li { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(7, 13, 25, 0.4); font-size: 0.8125rem; font-weight: 650; color: #C9D6EA; }
.v3-proj__pic { display: block; margin: -4px -4px 18px; transition: transform var(--t-mid) var(--ease-out); }
.v3-proj__pic--heat { border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: #fff; }
.v3-proj__pic--heat img { width: 100%; aspect-ratio: 784 / 326; }
@media (hover: hover) { .v3-proj:hover .v3-proj__pic { transform: translateY(-4px); } }
.v3-demos { display: grid; gap: 10px; margin-top: 20px; }
.v3-demo { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; min-height: 44px; text-decoration: none; border-radius: 12px; }
.v3-demo__label { display: flex; align-items: center; justify-content: flex-start; gap: 6px; font-weight: 700; font-size: 0.9375rem; color: #D5E5FA; }
.v3-demo__label .v3-ic { width: 16px; height: 16px; color: var(--accent); transition: transform var(--t-mid) var(--ease-out); }
.v3-demo .v3-browser { transition: transform var(--t-mid) var(--ease-out), border-color var(--t-mid); }
.v3-demo:hover .v3-browser { transform: translateY(-3px); border-color: rgba(111, 176, 242, 0.6); }
.v3-demo:hover .v3-demo__label .v3-ic { transform: translate(2px, -2px); }
@media (min-width: 560px) {
  .v3-demos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .v3-demo { grid-template-columns: 1fr; gap: 10px; }
}

.v3-art { position: relative; display: grid; place-items: center; height: 132px; margin: -4px -4px 18px; border-radius: 14px; overflow: hidden;
  background: radial-gradient(120% 120% at 20% 0%, rgba(61, 147, 236, 0.28), rgba(11, 18, 32, 0.4) 60%); border: 1px solid var(--line); }
.v3-art__ic { position: absolute; left: 18px; top: 18px; width: 30px; height: 30px; fill: none; stroke: #CFE6FF; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.v3-bubble { position: absolute; height: 22px; border-radius: 12px; }
.v3-bubble--in { left: 64px; top: 22px; width: 46%; background: rgba(148, 178, 230, 0.22); border-bottom-left-radius: 4px; }
.v3-bubble--out { right: 18px; top: 56px; width: 40%; background: linear-gradient(135deg, #3D93EC, #1F5FC5); border-bottom-right-radius: 4px; }
.v3-bubble--short { top: 90px; width: 28%; }
.v3-rows { position: absolute; inset: 60px 18px 14px; display: grid; gap: 8px; }
.v3-rows i { display: block; border-radius: 6px; background: linear-gradient(90deg, rgba(148, 178, 230, 0.25) 0 22%, rgba(148, 178, 230, 0.1) 22%); }
.v3-rows i:first-child { background: linear-gradient(90deg, rgba(111, 176, 242, 0.55) 0 22%, rgba(111, 176, 242, 0.22) 22%); }
@media (prefers-reduced-motion: no-preference) {
  .v3-proj.is-in .v3-bubble { animation: v3-pop 0.6s var(--ease-out) both; }
  .v3-proj.is-in .v3-bubble--out { animation-delay: 0.5s; }
  .v3-proj.is-in .v3-bubble--short { animation-delay: 1s; }
}
@keyframes v3-pop { from { opacity: 0; transform: translateY(8px) scale(0.92); } }

.v3-bento--proj { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) {
  .v3-bento--proj { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v3-proj--sites { grid-column: span 2; }
}
@media (min-width: 1100px) {
  .v3-bento--proj { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v3-proj--sites, .v3-proj--ws, .v3-proj--org { grid-column: span 3; display: grid; column-gap: 40px; align-content: start; }
  .v3-proj--heat { grid-column: span 2; }
  /* the sites: the story on the left, the three demos on the right; the workshop and the accounting systems: the picture on the left */
  .v3-proj--sites { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .v3-proj--sites .v3-demos { margin-top: 0; grid-template-columns: 1fr; align-content: start; }
  .v3-proj--sites .v3-demo { grid-template-columns: 170px 1fr; }
  .v3-proj--ws, .v3-proj--org { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .v3-proj--ws .v3-proj__pic, .v3-proj--org .v3-art { margin: 0; }
  .v3-proj--org .v3-art { height: 220px; }
}

/* ---- PWA + games ---- */
.v3-hint { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-bottom: 20px; border-radius: var(--radius-sm); background: rgba(95, 211, 148, 0.08); border: 1px solid rgba(95, 211, 148, 0.25); color: #CDEFDB; font-weight: 600; }
.v3-hint .v3-ic { color: #6FE0A2; margin-top: 2px; }
.v3-games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 28px; }
.v3-games a { display: flex; align-items: center; gap: 10px; min-height: 52px; height: 100%; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; font-weight: 650; font-size: 0.9375rem; line-height: 1.3; transition: background-color var(--t-mid), border-color var(--t-mid); }
.v3-games a:hover { background: var(--surface-2); border-color: var(--line-2); }
.v3-games .v3-ic { color: var(--accent); }
.v3-phone--game { width: min(64%, 280px); margin-inline: auto; }
.v3-phone--game::after { content: ""; position: absolute; inset: 10% -30% -6%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(61, 147, 236, 0.4), transparent); filter: blur(30px); }
.v3-phone--game img { aspect-ratio: 240 / 519; }
@media (max-width: 959px) and (orientation: portrait) { .v3-split--rev .v3-split__art { order: -1; } }

/* ---- process: the line fills with the scroll ---- */
.v3-steps { position: relative; }
.v3-steps ol { display: grid; gap: 28px; }
.v3-steps__line { position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.v3-steps__line span { display: block; height: 100%; background: linear-gradient(180deg, #8CC3FA, #3D93EC); transform: scaleY(0); transform-origin: 50% 0; }
.v3-step { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 18px; }
.v3-step__n { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); font-weight: 800; color: var(--muted);
  transition: background-color 0.5s, border-color 0.5s, color 0.5s, box-shadow 0.5s; }
.v3-step.is-on .v3-step__n { background: var(--btn); border-color: #6FB0F2; color: #fff; box-shadow: 0 0 0 6px rgba(61, 147, 236, 0.15); }
.v3-step .v3-h3 { margin: 10px 0 6px; }
.v3-step p { color: var(--muted); }
html:not(.v3-js) .v3-steps__line span { transform: none; }
html:not(.v3-js) .v3-step__n { border-color: #6FB0F2; color: var(--text); }

/* ---- why + tech ---- */
.v3-why { display: grid; gap: 14px; }
@media (min-width: 640px) { .v3-why { grid-template-columns: repeat(2, minmax(0, 1fr)); } .v3-why li:last-child { grid-column: span 2; } }
@media (min-width: 1040px) { .v3-why { grid-template-columns: repeat(6, minmax(0, 1fr)); } .v3-why li { grid-column: span 2; } .v3-why li:nth-child(n + 4) { grid-column: span 3; } }
.v3-tech { margin-top: clamp(48px, 7vw, 80px); text-align: center; }
.v3-tech__title { font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 750; margin-bottom: 20px; }

/* marquee (Magic UI «Marquee»): two copies of the row slide left; pauses on hover; stands still with reduced motion */
.v3-marquee { --gap: 12px; display: flex; gap: var(--gap); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.v3-marquee__row { display: flex; flex: none; gap: var(--gap); min-width: 100%; justify-content: space-around; }
.v3-marquee__row li { flex: none; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 700; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .v3-marquee__row { animation: v3-marquee 32s linear infinite; }
  .v3-marquee:hover .v3-marquee__row { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .v3-marquee { -webkit-mask-image: none; mask-image: none; }
  .v3-marquee__row { flex-wrap: wrap; justify-content: center; min-width: 0; flex: 1; }
  .v3-marquee__row[aria-hidden] { display: none; }
}
@keyframes v3-marquee { to { transform: translateX(calc(-100% - var(--gap))); } }

/* ---- FAQ (accent bar: idea of «Accent Accordion», @ai2 on 21st.dev) ---- */
.v3-faq { display: grid; gap: 10px; }
.v3-qa { position: relative; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color var(--t-mid), background-color var(--t-mid); }
.v3-qa::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(180deg, #8CC3FA, #3D93EC); transform: scaleY(0); transition: transform 0.4s var(--ease-out); }
.v3-qa[open] { border-color: rgba(111, 176, 242, 0.4); background: var(--surface-2); }
.v3-qa[open]::before { transform: scaleY(1); }
.v3-qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 20px; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.0625rem; line-height: 1.35; border-radius: var(--radius-sm); }
.v3-qa summary::-webkit-details-marker { display: none; }
.v3-qa__pm { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); }
.v3-qa__pm::before, .v3-qa__pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--accent); transition: transform var(--t-mid) var(--ease-out); }
.v3-qa__pm::after { transform: rotate(90deg); }
.v3-qa[open] .v3-qa__pm::after { transform: rotate(0deg); }
.v3-qa__a { padding: 0 20px 18px; color: var(--muted); }
.v3-faq__more { margin-top: 18px; text-align: center; }

/* ---- final call ---- */
.v3-sec--cta { padding-top: 0; }
.v3-cta { position: relative; isolation: isolate; display: grid; gap: 16px; justify-items: center; text-align: center; padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 64px);
  border-radius: 28px; border: 1px solid var(--line-2); overflow: hidden;
  background: radial-gradient(90% 120% at 50% 0%, rgba(61, 147, 236, 0.32), rgba(11, 18, 32, 0.6) 60%), var(--bg-2); }
.v3-cta .v3-sub { margin-bottom: 8px; }
.v3-cta .v3-actions { justify-content: center; }
.v3-cta .v3-btn--ghost { white-space: normal; }

/* ---- footer ---- */
.v3-foot { border-top: 1px solid var(--line); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 0.9375rem; }
.v3-foot__in { display: grid; gap: 14px; }
.v3-foot__links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.v3-foot__links a { display: inline-flex; align-items: center; min-height: 44px; color: #C9D6EA; }
.v3-foot__c { font-size: 0.875rem; }

/* ---- the section pages: a first screen on a photo (or the blue glow), then the section with ordinary scrolling ---- */
.v3-phero { position: relative; isolation: isolate; overflow: clip; min-height: clamp(340px, 52svh, 580px); display: grid; align-items: end;
  padding: calc(104px + env(safe-area-inset-top)) 0 clamp(28px, 5vw, 56px); }
.v3-phero__media { position: absolute; inset: 0; z-index: -1; background: #0b0f17; }
.v3-phero__media .v3-photo img { object-fit: cover; }
.v3-phero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 13, 25, 0.6) 0%, rgba(7, 13, 25, 0.35) 30%, rgba(7, 13, 25, 0.86) 72%, var(--bg) 100%); }
@media (orientation: landscape) and (min-width: 760px) {
  .v3-phero__shade { background: linear-gradient(90deg, rgba(7, 13, 25, 0.9) 0%, rgba(7, 13, 25, 0.6) 40%, rgba(7, 13, 25, 0.15) 75%), linear-gradient(180deg, rgba(7, 13, 25, 0.55) 0%, transparent 25%, transparent 60%, var(--bg) 100%); }
}
.v3-phero--glow { background: radial-gradient(70% 90% at 80% 0%, rgba(61, 147, 236, 0.32), transparent 62%), radial-gradient(50% 60% at 10% 100%, rgba(255, 170, 90, 0.1), transparent 70%), var(--bg); }
.v3-head--page { margin-bottom: 0; gap: 16px; }
.v3-head--page .v3-h2 { font-size: clamp(2rem, 1.15rem + 3.6vw, 3.625rem); line-height: 1.06; max-width: 20ch; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45); }
.v3-head--page .v3-sub { color: #C6D2E4; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6); max-width: 46em; }
.v3-sec--page { padding-top: clamp(28px, 5vw, 56px); }
.v3-center { text-align: center; margin-top: 28px; }
.v3-center .v3-link { gap: 8px; }

/* the workshop: «Клиент в курсе» with three phone screens, «Возможности» + the screenshots */
.v3-split--comms { align-items: start; }
.v3-comms { display: grid; gap: 12px; }
.v3-comms .v3-h3, .v3-feats .v3-h3 { margin-top: 0; }
.v3-comms .v3-card, .v3-feats .v3-card { padding: 20px; }
.v3-phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.v3-phones .v3-phone { padding: 4px; border-radius: 18px; }
.v3-phones .v3-phone img { border-radius: 14px; }
.v3-phones--heat { grid-template-columns: repeat(2, minmax(0, 230px)); justify-content: center; gap: 16px; }
.v3-phones--heat .v3-phone img { aspect-ratio: auto; object-fit: initial; }
.v3-hint--blue { margin: 24px 0 0; background: rgba(79, 155, 234, 0.1); border-color: rgba(111, 176, 242, 0.3); color: #D5E5FA; }
.v3-hint--blue .v3-ic { color: var(--accent); }
.v3-feats { display: grid; gap: 12px; }
@media (min-width: 640px) { .v3-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .v3-feats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.v3-gallery { display: grid; gap: 20px; margin-top: 36px; align-items: start; }
@media (min-width: 760px) { .v3-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.v3-shot { margin: 0; }
.v3-shot img { width: 100%; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.v3-shot--a4 img { max-width: 320px; margin-inline: auto; }
.v3-shot figcaption { margin-top: 12px; color: #C9D6EA; font-size: 0.9375rem; font-weight: 650; text-align: center; }

/* the workshop: the order's path, one card per step with the real screens */
.v3-path { display: grid; gap: 14px; counter-reset: none; }
@media (min-width: 640px) { .v3-path { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .v3-path { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.v3-path__step { padding: 14px 14px 18px; }
.v3-path__pic { display: flex; gap: 8px; justify-content: center; align-items: center; height: 220px; margin-bottom: 14px; padding: 12px; border-radius: 14px;
  background: radial-gradient(100% 100% at 50% 0%, rgba(61, 147, 236, 0.22), rgba(11, 18, 32, 0.5) 70%); border: 1px solid var(--line); overflow: hidden; }
.v3-path__pic img { width: auto; height: auto; max-height: 100%; max-width: 100%; min-width: 0; border-radius: 8px; box-shadow: 0 16px 30px -16px rgba(0, 0, 0, 0.9); }
.v3-path__pic img + img { max-width: 52%; }
.v3-path__n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--btn); color: #fff; font-weight: 800; font-size: 0.9375rem; }
.v3-path__step .v3-h3 { margin: 10px 0 6px; }

/* the boiler room */
.v3-heat { display: grid; gap: 28px; }
.v3-heat__text { display: grid; gap: 4px; }
.v3-heat__schema { border-radius: 14px; border: 1px solid var(--line-2); background: #fff; overflow: hidden; }
.v3-heat__scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.v3-heat__scroll img { width: 100%; min-width: 640px; }

/* the games page: the «Последний сигнал» card */
.v3-lh { display: grid; padding: 0; margin-top: clamp(40px, 6vw, 72px); border-color: var(--line-2); }
.v3-lh__pic { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0b0f17; }
.v3-lh__pic .v3-photo img { object-fit: cover; transition: transform 0.8s var(--ease-out); }
.v3-lh:hover .v3-lh__pic .v3-photo img { transform: scale(1.03); }
.v3-lh__text { display: grid; gap: 10px; justify-items: start; padding: 24px; }
.v3-lh__text .v3-h3 { font-size: 1.5rem; margin: 4px 0 0; }
.v3-lh__text .v3-btn { margin-top: 8px; }
@media (min-width: 900px) { .v3-lh { grid-template-columns: 1.25fr 1fr; align-items: center; } .v3-lh__pic { aspect-ratio: auto; height: 100%; min-height: 320px; } }

/* «next» at the bottom of each section page */
.v3-next { margin-top: clamp(8px, 2vw, 24px); margin-bottom: clamp(56px, 8vw, 96px); }
.v3-next__a { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; padding: 22px 24px;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: border-color var(--t-mid); }
.v3-next__a:hover { border-color: var(--line-2); }
.v3-next__a .v3-eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.v3-next__a .v3-eyebrow .v3-ic { width: 16px; height: 16px; }
.v3-next__t { grid-column: 1; font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem); font-weight: 750; line-height: 1.25; letter-spacing: -0.01em; }
.v3-next__ic { grid-column: 2; grid-row: 1 / 3; width: 28px; height: 28px; color: var(--accent); transition: transform var(--t-mid) var(--ease-out); }
.v3-next__a:hover .v3-next__ic { transform: translateX(4px); }
.v3-cta--page { gap: 18px; }
.v3-foot__nav a { color: #C9D6EA; min-width: 44px; justify-content: center; }

/* ---- scroll reveal (Magic UI «Blur Fade»): hidden only when the script runs and motion is welcome ---- */
@media (prefers-reduced-motion: no-preference) {
  html.v3-js [data-reveal]:not(.is-in) { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---- «↑» back to the start: a small round button in a corner (home: from the 2nd step, v3.js picks the free corner; pages: after scrolling).
   Placed with transform only (v3.js) — it never shifts the layout ---- */
.v3-up { position: fixed; z-index: 40; left: 0; top: 0; width: 48px; height: 48px; padding: 0; display: grid; place-items: center; border-radius: 50%; cursor: pointer; color: #fff;
  background: rgba(9, 16, 30, 0.78); border: 1px solid rgba(148, 178, 230, 0.4); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7); -webkit-tap-highlight-color: transparent;
  transition: opacity 0.3s var(--ease-out), background-color var(--t-mid), border-color var(--t-mid); }
.v3-up[hidden] { display: none; }
.v3-up:hover { background: rgba(20, 36, 66, 0.92); border-color: rgba(143, 200, 255, 0.7); }
.v3-up .v3-ic { width: 22px; height: 22px; stroke-width: 2.4; }
.v3-up.is-out { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .v3-up { transition: none; } }
/* the smallest portrait phones: the games card and the final call give up a little room so a corner stays free for «↑» */
@media (orientation: portrait) and (max-height: 600px) {
  .v3-chap__card .v3-actions .v3-btn { padding: 0 12px; font-size: 0.8125rem; }
  .v3-slide--final .v3-cta { padding: 18px 14px; gap: 8px; }
  .v3-slide--final .v3-cta .v3-btn--lg { min-height: 48px; padding: 0 20px; }
}

/* ---- «Our product» teaser and the directions strip on the services page (the old home page's first-screen list + the «product» block) ---- */
.v3-dirs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 28px; }
.v3-dirs a { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); text-decoration: none; font-weight: 700; transition: border-color var(--t-fast), background var(--t-fast); }
.v3-dirs a:hover { border-color: var(--line-2); background: var(--surface-2); }
.v3-dirs__pic { flex: none; width: 76px; height: 48px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--surface-2); }
.v3-dirs__pic img { width: 100%; height: 100%; object-fit: cover; }
.v3-dirs__pic--ic { color: var(--accent); }
.v3-prod { margin-top: clamp(48px, 8vw, 96px); }
.v3-prod .v3-h2 { margin-top: 6px; }
.v3-prod .v3-sub { margin-top: 12px; max-width: 62ch; }
.v3-prod .v3-split { margin-top: 28px; }

/* language links (menu panel and footer): real tap targets */
.v3-menu__lang, .v3-foot__lang { display: flex; flex-wrap: wrap; gap: 6px; }
.v3-menu__lang { padding: 6px 4px 2px; }
.v3-lang { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none; color: var(--muted); }
.v3-lang:hover { color: var(--text); border-color: var(--line-2); }
.v3-lang.is-active { color: var(--text); background: var(--surface-2); border-color: var(--line-2); }

/* the «Игры» card has two more lines of text (the PWA sentence) and longer words in et / en: a little tighter on a short landscape screen */
@media (orientation: landscape) and (max-height: 380px) {
  .v3-slide--games .v3-chap__card > p:not(.v3-kind), .v3-slide--games .v3-chap__card > .v3-chap__note { font-size: 0.8125rem; line-height: 1.4; }
  .v3-slide--games .v3-chap__card .v3-actions { margin: 6px 0 2px; }
  .v3-slide--games .v3-chap__card { padding-block: 10px 6px; }
}
.v3-lang.lang-link { min-width: 44px; min-height: 44px; width: auto; height: auto; padding: 0 12px; }
.v3-lang.lang-link { font-size: 0.875rem; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 999px; }
.v3-lang.lang-link.is-active { background: var(--surface-2); color: var(--text); border-color: var(--line-2); }

/* approved reviews (the «Почему мы» page): the plain-text cards of the old block, in the new look */
.v3-reviews { margin-top: clamp(48px, 8vw, 96px); }
.v3-reviews .eyebrow { color: var(--accent); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.v3-reviews .section-head__title { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem); line-height: 1.2; margin: 6px 0 0; }
.v3-reviews .review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin: 24px 0; }
.v3-reviews .card.review { padding: 22px; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.v3-reviews .review__text { margin: 0; display: grid; gap: 10px; }
.v3-reviews .review__rating { color: #F2B84B; letter-spacing: 2px; }
.v3-reviews .review__author { font-weight: 700; }
.v3-reviews .review__meta, .v3-reviews .review-note { color: var(--muted); font-size: 0.875rem; }
.v3-reviews [data-reveal] { opacity: 1; }
