/*
 * Главная fithorse.ru. Разметка — src/public/landing.ts, движение — landing.js.
 * Стиль приложения: почти чёрный фон, бирюзовый акцент, узкий Barlow Condensed
 * для заголовков и цифр. Barlow и Space Grotesk без кириллицы — русские буквы
 * берутся из Fira Sans Extra Condensed и Golos Text, как в приложении.
 *
 * Начальные состояния анимаций — только под .js: без скрипта всё видно сразу.
 */

:root {
  --bg: #07080a;
  --bg-2: #0b0d10;
  --fg: #fff;
  --muted: rgba(255, 255, 255, 0.62);
  --dim: rgba(255, 255, 255, 0.4);
  --line: rgba(255, 255, 255, 0.09);
  --card: rgba(255, 255, 255, 0.035);
  --card-2: rgba(255, 255, 255, 0.06);
  --accent: #52cce0;
  --accent-hi: #9bf0ff;
  --blue: #4fb8ff;
  --pink: #ff4f8b;
  --green: #7ed957;
  --orange: #ff8a4a;
  --red: #ff6b4a;
  --display: 'Barlow Condensed', 'Fira Sans Extra Condensed', 'Arial Narrow', sans-serif;
  --stretch: normal;
  --text: 'Space Grotesk', 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1200px;
  --gutter: 24px;
}

/* Грузинский и армянский: Noto с узкой шириной; заглавные Мтаврули не нужны. */
html[data-lang='ka'] {
  --display: 'Noto Sans Georgian', sans-serif;
  --text: 'Noto Sans Georgian', 'Space Grotesk', system-ui, sans-serif;
  --stretch: 72%;
  --cw: 0.6;
}
html[data-lang='hy'] {
  --display: 'Noto Sans Armenian', sans-serif;
  --text: 'Space Grotesk', 'Noto Sans Armenian', system-ui, sans-serif;
  --stretch: 72%;
  --cw: 0.6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
}

::selection {
  background: rgba(82, 204, 224, 0.35);
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.i {
  width: 1em;
  height: 1em;
  flex: none;
}

.kicker,
.caps {
  font: 600 12px/1.2 var(--text);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.caps {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--dim);
}

/* В грузинском заглавных нет: text-transform превратил бы буквы в Мтаврули. */
html[data-lang='ka'] * {
  text-transform: none !important;
}

html[data-lang='ka'] .kicker,
html[data-lang='ka'] .caps {
  letter-spacing: 0.04em;
}

/* ---------- Появление при прокрутке ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Шапка ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition:
    background 0.4s,
    border-color 0.4s,
    backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(7, 8, 10, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 700 22px/1 'Barlow Condensed', 'Fira Sans Extra Condensed', sans-serif;
  letter-spacing: 0.04em;
}

.logo img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.logo b {
  color: var(--accent);
}

.menu {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.menu a {
  position: relative;
  text-decoration: none;
  font-size: 15px;
  color: var(--muted);
  transition: color 0.2s;
}

.menu a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.menu a:hover {
  color: var(--fg);
}

.menu a:hover::after {
  transform: scaleX(1);
}

.lang {
  position: relative;
}

.lang summary {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 12px;
  font: 600 13px/1 var(--text);
  letter-spacing: 0.06em;
  color: var(--muted);
  transition:
    background 0.2s,
    color 0.2s;
}

.lang summary::-webkit-details-marker {
  display: none;
}

.lang summary:hover,
.lang[open] summary {
  background: var(--card-2);
  color: var(--fg);
}

.lang summary .i {
  width: 16px;
  height: 16px;
}

.lang .chev {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease);
}

.lang[open] .chev {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 2px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(16, 18, 22, 0.94);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  animation: pop 0.25s var(--ease);
}

.lang-menu a {
  padding: 9px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}

.lang-menu a:hover {
  background: var(--card-2);
  color: var(--fg);
}

.lang-menu a[aria-current] {
  color: var(--accent);
  background: rgba(82, 204, 224, 0.08);
}

.btn-nav {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #06181c;
  font: 600 14px/1 var(--text);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 0 0 rgba(82, 204, 224, 0.5);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.3s;
}

.btn-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -8px rgba(82, 204, 224, 0.7);
}

.progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--accent), var(--accent-hi));
  box-shadow: 0 0 12px var(--accent);
}

/* ---------- Первый экран ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 110px 0 70px;
  overflow: clip;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}

.a1 {
  width: 720px;
  height: 720px;
  right: -180px;
  top: -200px;
  background: radial-gradient(circle, rgba(82, 204, 224, 0.55), transparent 65%);
  animation: drift1 18s ease-in-out infinite alternate;
}

.a2 {
  width: 560px;
  height: 560px;
  left: -220px;
  bottom: -220px;
  background: radial-gradient(circle, rgba(79, 184, 255, 0.35), transparent 65%);
  animation: drift2 22s ease-in-out infinite alternate;
}

.a3 {
  width: 420px;
  height: 420px;
  right: 18%;
  bottom: -160px;
  background: radial-gradient(circle, rgba(255, 79, 139, 0.18), transparent 65%);
  animation: drift1 26s ease-in-out infinite alternate-reverse;
}

.contours {
  position: absolute;
  width: 1100px;
  height: 1100px;
  right: -260px;
  top: 50%;
  margin-top: -550px;
  stroke: rgba(82, 204, 224, 0.11);
  stroke-width: 1.2;
  animation: spin 160s linear infinite;
  mask-image: radial-gradient(circle, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%);
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 30% 40%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 40%, #000, transparent 75%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 32px;
  width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(82, 204, 224, 0.28);
  background: rgba(82, 204, 224, 0.07);
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: ping 2s var(--ease) infinite;
}

/*
 * Кегль — под самую длинную строку: --chars считает шаблон, --cw — средняя
 * ширина буквы в em (у узкого Barlow заглавные ~0.5). Доступная ширина — колонка
 * рядом с телефоном, на узких экранах — вся строка.
 */
.h1 {
  margin: 22px 0 24px;
  font: 800 min(142px, 9.4vw, calc(min(100vw, 1200px) * 0.5 / (var(--cw, 0.5) * var(--chars, 10)))) / 0.86 var(--display);
  font-stretch: var(--stretch);
  letter-spacing: -0.012em;
  text-transform: uppercase;
}

html[data-lang='ka'] .h1 {
  line-height: 1;
}

.h1 .line {
  display: block;
  overflow: hidden;
  padding: 0.04em 0.06em 0.06em 0;
  margin: -0.04em 0 -0.06em;
}

.h1 .line > span {
  display: inline-block;
}

.js .h1 .line > span {
  transform: translateY(110%) rotate(4deg);
  transform-origin: left bottom;
  animation: rise 1.1s var(--ease) forwards;
  animation-delay: calc(0.15s + var(--i) * 0.12s);
}

em {
  font-style: normal;
}

.h1 em,
h2 em {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-hi) 45%, var(--accent) 60%, #3ba9c9 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}

.lead {
  max-width: 540px;
  margin: 0 0 32px;
  font-size: clamp(17px, 1.35vw, 19px);
  color: var(--muted);
}

.js .hero-copy .eyebrow,
.js .hero-copy .lead,
.js .hero-copy .stores,
.js .hero-copy .perks {
  opacity: 0;
  transform: translateY(18px);
  animation: fade-up 0.9s var(--ease) forwards;
}

.js .hero-copy .eyebrow {
  animation-delay: 0.05s;
}
.js .hero-copy .lead {
  animation-delay: 0.55s;
}
.js .hero-copy .stores {
  animation-delay: 0.7s;
}
.js .hero-copy .perks {
  animation-delay: 0.85s;
}

/* Кнопки сторов */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  padding: 11px 22px 11px 18px;
  border-radius: 16px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition:
    transform 0.3s var(--ease),
    background 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
  overflow: hidden;
  isolation: isolate;
}

