/* ==========================================================================
   fitrep.ru - оформление лендинга платформы REP (Cosh Trainer)
   Тёмная тема, циан-акцент, стеклянные панели. Всё на чистом CSS, без сборки.
   ========================================================================== */

/* Тот же Inter, что и в кабинете: сайт и приложение выглядят одним продуктом */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-500-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-600-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/inter-700-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/inter-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #04080f;
  --bg-2: #071120;
  --bg-3: #0a1729;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --line: rgba(125, 190, 255, 0.14);
  --line-strong: rgba(125, 190, 255, 0.28);
  --accent: #22d3ee;
  --accent-2: #3b82f6;
  --accent-3: #38bdf8;
  --text: #e9eff9;
  --muted: #93a5c0;
  --muted-dim: #6b7f9c;
  --ok: #34d399;
  --warn: #fbbf24;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
  --glow: 0 0 0 1px rgba(34, 211, 238, 0.25), 0 18px 60px -20px rgba(34, 211, 238, 0.45);
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --max: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}

p {
  margin: 0;
}

::selection {
  background: rgba(34, 211, 238, 0.3);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Широкие картинки внутри сеток не должны растягивать колонку: без min-width: 0
   скриншот 1400 px задаёт минимальную ширину элемента и страница уезжает вбок. */
.hero__inner > *,
.split > *,
.android__grid > *,
.bento > *,
.gallery > *,
.stats > *,
.steps > *,
.footer__grid > * {
  min-width: 0;
}

.section {
  position: relative;
  padding: 110px 0;
}

.section--tight {
  padding: 70px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.lead {
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
  max-width: 62ch;
  margin-top: 18px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 54px;
}

/* --- фон: аврора из градиентов ------------------------------------------ */

.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

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

.aurora span:nth-child(1) {
  width: 620px;
  height: 620px;
  top: -180px;
  left: -120px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.55), transparent 65%);
  animation: drift-a 26s ease-in-out infinite;
}

.aurora span:nth-child(2) {
  width: 720px;
  height: 720px;
  top: 120px;
  right: -220px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.5), transparent 65%);
  animation: drift-b 32s ease-in-out infinite;
}

.aurora span:nth-child(3) {
  width: 560px;
  height: 560px;
  bottom: -160px;
  left: 35%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.35), transparent 65%);
  animation: drift-c 38s ease-in-out infinite;
}

.grid-lines {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(125, 190, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 190, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
}

@keyframes drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(80px, 60px, 0) scale(1.12); }
}

@keyframes drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.05); }
  50% { transform: translate3d(-90px, 40px, 0) scale(0.95); }
}

@keyframes drift-c {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-60px, -70px, 0) scale(1.15); }
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 460px;
  height: 460px;
  margin: -230px 0 0 -230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.13), transparent 62%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}

body.has-cursor .cursor-glow {
  opacity: 1;
}

/* --- шапка --------------------------------------------------------------- */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), #a78bfa);
  z-index: 60;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.8);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.header.is-stuck {
  background: rgba(5, 10, 20, 0.82);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.brand img {
  height: 30px;
  width: auto;
}

.brand__mark {
  height: 30px;
  width: auto;
}

.brand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  font-size: 15px;
  color: var(--muted);
}

.nav a {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right 0.25s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
}

