/* ===== Токены ===== */
:root {
  --logo: #146147;
  --g-900: #0a3a22;
  --g-800: #0f4d2e;
  --g-700: #11663b;
  --g-600: #15803d;
  --g-500: #16a34a;
  --g-400: #2fc46a;
  --g-300: #86e3ab;
  --g-200: #c6f2d6;
  --g-100: #e3f8ea;
  --g-50: #f2fbf5;

  --ink: #0c2016;
  --ink-2: #33473b;
  --muted: #61756a;
  --line: rgba(12, 60, 32, 0.08);
  --bg: #f6fbf7;
  --white: #ffffff;

  /* стекло */
  --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.28));
  --glass-bg-strong: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.5));
  --glass-border: rgba(255, 255, 255, 0.75);
  --glass-blur: blur(22px) saturate(180%);
  --glass-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    inset 0 -1px 1px rgba(10, 58, 34, 0.05),
    0 1px 2px rgba(10, 58, 34, 0.04),
    0 12px 40px -12px rgba(10, 58, 34, 0.14);

  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 32px;
  --r-pill: 999px;

  --container: 1160px;
  --gutter: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ===== База ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.025em; line-height: 1.1; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--g-500); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-pill); background: var(--g-600); color: #fff;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }
.center { display: flex; justify-content: center; margin-top: 48px; }