.store::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease);
}

.store:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 18px 40px -16px rgba(82, 204, 224, 0.55);
}

.store:hover::before {
  transform: translateX(120%);
}

.store-logo {
  width: 26px;
  height: 26px;
  flex: none;
}

.store span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.store small {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.store b {
  font: 600 20px/1.15 var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Первая кнопка — бирюзовая; на Android первой ставим Google Play. */
.store:first-child,
.os-android .store[data-os='android'] {
  background: var(--accent);
  border-color: var(--accent);
  color: #05171b;
}

.os-android .store[data-os='ios'] {
  order: 2;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--fg);
}

.store:first-child small,
.os-android .store[data-os='android'] small {
  color: rgba(5, 23, 27, 0.7);
}

.os-android .store[data-os='ios'] small {
  color: var(--muted);
}

.perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
  color: var(--muted);
}

.perks li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.perks .i,
.ticks .i,
.pills .i {
  width: 16px;
  height: 16px;
  padding: 2px;
  border-radius: 50%;
  color: #05171b;
  background: var(--accent);
  stroke-width: 3.5;
}

/* Телефон */

.phone {
  --w: 300px;
  position: relative;
  width: var(--w);
  padding: calc(var(--w) * 0.03);
  border-radius: calc(var(--w) * 0.155);
  background: linear-gradient(150deg, #34383f 0%, #121418 32%, #0b0c0f 60%, #262a30 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.25),
    0 60px 120px -40px rgba(0, 0, 0, 0.95),
    0 30px 70px -30px rgba(82, 204, 224, 0.28);
}

.phone::before,
.phone::after {
  content: '';
  position: absolute;
  left: -2px;
  width: 3px;
  border-radius: 2px;
  background: #2b2e34;
}

.phone::before {
  top: 22%;
  height: 7%;
}

.phone::after {
  top: 31%;
  height: 7%;
}

.phone img,
.phone .screens {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 660 / 1434;
  border-radius: calc(var(--w) * 0.125);
  background: #000;
}

/* Визуал первого экрана */

.hero-visual {
  position: relative;
  text-align: left;
  height: min(720px, 86vh);
  min-height: 560px;
  perspective: 1400px;
}

.depth {
  position: absolute;
  will-change: transform;
}

.hero-visual > .depth:nth-of-type(1) {
  left: 4%;
  top: 9%;
}

.hero-visual > .depth:nth-of-type(2) {
  left: 50%;
  top: 50%;
  margin: -310px 0 0 -130px;
}

.phone-main {
  --w: 288px;
  transform-style: preserve-3d;
}

.js .phone-main {
  animation: phone-in 1.4s var(--ease) 0.25s both;
}

.phone-main::selection {
  background: none;
}

.phone-back {
  --w: 230px;
  opacity: 0.5;
  filter: saturate(0.7) blur(0.6px);
  transform: rotate(-9deg);
}

.js .phone-back {
  animation: back-in 1.6s var(--ease) 0.45s both;
}

.hero-route {
  position: absolute;
  inset: -4% -8% -6% -12%;
  width: 120%;
  height: 110%;
  overflow: visible;
}

.route-glow {
  stroke: rgba(82, 204, 224, 0.16);
  stroke-width: 20;
  stroke-linecap: round;
  filter: blur(6px);
}

.route-line {
  stroke: url(#route-grad);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.js .route-line {
  stroke-dashoffset: 1;
  animation: draw 2.6s var(--ease) 0.6s forwards;
}

.runner {
  fill: #fff;
  stroke: var(--accent);
  stroke-width: 4;
}

.runner-halo {
  fill: rgba(82, 204, 224, 0.25);
  animation: halo 1.6s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.float {
  position: absolute;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(18, 21, 26, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}

.js .float {
  opacity: 0;
  animation: pop 0.9s var(--ease) forwards;
}

.float > * {
  animation: bob 6s ease-in-out infinite;
}

.float b {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 6px;
  font: 700 38px/0.9 'Barlow Condensed', 'Fira Sans Extra Condensed', sans-serif;
  font-variant-numeric: tabular-nums;
}

.float b small {
  font-size: 16px;
  color: var(--accent);
  font-weight: 600;
}

.f-rec {
  top: 6%;
  right: 6%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  font: 600 12px/1 var(--text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation-delay: 1.2s !important;
}

.rec {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: blink 1.2s steps(2, jump-none) infinite;
}

.f-dist {
  top: 46%;
  left: -4%;
  animation-delay: 1.35s !important;
}

.f-dist b {
  font-size: 46px;
}

.segs {
  display: flex;
  gap: 3px;
  margin-top: 10px;
}

.segs i {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
}

.segs i.on {
  background: var(--accent);
}

.segs i.half {
  background: linear-gradient(90deg, var(--accent) var(--part, 40%), rgba(255, 255, 255, 0.14) var(--part, 40%));
}

.f-pulse {
  top: 30%;
  right: -2%;
  width: 172px;
  animation-delay: 1.5s !important;
}

.f-pulse b {
  color: #fff;
}

.beat {
  width: 22px;
  height: 22px;
  color: var(--pink);
  fill: var(--pink);
  stroke: none;
  animation: beat 0.85s ease-in-out infinite;
  align-self: center;
}

.ecg,
.ecg-wide,
.horse-ecg {
  display: block;
  width: 100%;
  height: 30px;
  margin-top: 8px;
}

.ecg path,
.ecg-wide path,
.horse-ecg path {
  fill: none;
  stroke: var(--pink);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 60 300;
  animation: ecg 1.7s linear infinite;
  filter: drop-shadow(0 0 4px rgba(255, 79, 139, 0.8));
}

.f-split {
  bottom: 6%;
  left: 4%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  animation-delay: 1.65s !important;
}

.f-split .badge {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(126, 217, 87, 0.16);
  color: var(--green);
}

.f-split .badge .i {
  width: 18px;
  height: 18px;
}

.f-split > span:last-child {
  display: flex;
  flex-direction: column;
}

.f-split b {
  margin: 0;
  font: 600 15px/1.2 var(--text);
}

.f-split small {
  font-size: 13px;
  color: var(--muted);
}

.f-split.flash {
  animation: flash 0.7s var(--ease);
}

/* ---------- Бегущие строки ---------- */

.marquee {
  position: relative;
  padding: 26px 0;
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent);
  overflow: hidden;
}

.mq {
  display: flex;
  overflow: hidden;
  transform: skewX(var(--skew, 0deg));
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.mq-track {
  display: flex;
  flex: none;
  animation: marquee 48s linear infinite;
}

.mq-ticker .mq-track {
  animation-duration: 60s;
  animation-direction: reverse;
}

.mq-half {
  display: flex;
  flex: none;
  align-items: center;
}

.mq-item {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 0 26px;
  white-space: nowrap;
}

.mq-sports .mq-item {
  font: 800 clamp(48px, 7vw, 96px) / 1 var(--display);
  font-stretch: var(--stretch);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.35);
  transition:
    color 0.4s,
    -webkit-text-stroke-color 0.4s;
}

.mq-sports .mq-item:nth-child(4n + 1) {
  color: #fff;
  -webkit-text-stroke-color: transparent;
}

.mq-sports .mq-item:hover {
  color: var(--accent);
  -webkit-text-stroke-color: transparent;
}

.mq-sports .mq-item .i {
  width: 0.62em;
  height: 0.62em;
  color: var(--accent);
  stroke-width: 1.6;
}

.mq-sep {
  color: var(--accent);
  font-size: 22px;
}

.mq-ticker {
  margin-top: 14px;
}

.mq-ticker .mq-item {
  font: 600 15px/1 var(--text);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 18px;
}

.mq-ticker .mq-sep {
  font-size: 14px;
}

html[data-lang='ka'] .mq-ticker .mq-item {
  letter-spacing: 0.04em;
}

/* ---------- Цифры ---------- */

.facts {
  padding: 90px 0 30px;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.fact {
  position: relative;
  padding: 26px 24px 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
}

.fact::after {
  content: '';
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}

.fact b {
  display: block;
  font: 800 clamp(56px, 6vw, 84px) / 0.9 'Barlow Condensed', 'Fira Sans Extra Condensed', sans-serif;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, 0.55));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fact span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Заголовки разделов ---------- */

section {
  position: relative;
}

.sec-head {
  max-width: 780px;
  margin-bottom: 56px;
}

.sec-head h2,
.final h2 {
  margin-top: 14px;
  font: 800 clamp(42px, 6vw, 84px) / 0.92 var(--display);
  font-stretch: var(--stretch);
  text-transform: uppercase;
  letter-spacing: -0.008em;
}

html[data-lang='ka'] .sec-head h2,
html[data-lang='ka'] .final h2 {
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.05;
}

/* ---------- Как это работает ---------- */

.story {
  padding: 110px 0 60px;
}

.story-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}

.story-sticky {
  position: sticky;
  top: calc(50vh - 330px);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 660px;
}

.story-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--story-c, #52cce0) 0%, transparent 62%);
  opacity: 0.28;
  filter: blur(40px);
  transition: background 0.8s;
}

.phone-story {
  --w: 290px;
}

.phone-story .screens {
  position: relative;
  overflow: hidden;
}

.phone-story .screens img {
  position: absolute;
  inset: 0;
  border-radius: 0;
  opacity: 0;
  transform: scale(1.06) translateY(14px);
  filter: blur(8px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.9s var(--ease),
    filter 0.7s var(--ease);
}

.phone-story .screens img.on {
  opacity: 1;
  transform: none;
  filter: none;
}

.story-dots {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.story-dots li {
  width: 4px;
  height: 22px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
  transition:
    background 0.4s,
    height 0.4s var(--ease);
}

.story-dots li.on {
  height: 44px;
  background: var(--c);
  box-shadow: 0 0 14px var(--c);
}

.step {
  display: flex;
  align-items: center;
  min-height: 82vh;
  padding: 40px 0;
}

.step .phone-inline {
  display: none;
}

.step-body {
  max-width: 520px;
  transition:
    opacity 0.5s,
    transform 0.6s var(--ease);
}

.js .step:not(.on) .step-body {
  opacity: 0.28;
  transform: translateX(-8px);
}

.step-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.step-num {
  font: 800 52px/1 'Barlow Condensed', sans-serif;
  color: var(--c);
  text-shadow: 0 0 30px color-mix(in srgb, var(--c) 50%, transparent);
}

.step .kicker {
  color: var(--c);
}

.step h3 {
  font: 700 clamp(32px, 3.4vw, 46px) / 1 var(--display);
  font-stretch: var(--stretch);
  text-transform: uppercase;
  letter-spacing: -0.005em;
}

html[data-lang='ka'] .step h3,
html[data-lang='ka'] .tile h3 {
  line-height: 1.12;
}

.step p {
  margin: 18px 0 22px;
  color: var(--muted);
  font-size: 18px;
}

.ticks,
.pills {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticks {
  display: grid;
  gap: 10px;
}

.ticks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.ticks .i {
  background: var(--c);
}

/* ---------- Возможности (бенто) ---------- */

.bento {
  padding: 110px 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(300px, auto);
  gap: 16px;
}

.tile {
  --mx: 50%;
  --my: 0%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(420px circle at var(--mx) var(--my), rgba(82, 204, 224, 0.1), transparent 45%),
    var(--card);
  overflow: hidden;
  transition: border-color 0.4s;
}

.tile:hover {
  border-color: rgba(82, 204, 224, 0.3);
}

.tile:nth-child(2) {
  --d: 1;
}
.tile:nth-child(3) {
  --d: 2;
}
.tile:nth-child(4) {
  --d: 3;
}
.tile:nth-child(6) {
  --d: 1;
}
.tile:nth-child(7) {
  --d: 2;
}
.tile:nth-child(8) {
  --d: 3;
}

.t-heart {
  grid-column: span 2;
  grid-row: span 2;
}

.t-voice,
.t-goal {
  grid-column: span 2;
}

.tile-ico {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(82, 204, 224, 0.12);
  color: var(--accent);
}

.tile-ico .i {
  width: 19px;
  height: 19px;
}

.tile h3 {
  font: 700 25px/1.05 var(--display);
  font-stretch: var(--stretch);
  text-transform: uppercase;
  letter-spacing: 0.005em;
}

.tile p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.viz {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
}

/* Пульс */

.t-heart .viz {
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}

.bpm {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.bpm b {
  font: 800 clamp(110px, 12vw, 168px) / 0.82 'Barlow Condensed', sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.bpm span {
  font: 600 18px/1 var(--text);
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.beat.big {
  width: 44px;
  height: 44px;
  margin-left: auto;
  align-self: flex-start;
  filter: drop-shadow(0 0 18px rgba(255, 79, 139, 0.8));
}

.ecg-wide {
  height: 64px;
}

.ecg-wide path {
  stroke-width: 2.5;
  animation-duration: 2.2s;
  stroke-dasharray: 90 300;
}

.zones {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.zones i {
  height: 8px;
  border-radius: 4px;
  opacity: 0.35;
}

.zones i:nth-child(1) {
  background: #8a9bb0;
}
.zones i:nth-child(2) {
  background: var(--blue);
}
.zones i:nth-child(3) {
  background: var(--green);
}
.zones i:nth-child(4) {
  background: var(--orange);
}
.zones i:nth-child(5) {
  background: var(--pink);
}

.zones i.on {
  opacity: 1;
  box-shadow: 0 0 16px var(--orange);
  animation: zone 2.4s ease-in-out infinite;
}

/* Голос */

.t-voice .viz {
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.bubble {
  position: relative;
  max-width: 100%;
  padding: 16px 20px;
  border-radius: 20px 20px 20px 6px;
  background: rgba(82, 204, 224, 0.12);
  border: 1px solid rgba(82, 204, 224, 0.28);
  font: 500 19px/1.35 var(--text);
  min-height: 3.1em;
}

.typed.typing::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--accent);
  animation: blink 0.8s steps(2, jump-none) infinite;
}

.bars {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 46px;
}

.bars i {
  width: 4px;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent-hi), var(--accent));
  transform: scaleY(0.2);
  animation: eq 1.1s ease-in-out infinite;
  animation-delay: calc(var(--k) * -0.11s);
}

/* Автопауза */

.track {
  position: relative;
  width: 100%;
  height: 80px;
}

.track::before {
  content: '';
  position: absolute;
  left: 4%;
  right: 4%;
  top: 50%;
  height: 4px;
  margin-top: -2px;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 10px, transparent 10px 18px);
}

.track .dot {
  position: absolute;
  top: 50%;
  left: 4%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--accent);
  box-shadow: 0 0 18px var(--accent);
  animation: autopause 6s var(--ease) infinite;
}

.track .light {
  position: absolute;
  left: 50%;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 5px;
  margin-left: -11px;
  border-radius: 8px;
  background: #15181d;
  border: 1px solid var(--line);
}

.track .light i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.track .light i:first-child {
  animation: red-light 6s infinite;
}

.track .light i:last-child {
  animation: green-light 6s infinite;
}

.track .paused {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  border-radius: 8px;
  background: var(--accent);
  color: #05171b;
  opacity: 0;
  animation: paused 6s infinite;
}

.track .paused .i {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Блокировка */

.radar {
  position: relative;
  display: grid;
  place-items: center;
  width: 130px;
  height: 130px;
}

.radar i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0;
  animation: radar 3s ease-out infinite;
}

.radar i:nth-child(2) {
  animation-delay: 1s;
}
.radar i:nth-child(3) {
  animation-delay: 2s;
}

.radar span {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(160deg, #1c2026, #0f1114);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px -10px rgba(82, 204, 224, 0.6);
  color: var(--accent);
}

.radar span .i {
  width: 28px;
  height: 28px;
}

/* Обувь */

.ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 140px;
  height: 140px;
}

.ring svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.ring circle {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
}

.ring-bg {
  stroke: rgba(255, 255, 255, 0.08);
}

.ring-fg {
  stroke: var(--accent);
  stroke-dasharray: 100;
  stroke-dashoffset: 31;
  filter: drop-shadow(0 0 6px rgba(82, 204, 224, 0.7));
}

.js .ring-fg {
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 2.2s var(--ease) 0.3s;
}

.js .tile.in .ring-fg {
  stroke-dashoffset: 31;
}

.ring div {
  text-align: center;
}

.ring b {
  display: block;
  font: 800 40px/0.9 'Barlow Condensed', sans-serif;
  font-variant-numeric: tabular-nums;
}

.ring small {
  color: var(--dim);
  font-size: 12px;
}

/* Стикер */

.sticker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 20px 12px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  border: 1px dashed rgba(255, 255, 255, 0.28);
  transform: rotate(-6deg);
  animation: wobble 5s ease-in-out infinite;
}

.sticker svg {
  width: 72px;
  height: 72px;
}

.sticker path {
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 6px rgba(82, 204, 224, 0.8));
}

.js .sticker path {
  stroke-dashoffset: 1;
}

.js .tile.in .sticker path {
  animation: draw 2.4s var(--ease) 0.3s forwards;
}

.sticker b {
  font: 800 30px/1 'Barlow Condensed', sans-serif;
}

.sticker b small {
  font-size: 14px;
  color: var(--accent);
}

.sticker span {
  margin-top: 4px;
  font: 700 11px/1 'Barlow Condensed', sans-serif;
  letter-spacing: 0.2em;
}

.sticker em {
  color: var(--accent);
}

/* Цель */

.goal {
  width: 100%;
}

.goal-num {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.goal-num b {
  font: 800 72px/0.85 'Barlow Condensed', sans-serif;
  font-variant-numeric: tabular-nums;
}

.goal-num small {
  color: var(--accent);
  font: 600 20px/1 'Barlow Condensed', sans-serif;
}

.goal-num span {
  margin-left: auto;
  font: 700 30px/1 'Barlow Condensed', sans-serif;
  color: var(--muted);
}

.goal-segs {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  margin-top: 16px;
}

.goal-segs i {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.goal-segs i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.goal-segs i:nth-child(-n + 3)::after {
  transform: scaleX(1);
}

.goal-segs i:nth-child(4)::after {
  transform: scaleX(0.42);
}

.js .goal-segs i::after {
  transform: scaleX(0);
}

.js .tile.in .goal-segs i:nth-child(-n + 3)::after {
  transform: scaleX(1);
}

.js .tile.in .goal-segs i:nth-child(4)::after {
  transform: scaleX(0.42);
}

.js .tile.in .goal-segs i:nth-child(2)::after {
  transition-delay: 0.25s;
}
.js .tile.in .goal-segs i:nth-child(3)::after {
  transition-delay: 0.5s;
}
.js .tile.in .goal-segs i:nth-child(4)::after {
  transition-delay: 0.75s;
}

/* Языки */

.roll {
  position: relative;
  width: 100%;
  height: 140px;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}

.roll-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: roll 26s linear infinite;
}

.roll span {
  font: 700 30px/1.45 'Barlow Condensed', 'Fira Sans Extra Condensed', 'Noto Sans Georgian', 'Noto Sans Armenian', sans-serif;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.roll span:nth-child(3n + 1) {
  color: var(--accent);
}

/* ---------- Экраны ---------- */

.gallery {
  padding: 110px 0 80px;
  overflow: hidden;
}

.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.gallery-head .sec-head {
  margin-bottom: 40px;
}

.rail-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 48px;
}

.rail-btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--fg);
  cursor: pointer;
  transition:
    background 0.3s,
    border-color 0.3s,
    transform 0.3s var(--ease);
}

.rail-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #05171b;
  transform: scale(1.06);
}

