/* ============================================================
   AIHealth — лендинг ИИ-приложения о здоровье
   ============================================================ */

:root {
  --bg: #06070a;
  --bg-2: #0a0d12;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #f2f5f7;
  --muted: #98a3b2;

  --lime: #a3f53c;
  --mint: #35e0c2;
  --violet: #7c5cff;
  --orange: #ff7a59;

  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--lime); color: #08110a; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--lime);
  color: #08110a;
  padding: 10px 16px;
  border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Сетка ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 820px; }

/* ---------- Фон ---------- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 40%, transparent 100%);
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
}
.glow--lime {
  width: 620px; height: 620px;
  top: -240px; left: -140px;
  background: radial-gradient(circle, rgba(163, 245, 60, 0.35), transparent 65%);
}
.glow--mint {
  width: 700px; height: 700px;
  top: -180px; right: -220px;
  background: radial-gradient(circle, rgba(53, 224, 194, 0.28), transparent 65%);
}
.glow--violet {
  width: 780px; height: 780px;
  top: 46%; left: 30%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.2), transparent 65%);
}

/* ---------- Хедер ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(6, 7, 10, 0.78);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.logo__mark {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(163, 245, 60, 0.22), rgba(53, 224, 194, 0.16));
  border: 1px solid rgba(163, 245, 60, 0.3);
  color: var(--lime);
}
.logo__mark svg { width: 24px; height: 24px; }
.logo__ai { color: var(--lime); }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--muted);
}
.nav a { transition: color 0.2s; }
.nav a:hover { color: var(--text); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 24px;
}

.burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.burger span {
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn__ico { width: 19px; height: 19px; }
.btn--sm { padding: 11px 18px; font-size: 15px; }
.btn--lg { padding: 17px 30px; font-size: 17px; border-radius: 16px; }

.btn--primary {
  background: linear-gradient(135deg, var(--lime), var(--mint));
  color: #05130a;
  box-shadow: 0 10px 30px rgba(163, 245, 60, 0.22);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(163, 245, 60, 0.34);
}
.btn--ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: var(--surface-2); transform: translateY(-2px); }

/* ---------- Мелочи ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px 8px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: #c9d3de;
  backdrop-filter: blur(8px);
}
.pill--light { background: rgba(255, 255, 255, 0.07); }
.pill__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(163, 245, 60, 0.16);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(163, 245, 60, 0.16); }
  50% { box-shadow: 0 0 0 8px rgba(163, 245, 60, 0.04); }
}

.grad-text {
  background: linear-gradient(100deg, var(--lime) 0%, var(--mint) 45%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tick {
  width: 20px; height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(163, 245, 60, 0.14);
  border: 1px solid rgba(163, 245, 60, 0.4);
  position: relative;
}
.tick::after {
  content: "";
  position: absolute;
  left: 5.5px; top: 5px;
  width: 7px; height: 4px;
  border-left: 2px solid var(--lime);
  border-bottom: 2px solid var(--lime);
  transform: rotate(-45deg);
}
.tick--sm { width: 17px; height: 17px; }
.tick--sm::after { left: 4px; top: 4px; width: 6px; height: 3px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 16px;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.tag--lime { background: rgba(163, 245, 60, 0.16); color: var(--lime); }
.tag--mint { background: rgba(53, 224, 194, 0.16); color: var(--mint); }
.tag--violet { background: rgba(124, 92, 255, 0.2); color: #b3a1ff; }
.tag--orange { background: rgba(255, 122, 89, 0.16); color: var(--orange); }

.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #06120b;
  background: linear-gradient(135deg, var(--a), var(--b));
  border: 2px solid var(--bg);
  flex-shrink: 0;
}

/* ---------- HERO ---------- */
.hero { padding: 60px 0 40px; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero__title {
  font-size: clamp(38px, 5.4vw, 68px);
  margin: 22px 0 0;
}
.hero__lead {
  margin-top: 22px;
  font-size: clamp(16.5px, 1.35vw, 19px);
  color: var(--muted);
  max-width: 540px;
}
.hero__cta {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero__bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 26px;
  font-size: 14.5px;
  font-weight: 600;
  color: #bcc6d2;
}
.hero__bullets li { display: flex; align-items: center; gap: 9px; }

.social-proof {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.avatars { display: flex; }
.avatars .avatar + .avatar { margin-left: -12px; }
.social-proof__text { font-size: 14.5px; color: var(--muted); }
.social-proof__text strong { color: var(--text); }
.stars { display: flex; gap: 3px; margin-bottom: 3px; }
.stars svg { width: 15px; height: 15px; fill: var(--lime); }

/* ---------- Мокап телефона ---------- */
.hero__visual {
  display: grid;
  place-items: center;
  position: relative;
  min-height: 640px;
}
.phone {
  position: relative;
  width: 320px;
  animation: floatY 7s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.phone__frame {
  position: relative;
  border-radius: 46px;
  padding: 11px;
  background: linear-gradient(160deg, #23272f, #0d1015 60%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 90px rgba(163, 245, 60, 0.09);
}
.phone__notch {
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  width: 78px; height: 20px;
  border-radius: 999px;
  background: #05070a;
  z-index: 3;
}
.phone__screen {
  border-radius: 36px;
  overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #10161d, #080b0f 70%);
  height: 626px;
}

.app {
  height: 100%;
  padding: 14px 15px 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 13px;
}
.app__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  color: #cfd8e2;
  padding: 4px 6px 2px;
}
.app__status-icons { display: flex; align-items: center; gap: 5px; }
.app__status-icons i {
  display: block;
  background: #cfd8e2;
  border-radius: 2px;
}
.sig { width: 13px; height: 9px; clip-path: polygon(0 100%, 25% 100%, 25% 55%, 50% 55%, 50% 30%, 75% 30%, 75% 0, 100% 0, 100% 100%); }
.wifi { width: 11px; height: 9px; border-radius: 50% 50% 0 0; }
.bat { width: 18px; height: 9px; border-radius: 3px; }

.app__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 4px;
}
.app__hello { font-weight: 800; font-size: 15px; }
.app__day { font-size: 11.5px; color: var(--muted); }
.app__streak {
  font-size: 12px;
  font-weight: 800;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 122, 89, 0.16);
  color: #ffb59f;
}

.app__card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 14px;
}
.app__card--ring { display: flex; gap: 14px; align-items: center; }