/* ===== Фон: мягкие зелёные пятна, сквозь которые «смотрит» стекло ===== */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55;
  animation: drift 26s var(--ease) infinite alternate;
}
.blob--1 { width: 60vmax; height: 60vmax; left: -18vmax; top: -22vmax; background: radial-gradient(circle, #a7f0c4 0%, transparent 65%); }
.blob--2 { width: 50vmax; height: 50vmax; right: -16vmax; top: 18vh; background: radial-gradient(circle, #6fdc9d 0%, transparent 62%); opacity: 0.38; animation-duration: 32s; }
.blob--3 { width: 46vmax; height: 46vmax; left: 20vw; bottom: -26vmax; background: radial-gradient(circle, #d4f7a8 0%, transparent 60%); opacity: 0.4; animation-duration: 38s; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(6vw, 4vh, 0) scale(1.12); }
}

/* ===== Liquid glass ===== */
.glass {
  position: relative;
  isolation: isolate;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.glass--strong { background: var(--glass-bg-strong); }
/* блик по краю — имитация преломления на кромке */
.glass::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(255, 255, 255, 0.7), transparent 55%),
    radial-gradient(80% 50% at 100% 100%, rgba(134, 227, 171, 0.18), transparent 60%);
}
/* световое пятно за курсором */
.glass::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.55), transparent 60%);
}
.glass:hover::after { opacity: 1; }

/* ===== Кнопки ===== */
.btn {
  --h: 46px;
  position: relative;
  isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.35s var(--ease);
  overflow: hidden;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn--sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn--lg { --h: 54px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }

/* Регистрируем переменные, чтобы блик плавно поворачивался, а свет плавно разгорался */
@property --lg-angle { syntax: "<angle>"; inherits: true; initial-value: 315deg; }
@property --lg-press { syntax: "<number>"; inherits: true; initial-value: 0; }

/* ===== Liquid glass для кнопок =====
   Слои снизу вверх:
   1. backdrop — размытие + (в Chromium) SVG-линза, которая «втягивает» фон у кромки;
   2. тонировка материала (--lg-tint);
   3. ::after — свет под пальцем/курсором, ярче при нажатии;
   4. текст;
   5. ::before — блик по кромке: ярче со стороны света (--lg-angle) и напротив неё.
   При нажатии кнопка упруго «надувается», как контролы в iOS. */
.btn--primary, .btn--glass, .icon-btn, .menu-toggle {
  --lg-tint: rgba(255, 255, 255, 0.3);
  --lg-angle: 315deg;
  --lg-press: 0;
  --lg-blur: blur(8px) saturate(190%) brightness(1.04);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--lg-tint);
  -webkit-backdrop-filter: var(--lg-blur);
  backdrop-filter: var(--lg-blur);
  border: 0;
  box-shadow:
    inset 0 1px 0.5px rgba(255, 255, 255, 0.85),
    inset 0 -1px 0.5px rgba(255, 255, 255, 0.35),
    inset 0 10px 18px -12px rgba(255, 255, 255, 0.95),
    inset 0 -12px 20px -14px rgba(10, 58, 34, 0.22),
    0 1px 2px rgba(10, 58, 34, 0.08),
    0 8px 22px -10px rgba(10, 58, 34, 0.3);
  transition:
    transform 0.55s var(--spring),
    box-shadow 0.35s var(--ease),
    background 0.35s var(--ease),
    opacity 0.3s,
    --lg-angle 0.6s var(--ease),
    --lg-press 0.3s var(--ease);
}
/* настоящее преломление: фильтр собирается в JS под размер каждой кнопки */
html.lg-refract :is(.btn--primary, .btn--glass, .icon-btn, .menu-toggle) {
  -webkit-backdrop-filter: var(--lg-filter, var(--lg-blur));
  backdrop-filter: var(--lg-filter, var(--lg-blur));
}
:is(.btn--primary, .btn--glass, .icon-btn, .menu-toggle)::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--lg-angle),
    rgba(255, 255, 255, 1) 0deg,
    rgba(255, 255, 255, 0.35) 45deg,
    rgba(255, 255, 255, 0.06) 100deg,
    rgba(255, 255, 255, 0.7) 180deg,
    rgba(255, 255, 255, 0.06) 260deg,
    rgba(255, 255, 255, 0.35) 315deg,
    rgba(255, 255, 255, 1) 360deg);
  -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, linear-gradient(#000 0 0);
  mask-composite: exclude;
  transition: opacity 0.3s;
}
:is(.btn--primary, .btn--glass, .icon-btn, .menu-toggle)::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(140px circle at var(--mx, 50%) var(--my, 0%),
    rgba(255, 255, 255, calc(0.35 + var(--lg-press) * 0.4)), rgba(255, 255, 255, 0) 65%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
:is(.btn--primary, .btn--glass, .icon-btn, .menu-toggle):hover::after { opacity: 1; }
:is(.btn--primary, .btn--glass, .icon-btn, .menu-toggle):active,
:is(.btn--primary, .btn--glass, .icon-btn, .menu-toggle).is-pressed {
  --lg-press: 1;
  transform: scale(1.045);
  transition-duration: 0.18s;
}
:is(.btn--primary, .btn--glass, .icon-btn, .menu-toggle):is(:active, .is-pressed)::after { opacity: 1; }

/* тонированное стекло — главная кнопка: зелень пропускает свет, он собирается у нижней кромки */
.btn--primary {
  --lg-tint: linear-gradient(180deg, rgba(60, 208, 120, 0.94) 0%, rgba(22, 163, 74, 0.95) 55%, rgba(14, 108, 51, 0.97) 100%);
  color: #fff;
  text-shadow: 0 1px 1px rgba(6, 60, 28, 0.35);
  box-shadow:
    inset 0 1px 0.5px rgba(255, 255, 255, 0.9),
    inset 0 10px 14px -12px rgba(255, 255, 255, 0.85),
    inset 0 -9px 14px -9px rgba(170, 255, 205, 0.6),
    0 0 0 0.5px rgba(10, 90, 45, 0.35),
    0 1px 2px rgba(10, 58, 34, 0.12),
    0 8px 18px -10px rgba(22, 163, 74, 0.8);
}
.btn--primary::before { padding: 1.25px; opacity: 0.95; }
.btn--primary:hover {
  box-shadow:
    inset 0 1px 0.5px rgba(255, 255, 255, 0.95),
    inset 0 10px 14px -12px rgba(255, 255, 255, 0.9),
    inset 0 -9px 16px -9px rgba(170, 255, 205, 0.75),
    0 0 0 0.5px rgba(10, 90, 45, 0.35),
    0 1px 2px rgba(10, 58, 34, 0.12),
    0 12px 24px -12px rgba(22, 163, 74, 0.85);
}

/* прозрачное стекло — второстепенная кнопка */
.btn--glass { color: var(--g-800); }
.btn--glass:hover { --lg-tint: rgba(255, 255, 255, 0.5); }

.icon-btn {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--g-800);
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:disabled { opacity: 0.4; cursor: default; transform: none; }
.icon-btn:disabled::after { display: none; }

/* шапка и плашка с тарифом — тоже линза, но с более сильным размытием ради читаемости */
html.lg-refract :is(.header__bar, .dock) {
  -webkit-backdrop-filter: var(--lg-filter, var(--glass-blur));
  backdrop-filter: var(--lg-filter, var(--glass-blur));
}

/* SVG с фильтрами преломления — служебный, на странице не виден */
.lg-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 500; color: var(--g-800);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--g-500); box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18); }

.badge {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 700; color: var(--g-700);
  background: var(--g-100); border: 1px solid var(--g-200);
}

/* ===== Шапка ===== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 14px var(--gutter) 0; }
.header__bar {
  max-width: var(--container); margin: 0 auto;
  height: 62px; padding: 0 10px 0 18px;
  display: flex; align-items: center; gap: 24px;
  border-radius: var(--r-pill);
  transition: box-shadow 0.4s var(--ease);
}
.header.is-scrolled .header__bar { box-shadow: var(--glass-shadow), 0 18px 50px -20px rgba(10, 58, 34, 0.25); }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.brand__mark {
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg, var(--g-400), var(--g-700));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 4px 12px -4px rgba(22, 163, 74, 0.6);
}
.brand__mark svg { height: 68%; aspect-ratio: 754 / 1044; }
.brand__mark--lg { width: 56px; height: 56px; border-radius: 16px; }
/* логотип без плашки — в шапке и подвале, в фирменном цвете знака */
.brand__logo { display: inline-grid; color: var(--logo); }
.brand__logo svg { height: 34px; aspect-ratio: 754 / 1044; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 14px; border-radius: var(--r-pill);
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  transition: background-color 0.25s, color 0.25s;
}
.nav a:hover { background: rgba(255, 255, 255, 0.7); color: var(--g-800); }
.header__actions { display: flex; align-items: center; gap: 8px; }