.rail-btn .i {
  width: 22px;
  height: 22px;
}

.rail-btn[data-dir='-1'] .i {
  transform: rotate(180deg);
}

.rail {
  display: flex;
  gap: 34px;
  padding: 30px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  perspective: 1600px;
  cursor: grab;
  outline: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

.rail.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.rail.dragging img {
  pointer-events: none;
}

.shot {
  flex: none;
  margin: 0;
  scroll-snap-align: center;
  transform-style: preserve-3d;
  will-change: transform;
}

.shot .phone {
  --w: 270px;
  user-select: none;
  -webkit-user-drag: none;
}

.shot img {
  -webkit-user-drag: none;
}

.shot figcaption {
  margin-top: 22px;
  text-align: center;
  font: 600 13px/1.2 var(--text);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.4s;
}

.shot.center figcaption {
  color: var(--accent);
}

html[data-lang='ka'] .shot figcaption {
  letter-spacing: 0.04em;
}

.rail-hint {
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  font-size: 14px;
}

.rail-hint .i {
  animation: nudge 1.6s ease-in-out infinite;
}

/* ---------- Приватность ---------- */

.privacy {
  padding: 140px 0;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(82, 204, 224, 0.08), transparent 70%),
    linear-gradient(180deg, transparent, var(--bg-2) 30%, var(--bg-2) 70%, transparent);
}