/* Кольцо прогресса */
.ring {
  --p: 70;
  width: 96px; height: 96px;
  flex-shrink: 0;
  border-radius: 50%;
  background:
    conic-gradient(var(--lime) 0%, var(--mint) calc(var(--p) * 1%), rgba(255, 255, 255, 0.07) calc(var(--p) * 1%) 100%);
  display: grid;
  place-items: center;
  position: relative;
}
.ring::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #0b1015;
}
.ring__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  line-height: 1.15;
}
.ring__inner b { display: block; font-size: 19px; font-weight: 800; }
.ring__inner span { font-size: 9.5px; color: var(--muted); }
.ring--sm { width: 86px; height: 86px; margin: 4px auto 0; }
.ring--sm .ring__inner b { font-size: 17px; }

.macros { flex: 1; display: grid; gap: 9px; }
.macro { display: grid; grid-template-columns: 52px 1fr 34px; align-items: center; gap: 8px; }
.macro__label { font-size: 10.5px; color: var(--muted); }
.macro__val { font-size: 10.5px; font-weight: 700; text-align: right; }
.bar {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: 99px;
  background: var(--c);
  transform-origin: left;
  animation: barGrow 1.4s var(--ease) both;
}
.bar--wide { height: 8px; margin-top: 10px; }
@keyframes barGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.app__card--scan {
  display: flex;
  align-items: center;
  gap: 11px;
  border-color: rgba(124, 92, 255, 0.3);
  background: linear-gradient(120deg, rgba(124, 92, 255, 0.14), rgba(255, 255, 255, 0.03));
}
.scan__ico {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(124, 92, 255, 0.2);
  color: #bcaaff;
  flex-shrink: 0;
}
.scan__ico svg { width: 20px; height: 20px; }
.scan__body { flex: 1; min-width: 0; }
.scan__title { font-size: 10px; color: #b3a1ff; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.scan__meal { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scan__kcal { font-size: 14px; font-weight: 800; color: var(--lime); }

.train__top { display: flex; justify-content: space-between; align-items: center; }
.train__time { font-size: 11px; color: var(--muted); font-weight: 700; }
.train__name { font-size: 13.5px; font-weight: 800; margin-top: 9px; }
.train__row { display: flex; gap: 6px; margin-top: 10px; }
.chip {
  font-size: 10.5px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #c6d0dc;
  white-space: nowrap;
}

.app__tabbar {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 16px 6px 20px;
}
.tab {
  width: 22px; height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.13);
}
.tab.is-active { background: var(--lime); }
.tab--fab {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lime), var(--mint));
  box-shadow: 0 8px 22px rgba(163, 245, 60, 0.32);
}