.nav a:hover::after,
.nav a.is-active::after {
  right: 0;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 76px 0 auto 0;
  z-index: 45;
  background: rgba(4, 9, 17, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 18px 24px 26px;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid rgba(125, 190, 255, 0.08);
  font-size: 17px;
}

/* --- кнопки -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: var(--panel-strong);
}

.btn--primary {
  position: relative;
  overflow: hidden;
  border-color: transparent;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #04121c;
  box-shadow: 0 16px 45px -18px rgba(34, 211, 238, 0.9);
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.55) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}

.btn--primary:hover::after {
  transform: translateX(120%);
}

.btn--primary:hover {
  box-shadow: 0 22px 60px -18px rgba(34, 211, 238, 1);
}

.btn--ghost {
  background: transparent;
}

/* Официальный значок «Скачайте из RuStore»: показывается после публикации */
.rustore-badge {
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.rustore-badge:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.rustore-badge img {
  display: block;
  height: 60px;
  width: auto;
}

@media (max-width: 640px) {
  .rustore-badge img {
    height: 52px;
  }
}

.btn--sm {
  padding: 10px 16px;
  border-radius: 11px;
  font-size: 14px;
}

.btn--wide {
  width: 100%;
}

.btn__hint {
  display: block;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.75;
  margin-top: 2px;
}

/* --- герой --------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 150px 0 40px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("hero-scene.jpg") center 20% / cover no-repeat;
  opacity: 0.32;
  mask-image: radial-gradient(ellipse 70% 60% at 20% 40%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 20% 40%, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 52px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(34, 211, 238, 0.07);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero__badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(32px, 4vw, 50px);
  margin: 22px 0 0;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent), #7dd3fc 40%, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 19px);
  max-width: 56ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
  color: var(--muted-dim);
  font-size: 14px;
}

.hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__trust svg {
  color: var(--accent);
}

.hero__visual {
  position: relative;
  min-height: 460px;
}

.scene {
  position: relative;
  perspective: 1400px;
}

.frame {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(10, 20, 35, 0.9), rgba(4, 9, 17, 0.95));
  box-shadow: var(--shadow);
  overflow: hidden;
  transform-style: preserve-3d;
}

.frame__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(125, 190, 255, 0.12);
  background: rgba(4, 9, 17, 0.6);
}

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

.frame__bar i:first-child { background: #f87171; }
.frame__bar i:nth-child(2) { background: #fbbf24; }
.frame__bar i:nth-child(3) { background: #34d399; }

.frame__url {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-dim);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 7px;
  padding: 3px 10px;
}

.frame__img {
  display: block;
  width: 100%;
  height: auto;
}

.hero .scene--main {
  transform: rotateX(6deg) rotateY(-11deg) translateZ(0);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero .scene--main:hover {
  transform: rotateX(2deg) rotateY(-4deg) translateY(-6px);
}

.scene--phone {
  position: absolute;
  right: -18px;
  bottom: -66px;
  width: 214px;
  z-index: 3;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.75));
}

.phone {
  border-radius: 30px;
  border: 8px solid #0b1524;
  background: #0b1524;
  box-shadow: 0 0 0 1px rgba(125, 190, 255, 0.25), 0 30px 70px -30px rgba(34, 211, 238, 0.5);
  overflow: hidden;
  position: relative;
}

.phone::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 62px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  z-index: 2;
}

.phone img {
  width: 100%;
  height: auto;
}

.chip-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 16, 28, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.9);
  font-size: 13px;
  font-weight: 600;
  z-index: 4;
}

.chip-float svg {
  color: var(--accent);
  flex: none;
}

.chip-float small {
  display: block;
  font-weight: 500;
  font-size: 11px;
  color: var(--muted-dim);
}

.chip-float--a { top: 24px; left: -26px; animation: float-a 7s ease-in-out infinite; }
.chip-float--b { bottom: 118px; left: -40px; animation: float-b 8.5s ease-in-out infinite; }
.chip-float--c { bottom: -26px; left: 46px; animation: float-a 9.5s ease-in-out infinite; }

@keyframes float-a {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes float-b {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* --- полоса показателей -------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.stat {
  background: linear-gradient(180deg, rgba(9, 18, 32, 0.94), rgba(5, 11, 20, 0.94));
  padding: 26px 24px;
}

.stat b {
  display: block;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  color: var(--muted);
  font-size: 14px;
}

/* --- бегущая строка ------------------------------------------------------ */

.marquee {
  position: relative;
  margin-top: 64px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  display: flex;
  gap: 46px;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 15px;
  white-space: nowrap;
  font-weight: 500;
}

.marquee span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

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

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

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(11, 21, 36, 0.82), rgba(5, 10, 19, 0.86));
  padding: 26px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.4s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(34, 211, 238, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 30px 70px -40px rgba(34, 211, 238, 0.5);
}

.card:hover::before {
  opacity: 1;
}

.card--wide { grid-column: span 3; }
.card--half { grid-column: span 2; }
.card--third { grid-column: span 2; }
.card--full { grid-column: span 6; }

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.22);
  color: var(--accent);
  margin-bottom: 18px;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  font-size: 15px;
}

.card__shot {
  margin: 22px -26px -26px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
}

.card__shot img {
  width: 100%;
}

.card__list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-size: 14.5px;
}

.card__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.card__list li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* --- галерея скринов ----------------------------------------------------- */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.tab {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.tab:hover {
  color: var(--text);
}

.tab.is-active {
  color: #04121c;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border-color: transparent;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.shot {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(7, 14, 26, 0.7);
  overflow: hidden;
  cursor: zoom-in;
  text-align: left;
  padding: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.4s ease;
}

.shot:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 30px 60px -40px rgba(34, 211, 238, 0.6);
}

.shot__media {
  position: relative;
  overflow: hidden;
  background: rgba(3, 7, 14, 0.8);
  aspect-ratio: 16 / 11;
}

.shot--tall .shot__media {
  aspect-ratio: 10 / 17;
}