.privacy-inner {
  max-width: 980px;
}

.shield {
  display: inline-grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: 26px;
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(82, 204, 224, 0.2), rgba(82, 204, 224, 0.04));
  border: 1px solid rgba(82, 204, 224, 0.35);
  color: var(--accent);
  box-shadow: 0 20px 60px -20px rgba(82, 204, 224, 0.6);
}

.shield .i {
  width: 40px;
  height: 40px;
  stroke-width: 1.6;
}

.words {
  margin: 18px 0 28px;
  font: 800 clamp(40px, 6vw, 88px) / 0.95 var(--display);
  font-stretch: var(--stretch);
  text-transform: uppercase;
  letter-spacing: -0.008em;
}

html[data-lang='ka'] .words {
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.1;
}

.js .words .w {
  color: rgba(255, 255, 255, 0.14);
  transition: color 0.35s;
}

.js .words .w.on {
  color: #fff;
}

.js .words .w.on:nth-last-child(-n + 3) {
  color: var(--accent);
}

.privacy-text {
  max-width: 680px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 18px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.pills li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 15px;
}

/* ---------- Финал ---------- */

.final {
  padding: 130px 0 150px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.final-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.final-bg .contours {
  right: 50%;
  margin-right: -550px;
  stroke: rgba(82, 204, 224, 0.09);
  animation-direction: reverse;
}

.rings {
  position: absolute;
  left: 50%;
  top: 34%;
}

.rings i {
  position: absolute;
  left: -160px;
  top: -160px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(82, 204, 224, 0.5);
  opacity: 0;
  animation: ring 4.5s ease-out infinite;
}

.rings i:nth-child(2) {
  animation-delay: 1.5s;
}
.rings i:nth-child(3) {
  animation-delay: 3s;
}

.final-inner {
  max-width: 860px;
}

.horse {
  position: relative;
  width: min(420px, 80vw);
  margin: 0 auto 30px;
}

.horse img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(82, 204, 224, 0.45));
  animation: gallop 3.2s ease-in-out infinite;
}