/* Летающие карточки */
.float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-radius: 16px;
  background: rgba(14, 18, 24, 0.82);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  animation: floatY 6s ease-in-out infinite;
}
.float b { display: block; font-size: 15px; font-weight: 800; line-height: 1.2; }
.float small { font-size: 11px; color: var(--muted); }
.float__ico { font-size: 19px; }
.float--water { top: 156px; left: -76px; animation-delay: -1.5s; }
.float--steps { bottom: 140px; right: -58px; animation-delay: -3s; }
.float--ai {
  bottom: 42px; left: -70px;
  animation-delay: -4.5s;
  border-color: rgba(163, 245, 60, 0.3);
}

/* ---------- Полоса цифр ---------- */
.strip {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 30px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.strip__item { text-align: center; padding: 0 10px; }
.strip__item b {
  display: block;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--lime), var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.strip__item span { font-size: 13.5px; color: var(--muted); }

/* ---------- Секции ---------- */
.section { padding: 110px 0; position: relative; }
.section--alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.022) 25%, rgba(255, 255, 255, 0.022) 75%, transparent);
  pointer-events: none;
}
.section__head {
  max-width: 720px;
  margin: 0 auto 62px;
  text-align: center;
}
.section__title { font-size: clamp(30px, 3.9vw, 48px); }
.section__lead {
  margin-top: 20px;
  color: var(--muted);
  font-size: 17.5px;
}