.menu-toggle {
  display: none; width: 42px; height: 42px; border-radius: 50%;
  --lg-tint: rgba(255, 255, 255, 0.45);
}
.menu-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 24px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; overflow: clip; }
.hero__pin { padding: 150px 0 80px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.6vw, 68px); font-weight: 800; letter-spacing: -0.04em; margin: 22px 0 22px; }
.hero__lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* ===== Сцена первого экрана ===== */
/* На широких экранах первый экран «залипает», пока телефон собирается из иконок */
@media (min-width: 961px) {
  .hero { height: 175vh; }
  .hero__pin {
    position: sticky; top: 0; min-height: 100vh;
    display: flex; align-items: center; padding: 96px 0 32px;
  }
  .hero__pin > .container { width: 100%; }
}

.hero__visual { position: relative; height: 620px; }
.hero__copy { position: relative; z-index: 2; }

.ribbon {
  position: absolute; z-index: 0; pointer-events: none;
  top: 50%; left: -70%; width: 260%; height: 560px;
  translate: 0 -50%;
  opacity: var(--ribbon-o, 1);
  transform: translateY(var(--ribbon-y, 0px));
}
.ribbon__shine { stroke-dasharray: 18 82; animation: shine 6s linear infinite; }
@keyframes shine { to { stroke-dashoffset: -100; } }

.stage {
  position: absolute; z-index: 1; left: 50%; top: 50%;
  width: 560px; height: 620px; margin: -310px 0 0 -280px;
  transform: scale(var(--stage-scale, 1));
  perspective: 1400px;
}
.stage__glow {
  position: absolute; inset: 10% 5%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(134, 227, 171, 0.55), rgba(134, 227, 171, 0) 70%);
  filter: blur(20px);
}
.stage__space { position: absolute; inset: 0; transform-style: preserve-3d; }
.stage__space > * , [data-stage-tiles] > * { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; will-change: transform; }
[data-stage-tiles] { position: absolute; inset: 0; transform-style: preserve-3d; }

/* объёмный логотип */
.mark3d { width: 200px; height: 200px; margin: -100px 0 0 -100px; }
.mark3d__layer, .mark3d__face { position: absolute; inset: 0; border-radius: 48px; }
.mark3d__layer {
  background: linear-gradient(160deg, #1f9e52, #0b4a2a);
  transform: translateZ(calc(var(--d) * -3.5px));
}
.mark3d__face {
  display: grid; place-items: center; color: #fff; overflow: hidden;
  background: linear-gradient(155deg, #4fdc8a 0%, #22b45f 45%, #13753c 100%);
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.6), inset 0 -6px 16px rgba(6, 50, 26, 0.35);
}
.mark3d__face::before {
  content: ""; position: absolute; inset: -20% -20% 48% -20%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
  border-radius: 0 0 50% 50%;
}
.mark3d__face svg { position: relative; height: 128px; aspect-ratio: 754 / 1044; filter: drop-shadow(0 6px 10px rgba(6, 50, 26, 0.3)); }

/* телефон, в который собираются иконки */
.stage-phone {
  width: 250px; height: 528px; margin: -264px 0 0 -125px;
  border-radius: 44px; padding: 54px 18px 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(236, 250, 242, 0.9));
  border: 1.5px solid #fff;
  box-shadow:
    inset 0 0 0 6px rgba(12, 32, 22, 0.035),
    0 2px 4px rgba(10, 58, 34, 0.06),
    0 50px 90px -30px rgba(10, 58, 34, 0.45);
}
.stage-phone__search {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px;
  border-radius: 12px; font-size: 12.5px; color: var(--muted); background: rgba(12, 60, 32, 0.05);
}
.stage-phone__search svg { width: 15px; height: 15px; }