.horse-ecg {
  position: absolute;
  left: -30%;
  right: -30%;
  width: 160%;
  top: 56%;
  height: 50px;
  z-index: -1;
  opacity: 0.6;
}

.horse-ecg path {
  stroke: var(--accent);
  stroke-dasharray: 120 400;
  animation-duration: 2.8s;
  filter: drop-shadow(0 0 6px rgba(82, 204, 224, 0.9));
}

.final h2 {
  margin: 0 0 20px;
}

.final p {
  max-width: 600px;
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: 18px;
}

.final .stores {
  justify-content: center;
}

/* ---------- Подвал ---------- */

.foot {
  padding: 56px 0 44px;
  border-top: 1px solid var(--line);
  background: #050607;
  font-size: 14px;
}

.foot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.foot-nav a,
.foot-langs a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}

.foot-nav a:hover,
.foot-langs a:hover {
  color: var(--fg);
}

.foot-about {
  max-width: 640px;
  margin: 22px 0;
  color: var(--dim);
}

.foot-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  font-size: 13px;
}

.foot-langs a[aria-current] {
  color: var(--accent);
}

.foot-copy {
  margin-top: 18px;
  color: var(--dim);
  font-size: 13px;
}

/* ---------- Ключевые кадры ---------- */

@keyframes rise {
  to {
    transform: none;
  }
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: none;
  }
}