/* Средние снимки: длинный экран вроде дневника питания */
.shot--mid .shot__media {
  aspect-ratio: 4 / 5;
  background: #060c17;
}

.shot--mid .shot__media img {
  object-fit: contain;
}

.shot__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Телефонные экраны не обрезаем: в узкой плитке видно весь экран целиком */
.shot--tall .shot__media {
  background: #060c17;
}

.shot--tall .shot__media img {
  object-fit: contain;
}

.shot:hover .shot__media img {
  transform: scale(1.04);
}

.shot__meta {
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
}

.shot__meta b {
  display: block;
  font-size: 15.5px;
  margin-bottom: 4px;
}

.shot__meta span {
  color: var(--muted);
  font-size: 13.5px;
}

.shot__zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(4, 9, 17, 0.75);
  border: 1px solid var(--line);
  color: var(--text);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.shot:hover .shot__zoom {
  opacity: 1;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(2, 5, 11, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(1200px, 96vw);
  max-height: 84vh;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.lightbox__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  border: 1px solid var(--line);
  background: rgba(8, 16, 28, 0.85);
  border-radius: 12px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.lightbox__close { top: 22px; right: 22px; }
.lightbox__prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 22px; top: 50%; transform: translateY(-50%); }

.lightbox__close:hover,
.lightbox__nav:hover {
  border-color: var(--line-strong);
}

/* --- темы ---------------------------------------------------------------- */

.themes {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 6px 24px 22px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.themes::-webkit-scrollbar {
  height: 8px;
}

.themes::-webkit-scrollbar-thumb {
  background: rgba(125, 190, 255, 0.25);
  border-radius: 999px;
}

.theme {
  flex: none;
  width: 320px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(7, 14, 26, 0.7);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.theme:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.theme img {
  width: 100%;
}

.theme b {
  display: block;
  padding: 12px 16px 14px;
  font-size: 14.5px;
  border-top: 1px solid var(--line);
}

/* --- сплиты -------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 54px;
  align-items: center;
}

/* Разворот сплита: скриншот уходит в левую колонку, текст - в правую */
.split--reverse .split__media {
  order: -1;
}

.split__media {
  position: relative;
}

.split__media .frame {
  transform: none;
}

/* Телефон стоит поверх снимка кабинета: так видно и большой экран, и мобильный */
.split__media--phone {
  position: relative;
  display: block;
}

.split__media--phone .phone {
  position: absolute;
  left: -44px;
  bottom: -30px;
  width: 172px;
  z-index: 2;
  box-shadow: 0 0 0 1px rgba(125, 190, 255, 0.25), 0 34px 70px -24px rgba(0, 0, 0, 0.9);
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 14px;
}

.ticks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 16px;
}

.ticks svg {
  color: var(--accent);
  flex: none;
  margin-top: 4px;
}

.ticks b {
  color: var(--text);
  font-weight: 600;
}

/* --- Android ------------------------------------------------------------- */

.android {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 54px;
  background: radial-gradient(120% 140% at 12% 0%, rgba(34, 211, 238, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(9, 18, 32, 0.94), rgba(4, 9, 17, 0.96));
  overflow: hidden;
}

.android__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}

.android__info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 30px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13.5px;
  color: var(--muted);
}

.pill b {
  color: var(--text);
  font-weight: 600;
}

.pill--ok {
  border-color: rgba(52, 211, 153, 0.35);
  color: var(--ok);
}

.android__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.android__note {
  margin-top: 18px;
  color: var(--muted-dim);
  font-size: 13.5px;
}

.release {
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(255, 255, 255, 0.02);
}

.release b {
  display: block;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.release p {
  color: var(--muted);
  font-size: 14.5px;
}

.android__phones {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.android__phones .phone {
  width: 200px;
}

.android__phones .phone:last-child {
  transform: translateY(26px) rotate(3deg);
}

.android__phones .phone:first-child {
  transform: rotate(-3deg);
}

.qr {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  padding: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.qr img {
  width: 96px;
  height: 96px;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
}

.qr p {
  font-size: 14px;
  color: var(--muted);
}

.qr b {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

/* --- шаги ---------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}

.step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  background: linear-gradient(180deg, rgba(11, 21, 36, 0.8), rgba(5, 10, 19, 0.85));
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.step p {
  color: var(--muted);
  font-size: 15px;
}

.step a {
  color: var(--accent);
  border-bottom: 1px solid rgba(34, 211, 238, 0.35);
}

/* --- вопросы ------------------------------------------------------------- */

.faq {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.qa {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(8, 15, 27, 0.7);
  overflow: hidden;
}

.qa summary {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  list-style: none;
}

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

.qa summary::after {
  content: "+";
  font-size: 22px;
  color: var(--accent);
  transition: transform 0.25s ease;
}

.qa[open] summary::after {
  transform: rotate(45deg);
}

.qa__body {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 15.5px;
}

/* --- финальный призыв ---------------------------------------------------- */

.cta {
  position: relative;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 70px 40px;
  background: radial-gradient(90% 130% at 50% 0%, rgba(34, 211, 238, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(9, 18, 32, 0.95), rgba(4, 9, 17, 0.97));
  overflow: hidden;
}

.cta h2 {
  font-size: clamp(28px, 3.6vw, 44px);
}

.cta p {
  color: var(--muted);
  margin: 18px auto 0;
  max-width: 60ch;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 32px;
}

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

.footer {
  margin-top: 110px;
  border-top: 1px solid var(--line);
  background: rgba(3, 7, 14, 0.72);
  padding: 64px 0 34px;
  font-size: 14.5px;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.footer h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-dim);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--accent);
}

.footer__about p {
  color: var(--muted);
  margin-top: 16px;
  max-width: 42ch;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: space-between;
  align-items: center;
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted-dim);
  font-size: 13.5px;
}

.footer__bottom a {
  color: var(--muted);
}

.dev-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.dev-badge b {
  color: var(--text);
}

/* --- cookie -------------------------------------------------------------- */

.cookie {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  display: none;
  align-items: center;
  gap: 22px;
  padding: 20px 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(6, 13, 24, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.95);
  max-width: 1080px;
  margin: 0 auto;
}

.cookie.is-open {
  display: flex;
}

.cookie p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0;
}

.cookie__short {
  display: none;
}

.cookie a {
  color: var(--accent);
}

.cookie__actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
  flex: none;
}

.cookie__icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent);
}