/* иконка в сцене */
.htile { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
.htile .app__icon { width: 100%; height: 100%; max-width: none; font-size: 17px; }
.htile__name {
  position: absolute; left: 50%; top: 59px; width: 64px; margin-left: -32px;
  font-size: 10px; text-align: center; color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  opacity: var(--label, 0);
}

.hero__visual [data-stage-card] {
  z-index: 3;
  opacity: var(--cards, 0);
  translate: 0 calc((1 - var(--cards, 0)) * 16px);
}

/* телефон */
.phone {
  width: 300px; aspect-ratio: 9 / 19;
  border-radius: 48px; padding: 52px 18px 18px;
  border-width: 1.5px;
  box-shadow: var(--glass-shadow), 0 40px 80px -30px rgba(10, 58, 34, 0.35);
}
.phone__notch {
  position: absolute; top: 14px; left: 50%; translate: -50% 0;
  width: 92px; height: 26px; border-radius: 20px; background: rgba(12, 32, 22, 0.88);
}
.phone__status {
  position: absolute; top: 16px; left: 30px; right: 30px;
  display: flex; justify-content: space-between; font-size: 13px; font-weight: 600;
}
.phone__sys { width: 26px; height: 11px; border-radius: 3px; border: 1.5px solid var(--ink); opacity: 0.7; }
.phone__search {
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 12px; border-radius: 12px;
  font-size: 13px; color: var(--muted); margin-bottom: 18px;
}
.phone__search svg { width: 16px; height: 16px; }
.phone__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 10px; }
.phone__grid .app { animation: bob 6s ease-in-out infinite; animation-delay: calc(var(--i) * -0.37s); }
.phone__grid--sm { gap: 12px 8px; margin-top: 8px; }
@keyframes bob { 50% { transform: translateY(-4px); } }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 18px;
  animation: float 7s ease-in-out infinite;
}
.float-card b { display: block; font-size: 14px; }
.float-card small { display: block; font-size: 12px; color: var(--muted); }
.float-card--a { left: 0; top: 22%; }
.float-card--b { right: 0; bottom: 16%; flex-direction: column; align-items: flex-start; gap: 0; animation-delay: -3s; }
.float-card--b b { font-size: 28px; color: var(--g-600); letter-spacing: -0.03em; }
.float-card__icon {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--g-500); color: #fff; font-size: 15px; font-weight: 700;
}
@keyframes float { 50% { transform: translateY(-10px); } }

/* ===== Иконка приложения (монограмма) ===== */
.app { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.app__icon {
  --c1: var(--g-400); --c2: var(--g-700);
  position: relative; overflow: hidden;
  width: 100%; max-width: 64px; aspect-ratio: 1;
  border-radius: 23%;
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 17px; letter-spacing: -0.03em;
  background: linear-gradient(155deg, var(--c1), var(--c2));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.55), inset 0 -2px 6px rgba(0, 0, 0, 0.12), 0 6px 14px -8px rgba(10, 58, 34, 0.55);
}
.app__icon::before {
  content: ""; position: absolute; inset: 0 0 55% 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent);
}
/* настоящая иконка: картинка + лёгкий стеклянный блик сверху */
.app__icon--img { background: #fff; }
.app__icon--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.app__icon--img::before { z-index: 1; background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent); }
.app__name { font-size: 11px; color: var(--ink-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== Секции ===== */
.section { padding: 90px 0; }
.section__head { max-width: 680px; margin-bottom: 44px; }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section__head--row > div:first-child { max-width: 680px; }
.section h2 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 750; letter-spacing: -0.035em; }
.section__lead { margin-top: 16px; font-size: 17px; color: var(--muted); }

/* ===== Лента категорий ===== */
.rail__nav { display: flex; gap: 10px; flex-shrink: 0; }
.rail__viewport {
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 8px 0 30px;
  scroll-padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}
.rail__viewport::-webkit-scrollbar { display: none; }
.rail__track {
  display: flex; gap: 18px; width: max-content;
  padding: 0 max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}
.rail__panel {
  width: min(380px, 82vw); flex-shrink: 0; scroll-snap-align: start;
  padding: 26px; border-radius: var(--r-lg);
  display: flex; flex-direction: column;
}
.rail__panel h3 { font-size: 22px; }
.rail__panel p { margin-top: 8px; font-size: 14.5px; color: var(--muted); min-height: 44px; }
.rail__apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 10px; margin-top: 22px; }

/* ===== Тарифы ===== */
.pricing__grid { display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: start; }
.plans { border: 0; margin: 32px 0 0; padding: 0; display: grid; gap: 10px; }
.plan { position: relative; display: block; cursor: pointer; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan__body {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 16px 20px; border-radius: var(--r-md);
  transition: transform 0.35s var(--ease), border-color 0.3s, background 0.3s;
}
.plan__radio {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid rgba(12, 60, 32, 0.2); background: #fff;
  display: grid; place-items: center; transition: border-color 0.3s;
}
.plan__radio::after {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--g-500);
  transform: scale(0); transition: transform 0.35s var(--ease);
}
.plan__term { font-weight: 600; font-size: 16px; }
.plan__meta { display: block; font-size: 13.5px; color: var(--muted); margin-top: 1px; }
.plan__meta em { font-style: normal; color: var(--g-600); font-weight: 600; }
.plan__tag {
  margin-left: 8px; padding: 2px 8px; border-radius: var(--r-pill);
  font-size: 11.5px; font-weight: 600; color: #fff; background: var(--g-500); vertical-align: 2px;
}
.plan__total { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.plan:hover .plan__body { transform: translateX(3px); }
.plan input:checked + .plan__body {
  border-color: rgba(22, 163, 74, 0.55);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(227, 248, 234, 0.6));
  box-shadow: var(--glass-shadow), 0 0 0 3px rgba(22, 163, 74, 0.12);
}
.plan input:checked + .plan__body .plan__radio { border-color: var(--g-500); }
.plan input:checked + .plan__body .plan__radio::after { transform: scale(1); }
.plan input:focus-visible + .plan__body { outline: 2px solid var(--g-500); outline-offset: 3px; }