/* translate/scale, а не transform: transform плашек двигает параллакс (landing.js). */
@keyframes pop {
  from {
    opacity: 0;
    translate: 0 14px;
    scale: 0.92;
  }
  to {
    opacity: 1;
    translate: none;
    scale: 1;
  }
}

@keyframes phone-in {
  from {
    opacity: 0;
    transform: translateY(80px) rotateX(18deg) rotateY(-16deg) scale(0.92);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes back-in {
  from {
    opacity: 0;
    transform: translate(40px, 60px) rotate(-2deg);
  }
  to {
    opacity: 0.5;
    transform: rotate(-9deg);
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

@keyframes drift1 {
  to {
    transform: translate(-80px, 60px) scale(1.12);
  }
}

@keyframes drift2 {
  to {
    transform: translate(90px, -50px) scale(0.92);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ping {
  from {
    transform: scale(0.6);
    opacity: 0.9;
  }
  to {
    transform: scale(2.2);
    opacity: 0;
  }
}

@keyframes halo {
  from {
    transform: scale(0.5);
    opacity: 1;
  }
  to {
    transform: scale(1.6);
    opacity: 0;
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes blink {
  50% {
    opacity: 0.2;
  }
}

@keyframes beat {
  0%,
  100% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.25);
  }
  30% {
    transform: scale(0.95);
  }
  45% {
    transform: scale(1.12);
  }
}

@keyframes ecg {
  from {
    stroke-dashoffset: 360;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes flash {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.06);
    border-color: rgba(126, 217, 87, 0.6);
    box-shadow: 0 0 40px -8px rgba(126, 217, 87, 0.6);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes zone {
  50% {
    box-shadow: 0 0 4px var(--orange);
  }
}

@keyframes eq {
  0%,
  100% {
    transform: scaleY(0.18);
  }
  50% {
    transform: scaleY(1);
  }
}

@keyframes autopause {
  0% {
    left: 4%;
  }
  38%,
  62% {
    left: 50%;
  }
  100% {
    left: 96%;
  }
}

@keyframes red-light {
  0%,
  32%,
  64%,
  100% {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
  }
  36%,
  60% {
    background: var(--red);
    box-shadow: 0 0 10px var(--red);
  }
}

@keyframes green-light {
  0%,
  60%,
  100% {
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
  }
  34%,
  58% {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
  }
}

@keyframes paused {
  0%,
  37%,
  63%,
  100% {
    opacity: 0;
    transform: translateY(6px);
  }
  41%,
  59% {
    opacity: 1;
    transform: none;
  }
}

@keyframes radar {
  from {
    transform: scale(0.45);
    opacity: 0.9;
  }
  to {
    transform: scale(1.25);
    opacity: 0;
  }
}

@keyframes wobble {
  0%,
  100% {
    transform: rotate(-6deg) translateY(0);
  }
  50% {
    transform: rotate(-2deg) translateY(-6px);
  }
}

@keyframes roll {
  to {
    transform: translateY(-50%);
  }
}

@keyframes nudge {
  50% {
    transform: translateX(5px);
  }
}

@keyframes ring {
  from {
    transform: scale(0.6);
    opacity: 0.8;
  }
  to {
    transform: scale(2.6);
    opacity: 0;
  }
}

@keyframes gallop {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-10px) rotate(-1.2deg);
  }
}

/* ---------- Адаптив ---------- */

@media (max-width: 1080px) {
  .menu {
    display: none;
  }

  .lang {
    margin-left: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .h1 {
    font-size: min(128px, calc((100vw - 48px) / (var(--cw, 0.5) * var(--chars, 10))));
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .lead {
    margin-inline: auto;
  }

  .stores,
  .perks {
    justify-content: center;
  }

  .hero-visual {
    height: 640px;
    min-height: 0;
    max-width: 560px;
    width: 100%;
    margin: 10px auto 0;
  }

  .facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .t-heart {
    grid-row: span 1;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 18px;
  }

  body {
    font-size: 16px;
  }

  .nav-inner {
    gap: 12px;
    height: 60px;
  }

  .logo {
    font-size: 20px;
  }

  .btn-nav {
    padding: 9px 14px;
    font-size: 13px;
  }

  .lang summary span {
    display: none;
  }

  .lang-menu {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 64px;
  }

  .hero {
    padding: 92px 0 40px;
  }

  .h1 {
    font-size: min(88px, calc((100vw - 40px) / (var(--cw, 0.5) * var(--chars, 10))));
  }

  /* Не влезли рядом (длинная подпись) — встают друг под другом во всю ширину. */
  .store {
    min-width: 0;
    flex: 1 1 auto;
    gap: 9px;
    padding: 10px 12px;
  }

  .store span {
    min-width: max-content;
  }

  .store-logo {
    width: 20px;
    height: 20px;
  }

  .store b {
    font-size: 16px;
  }

  .hero-visual {
    height: 540px;
  }

  .hero-visual > .depth:nth-of-type(2) {
    margin: -255px 0 0 -110px;
  }

  .phone-main {
    --w: 236px;
  }

  .phone-back {
    --w: 180px;
  }

  .f-rec {
    right: 0;
    top: 2%;
  }

  .f-dist {
    left: -3%;
    top: 47%;
    padding: 10px 12px;
  }

  .f-dist b {
    font-size: 34px;
  }

  .segs i {
    width: 9px;
  }

  .f-pulse {
    width: 136px;
    right: -3%;
    top: 26%;
    padding: 10px 12px;
  }

  .f-pulse b {
    font-size: 30px;
  }

  .f-split {
    left: 0;
    bottom: 3%;
  }

  .mq-ticker .mq-item {
    font-size: 13px;
  }

  .facts {
    padding: 60px 0 10px;
  }

  .facts-grid {
    gap: 10px;
  }

  .fact {
    padding: 20px 18px;
    border-radius: 20px;
  }

  .fact span {
    font-size: 14px;
  }

  .sec-head {
    margin-bottom: 36px;
  }

  .story {
    padding: 80px 0 20px;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-visual {
    display: none;
  }

  .step {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    min-height: 0;
    padding: 0 0 72px;
  }

  .step .phone-inline {
    display: block;
    --w: min(250px, 66vw);
    align-self: center;
  }

  .js .step:not(.on) .step-body {
    opacity: 1;
    transform: none;
  }

  .step p {
    font-size: 16.5px;
  }

  .bento {
    padding: 70px 0;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .t-heart,
  .t-voice,
  .t-goal {
    grid-column: auto;
  }

  .tile {
    border-radius: 24px;
    padding: 20px;
  }

  .viz {
    min-height: 140px;
  }

  .gallery {
    padding: 70px 0 50px;
  }

  .rail-nav {
    display: none;
  }

  .rail {
    gap: 18px;
    padding: 10px calc(50vw - min(115px, 31vw)) 30px;
  }

  .shot .phone {
    --w: min(230px, 62vw);
  }

  .rail-hint {
    display: flex;
    justify-content: center;
  }

  .privacy {
    padding: 90px 0;
  }

  .final {
    padding: 90px 0 110px;
  }

  .foot-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }

  .mq-track,
  .roll-track {
    animation: none !important;
  }
}