/* ---------- Проблема ---------- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.pain {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), border-color 0.3s, background 0.3s;
}
.pain:hover {
  transform: translateY(-6px);
  border-color: rgba(163, 245, 60, 0.28);
  background: var(--surface-2);
}
.pain__no {
  font-size: 13px;
  font-weight: 800;
  color: var(--lime);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.pain h3 { font-size: 19px; margin-bottom: 12px; }
.pain p { color: var(--muted); font-size: 15px; }
.pain__fix {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  font-size: 14px;
  font-weight: 600;
  color: #d5dde6;
}

/* ---------- Фичи ---------- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feat {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.3s;
}
.feat::after {
  content: "";
  position: absolute;
  top: -50%; left: -20%;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(163, 245, 60, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.feat:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.feat:hover::after { opacity: 1; }
.feat--wide { grid-column: span 2; }
.feat__ico {
  width: 50px; height: 50px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.feat__ico svg { width: 26px; height: 26px; }
.feat__ico--lime { background: rgba(163, 245, 60, 0.14); color: var(--lime); border: 1px solid rgba(163, 245, 60, 0.24); }
.feat__ico--mint { background: rgba(53, 224, 194, 0.14); color: var(--mint); border: 1px solid rgba(53, 224, 194, 0.24); }
.feat__ico--violet { background: rgba(124, 92, 255, 0.18); color: #b3a1ff; border: 1px solid rgba(124, 92, 255, 0.28); }
.feat__ico--orange { background: rgba(255, 122, 89, 0.14); color: var(--orange); border: 1px solid rgba(255, 122, 89, 0.24); }
.feat h3 { font-size: 21px; margin-bottom: 12px; }
.feat p { color: var(--muted); font-size: 15.5px; }

.feat__demo { margin-top: 22px; display: grid; gap: 8px; }
.demo-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
}
.demo-row b { color: var(--lime); font-size: 13.5px; }
.demo-row--ai {
  background: linear-gradient(100deg, rgba(124, 92, 255, 0.16), rgba(255, 255, 255, 0.03));
  border-color: rgba(124, 92, 255, 0.3);
  color: #cfc4ff;
}

.feat__chart { margin-top: 22px; }
.feat__chart svg { width: 100%; height: 90px; }
.feat__chart-legend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
}
.feat__chart-legend b { color: var(--orange); font-size: 16px; }

.feat__chat { margin-top: 22px; display: grid; gap: 10px; }
.msg {
  max-width: 86%;
  padding: 12px 15px;
  font-size: 14px;
  line-height: 1.45;
  border-radius: 16px;
}
.msg--me {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-bottom-right-radius: 5px;
}
.msg--ai {
  background: linear-gradient(120deg, rgba(163, 245, 60, 0.16), rgba(53, 224, 194, 0.1));
  border: 1px solid rgba(163, 245, 60, 0.26);
  border-bottom-left-radius: 5px;
  color: #e6f7d8;
}

/* ---------- Шаги ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: s;
  position: relative;
}
.step {
  padding: 34px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
}
.step__num {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  color: #05130a;
  background: linear-gradient(135deg, var(--lime), var(--mint));
  margin-bottom: 20px;
  box-shadow: 0 10px 26px rgba(163, 245, 60, 0.2);
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* ---------- Сравнение ---------- */
.compare {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.compare__col {
  padding: 30px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.compare__col h3 {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 19px;
  margin-bottom: 20px;
}
.compare__ico {
  width: 28px; height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 14px;
}
.compare__col--bad { opacity: 0.82; }
.compare__col--bad .compare__ico { background: rgba(255, 122, 89, 0.16); color: var(--orange); }
.compare__col--bad li { color: var(--muted); }
.compare__col--good {
  border-color: rgba(163, 245, 60, 0.3);
  background: linear-gradient(160deg, rgba(163, 245, 60, 0.07), rgba(255, 255, 255, 0.025));
  box-shadow: 0 20px 50px rgba(163, 245, 60, 0.06);
}
.compare__col--good .compare__ico { background: rgba(163, 245, 60, 0.18); color: var(--lime); }
.compare__col li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  font-weight: 600;
}
.compare__col li:last-child { border-bottom: none; }

/* ---------- Отзывы ---------- */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.review {
  margin: 0;
  padding: 30px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), border-color 0.3s;
}
.review:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.review__stars { color: var(--lime); letter-spacing: 3px; font-size: 15px; }
.review blockquote {
  margin: 16px 0 24px;
  font-size: 16px;
  line-height: 1.62;
  color: #dde4ec;
}
.review figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.review figcaption b { display: block; font-size: 14.5px; }
.review figcaption small { font-size: 12.5px; color: var(--lime); font-weight: 700; }