.offer { position: sticky; top: 100px; padding: 32px; border-radius: var(--r-lg); }
.offer__top { display: flex; align-items: center; justify-content: space-between; }
.offer__term { font-weight: 600; color: var(--ink-2); }
.offer__price { margin-top: 14px; font-size: 56px; font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.offer__monthly { margin-top: 10px; font-size: 15px; color: var(--g-700); font-weight: 600; }
.offer__was { color: var(--muted); font-weight: 400; }
.offer__was s { opacity: 0.8; }
.offer__features { margin: 26px 0; display: grid; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.offer__features li { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.offer__features li::before {
  content: ""; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--g-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%2315803d' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.offer .btn + .btn { margin-top: 10px; }
.offer__fine { margin-top: 16px; font-size: 13px; color: var(--muted); text-align: center; }
.offer__notice {
  margin-top: 14px; padding: 12px 14px; border-radius: var(--r-sm);
  font-size: 13.5px; color: var(--g-800); background: var(--g-100); border: 1px solid var(--g-200);
}

.offer__notice[data-tone="error"] { color: #8a1c1c; background: #fdecec; border-color: #f7cfcf; }
.offer .btn:disabled { opacity: 0.7; cursor: progress; transform: none; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field[hidden] { display: none; }
.field__label { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.field__label small { font-weight: 400; color: var(--muted); }
.field__input {
  height: 48px; padding: 0 16px; border-radius: var(--r-sm);
  font: inherit; font-size: 16px; color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(12, 60, 32, 0.12);
  box-shadow: inset 0 1px 2px rgba(10, 58, 34, 0.05);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.field__input::placeholder { color: #9aaba1; }
.field__input:focus { outline: none; background: #fff; border-color: var(--g-500); box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.14); }

/* ===== Окно после оплаты ===== */
.order-dialog {
  width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto;
  padding: 36px 30px 28px; border-radius: var(--r-lg);
  color: var(--ink); text-align: center;
  position: fixed; inset: 0; margin: auto; height: fit-content; /* .glass ставит relative — возвращаем центрирование модалки */
}
.order-dialog[open] { animation: dialog-in 0.45s var(--ease); }
.order-dialog::backdrop { background: rgba(10, 40, 24, 0.28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(0.97); } }
.order-dialog h2 { font-size: 26px; margin-top: 18px; }
.order-dialog p { margin-top: 10px; color: var(--muted); }
.order-dialog p b { color: var(--ink); }
.order-dialog .btn { margin-top: 22px; }
.order-dialog__close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.7); color: var(--ink-2);
}
.order-dialog__close svg { width: 18px; height: 18px; }
.order-dialog__id { display: block; margin-top: 18px; font-size: 12px; color: var(--muted); word-break: break-all; }
.order-dialog__ok {
  width: 64px; height: 64px; margin: 0 auto; border-radius: 50%;
  display: grid; place-items: center; font-size: 30px; font-weight: 700; color: #fff;
  background: linear-gradient(160deg, var(--g-400), var(--g-600));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 10px 26px -10px rgba(22, 163, 74, 0.7);
}
.spinner--sm { margin: 0 auto; width: 48px; height: 48px; }
.code-box {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 16px; padding: 10px 10px 10px 18px; border-radius: var(--r-md);
  background: var(--g-50); border: 1px dashed var(--g-300);
}
.code-box code { font: 700 17px/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.04em; color: var(--g-800); word-break: break-all; text-align: left; }
.code-box .btn { margin-top: 0; flex-shrink: 0; }
.order-dialog__steps { margin-top: 20px; display: grid; gap: 8px; text-align: left; counter-reset: s; }
.order-dialog__steps li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); counter-increment: s; }
.order-dialog__steps li::before {
  content: counter(s); flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--g-700); background: var(--g-100);
}
.order-dialog__fine { font-size: 13px; }

/* ===== Как это работает ===== */
.how__grid { display: grid; grid-template-columns: 1fr 360px; gap: 64px; align-items: start; }
.steps { display: grid; gap: 16px; padding: 10vh 0; }
.step {
  display: flex; gap: 18px; padding: 26px; border-radius: var(--r-md);
  opacity: 0.55; transform: scale(0.98);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), border-color 0.5s;
}
.step.is-active { opacity: 1; transform: none; border-color: rgba(22, 163, 74, 0.35); }
.step__n {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700;
  color: var(--g-700); background: var(--g-100); border: 1px solid var(--g-200);
  transition: background 0.5s, color 0.5s;
}
.step.is-active .step__n { background: var(--g-500); color: #fff; border-color: transparent; }
.step h3 { font-size: 20px; margin-top: 7px; }
.step p { margin-top: 8px; color: var(--muted); }

.how__stage { position: sticky; top: 110px; display: flex; justify-content: center; }
.phone--how { width: 290px; padding: 56px 18px 20px; overflow: hidden; }
.screen {
  position: absolute; inset: 56px 18px 20px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  opacity: 0; transform: translateY(14px) scale(0.98);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.screen.is-active { opacity: 1; transform: none; }
.screen__app { align-self: stretch; text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.screen__title { font-size: 18px; margin-top: 18px; }
.screen__sub { font-size: 13px; color: var(--muted); margin-top: 6px; }
.sheet {
  margin-top: auto; margin-bottom: 30px; padding: 22px 18px; border-radius: 22px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.sheet small { font-size: 12.5px; color: var(--muted); }
.sheet__btn { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--g-600); }
.spinner {
  margin-top: 60px; width: 56px; height: 56px; border-radius: 50%;
  border: 4px solid var(--g-100); border-top-color: var(--g-500);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress { width: 100%; height: 8px; margin-top: 18px; border-radius: 8px; background: var(--g-100); overflow: hidden; }
.progress span { display: block; height: 100%; width: 70%; border-radius: inherit; background: linear-gradient(90deg, var(--g-400), var(--g-600)); animation: load 2.4s var(--ease) infinite; }
@keyframes load { from { width: 20%; } to { width: 92%; } }
.checklist { margin-top: 22px; align-self: stretch; display: grid; gap: 10px; text-align: left; font-size: 13.5px; }
.checklist li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.checklist li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--g-200); flex-shrink: 0; }
.checklist li.ok { color: var(--ink); }
.checklist li.ok::before { background: var(--g-500); border-color: var(--g-500); }

/* ===== Каталог ===== */
.chips {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px;
  border-radius: var(--r-pill); margin-bottom: 36px; max-width: 100%;
}
.chip {
  border: 0; background: transparent; padding: 9px 18px; border-radius: var(--r-pill);
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  transition: background 0.3s var(--ease), color 0.3s, box-shadow 0.3s;
}
.chip:hover { color: var(--g-800); }
.chip[aria-pressed="true"] {
  color: #fff;
  background: linear-gradient(180deg, var(--g-400), var(--g-600));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 4px 14px -6px rgba(22, 163, 74, 0.7);
}
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 26px 14px; }
.wall__item { transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.wall__item[hidden] { display: none; }
.wall__item.is-in { animation: pop 0.5s var(--ease) both; animation-delay: calc(var(--i) * 18ms); }
@keyframes pop { from { opacity: 0; transform: scale(0.8); } }
.wall .app__icon { max-width: 68px; font-size: 19px; transition: transform 0.35s var(--ease); }
.wall .app__name { font-size: 12.5px; }
.wall__item:hover .app__icon { transform: translateY(-3px) scale(1.05); }
.catalog__more { margin-top: 40px; color: var(--muted); font-size: 14.5px; text-align: center; }

/* ===== Устройство / доверие ===== */
.trust__grid { display: grid; grid-template-columns: 1fr 400px; gap: 56px; align-items: center; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feature { padding: 24px; border-radius: var(--r-md); }
.feature__icon {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  color: var(--g-600); background: var(--g-100); border: 1px solid var(--g-200);
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 17px; margin-top: 16px; }
.feature p { font-size: 14.5px; color: var(--muted); margin-top: 6px; }

.status-card { margin: 0; padding: 28px; border-radius: var(--r-lg); }
.status-card__head b { display: block; font-size: 20px; }
.status-card__head small { color: var(--g-700); font-weight: 500; }
.stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 22px 0; }
.stages li { font-size: 11.5px; color: var(--muted); padding-top: 10px; position: relative; }
.stages li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 4px; background: var(--g-100); }
.stages li.done::before, .stages li.current::before { background: var(--g-500); }
.stages li.current { color: var(--g-700); font-weight: 600; }
.status-list { display: grid; margin-bottom: 22px; }
.status-list li { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.status-list em { font-style: normal; font-weight: 600; color: var(--g-600); }
.status-card figcaption { margin-top: 14px; font-size: 12.5px; color: var(--muted); text-align: center; }

/* ===== Telegram ===== */
.tg-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tg-card {
  display: flex; flex-direction: column; padding: 28px; border-radius: var(--r-lg);
  transition: transform 0.4s var(--ease);
}
.tg-card:hover { transform: translateY(-4px); }
.tg-card__icon {
  width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg, var(--g-400), var(--g-700));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5);
}
.tg-card__icon svg { width: 24px; height: 24px; }
.tg-card h3 { font-size: 21px; margin-top: 20px; }
.tg-card p { margin-top: 8px; color: var(--muted); font-size: 15px; flex: 1; }
.tg-card__link { margin-top: 20px; font-weight: 600; color: var(--g-600); }

/* ===== FAQ ===== */
.faq__list { display: grid; gap: 10px; }
.qa { border-radius: var(--r-md); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; font-weight: 600; font-size: 17px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--g-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%2315803d' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform 0.4s var(--ease);
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { padding: 0 24px 22px; color: var(--muted); max-width: 680px; }
.qa[open] p { animation: fade 0.4s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(-4px); } }

/* ===== Статус ===== */
.status-band {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 44px; border-radius: var(--r-lg);
}
.status-band h2 { font-size: clamp(26px, 3vw, 36px); }
.status-band__cta { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.status-band__result { margin-top: 14px; font-size: 14.5px; font-weight: 500; color: var(--g-700); }

/* ===== Плавающая панель ===== */
.dock {
  position: fixed; left: 50%; bottom: 16px; z-index: 40;
  display: flex; align-items: center; gap: 18px;
  padding: 8px 8px 8px 22px; border-radius: var(--r-pill);
  translate: -50% 0;
  transition: transform 0.5s var(--ease), opacity 0.4s;
}
.dock.is-away { transform: translateY(140%); opacity: 0; pointer-events: none; }
.dock__info { display: flex; align-items: baseline; gap: 10px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.dock__info b { font-size: 17px; color: var(--ink); }

/* ===== Подвал ===== */
.footer { padding: 70px 0 110px; margin-top: 40px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.5); }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer__about p { margin-top: 16px; font-size: 14px; color: var(--muted); max-width: 320px; }
.footer nav { display: flex; flex-direction: column; gap: 10px; }
.footer h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.footer nav a { font-size: 14px; color: var(--muted); transition: color 0.2s; }
.footer nav a:hover { color: var(--g-600); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}

/* ===== Появление при скролле ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ===== Адаптив ===== */
@media (max-width: 1080px) {
  .nav a { padding: 8px 10px; font-size: 14px; }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .hero__pin { padding-top: 120px; }
  .hero__grid, .pricing__grid, .trust__grid { grid-template-columns: 1fr; }
  /* запас по высоте, чтобы разлетевшиеся иконки не обрезались краем блока */
  .hero__visual { height: calc(720px * var(--stage-scale, 1)); margin-top: 10px; }
  .offer { position: static; }
  .how__grid { grid-template-columns: 1fr; gap: 0; }
  .how__stage { display: none; }
  .steps { padding: 0; }
  .step { opacity: 1; transform: none; }
  .status-band { flex-direction: column; align-items: flex-start; padding: 32px; }
  .tg-cards { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .header__login { display: none; }
  .nav {
    position: absolute; top: calc(100% + 8px); left: var(--gutter); right: var(--gutter);
    flex-direction: column; gap: 2px; padding: 10px; border-radius: var(--r-md);
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
    opacity: 0; transform: translateY(-8px) scale(0.98); pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 12px 14px; font-size: 16px; }
  .header__bar { gap: 12px; }
  .header__actions { margin-left: auto; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 32px; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .rail__nav { display: none; }
  .hero__pin { padding: 108px 0 40px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .phone { width: 260px; border-radius: 42px; }
  .hero__visual [data-stage-card] { display: none; } /* на узком экране карточки закрывают телефон */
  .features { grid-template-columns: 1fr; }
  .offer { padding: 24px; }
  .offer__price { font-size: 46px; }
  .plan__body { padding: 14px 16px; gap: 12px; }
  .chips { display: flex; flex-wrap: nowrap; overflow-x: auto; border-radius: var(--r-md); scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
  .wall { grid-template-columns: repeat(4, 1fr); gap: 20px 10px; }
  .wall .app__icon { font-size: 16px; }
  .wall .app__name { font-size: 11px; }
  .status-band { padding: 24px; }
  .status-band__cta { width: 100%; }
  .status-band__cta .btn { flex: 1 1 100%; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .dock { left: var(--gutter); right: var(--gutter); translate: none; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== Карточка тарифа: для какого аккаунта оплата ===== */
.offer__account {
  display: grid; gap: 4px; margin-bottom: 14px; padding: 12px 14px;
  border-radius: var(--r-sm); background: var(--g-50); border: 1px solid var(--g-200);
  font-size: 14px; color: var(--ink-2);
}
.offer__account[hidden] { display: none; }
.offer__account b { color: var(--ink); word-break: break-all; }
.offer__account small { color: var(--muted); font-size: 12.5px; }

/* ===== Страница «Регистрация iPhone» ===== */
.activate { max-width: 620px; padding-top: 120px; padding-bottom: 80px; }
.activate__title { font-size: clamp(32px, 5vw, 44px); font-weight: 800; letter-spacing: -0.035em; }
.activate__lead { margin-top: 12px; color: var(--muted); font-size: 16.5px; }
.activate__fine { margin-top: 20px; font-size: 13px; color: var(--muted); text-align: center; }
.activate__loading { color: var(--muted); text-align: center; padding: 24px 0; }

.setup-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 28px 0 18px; }
.setup-progress li { display: grid; justify-items: center; gap: 6px; position: relative; text-align: center; }
.setup-progress li::before {
  content: ""; position: absolute; top: 17px; left: calc(-50% + 22px); right: calc(50% + 22px); height: 2px;
  background: var(--g-100); border-radius: 2px;
}
.setup-progress li:first-child::before { display: none; }
.setup-progress li.is-complete::before, .setup-progress li.is-current::before { background: var(--g-400); }
.setup-progress span {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 14px; color: var(--muted);
  background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line);
  transition: background 0.4s var(--ease), color 0.4s, box-shadow 0.4s;
}
.setup-progress small { font-size: 12.5px; color: var(--muted); }
.setup-progress li.is-complete span { background: var(--g-100); color: var(--g-700); border-color: var(--g-200); }
.setup-progress li.is-complete span::after { content: "✓"; }
.setup-progress li.is-complete span { font-size: 0; }
.setup-progress li.is-complete span::after { font-size: 15px; }
.setup-progress li.is-current span {
  color: #fff; border-color: transparent;
  background: linear-gradient(180deg, var(--g-400), var(--g-600));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.55), 0 6px 16px -6px rgba(22, 163, 74, 0.7);
}
.setup-progress li.is-current small { color: var(--g-800); font-weight: 600; }

.activate__card { padding: 28px; border-radius: var(--r-lg); }
.activate__card [data-notice]:not(:empty) { margin-bottom: 18px; }

.notice {
  padding: 14px 16px; border-radius: var(--r-sm); font-size: 14.5px; line-height: 1.5;
  background: rgba(255, 255, 255, 0.65); border: 1px solid var(--line); color: var(--ink-2);
}
.notice b { display: block; color: var(--ink); margin-bottom: 4px; }
.notice + .notice, .notice + .btn, .notice + .link-box { margin-top: 12px; }
.notice--ok { background: var(--g-50); border-color: var(--g-200); color: var(--g-800); }
.notice--error { background: #fdecec; border-color: #f7cfcf; color: #8a1c1c; }

.auth__tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 20px;
  border-radius: var(--r-pill); background: rgba(12, 60, 32, 0.05);
}
.auth__tab {
  border: 0; background: transparent; height: 40px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 15px; color: var(--muted); transition: background 0.3s var(--ease), color 0.3s;
}
.auth__tab[aria-selected="true"] { background: #fff; color: var(--g-800); box-shadow: 0 2px 8px -4px rgba(10, 58, 34, 0.3); }
.auth__form .btn { margin-top: 6px; }
.field__error { min-height: 0; font-size: 12.5px; color: #b42323; }
.field__error:empty { display: none; }
.form-error { margin: 2px 0 10px; font-size: 14px; color: #b42323; }
.auth__form > p { margin-bottom: 14px; color: var(--muted); }
.stage-view .auth__form { margin-top: 18px; }

/* текстовые кнопки: «Забыли пароль?», «Отправить код ещё раз» */
.link-btn {
  border: 0; background: none; padding: 6px 2px; font: inherit; font-size: 14px; font-weight: 600;
  color: var(--g-700); cursor: pointer; text-decoration: underline; text-decoration-color: transparent;
  text-underline-offset: 3px; transition: color 0.2s, text-decoration-color 0.2s;
}
.link-btn:hover { color: var(--g-800); text-decoration-color: currentColor; }
.link-btn:disabled { color: var(--muted); cursor: default; text-decoration: none; font-variant-numeric: tabular-nums; }
.auth__forgot { display: block; margin: 12px auto 0; }
.auth__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-top: 14px; }

/* поле для кода из письма */
.code-input {
  text-align: center; font-size: 28px; font-weight: 700; letter-spacing: 0.4em; padding-left: 0.4em;
  font-variant-numeric: tabular-nums; height: 60px;
}
.code-input::placeholder { letter-spacing: 0.4em; }

.stage-view h2 { font-size: 26px; margin-top: 10px; }
.stage-view > p { margin-top: 10px; color: var(--muted); }
.stage-view > .btn, .stage-view > .notice, .stage-view > [data-device-body] { margin-top: 20px; }
.stage-view__badge { font-size: 13px; font-weight: 600; color: var(--g-700); }
.profile-steps { display: grid; gap: 10px; margin-bottom: 20px; counter-reset: s; }
.profile-steps li { display: flex; gap: 12px; font-size: 15px; color: var(--ink-2); counter-increment: s; }
.profile-steps li::before {
  content: counter(s); flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: var(--g-700); background: var(--g-100);
}
.field-hint { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }
.link-box {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 8px 8px 14px; border-radius: var(--r-md); background: var(--g-50); border: 1px dashed var(--g-300);
}
.link-box code { font: 600 13.5px/1.3 ui-monospace, "SF Mono", Menlo, monospace; color: var(--g-800); word-break: break-all; }

.device-card { display: grid; grid-template-columns: auto 1fr; margin: 18px 0 0; }
.device-card dt, .device-card dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.device-card dt { color: var(--muted); }
.device-card dd { text-align: right; font-weight: 600; }

.account-bar {
  display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 14px 14px 14px 20px; border-radius: var(--r-md);
}
.account-bar[hidden] { display: none; }
.account-bar > div { display: grid; min-width: 0; margin-right: auto; }
.account-bar b { font-size: 15px; }
.account-bar small { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 640px) {
  .activate { padding-top: 104px; }
  .activate__card { padding: 22px 18px; }
  .account-bar { flex-wrap: wrap; }
  .account-bar > small { order: 3; width: 100%; }
}