/* --- страницы документов ------------------------------------------------- */

.doc {
  padding: 150px 0 60px;
  max-width: 860px;
}

.doc h1 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 14px;
}

.doc .doc__meta {
  color: var(--muted-dim);
  font-size: 14px;
  margin-bottom: 34px;
}

.doc h2 {
  font-size: 24px;
  margin: 40px 0 14px;
}

.doc p,
.doc li {
  color: var(--muted);
  font-size: 16.5px;
  margin-bottom: 14px;
}

.doc ul {
  padding-left: 22px;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

.doc th,
.doc td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  color: var(--muted);
  vertical-align: top;
}

.doc th {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
}

.doc__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  margin-bottom: 22px;
  font-size: 14.5px;
}

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

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

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

@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 70px; }
  .hero { padding-top: 130px; }
  .hero__visual { min-height: 0; }
  .scene--phone { right: 0; width: 190px; bottom: -50px; }
  .chip-float--a { left: 0; }
  .chip-float--b { left: -10px; bottom: 90px; }
  .chip-float--c { right: 4px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split__media { order: 0; }
  .split__media--phone .phone { left: 0; width: 150px; bottom: -24px; }
  .android__grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card--wide,
  .card--half,
  .card--third { grid-column: span 2; }
  .card--full { grid-column: span 4; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav { display: none; }
  /* На узком экране в шапке остаётся только вход: скачивание живёт в меню */
  .header__actions .btn--primary { display: none; }
  .burger { display: grid; }
  .header__inner { gap: 14px; }
  .header__actions { margin-left: auto; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .android { padding: 34px 24px; border-radius: 22px; }
  .cursor-glow { display: none; }
  .hero::before { opacity: 0.2; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .header__inner { gap: 10px; height: 68px; }
  .mobile-nav { inset: 68px 0 auto 0; }
  .brand { font-size: 17px; gap: 9px; }
  .brand small { display: none; }
  .brand img,
  .brand__mark { height: 26px; }
  .hero { padding-top: 118px; }
  .bento { grid-template-columns: 1fr; }
  .card--wide,
  .card--half,
  .card--third,
  .card--full { grid-column: span 1; }
  .gallery { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .cookie { left: 12px; right: 12px; bottom: 12px; flex-direction: column; align-items: flex-start; padding: 18px; gap: 14px; }
  .cookie__long { display: none; }
  .cookie__short { display: block; }
  .cookie__icon { display: none; }
  .cookie__actions { margin-left: 0; width: 100%; }
  .cookie__actions .btn { flex: 1; }
  .android__phones { gap: 12px; }
  .android__phones .phone { width: 46%; }
  .scene--phone { display: none; }
  .chip-float--b,
  .chip-float--c { display: none; }
  .hero__actions .btn { width: 100%; }
  .cta { padding: 46px 22px; }
  .lightbox { padding: 14px; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora span,
  .marquee__track,
  .chip-float,
  .hero__badge i { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cursor-glow { display: none; }
}