.metrics {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.metric {
  padding: 28px;
  text-align: center;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
}
.metric b {
  display: block;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, var(--lime), var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.metric span { font-size: 14.5px; color: var(--muted); }

/* ---------- Карусель скриншотов ---------- */
.carousel { position: relative; }
.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(268px, 1fr);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.shot { scroll-snap-align: center; }
.shot__screen {
  border-radius: 24px;
  padding: 20px 18px;
  min-height: 300px;
  background: radial-gradient(120% 80% at 50% 0%, #121922, #090c11 75%);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  transition: transform 0.35s var(--ease), border-color 0.3s;
}
.shot:hover .shot__screen { transform: translateY(-6px); border-color: rgba(163, 245, 60, 0.3); }
.shot__rows { display: grid; gap: 7px; margin-top: 16px; }
.shot__rows .demo-row { padding: 9px 12px; font-size: 12.5px; }
.shot h3 { font-size: 18px; margin-bottom: 6px; }
.shot p { color: var(--muted); font-size: 14.5px; }
.shot__cam {
  margin: 16px 0 12px;
  height: 130px;
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(124, 92, 255, 0.16), rgba(53, 224, 194, 0.1));
  border: 1px solid rgba(124, 92, 255, 0.26);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.cam__box {
  width: 96px; height: 68px;
  border-radius: 10px;
  border: 2px dashed rgba(255, 255, 255, 0.5);
  animation: camScan 2.6s ease-in-out infinite;
}
@keyframes camScan {
  0%, 100% { transform: scale(1); opacity: 0.65; }
  50% { transform: scale(1.08); opacity: 1; }
}
.cam__hint {
  position: absolute;
  bottom: 10px;
  font-size: 11px;
  color: #cfc4ff;
  font-weight: 700;
}
.chart { margin: 18px 0 12px; height: 90px; }
.chart svg { width: 100%; height: 100%; }

.carousel__nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.cbtn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  transition: background 0.25s, transform 0.2s;
}
.cbtn:hover { background: var(--surface-2); transform: translateY(-2px); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.qa {
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 4px 22px;
  transition: border-color 0.3s, background 0.3s;
}
.qa[open] { border-color: rgba(163, 245, 60, 0.28); background: var(--surface-2); }
.qa summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 34px 18px 0;
  font-size: 17px;
  font-weight: 700;
  position: relative;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "";
  position: absolute;
  right: 4px; top: 50%;
  width: 11px; height: 11px;
  border-right: 2px solid var(--lime);
  border-bottom: 2px solid var(--lime);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.qa[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.qa p {
  padding: 0 0 20px;
  color: var(--muted);
  font-size: 15.5px;
  max-width: 68ch;
}
.qa a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Финальный CTA ---------- */
.cta { padding: 30px 0 110px; }
.cta__box {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 50px;
  align-items: center;
  padding: 60px;
  border-radius: 34px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 130% at 0% 0%, rgba(163, 245, 60, 0.16), transparent 60%),
    radial-gradient(90% 130% at 100% 100%, rgba(124, 92, 255, 0.2), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
}
.cta__copy h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  margin: 20px 0 18px;
}
.cta__copy p { color: var(--muted); max-width: 500px; font-size: 17px; }
.cta__buttons { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.store {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 14px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--lime), var(--mint));
  color: #05130a;
  box-shadow: 0 12px 32px rgba(163, 245, 60, 0.24);
  transition: transform 0.2s var(--ease), box-shadow 0.25s;
}
.store:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(163, 245, 60, 0.34); }
.store__ico { width: 26px; height: 26px; }
.store small { display: block; font-size: 11.5px; font-weight: 700; opacity: 0.72; }
.store b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.store--apk {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-strong);
  color: var(--text);
  box-shadow: none;
}
.store--apk:hover { background: rgba(255, 255, 255, 0.1); box-shadow: none; }

.cta__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 28px;
  font-size: 14px;
  font-weight: 600;
  color: #c6d0dc;
}
.cta__list li { display: flex; align-items: center; gap: 8px; }

.cta__qr { text-align: center; }
.cta__qr p { margin-top: 18px; font-size: 14px; color: var(--muted); }
.cta__qr b { color: var(--text); }
.qr {
  width: 186px; height: 186px;
  margin: 0 auto;
  border-radius: 22px;
  background: #fff;
  padding: 14px;
  position: relative;
  display: grid;
  place-items: center;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
}
.qr__grid {
  width: 100%; height: 100%;
  background-image:
    linear-gradient(90deg, #0b0e13 25%, transparent 25%, transparent 50%, #0b0e13 50%, #0b0e13 75%, transparent 75%),
    linear-gradient(0deg, #0b0e13 25%, transparent 25%, transparent 50%, #0b0e13 50%, #0b0e13 75%, transparent 75%);
  background-size: 22px 22px;
  opacity: 0.9;
  border-radius: 6px;
}
.qr__logo {
  position: absolute;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: #0b0e13;
  display: grid;
  place-items: center;
  color: var(--lime);
  border: 3px solid #fff;
}
.qr__logo svg { width: 30px; height: 30px; }

/* ---------- Футер ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 34px;
  background: rgba(255, 255, 255, 0.012);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer__brand p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 320px;
}
.footer__col { display: flex; flex-direction: column; gap: 11px; }
.footer__col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7d889a;
  margin-bottom: 5px;
}
.footer__col a {
  font-size: 14.5px;
  color: var(--muted);
  transition: color 0.2s;
  width: fit-content;
}
.footer__col a:hover { color: var(--lime); }

.footer__bottom {
  margin-top: 50px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #6f7a8b;
}

/* ---------- Липкая кнопка на мобильных ---------- */
.mobile-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: rgba(8, 10, 14, 0.9);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.4s var(--ease);
}
.mobile-cta.is-visible { transform: translateY(0); }
.mobile-cta b { display: block; font-size: 15px; }
.mobile-cta small { font-size: 12px; color: var(--muted); }

/* ---------- Юридические страницы ---------- */
.legal { padding: 70px 0 90px; }
.legal h1 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 10px;
}
.legal h2 {
  font-size: 21px;
  margin: 44px 0 14px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.legal p { color: var(--muted); margin-bottom: 14px; }
.legal p b, .legal li b { color: var(--text); }
.legal__date { font-size: 14px; color: #6f7a8b; }
.legal__intro {
  margin-top: 26px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  color: #cdd6e0 !important;
}
.legal__list { display: grid; gap: 12px; margin-bottom: 16px; }
.legal__list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 16px;
}
.legal__list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 10px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lime);
}
.legal a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.legal__hr {
  margin: 70px 0 50px;
  border: none;
  border-top: 1px solid var(--line-strong);
}
.legal__cta { margin-top: 50px; }

/* ---------- Анимации появления ---------- */
/* Скрываем только если JS работает — иначе контент остаётся видимым */
.js .reveal, .js .reveal-scale {
  opacity: 0;
  transition: opacity 0.7s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
  will-change: opacity, transform;
}
.js .reveal { transform: translateY(26px); }
.js .reveal-scale { transform: scale(0.94); }
.reveal.in-view, .reveal-scale.in-view { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .pain-grid, .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { gap: 30px; }
  .hero__visual { min-height: 600px; }
  .cta__box { padding: 44px; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 80px; }
  .nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 10px 24px 22px;
    background: rgba(8, 10, 14, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-140%);
    transition: transform 0.4s var(--ease);
    font-size: 17px;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); }
  .burger { display: flex; }

  .hero { padding: 26px 0 20px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy { text-align: center; }
  .hero__title { margin-top: 18px; }
  .hero__lead, .hero__bullets { margin-left: auto; margin-right: auto; }
  .hero__cta, .hero__bullets, .social-proof { justify-content: center; }
  .hero__visual { min-height: auto; margin-top: 20px; }
  .float--water { left: -18px; }
  .float--ai { left: -20px; }
  .float--steps { right: -14px; }

  .strip { grid-template-columns: repeat(2, 1fr); gap: 26px 8px; margin-top: 54px; }
  .section { padding: 78px 0; }
  .section__head { margin-bottom: 46px; }
  .steps, .reviews, .metrics, .compare, .footer__inner { grid-template-columns: 1fr; }
  .footer__inner { gap: 34px; }
  .cta__box { grid-template-columns: 1fr; text-align: center; padding: 40px 26px; }
  .cta__copy p, .cta__copy .pill { margin-left: auto; margin-right: auto; }
  .cta__buttons, .cta__list { justify-content: center; }
  .cta__qr { display: none; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 0; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .pain-grid, .feat-grid { grid-template-columns: 1fr; }
  .feat--wide { grid-column: span 1; }
  .header__actions .btn--sm { display: none; }
  .phone { width: 290px; }
  .phone__screen { height: 580px; }
  .float { padding: 9px 12px; }
  .float b { font-size: 13.5px; }
  .float--water { top: 60px; left: -10px; }
  .float--ai { bottom: 20px; left: -12px; }
  .float--steps { bottom: 110px; right: -8px; }
  .section { padding: 66px 0; }
  .metric b { font-size: 38px; }
  .cta { padding: 20px 0 90px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-scale { opacity: 1; transform: none; }
}
